diff options
Diffstat (limited to 'subx/examples/ex12.subx')
-rw-r--r-- | subx/examples/ex12.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/examples/ex12.subx b/subx/examples/ex12.subx index ba760707..b35c8c95 100644 --- a/subx/examples/ex12.subx +++ b/subx/examples/ex12.subx @@ -11,7 +11,7 @@ # 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 - # mmap(0x1000) + # syscall(mmap, 0x1000) bb/copy-to-EBX mmap-new-segment/imm32 b8/copy-to-EAX 0x5a/imm32/mmap cd/syscall 0x80/imm8 @@ -19,7 +19,7 @@ # store to *EAX c7/copy 0/mod/direct 0/rm32/EAX . . . . . 0x34/imm32 # copy to *EAX - # exit(EAX) + # syscall(exit, EAX) 89/copy 3/mod/direct 3/rm32/EBX . . . 0/r32/EAX . . # copy EAX to EBX b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 |