diff options
Diffstat (limited to 'examples/ex3.subx')
-rw-r--r-- | examples/ex3.subx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/ex3.subx b/examples/ex3.subx index 84789f3a..21acfd66 100644 --- a/examples/ex3.subx +++ b/examples/ex3.subx @@ -7,7 +7,7 @@ # $ echo $? # 55 -== code 0x09000000 +== code # instruction effective address register displacement immediate # . op subop mod rm32 base index scale r32 # . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes @@ -30,10 +30,7 @@ $loop: eb/jump $loop/disp8 $exit: - # syscall(exit, ebx) - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 - -== data 0x0a000000 + # exit(ebx) + e8/call syscall_exit/disp32 # . . vim:nowrap:textwidth=0 |