diff options
Diffstat (limited to 'baremetal/mu-init.subx')
-rw-r--r-- | baremetal/mu-init.subx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/baremetal/mu-init.subx b/baremetal/mu-init.subx new file mode 100644 index 00000000..232b3b49 --- /dev/null +++ b/baremetal/mu-init.subx @@ -0,0 +1,17 @@ +# 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 +# no heap yet +(main) + +# hang indefinitely +{ + eb/jump loop/disp8 +} |