diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-12-04 00:29:06 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-12-04 00:29:06 -0800 |
commit | cf02c20bb02f5d2fbfee5557baf68c0e2ca5a042 (patch) | |
tree | 8f1d896a0134e8353ccf01add61fb6c732103861 /subx/053new_segment.subx | |
parent | 7cb326df5bb9739d948dd4f8b32019f1bf6e4ef3 (diff) | |
download | mu-cf02c20bb02f5d2fbfee5557baf68c0e2ca5a042.tar.gz |
4832
Let's start adding ':end' labels in all functions, just because it helps us visualize where function calls end in traces, thanks to the '--map' commandline argument.
Diffstat (limited to 'subx/053new_segment.subx')
-rw-r--r-- | subx/053new_segment.subx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/053new_segment.subx b/subx/053new_segment.subx index 27fd8ea1..8d6cdc5f 100644 --- a/subx/053new_segment.subx +++ b/subx/053new_segment.subx @@ -36,6 +36,7 @@ new-segment: # len : int -> address bb/copy-to-EBX _mmap-new-segment/imm32 b8/copy-to-EAX 0x5a/imm32/mmap cd/syscall 0x80/imm8 +$new-segment:end: # . epilog 5b/pop-to-EBX 89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP |