From 61ec86b71928afc4a7b0a9c787ba88d5b4b3040b Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 30 Aug 2021 09:21:52 -0700 Subject: . --- html/apps/ex5.mu.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'html/apps/ex5.mu.html') diff --git a/html/apps/ex5.mu.html b/html/apps/ex5.mu.html index 76d992cf..8e4fc8de 100644 --- a/html/apps/ex5.mu.html +++ b/html/apps/ex5.mu.html @@ -63,15 +63,13 @@ if ('onhashchange' in window) { 5 # ./translate apps/ex5.mu # emits code.img 6 # To run: 7 # qemu-system-i386 code.img - 8 # Or: - 9 # bochs -f bochsrc # bochsrc loads code.img -10 # -11 # Expected output: text in green near the top-left corner of screen -12 -13 fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { -14 var dummy/eax: int <- draw-text-rightward screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/fg, 0/bg -15 dummy <- draw-text-rightward screen, "you shouldn't see this", 0x10/x, 0xa0/xmax, 0x30/y, 3/fg, 0/bg # xmax is too narrow -16 } + 8 # + 9 # Expected output: text in green near the top-left corner of screen +10 +11 fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { +12 var dummy/eax: int <- draw-text-rightward screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/fg, 0/bg +13 dummy <- draw-text-rightward screen, "you shouldn't see this", 0x10/x, 0xa0/xmax, 0x30/y, 3/fg, 0/bg # xmax is too narrow +14 } -- cgit 1.4.1-2-gfad0