about summary refs log tree commit diff stats
path: root/069allocate.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-03 23:46:21 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-18 00:44:48 -0700
commit712f4cd75df1c9758da45986cd3948e6ba0a33d3 (patch)
tree3bf173bbcc27c2951a2d5e932df27bb8fb5a4151 /069allocate.subx
parent298a38a3c748f5b61ed5a3afaab32bb93cba2baa (diff)
downloadmu-712f4cd75df1c9758da45986cd3948e6ba0a33d3.tar.gz
mu.subx: first passing test
test-parse-mu-var now passing. After I had to extensively fix parse-type.
Diffstat (limited to '069allocate.subx')
-rw-r--r--069allocate.subx1
1 files changed, 1 insertions, 0 deletions
diff --git a/069allocate.subx b/069allocate.subx
index 01460466..2a40866e 100644
--- a/069allocate.subx
+++ b/069allocate.subx
@@ -128,6 +128,7 @@ allocate-raw:  # ad: (addr allocation-descriptor), n: int, out: (addr handle)
     8b/copy                         1/mod/*+disp8   2/rm32/edx    .           .             .           7/r32/edi   4/disp8         .                 # copy *(edx+4) to edi
     8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           6/r32/esi   Next-alloc-id/disp32              # copy *Next-alloc-id to esi
     89/copy                         0/mod/indirect  7/rm32/edi    .           .             .           6/r32/esi   .               .                 # copy esi to *edi
+$allocate-raw:increment-next-alloc-id:
     # increment *Next-alloc-id
     ff          0/subop/increment   0/mod/indirect  5/rm32/.disp32            .             .           .           Next-alloc-id/disp32              # increment *Next-alloc-id
     # check if there's enough space