From 1c31d1024c227979d5e4df7dd555fa866562c044 Mon Sep 17 00:00:00 2001 From: onelin Date: Sat, 13 Jun 2026 02:01:19 +0200 Subject: Add mov src, dst instruction --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.c') 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]); -- cgit v1.3