about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--300.txt3
-rwxr-xr-xapps/mubin422182 -> 415008 bytes
-rw-r--r--apps/mu.subx2
-rwxr-xr-xtest_apps4
4 files changed, 4 insertions, 5 deletions
diff --git a/300.txt b/300.txt
index a151656f..62413330 100644
--- a/300.txt
+++ b/300.txt
@@ -1,6 +1,5 @@
 Layers in the 3xx series use all the available syntax sugar for SubX programs.
-They're used by the Mu translator (apps/mu.subx) and can also be called from
-Mu programs if they meet certain criteria:
+Functions here can be called from Mu programs if they meet certain criteria:
 
   - There's a signature for them in 400.mu
   - Inouts on the stack, outputs in registers
diff --git a/apps/mu b/apps/mu
index d3607682..4c564431 100755
--- a/apps/mu
+++ b/apps/mu
Binary files differdiff --git a/apps/mu.subx b/apps/mu.subx
index 1103de23..db5c8b69 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -22565,7 +22565,7 @@ Int-var-in-eax:
     1/imm32/some-block-depth
     0/imm32/no-stack-offset
     0x11/imm32/alloc-id:fake
-    $Register-eax/imm32
+    $Mu-register-eax/imm32  # can't use Register-eax only to keep our buggy tools/treeshake.cc happy (TODO)
 
 Single-int-var-in-ecx:  # (payload list var)
     0x11/imm32/alloc-id:fake:payload
diff --git a/test_apps b/test_apps
index bcd61745..fc0d459c 100755
--- a/test_apps
+++ b/test_apps
@@ -287,7 +287,7 @@ test $NATIVE  &&  {
 }
 
 echo mu
-cat init.$OS [0-9]*.subx apps/mu.subx  |  apps/braces  |  apps/calls  |  apps/sigils  > a.sigils
+cat init.$OS [0-2]*.subx apps/mu.subx  |  apps/braces  |  apps/calls  |  apps/sigils  > a.sigils
 ./bootstrap translate a.sigils -o apps/mu
 test "$1" = 'record'  ||  git diff --exit-code apps/mu
 test $EMULATED  &&  {
@@ -338,7 +338,7 @@ done
 
 # Mu translator
 echo mu
-./translate_subx init.$OS [0-9]*.subx apps/mu.subx
+./translate_subx init.$OS [0-2]*.subx apps/mu.subx
 diff apps/mu a.elf
 
 # Mu programs