diff options
| author | onelin <oscar@nelin.dk> | 2026-06-13 00:01:19 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2026-06-13 00:01:19 +0000 |
| commit | 1c31d1024c227979d5e4df7dd555fa866562c044 (patch) | |
| tree | 5f00d4f4311f48ad814616c89e2732f57fadbffe /main.c | |
| parent | 9f871ef0e0f27f795f5df7d842c7c205b6faa05f (diff) | |
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]); |
