https://github.com/akkartik/mu/blob/main/apps/ex1.mu

     1 # The simplest possible bare-metal program.
     2 #
     3 # To build a disk image:
     4 #   ./translate apps/ex1.mu        # emits code.img
     5 # To run:
     6 #   qemu-system-i386 code.img
     7 # Or:
     8 #   bochs -f bochsrc               # bochsrc loads code.img
     9 #
    10 # Expected output: blank screen with no errors
    11
    12 fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
    13   loop
    14 }