about summary refs log tree commit diff stats
path: root/subx/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-22 08:49:31 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-22 08:49:31 -0700
commit1b6aa10a6b489445ba37ef6a4633dd2b84cbb530 (patch)
treef6add6823689011f91e46ff944b3661e00543bd5 /subx/apps
parentefe9e6abe91f0c617ce89bb613febb2b75ace0fa (diff)
downloadmu-1b6aa10a6b489445ba37ef6a4633dd2b84cbb530.tar.gz
5216
Diffstat (limited to 'subx/apps')
-rw-r--r--subx/apps/handle.subx5
1 files changed, 3 insertions, 2 deletions
diff --git a/subx/apps/handle.subx b/subx/apps/handle.subx
index 0ed12067..073b624c 100644
--- a/subx/apps/handle.subx
+++ b/subx/apps/handle.subx
@@ -218,7 +218,7 @@ lookup:  # h : (handle T) -> EAX : (address T)
     8b/copy                         0/mod/indirect  0/rm32/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:fail/disp8
+    75/jump-if-not-equal  $lookup:abort/disp8
     # return ESP+4
     58/pop-to-EAX
     05/add-to-EAX  4/imm32
@@ -227,7 +227,8 @@ lookup:  # h : (handle T) -> EAX : (address T)
     89/copy                         3/mod/direct    4/rm32/ESP    .           .             .           5/r32/EBP   .               .                 # copy EBP to ESP
     5d/pop-to-EBP
     c3/return
-$lookup:fail:
+
+$lookup:abort:
     # . _write(2/stderr, msg)
     # . . push args
     68/push  "lookup failed"/imm32