This commit is contained in:
parent
460528e85b
commit
341f0c59be
36
mu-init.subx
36
mu-init.subx
|
@ -8,22 +8,22 @@
|
|||
== code
|
||||
|
||||
Entry:
|
||||
# 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)
|
||||
}
|
||||
# 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
|
||||
}
|
||||
# hang indefinitely
|
||||
{
|
||||
eb/jump loop/disp8
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue