about summary refs log blame commit diff stats
path: root/baremetal/mu-init.subx
blob: 232b3b49c0a8a5d36044168e889e2e66ddd6f3c2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}