From 3350c34a74844e21ea69077e01efff3bae64bdcd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 23 Mar 2021 17:31:08 -0700 Subject: . --- html/baremetal/502test.mu.html | 103 ----------------------------------------- 1 file changed, 103 deletions(-) delete mode 100644 html/baremetal/502test.mu.html (limited to 'html/baremetal/502test.mu.html') diff --git a/html/baremetal/502test.mu.html b/html/baremetal/502test.mu.html deleted file mode 100644 index 8bce697e..00000000 --- a/html/baremetal/502test.mu.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - -Mu - baremetal/502test.mu - - - - - - - - - - -https://github.com/akkartik/mu/blob/main/baremetal/502test.mu -
- 1 # print msg to screen if a != b, otherwise print "."
- 2 fn check-ints-equal _a: int, b: int, msg: (addr array byte) {
- 3   var a/eax: int <- copy _a
- 4   compare a, b
- 5   {
- 6     break-if-!=
- 7     draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg
- 8     return
- 9   }
-10   draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
-11   count-test-failure
-12 }
-13 
-14 fn test-check-ints-equal {
-15   check-ints-equal 0, 0, "abc"
-16 }
-17 
-18 fn check _a: boolean, msg: (addr array byte) {
-19   var a/eax: int <- copy _a
-20   compare a, 0/false
-21   {
-22     break-if-=
-23     draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg
-24     return
-25   }
-26   draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
-27   count-test-failure
-28 }
-29 
-30 fn check-not _a: boolean, msg: (addr array byte) {
-31   var a/eax: int <- copy _a
-32   compare a, 0/false
-33   {
-34     break-if-!=
-35     draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg
-36     return
-37   }
-38   draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
-39   count-test-failure
-40 }
-
- - - -- cgit 1.4.1-2-gfad0