diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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]); |
