From 7a752f8d3df2f7123c4954ae960bb221ae9b4d68 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 9 Jul 2019 16:39:56 -0700 Subject: [PATCH] this looks like a bug But of course the test is still infinite-looping so we can't be sure. I'm still just reading the code. --- subx/apps/survey | Bin 37321 -> 37321 bytes subx/apps/survey.subx | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/subx/apps/survey b/subx/apps/survey index 7bdc0cceb531e7672510f622e579625f8464e753..3176f924591f808c4a7e5618d678817335f9a11e 100755 GIT binary patch delta 17 ZcmX@PnCawVrVRrAOf3I43;Az%0sumg2K@j4 delta 17 ZcmX@PnCawVrVRrAOn3fn7V_Wj1OP~K2h;!n diff --git a/subx/apps/survey.subx b/subx/apps/survey.subx index 854aa3cc..532cd034 100644 --- a/subx/apps/survey.subx +++ b/subx/apps/survey.subx @@ -631,7 +631,7 @@ $compute-offsets:else: 01/add 0/mod/indirect 5/rm32/.disp32 . . 0/r32/EAX compute-offsets:segment-offset/disp32 # add EAX to *segment-offset # file-offset += width 01/add 0/mod/indirect 5/rm32/.disp32 . . 0/r32/EAX compute-offsets:file-offset/disp32 # add EAX to *file-offset - e9/jump $compute-offsets:line-loop/disp32 + e9/jump $compute-offsets:word-loop/disp32 $compute-offsets:end: # . reclaim locals # . restore registers