From 3350c34a74844e21ea69077e01efff3bae64bdcd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 23 Mar 2021 17:31:08 -0700 Subject: . --- html/baremetal/ex5.mu.html | 78 ---------------------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 html/baremetal/ex5.mu.html (limited to 'html/baremetal/ex5.mu.html') diff --git a/html/baremetal/ex5.mu.html b/html/baremetal/ex5.mu.html deleted file mode 100644 index 4f5f0d2e..00000000 --- a/html/baremetal/ex5.mu.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - -Mu - baremetal/ex5.mu - - - - - - - - - - -https://github.com/akkartik/mu/blob/main/baremetal/ex5.mu -
- 1 # Draw a single line of ASCII text using the built-in font (GNU unifont)
- 2 # Also demonstrates bounds-checking _before_ drawing.
- 3 #
- 4 # To build a disk image:
- 5 #   ./translate_mu_baremetal baremetal/ex5.mu     # emits disk.img
- 6 # To run:
- 7 #   qemu-system-i386 disk.img
- 8 # Or:
- 9 #   bochs -f baremetal/boot.bochsrc               # boot.bochsrc loads disk.img
-10 #
-11 # Expected output: text in green near the top-left corner of screen
-12 
-13 fn main {
-14   var dummy/eax: int <- draw-text-rightward 0/screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/color
-15   dummy <- draw-text-rightward 0/screen, "you shouldn't see this", 0x10/x, 0xa0/xmax, 0x30/y, 0x3/color  # xmax is too narrow
-16 }
-
- - - -- cgit 1.4.1-2-gfad0