summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/trivials.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-13 17:50:02 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-13 17:50:02 +0100
commit009e450626194299ee4b5ccb8463ac64e127fde6 (patch)
treecb30ab5684f0af0061d042068cbf7e361584590f /asm/intel64/trivials.h
parent97b8d5bb3c9fd96251e89539d122d2331a2a7925 (diff)
Added push and pop
Diffstat (limited to 'asm/intel64/trivials.h')
-rw-r--r--asm/intel64/trivials.h15
1 files changed, 3 insertions, 12 deletions
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 <asm/chunk.h>
// 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(); };