about summary refs log tree commit diff stats
path: root/subx/apps/handle.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-22 21:19:21 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-22 21:19:21 -0700
commit61480eb76e3f453dc777925c1196ba3df03ae747 (patch)
treeab72a2e89f0b59358e9f67448814505735c453ab /subx/apps/handle.subx
parent1b6aa10a6b489445ba37ef6a4633dd2b84cbb530 (diff)
downloadmu-61480eb76e3f453dc777925c1196ba3df03ae747.tar.gz
5217
Couple of typos in handle.subx. We didn't notice because a missing /r32
field gets turned into 0/EAX anyway, and because ECX happens to have the
same value as EAX in the specific test caller.

But it's still not running as expected, now that I'm looking closely.
Diffstat (limited to 'subx/apps/handle.subx')
-rw-r--r--subx/apps/handle.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/apps/handle.subx b/subx/apps/handle.subx
index 073b624c..39bbf501 100644
--- a/subx/apps/handle.subx
+++ b/subx/apps/handle.subx
@@ -213,9 +213,9 @@ lookup:  # h : (handle T) -> EAX : (address T)
     8b/copy                         1/mod/*+disp8   5/rm32/EBP    .           .             .           0/r32/EAX   8/disp8         .                 # copy *(EBP+8) to EAX
     # - inline {
     # push handle->address
-    ff          6/subop/push        1/mod/*+disp8   1/rm32/ECX    .           .             .           .           4/disp8         .                 # push *(EAX+4)
+    ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX    .           .             .           .           4/disp8         .                 # push *(EAX+4)
     # EAX = handle->alloc_id
-    8b/copy                         0/mod/indirect  0/rm32/EAX    .           .             .           .           .               .                 # copy *EAX to EAX
+    8b/copy                         0/mod/indirect  0/rm32/EAX    .           .             .           0/r32/EAX   .               .                 # copy *EAX to EAX
     # if (EAX != *ESP) abort
     39/compare                      0/mod/indirect  4/rm32/sib    4/base/ESP  4/index/none  .           0/r32/EAX   .               .                 # compare *ESP and EAX
     75/jump-if-not-equal  $lookup:abort/disp8