about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-13 14:47:03 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-13 14:47:03 -0700
commit195a0d7d7d8a7d199a6d97cbd71b76c9a1eeeead (patch)
tree18ea44b9aaa920a97fd741c1d4cb8ffc2b7f29ad
parent4c81119344d5adbd38d3baad796c4b0cf5364434 (diff)
downloadmu-195a0d7d7d8a7d199a6d97cbd71b76c9a1eeeead.tar.gz
fixed third bug, hit fourth
-rw-r--r--subx/apps/survey.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/apps/survey.subx b/subx/apps/survey.subx
index ce6ad8c7..87346890 100644
--- a/subx/apps/survey.subx
+++ b/subx/apps/survey.subx
@@ -2502,7 +2502,7 @@ emit-elf-program-header-entry:  # curr-segment : {string, segment-info}
     50/push-EAX
     56/push-ESI
     # ESI = curr-segment
-    8b/copy                         1/mod/*+disp8   5/rm32/EBP    .           .             .           0/r32/EAX   8/disp8         .                 # copy *(EBP+8) to EAX
+    8b/copy                         1/mod/*+disp8   5/rm32/EBP    .           .             .           6/r32/ESI   8/disp8         .                 # copy *(EBP+8) to ESI
     # *Elf_p_offset = curr-segment->file-offset
     # . EAX = curr-segment->file-offset
     8b/copy                         1/mod/*+disp8   6/rm32/ESI    .           .             .           0/r32/EAX   8/disp8         .                 # copy *(ESI+8) to EAX