https://github.com/akkartik/mu/blob/main/apps/ex6.mu
 1 # Drawing ASCII text incrementally.
 2 #
 3 # To build a disk image:
 4 #   ./translate apps/ex6.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: a box and text that doesn't overflow it
11 
12 fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
13   # drawing text within a bounding box
14   draw-box-on-real-screen 0xf, 0x1f, 0x79, 0x