diff options
Diffstat (limited to 'baremetal/mu-init.subx')
-rw-r--r-- | baremetal/mu-init.subx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/baremetal/mu-init.subx b/baremetal/mu-init.subx index 232b3b49..77e62ede 100644 --- a/baremetal/mu-init.subx +++ b/baremetal/mu-init.subx @@ -9,7 +9,17 @@ # initialize stack bd/copy-to-ebp 0/imm32 # no heap yet -(main) +# +# 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-screen) + (main) +} # hang indefinitely { |