about summary refs log tree commit diff stats
path: root/subx/apps
diff options
context:
space:
mode:
authornc <charles.saternos@gmail.com>2019-07-07 19:41:26 -0400
committernc <charles.saternos@gmail.com>2019-07-07 19:41:26 -0400
commitc17643b7a8d8d1e1b1647b495058688cf13605d4 (patch)
tree73f03602015069865cde5b32d285a8a5065340b2 /subx/apps
parentfb8474af88a706fd0404856e82ffa6ee69813140 (diff)
downloadmu-c17643b7a8d8d1e1b1647b495058688cf13605d4.tar.gz
remove segfaults in survey.subx
Diffstat (limited to 'subx/apps')
-rw-r--r--subx/apps/survey.subx16
1 files changed, 8 insertions, 8 deletions
diff --git a/subx/apps/survey.subx b/subx/apps/survey.subx
index 06ff8c46..aa226d40 100644
--- a/subx/apps/survey.subx
+++ b/subx/apps/survey.subx
@@ -613,11 +613,11 @@ $compute-offsets:segment:
     59/pop-to-ECX
     # trace-slsns("segment '", curr-segment-name, "' has size 0x", seg->size/EBX, "")
     # . push args
-    68/push  "segment '"/imm32
-    68/push  compute-offsets:curr-segment-name/imm32
-    68/push  "' has size 0x"/imm32
-    53/push-EBX
     68/push  ""/imm32
+    53/push-EBX
+    68/push  "' has size 0x"/imm32
+    68/push  compute-offsets:curr-segment-name/imm32
+    68/push  "segment '"/imm32
     # . call
     e8/call  trace-slsns/disp32
     # . discard args
@@ -690,11 +690,11 @@ $compute-offsets:construct-next-segment:
     89/copy                         1/mod/*+disp8   3/rm32/EBX    .           .             .           0/r32/EAX   4/disp8         .                 # copy EAX to *(EBX+4)
     # trace-slsns("segment '", curr-segment-name, "' has size 0x", seg->size/EBX, "")
     # . push args
-    68/push  "segment '"/imm32
-    68/push  compute-offsets:curr-segment-name/imm32
-    68/push  "' is at file offset size 0x"/imm32
-    53/push-EAX
     68/push  ""/imm32
+    53/push-EAX
+    68/push  "' is at file offset size 0x"/imm32
+    68/push  compute-offsets:curr-segment-name/imm32
+    68/push  "segment '"/imm32
     # . call
     e8/call  trace-slsns/disp32
     # . discard args
e>1 2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74