#include "trivials.h" #include Op_nop::Op_nop(): OpSimple({ 0x90 }) {} Op_ret::Op_ret(): OpSimple({ 0xC3 }) {} // near return; TODO: far return is 0xCB Op_syscall::Op_syscall(): OpSimple({ 0x0F, 0x05 }) {} namespace { bool registered { registerOp("nop", [](Asm::Args& args) -> std::shared_ptr{ return std::make_shared(); }) && registerOp("ret", [](Asm::Args& args) -> std::shared_ptr{ return std::make_shared(); }) && registerOp("syscall", [](Asm::Args& args) -> std::shared_ptr{ return std::make_shared(); }) }; }