0daf12c59a
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.
18 lines
314 B
Plaintext
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
|
|
}
|