From 44d26b77c45668c9b0c99894a4294cec004361fe Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 16 Jul 2021 08:09:42 -0700 Subject: . --- ex12.mu | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 ex12.mu (limited to 'ex12.mu') diff --git a/ex12.mu b/ex12.mu deleted file mode 100644 index fe97daa9..00000000 --- a/ex12.mu +++ /dev/null @@ -1,28 +0,0 @@ -# Checking the timer. -# -# To build a disk image: -# ./translate ex12.mu # emits code.img -# To run: -# qemu-system-i386 code.img -# Or: -# bochs -f bochsrc # bochsrc loads code.img -# -# Expected output: text with slowly updating colors - -fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { - var fg/ecx: int <- copy 0 - var prev-timer-counter/edx: int <- copy 0 - { - var dummy/eax: int <- draw-text-rightward screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, fg, 0/bg - # wait for timer to bump - { - var curr-timer-counter/eax: int <- timer-counter - compare curr-timer-counter, prev-timer-counter - loop-if-= - prev-timer-counter <- copy curr-timer-counter - } - # switch color - fg <- increment - loop - } -} -- cgit 1.4.1-2-gfad0 class='tabs'> about summary refs log blame commit diff stats
path: root/console.mu
blob: cc81c2323dbb557f1323ea7f363d78e453160a04 (plain) (tree)
1
2
3
4
5
6
7
8
9