diff options
Diffstat (limited to 'subx/053new_segment.subx')
-rw-r--r-- | subx/053new_segment.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/053new_segment.subx b/subx/053new_segment.subx index 3809eee5..25efaf94 100644 --- a/subx/053new_segment.subx +++ b/subx/053new_segment.subx @@ -14,10 +14,10 @@ # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # store to *EAX + # write to *EAX to check that we have access to the newly-allocated segment 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 |