about summary refs log tree commit diff stats
path: root/baremetal/mu-init.subx
diff options
context:
space:
mode:
Diffstat (limited to 'baremetal/mu-init.subx')
-rw-r--r--baremetal/mu-init.subx27
1 files changed, 0 insertions, 27 deletions
diff --git a/baremetal/mu-init.subx b/baremetal/mu-init.subx
deleted file mode 100644
index 26b83451..00000000
--- a/baremetal/mu-init.subx
+++ /dev/null
@@ -1,27 +0,0 @@
-# Initialize the minimal runtime for Mu programs.
-#
-# See translate_mu_baremetal for how this file is used.
-#
-# Mu baremetal programs start at a function called 'main' without inouts or outputs.
-
-== code
-
-# initialize stack
-bd/copy-to-ebp 0/imm32
-# always first run tests
-(run-tests)
-(num-test-failures)  # => eax
-# call main if tests all passed
-{
-  3d/compare-eax-and 0/imm32
-  75/jump-if-!= break/disp8
-  (clear-real-screen)
-  c7 0/subop/copy *Real-screen-cursor-x 0/imm32
-  c7 0/subop/copy *Real-screen-cursor-y 0/imm32
-  (main)
-}
-
-# hang indefinitely
-{
-  eb/jump loop/disp8
-}