mu/baremetal/mu-init.subx
Kartik Agaram 0daf12c59a 7469 - first working baremetal Mu program
It doesn't _quite_ do what it should, so this is more precisely the first
_buggy_ baremetal Mu program. But the tooling works, at least.
2020-12-29 21:08:05 -08:00

18 lines
314 B
Plaintext

# 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
}