about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-11-18 13:52:31 -0800
committerKartik Agaram <vc@akkartik.com>2018-11-18 13:52:31 -0800
commit565156761c1b15ab468deb3a442a7c757b3c0f98 (patch)
tree4b4ac15210762e867f00ab3f485166732ad893de /subx
parent674cf5833c219d683ea765d76c116d4d2b41097c (diff)
downloadmu-565156761c1b15ab468deb3a442a7c757b3c0f98.tar.gz
4752
Diffstat (limited to 'subx')
-rw-r--r--subx/055trace.subx48
1 files changed, 24 insertions, 24 deletions
diff --git a/subx/055trace.subx b/subx/055trace.subx
index c938f564..f7423ef7 100644
--- a/subx/055trace.subx
+++ b/subx/055trace.subx
@@ -27,7 +27,7 @@ Trace-stream:
 
 # Fake trace-stream for tests.
 # Also illustrates the layout of the real trace-stream (segment).
-Test-trace-stream:
+_test-trace-stream:
   # current write index
   00 00 00 00
   # current read index
@@ -176,27 +176,27 @@ $clear-trace-stream:end:
 ## tests
 
 test-trace-single:
-  # clear-trace-stream(Test-trace-stream)
+  # clear-trace-stream(_test-trace-stream)
     # push args
-  68/push  Test-trace-stream/imm32
+  68/push  _test-trace-stream/imm32
     # call
   e8/call  clear-trace-stream/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
-  # trace(Test-trace-stream, "Ab")
+  # trace(_test-trace-stream, "Ab")
     # push args
   68/push  "Ab"/imm32
-  68/push  Test-trace-stream/imm32
+  68/push  _test-trace-stream/imm32
     # call
   e8/call  trace/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-  # check-ints-equal(*Test-trace-stream.data, 41/A 62/b 0a/newline 00, msg)
+  # check-ints-equal(*_test-trace-stream.data, 41/A 62/b 0a/newline 00, msg)
     # push args
   68/push  "F - test-trace-single"/imm32
   68/push  0x0a6241/imm32/Ab-newline
-    # push *Test-trace-stream.data
-  b8/copy-to-EAX  Test-trace-stream/imm32
+    # push *_test-trace-stream.data
+  b8/copy-to-EAX  _test-trace-stream/imm32
   ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX    .           .             .           .           0xc/disp8       .                 # push *(EAX+12)
     # call
   e8/call  check-ints-equal/disp32
@@ -206,35 +206,35 @@ test-trace-single:
   c3/return
 
 test-trace-appends:
-  # clear-trace-stream(Test-trace-stream)
+  # clear-trace-stream(_test-trace-stream)
     # push args
-  68/push  Test-trace-stream/imm32
+  68/push  _test-trace-stream/imm32
     # call
   e8/call  clear-trace-stream/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
-  # trace(Test-trace-stream, "C")
+  # trace(_test-trace-stream, "C")
     # push args
   68/push  "C"/imm32
-  68/push  Test-trace-stream/imm32
+  68/push  _test-trace-stream/imm32
     # call
   e8/call  trace/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-  # trace(Test-trace-stream, "D")
+  # trace(_test-trace-stream, "D")
     # push args
   68/push  "D"/imm32
-  68/push  Test-trace-stream/imm32
+  68/push  _test-trace-stream/imm32
     # call
   e8/call  trace/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-  # check-ints-equal(*Test-trace-stream.data, 43/C 0a/newline 44/D 0a/newline, msg)
+  # check-ints-equal(*_test-trace-stream.data, 43/C 0a/newline 44/D 0a/newline, msg)
     # push args
   68/push  "F - test-trace-appends"/imm32
   68/push  0x0a440a43/imm32/C-newline-D-newline
-    # push *Test-trace-stream.data
-  b8/copy-to-EAX  Test-trace-stream/imm32
+    # push *_test-trace-stream.data
+  b8/copy-to-EAX  _test-trace-stream/imm32
   ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX    .           .             .           .           0xc/disp8       .                 # push *(EAX+12)
     # call
   e8/call  check-ints-equal/disp32
@@ -244,27 +244,27 @@ test-trace-appends:
   c3/return
 
 test-trace-empty-line:
-  # clear-trace-stream(Test-trace-stream)
+  # clear-trace-stream(_test-trace-stream)
     # push args
-  68/push  Test-trace-stream/imm32
+  68/push  _test-trace-stream/imm32
     # call
   e8/call  clear-trace-stream/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
-  # trace(Test-trace-stream, "")
+  # trace(_test-trace-stream, "")
     # push args
   68/push  ""/imm32
-  68/push  Test-trace-stream/imm32
+  68/push  _test-trace-stream/imm32
     # call
   e8/call  trace/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-  # check-ints-equal(*Test-trace-stream.data, 0, msg)
+  # check-ints-equal(*_test-trace-stream.data, 0, msg)
     # push args
   68/push  "F - test-trace-empty-line"/imm32
   68/push  0/imm32
-    # push *Test-trace-stream.data
-  b8/copy-to-EAX  Test-trace-stream/imm32
+    # push *_test-trace-stream.data
+  b8/copy-to-EAX  _test-trace-stream/imm32
   ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX    .           .             .           .           0xc/disp8       .                 # push *(EAX+12)
     # call
   e8/call  check-ints-equal/disp32
=v0.3.3&id=747f4fb70ff61d3f8a7bb1bed896a913b0999450'>^
90638ac ^





efa99ed ^









3c5dd59 ^
37be25f ^
37bf8b0 ^
efa99ed ^

37be25f ^
3c5dd59 ^
efa99ed ^


90638ac ^


3c5dd59 ^
efa99ed ^
37be25f ^




efa99ed ^


90638ac ^
37bf8b0 ^
efa99ed ^
fc49c57 ^
efa99ed ^

90638ac ^
fc49c57 ^
efa99ed ^
a6f47c0 ^

efa99ed ^
a6f47c0 ^
efa99ed ^
fc49c57 ^
bce5265 ^
efa99ed ^
90638ac ^


























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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146