summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index d08d0e3..157e09b 100644
--- a/main.c
+++ b/main.c
@@ -2,8 +2,9 @@
#include "registers.h"
#include "write_elf.c"
-static const unsigned char some_opcodes[] = {MOVDI(REG_EAX, 0x3c),
- MOVDI(REG_EDI, 0x41), SYSCALL};
+static const unsigned char some_opcodes[] = {
+ MOVWI(REG_EAX, (long)0x41), MOVQ(REG_EAX, REG_EDI),
+ MOVDI(REG_EAX, (long)0x3c), SYSCALL};
static const unsigned int some_opcodes_len =
sizeof(some_opcodes) / sizeof(some_opcodes[0]);