From 009e450626194299ee4b5ccb8463ac64e127fde6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 13 Nov 2020 17:50:02 +0100 Subject: Added push and pop --- asm/intel64/trivials.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'asm/intel64/trivials.h') diff --git a/asm/intel64/trivials.h b/asm/intel64/trivials.h index 72ea3f8..898001e 100644 --- a/asm/intel64/trivials.h +++ b/asm/intel64/trivials.h @@ -5,20 +5,11 @@ #include // No Operation -class Op_nop: public OpSimple -{ -public: Op_nop() : OpSimple({ 0x90 }) {} -}; +class Op_nop: public OpSimple { public: Op_nop(); }; // Return from procedure -class Op_ret: public OpSimple -{ -public: Op_ret() : OpSimple({ 0xC3 }) {} // near return; TODO: far return is 0xCB -}; +class Op_ret: public OpSimple { public: Op_ret(); }; // Syscall -class Op_syscall: public OpSimple -{ -public: Op_syscall() : OpSimple({ 0x0F, 0x05 }) {} -}; +class Op_syscall: public OpSimple { public: Op_syscall(); }; -- cgit v1.2.3