diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-12-05 22:57:51 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-12-05 22:57:51 -0800 |
commit | 686a52bd2ef94fb6a2f255e59b17d9e71f719918 (patch) | |
tree | 5ff66558e54a98b5738ea4b7111137f508a06bf5 /053new-segment.subx | |
parent | 714d6e15ba096e47253905eb63bf4066f72cf46f (diff) | |
download | mu-686a52bd2ef94fb6a2f255e59b17d9e71f719918.tar.gz |
5790
Standardize conventions for labels within objects in the data segment. We're going to use this in a new tool.
Diffstat (limited to '053new-segment.subx')
-rw-r--r-- | 053new-segment.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/053new-segment.subx b/053new-segment.subx index 51f321fd..719413ab 100644 --- a/053new-segment.subx +++ b/053new-segment.subx @@ -47,7 +47,7 @@ new-segment: # len : int, ad : (address allocation-descriptor) 53/push-ebx # copy len to _mmap-new-segment->len 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 0/r32/eax 8/disp8 . # copy *(ebp+8) to eax - 89/copy 0/mod/indirect 5/rm32/.disp32 . . 0/r32/eax _mmap-new-segment:len/disp32 # copy eax to *_mmap-new-segment:len + 89/copy 0/mod/indirect 5/rm32/.disp32 . . 0/r32/eax $_mmap-new-segment:len/disp32 # copy eax to *$_mmap-new-segment:len # mmap(_mmap-new-segment) bb/copy-to-ebx _mmap-new-segment/imm32 b8/copy-to-eax 0x5a/imm32/mmap @@ -75,7 +75,7 @@ $new-segment:end: _mmap-new-segment: # type mmap_arg_struct # addr 0/imm32 -_mmap-new-segment:len: +$_mmap-new-segment:len: # len 0/imm32 # protection flags |