about summary refs log tree commit diff stats
path: root/apps/ex1.mu
blob: a96bed077aad979e63e9fb8ec6f32b829c9471df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# The simplest possible bare-metal program.
#
# To build a disk image:
#   ./translate apps/ex1.mu        # emits code.img
# To run:
#   qemu-system-i386 code.img
# Or:
#   bochs -f bochsrc               # bochsrc loads code.img
#
# Expected output: blank screen with no errors

fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
  loop
}