diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-12-02 16:58:30 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-12-02 16:58:30 -0800 |
commit | 0043952064be14219ca6c428802467b49e6018a3 (patch) | |
tree | b93f25aa54a27080904510b7e7bf222dabca4410 | |
parent | c98d4b1c6ae2d103acc7b4f15e4dc6336f30de17 (diff) | |
download | mu-0043952064be14219ca6c428802467b49e6018a3.tar.gz |
4819
-rw-r--r-- | html/subx/052kernel_string_equal.subx.html | 6 | ||||
-rw-r--r-- | html/subx/056write.subx.html | 2 | ||||
-rw-r--r-- | html/subx/058read.subx.html | 4 | ||||
-rw-r--r-- | html/subx/059read-byte.subx.html | 6 | ||||
-rw-r--r-- | html/subx/apps/crenshaw2-1.subx.html | 2 | ||||
-rw-r--r-- | html/subx/apps/crenshaw2-1b.subx.html | 6 | ||||
-rw-r--r-- | html/subx/apps/factorial.subx.html | 2 | ||||
-rw-r--r-- | html/subx/examples/ex11.subx.html | 6 | ||||
-rw-r--r-- | subx/052kernel_string_equal.subx | 6 | ||||
-rw-r--r-- | subx/056write.subx | 2 | ||||
-rw-r--r-- | subx/058read.subx | 4 | ||||
-rw-r--r-- | subx/059read-byte.subx | 6 | ||||
-rw-r--r-- | subx/apps/crenshaw2-1.subx | 2 | ||||
-rw-r--r-- | subx/apps/crenshaw2-1b.subx | 6 | ||||
-rw-r--r-- | subx/apps/factorial.subx | 2 | ||||
-rw-r--r-- | subx/examples/ex11.subx | 6 |
16 files changed, 34 insertions, 34 deletions
diff --git a/html/subx/052kernel_string_equal.subx.html b/html/subx/052kernel_string_equal.subx.html index 36a63e6b..6543192f 100644 --- a/html/subx/052kernel_string_equal.subx.html +++ b/html/subx/052kernel_string_equal.subx.html @@ -265,7 +265,7 @@ if ('onhashchange' in window) { <span id="L200" class="LineNr">200 </span> e8/call kernel-string-equal/disp32 <span id="L201" class="LineNr">201 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L202" class="LineNr">202 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L203" class="LineNr">203 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> +<span id="L203" class="LineNr">203 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L204" class="LineNr">204 </span> <span class="subxS2Comment"># . . push args</span> <span id="L205" class="LineNr">205 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 <span id="L206" class="LineNr">206 </span> 68/push 0/imm32/false @@ -285,7 +285,7 @@ if ('onhashchange' in window) { <span id="L220" class="LineNr">220 </span> e8/call kernel-string-equal/disp32 <span id="L221" class="LineNr">221 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L222" class="LineNr">222 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L223" class="LineNr">223 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> +<span id="L223" class="LineNr">223 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L224" class="LineNr">224 </span> <span class="subxS2Comment"># . . push args</span> <span id="L225" class="LineNr">225 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-shorter-array"</span>/imm32 <span id="L226" class="LineNr">226 </span> 68/push 0/imm32/false @@ -305,7 +305,7 @@ if ('onhashchange' in window) { <span id="L240" class="LineNr">240 </span> e8/call kernel-string-equal/disp32 <span id="L241" class="LineNr">241 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L242" class="LineNr">242 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L243" class="LineNr">243 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> +<span id="L243" class="LineNr">243 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L244" class="LineNr">244 </span> <span class="subxS2Comment"># . . push args</span> <span id="L245" class="LineNr">245 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-longer-array"</span>/imm32 <span id="L246" class="LineNr">246 </span> 68/push 0/imm32/false diff --git a/html/subx/056write.subx.html b/html/subx/056write.subx.html index 7d08441f..7ada1e78 100644 --- a/html/subx/056write.subx.html +++ b/html/subx/056write.subx.html @@ -201,7 +201,7 @@ if ('onhashchange' in window) { <span id="L136" class="LineNr">136 </span> e8/call write/disp32 <span id="L137" class="LineNr">137 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L138" class="LineNr">138 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L139" class="LineNr">139 </span> <span class="subxComment"># check-ints-equal(EAX, 2)</span> +<span id="L139" class="LineNr">139 </span> <span class="subxComment"># check-ints-equal(EAX, 2, msg)</span> <span id="L140" class="LineNr">140 </span> <span class="subxS2Comment"># . . push args</span> <span id="L141" class="LineNr">141 </span> 68/push <span class="Constant">"F - test-read-single: return EAX"</span>/imm32 <span id="L142" class="LineNr">142 </span> 68/push 2/imm32 diff --git a/html/subx/058read.subx.html b/html/subx/058read.subx.html index 7f41b843..5be566bb 100644 --- a/html/subx/058read.subx.html +++ b/html/subx/058read.subx.html @@ -276,7 +276,7 @@ if ('onhashchange' in window) { <span id="L210" class="LineNr">210 </span> e8/call read/disp32 <span id="L211" class="LineNr">211 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L212" class="LineNr">212 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L213" class="LineNr">213 </span> <span class="subxComment"># check-ints-equal(EAX, 2)</span> +<span id="L213" class="LineNr">213 </span> <span class="subxComment"># check-ints-equal(EAX, 2, msg)</span> <span id="L214" class="LineNr">214 </span> <span class="subxS2Comment"># . . push args</span> <span id="L215" class="LineNr">215 </span> 68/push <span class="Constant">"F - test-read-single: return EAX"</span>/imm32 <span id="L216" class="LineNr">216 </span> 68/push 2/imm32 @@ -404,7 +404,7 @@ if ('onhashchange' in window) { <span id="L338" class="LineNr">338 </span> e8/call read/disp32 <span id="L339" class="LineNr">339 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L340" class="LineNr">340 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L341" class="LineNr">341 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> +<span id="L341" class="LineNr">341 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L342" class="LineNr">342 </span> <span class="subxS2Comment"># . . push args</span> <span id="L343" class="LineNr">343 </span> 68/push <span class="Constant">"F - test-read-returns-0-on-end-of-file"</span>/imm32 <span id="L344" class="LineNr">344 </span> 68/push 0/imm32 diff --git a/html/subx/059read-byte.subx.html b/html/subx/059read-byte.subx.html index 6a057c34..c84c5d25 100644 --- a/html/subx/059read-byte.subx.html +++ b/html/subx/059read-byte.subx.html @@ -198,7 +198,7 @@ if ('onhashchange' in window) { <span id="L132" class="LineNr">132 </span> e8/call read-byte/disp32 <span id="L133" class="LineNr">133 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L134" class="LineNr">134 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 4/imm32 <span class="subxComment"># add to ESP</span> -<span id="L135" class="LineNr">135 </span> <span class="subxComment"># check-ints-equal(EAX, 'A')</span> +<span id="L135" class="LineNr">135 </span> <span class="subxComment"># check-ints-equal(EAX, 'A', msg)</span> <span id="L136" class="LineNr">136 </span> <span class="subxS2Comment"># . . push args</span> <span id="L137" class="LineNr">137 </span> 68/push <span class="Constant">"F - test-read-byte-single"</span>/imm32 <span id="L138" class="LineNr">138 </span> 68/push 0x41/imm32 @@ -251,7 +251,7 @@ if ('onhashchange' in window) { <span id="L185" class="LineNr">185 </span> e8/call read-byte/disp32 <span id="L186" class="LineNr">186 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L187" class="LineNr">187 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 4/imm32 <span class="subxComment"># add to ESP</span> -<span id="L188" class="LineNr">188 </span> <span class="subxComment"># check-ints-equal(EAX, 'b')</span> +<span id="L188" class="LineNr">188 </span> <span class="subxComment"># check-ints-equal(EAX, 'b', msg)</span> <span id="L189" class="LineNr">189 </span> <span class="subxS2Comment"># . . push args</span> <span id="L190" class="LineNr">190 </span> 68/push <span class="Constant">"F - test-read-byte-multiple"</span>/imm32 <span id="L191" class="LineNr">191 </span> 68/push 0x62/imm32 @@ -289,7 +289,7 @@ if ('onhashchange' in window) { <span id="L223" class="LineNr">223 </span> e8/call read-byte/disp32 <span id="L224" class="LineNr">224 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L225" class="LineNr">225 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 4/imm32 <span class="subxComment"># add to ESP</span> -<span id="L226" class="LineNr">226 </span> <span class="subxComment"># check-ints-equal(EAX, -1)</span> +<span id="L226" class="LineNr">226 </span> <span class="subxComment"># check-ints-equal(EAX, -1, msg)</span> <span id="L227" class="LineNr">227 </span> <span class="subxS2Comment"># . . push args</span> <span id="L228" class="LineNr">228 </span> 68/push <span class="Constant">"F - test-read-byte-end-of-file"</span>/imm32 <span id="L229" class="LineNr">229 </span> 68/push -1/imm32 diff --git a/html/subx/apps/crenshaw2-1.subx.html b/html/subx/apps/crenshaw2-1.subx.html index 5fd8df12..a3e61523 100644 --- a/html/subx/apps/crenshaw2-1.subx.html +++ b/html/subx/apps/crenshaw2-1.subx.html @@ -441,7 +441,7 @@ if ('onhashchange' in window) { <span id="L375" class="LineNr">375 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> <span id="L376" class="LineNr">376 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L377" class="LineNr">377 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0x10/imm32 <span class="subxComment"># add to ESP</span> -<span id="L378" class="LineNr">378 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3')</span> +<span id="L378" class="LineNr">378 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3', msg)</span> <span id="L379" class="LineNr">379 </span> <span class="subxS2Comment"># . . push args</span> <span id="L380" class="LineNr">380 </span> 68/push <span class="Constant">"F - test-get-num-reads-single-digit"</span>/imm32 <span id="L381" class="LineNr">381 </span> 68/push 0x33/imm32 diff --git a/html/subx/apps/crenshaw2-1b.subx.html b/html/subx/apps/crenshaw2-1b.subx.html index dbbfd526..19773a56 100644 --- a/html/subx/apps/crenshaw2-1b.subx.html +++ b/html/subx/apps/crenshaw2-1b.subx.html @@ -458,7 +458,7 @@ if ('onhashchange' in window) { <span id="L392" class="LineNr">392 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> <span id="L393" class="LineNr">393 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L394" class="LineNr">394 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0x10/imm32 <span class="subxComment"># add to ESP</span> -<span id="L395" class="LineNr">395 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3')</span> +<span id="L395" class="LineNr">395 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3', msg)</span> <span id="L396" class="LineNr">396 </span> <span class="subxS2Comment"># . . push args</span> <span id="L397" class="LineNr">397 </span> 68/push <span class="Constant">"F - test-get-num-reads-single-digit"</span>/imm32 <span id="L398" class="LineNr">398 </span> 68/push 0x33/imm32 @@ -634,7 +634,7 @@ if ('onhashchange' in window) { <span id="L568" class="LineNr">568 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> <span id="L569" class="LineNr">569 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L570" class="LineNr">570 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0x10/imm32 <span class="subxComment"># add to ESP</span> -<span id="L571" class="LineNr">571 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3456')</span> +<span id="L571" class="LineNr">571 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3456', msg)</span> <span id="L572" class="LineNr">572 </span> <span class="subxS2Comment"># . . push args</span> <span id="L573" class="LineNr">573 </span> 68/push <span class="Constant">"F - test-get-num-reads-multiple-digits"</span>/imm32 <span id="L574" class="LineNr">574 </span> 68/push 0x36353433/imm32 @@ -725,7 +725,7 @@ if ('onhashchange' in window) { <span id="L659" class="LineNr">659 </span> <span class="subxComment"># registers except ESP may be clobbered at this point</span> <span id="L660" class="LineNr">660 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L661" class="LineNr">661 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0x10/imm32 <span class="subxComment"># add to ESP</span> -<span id="L662" class="LineNr">662 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3456')</span> +<span id="L662" class="LineNr">662 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3456', msg)</span> <span id="L663" class="LineNr">663 </span> <span class="subxS2Comment"># . . push args</span> <span id="L664" class="LineNr">664 </span> 68/push <span class="Constant">"F - test-get-num-reads-multiple-digits-followed-by-nondigit"</span>/imm32 <span id="L665" class="LineNr">665 </span> 68/push 0x36353433/imm32 diff --git a/html/subx/apps/factorial.subx.html b/html/subx/apps/factorial.subx.html index 7cee2ff1..9f25d28c 100644 --- a/html/subx/apps/factorial.subx.html +++ b/html/subx/apps/factorial.subx.html @@ -158,7 +158,7 @@ if ('onhashchange' in window) { <span id="L93" class="LineNr"> 93 </span> e8/call factorial/disp32 <span id="L94" class="LineNr"> 94 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L95" class="LineNr"> 95 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 4/imm32 <span class="subxComment"># add to ESP</span> -<span id="L96" class="LineNr"> 96 </span> <span class="subxComment"># check-ints-equal(EAX, 120, failure message)</span> +<span id="L96" class="LineNr"> 96 </span> <span class="subxComment"># check-ints-equal(EAX, 120, msg)</span> <span id="L97" class="LineNr"> 97 </span> <span class="subxS2Comment"># . . push args</span> <span id="L98" class="LineNr"> 98 </span> 68/push <span class="Constant">"F - test-factorial"</span>/imm32 <span id="L99" class="LineNr"> 99 </span> 68/push 0x78/imm32/expected-120 diff --git a/html/subx/examples/ex11.subx.html b/html/subx/examples/ex11.subx.html index 58ba0f11..cb2150db 100644 --- a/html/subx/examples/ex11.subx.html +++ b/html/subx/examples/ex11.subx.html @@ -264,7 +264,7 @@ if ('onhashchange' in window) { <span id="L199" class="LineNr">199 </span> e8/call kernel-string-equal/disp32 <span id="L200" class="LineNr">200 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L201" class="LineNr">201 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L202" class="LineNr">202 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> +<span id="L202" class="LineNr">202 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L203" class="LineNr">203 </span> <span class="subxS2Comment"># . . push args</span> <span id="L204" class="LineNr">204 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 <span id="L205" class="LineNr">205 </span> 68/push 0/imm32/false @@ -284,7 +284,7 @@ if ('onhashchange' in window) { <span id="L219" class="LineNr">219 </span> e8/call kernel-string-equal/disp32 <span id="L220" class="LineNr">220 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L221" class="LineNr">221 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L222" class="LineNr">222 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> +<span id="L222" class="LineNr">222 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L223" class="LineNr">223 </span> <span class="subxS2Comment"># . . push args</span> <span id="L224" class="LineNr">224 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-shorter-array"</span>/imm32 <span id="L225" class="LineNr">225 </span> 68/push 0/imm32/false @@ -304,7 +304,7 @@ if ('onhashchange' in window) { <span id="L239" class="LineNr">239 </span> e8/call kernel-string-equal/disp32 <span id="L240" class="LineNr">240 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L241" class="LineNr">241 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> -<span id="L242" class="LineNr">242 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> +<span id="L242" class="LineNr">242 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L243" class="LineNr">243 </span> <span class="subxS2Comment"># . . push args</span> <span id="L244" class="LineNr">244 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-longer-array"</span>/imm32 <span id="L245" class="LineNr">245 </span> 68/push 0/imm32/false diff --git a/subx/052kernel_string_equal.subx b/subx/052kernel_string_equal.subx index 3ed0fd5d..2834b047 100644 --- a/subx/052kernel_string_equal.subx +++ b/subx/052kernel_string_equal.subx @@ -200,7 +200,7 @@ test-compare-kernel-string-with-empty-array: e8/call kernel-string-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 0) + # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-compare-kernel-string-with-equal-array"/imm32 68/push 0/imm32/false @@ -220,7 +220,7 @@ test-compare-kernel-string-with-shorter-array: e8/call kernel-string-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 0) + # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-compare-kernel-string-with-shorter-array"/imm32 68/push 0/imm32/false @@ -240,7 +240,7 @@ test-compare-kernel-string-with-longer-array: e8/call kernel-string-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 0) + # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-compare-kernel-string-with-longer-array"/imm32 68/push 0/imm32/false diff --git a/subx/056write.subx b/subx/056write.subx index a76dd12e..3496d980 100644 --- a/subx/056write.subx +++ b/subx/056write.subx @@ -136,7 +136,7 @@ test-write-single: e8/call write/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 2) + # check-ints-equal(EAX, 2, msg) # . . push args 68/push "F - test-read-single: return EAX"/imm32 68/push 2/imm32 diff --git a/subx/058read.subx b/subx/058read.subx index 291df30b..90425a74 100644 --- a/subx/058read.subx +++ b/subx/058read.subx @@ -210,7 +210,7 @@ test-read-single: e8/call read/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 2) + # check-ints-equal(EAX, 2, msg) # . . push args 68/push "F - test-read-single: return EAX"/imm32 68/push 2/imm32 @@ -338,7 +338,7 @@ test-read-returns-0-on-end-of-file: e8/call read/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 0) + # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-read-returns-0-on-end-of-file"/imm32 68/push 0/imm32 diff --git a/subx/059read-byte.subx b/subx/059read-byte.subx index b00d482c..7dd9658e 100644 --- a/subx/059read-byte.subx +++ b/subx/059read-byte.subx @@ -132,7 +132,7 @@ test-read-byte-single: e8/call read-byte/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # check-ints-equal(EAX, 'A') + # check-ints-equal(EAX, 'A', msg) # . . push args 68/push "F - test-read-byte-single"/imm32 68/push 0x41/imm32 @@ -185,7 +185,7 @@ test-read-byte-multiple: e8/call read-byte/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # check-ints-equal(EAX, 'b') + # check-ints-equal(EAX, 'b', msg) # . . push args 68/push "F - test-read-byte-multiple"/imm32 68/push 0x62/imm32 @@ -223,7 +223,7 @@ test-read-byte-end-of-file: e8/call read-byte/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # check-ints-equal(EAX, -1) + # check-ints-equal(EAX, -1, msg) # . . push args 68/push "F - test-read-byte-end-of-file"/imm32 68/push -1/imm32 diff --git a/subx/apps/crenshaw2-1.subx b/subx/apps/crenshaw2-1.subx index 3688ef34..a246a594 100644 --- a/subx/apps/crenshaw2-1.subx +++ b/subx/apps/crenshaw2-1.subx @@ -375,7 +375,7 @@ test-get-num-reads-single-digit: # registers except ESP may be clobbered at this point # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0x10/imm32 # add to ESP - # check-ints-equal(*_test-output-stream->data, '3') + # check-ints-equal(*_test-output-stream->data, '3', msg) # . . push args 68/push "F - test-get-num-reads-single-digit"/imm32 68/push 0x33/imm32 diff --git a/subx/apps/crenshaw2-1b.subx b/subx/apps/crenshaw2-1b.subx index d6fc6dee..08786b90 100644 --- a/subx/apps/crenshaw2-1b.subx +++ b/subx/apps/crenshaw2-1b.subx @@ -392,7 +392,7 @@ test-get-num-reads-single-digit: # registers except ESP may be clobbered at this point # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0x10/imm32 # add to ESP - # check-ints-equal(*_test-output-stream->data, '3') + # check-ints-equal(*_test-output-stream->data, '3', msg) # . . push args 68/push "F - test-get-num-reads-single-digit"/imm32 68/push 0x33/imm32 @@ -568,7 +568,7 @@ test-get-num-reads-multiple-digits: # registers except ESP may be clobbered at this point # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0x10/imm32 # add to ESP - # check-ints-equal(*_test-output-stream->data, '3456') + # check-ints-equal(*_test-output-stream->data, '3456', msg) # . . push args 68/push "F - test-get-num-reads-multiple-digits"/imm32 68/push 0x36353433/imm32 @@ -659,7 +659,7 @@ test-get-num-reads-multiple-digits-followed-by-nondigit: # registers except ESP may be clobbered at this point # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0x10/imm32 # add to ESP - # check-ints-equal(*_test-output-stream->data, '3456') + # check-ints-equal(*_test-output-stream->data, '3456', msg) # . . push args 68/push "F - test-get-num-reads-multiple-digits-followed-by-nondigit"/imm32 68/push 0x36353433/imm32 diff --git a/subx/apps/factorial.subx b/subx/apps/factorial.subx index bf2dd75e..73735fab 100644 --- a/subx/apps/factorial.subx +++ b/subx/apps/factorial.subx @@ -93,7 +93,7 @@ test-factorial: e8/call factorial/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP - # check-ints-equal(EAX, 120, failure message) + # check-ints-equal(EAX, 120, msg) # . . push args 68/push "F - test-factorial"/imm32 68/push 0x78/imm32/expected-120 diff --git a/subx/examples/ex11.subx b/subx/examples/ex11.subx index 245452fb..2a92b172 100644 --- a/subx/examples/ex11.subx +++ b/subx/examples/ex11.subx @@ -199,7 +199,7 @@ test-compare-kernel-string-with-empty-array: e8/call kernel-string-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 0) + # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-compare-kernel-string-with-equal-array"/imm32 68/push 0/imm32/false @@ -219,7 +219,7 @@ test-compare-kernel-string-with-shorter-array: e8/call kernel-string-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 0) + # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-compare-kernel-string-with-shorter-array"/imm32 68/push 0/imm32/false @@ -239,7 +239,7 @@ test-compare-kernel-string-with-longer-array: e8/call kernel-string-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # check-ints-equal(EAX, 0) + # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-compare-kernel-string-with-longer-array"/imm32 68/push 0/imm32/false |