From 78357b8852626b510527f3b8d770a7dd8956fcc7 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 16 Jul 2021 08:38:43 -0700 Subject: . --- html/apps/ex1.mu.html | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 html/apps/ex1.mu.html (limited to 'html/apps/ex1.mu.html') diff --git a/html/apps/ex1.mu.html b/html/apps/ex1.mu.html new file mode 100644 index 00000000..cc21ce0f --- /dev/null +++ b/html/apps/ex1.mu.html @@ -0,0 +1,74 @@ + + + + +Mu - apps/ex1.mu + + + + + + + + + + +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 }
+
+ + + -- cgit 1.4.1-2-gfad0