about summary refs log tree commit diff stats
path: root/apps/survey.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-04-06 05:29:26 -0700
committerKartik Agaram <vc@akkartik.com>2020-04-06 05:35:29 -0700
commit685a136635e0d7833271f6b35766191f8b032afb (patch)
tree7aa2ef1a8e6bbdd427d0b8ecde8b4ee8adf256d2 /apps/survey.subx
parent6f41eda8170657ecbdd65836b51efe924bde2794 (diff)
downloadmu-685a136635e0d7833271f6b35766191f8b032afb.tar.gz
6186
Diffstat (limited to 'apps/survey.subx')
-rw-r--r--apps/survey.subx8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/survey.subx b/apps/survey.subx
index 40c6405b..c85be9a1 100644
--- a/apps/survey.subx
+++ b/apps/survey.subx
@@ -1001,7 +1001,7 @@ $compute-offsets:update-curr-segment-name:
     # trace-sssns("segment '", curr-segment-name, "' is at file offset ", seg->file-offset, "")
     # . . push args
     68/push  "."/imm32
-    50/push-eax
+    ff          6/subop/push        0/mod/indirect  5/rm32/.disp32            .             .           .           compute-offsets:file-offset/disp32  # push *file-offset
     68/push  "' is at file offset "/imm32
     56/push-esi
     68/push  "segment '"/imm32
@@ -1057,13 +1057,9 @@ $compute-offsets:save-label-offset:
     # . x->segment-offset = ebx
     89/copy                         1/mod/*+disp8   0/rm32/eax    .           .             .           3/r32/ebx   4/disp8         .                 # copy ebx to *(eax+4)
     # trace-slsns("label '" word-slice/edx "' is at segment offset " *segment-offset/eax ".")
-    # . . eax = file-offset
-    b8/copy-to-eax compute-offsets:segment-offset/imm32
-    # . . eax = *file-offset/eax
-    8b/copy                         0/mod/indirect  0/rm32/eax    .           .             .           0/r32/eax   .               .                 # copy *eax to eax
     # . . push args
     68/push  "."/imm32
-    50/push-eax
+    53/push-ebx
     68/push  "' is at segment offset "/imm32
     52/push-edx
     68/push  "label '"/imm32