about summary refs log tree commit diff stats
path: root/tools/mu-init-minify.subx
blob: f5425b4da9c4cb53bf5de543244636e1cb368d5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Initialize the minimal runtime for Mu programs without any tests.
#
# See translate_min for how this file is used.
#
# Mu programs start at a function called 'main' with this signature:
#   fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)

== code

Entry:
  # initialize stack
  bd/copy-to-ebp 0/imm32
  #
  (main 0 0 Primary-bus-secondary-drive)

  # hang indefinitely
  {
    eb/jump loop/disp8
  }