about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-11-19 23:33:23 -0800
committerKartik Agaram <vc@akkartik.com>2018-11-19 23:34:20 -0800
commitfa04aebdc2e4ee9bdf14d5c2649756f62b7d2a37 (patch)
tree882e7fe9b3280f78b675880f9a3c4f148f87e06a /subx
parentbd6f1928d7030ba618bbc9eade737a2cc5420e51 (diff)
downloadmu-fa04aebdc2e4ee9bdf14d5c2649756f62b7d2a37.tar.gz
4756
Long-standing and long-copied typo has been messing with our exit status
on test failures.
Diffstat (limited to 'subx')
-rw-r--r--subx/055trace.subx2
-rw-r--r--subx/056write.subx2
-rw-r--r--subx/058read.subx2
-rw-r--r--subx/059read-byte.subx2
-rwxr-xr-xsubx/apps/crenshaw2-1bin4723 -> 4723 bytes
-rwxr-xr-xsubx/apps/factorialbin4740 -> 4740 bytes
6 files changed, 4 insertions, 4 deletions
diff --git a/subx/055trace.subx b/subx/055trace.subx
index f7423ef7..27d5efc8 100644
--- a/subx/055trace.subx
+++ b/subx/055trace.subx
@@ -46,7 +46,7 @@ _test-trace-stream:
 # main:  (manual test if this is the last file loaded)
   e8/call  run-tests/disp32  # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
   # syscall(exit, Num-test-failures)
-  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           1/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
+  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           3/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
   b8/copy-to-EAX  1/imm32
   cd/syscall  0x80/imm8
 
diff --git a/subx/056write.subx b/subx/056write.subx
index 015f9f69..5d3be45e 100644
--- a/subx/056write.subx
+++ b/subx/056write.subx
@@ -24,7 +24,7 @@
 # main:  (manual test if this is the last file loaded)
   e8/call  run-tests/disp32  # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
   # syscall(exit, Num-test-failures)
-  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           1/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
+  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           3/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
   b8/copy-to-EAX  1/imm32
   cd/syscall  0x80/imm8
 
diff --git a/subx/058read.subx b/subx/058read.subx
index a43a8718..7917faa5 100644
--- a/subx/058read.subx
+++ b/subx/058read.subx
@@ -49,7 +49,7 @@
 # main:  (manual test if this is the last file loaded)
   e8/call  run-tests/disp32  # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
   # syscall(exit, Num-test-failures)
-  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           1/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
+  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           3/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
   b8/copy-to-EAX  1/imm32
   cd/syscall  0x80/imm8
 
diff --git a/subx/059read-byte.subx b/subx/059read-byte.subx
index da6f8409..e871fbb4 100644
--- a/subx/059read-byte.subx
+++ b/subx/059read-byte.subx
@@ -36,7 +36,7 @@ Stdin:
   e8/call  run-tests/disp32  # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
 #?   e8/call  test-read-byte-multiple/disp32
   # syscall(exit, Num-test-failures)
-  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           1/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
+  8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           3/r32/EBX   Num-test-failures/disp32          # copy *Num-test-failures to EBX
   b8/copy-to-EAX  1/imm32
   cd/syscall  0x80/imm8
 
diff --git a/subx/apps/crenshaw2-1 b/subx/apps/crenshaw2-1
index fbc30745..8a4edcb7 100755
--- a/subx/apps/crenshaw2-1
+++ b/subx/apps/crenshaw2-1
Binary files differdiff --git a/subx/apps/factorial b/subx/apps/factorial
index e1dc07f9..65a8083c 100755
--- a/subx/apps/factorial
+++ b/subx/apps/factorial
Binary files differ