From 535fe9ac96dba0950efd1bfe6788801f6197971f Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 13 Feb 2021 18:18:05 -0800 Subject: 7737 --- html/baremetal/ex6.mu.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/baremetal/ex6.mu.html') diff --git a/html/baremetal/ex6.mu.html b/html/baremetal/ex6.mu.html index f870f80e..a6f1ce7a 100644 --- a/html/baremetal/ex6.mu.html +++ b/html/baremetal/ex6.mu.html @@ -72,21 +72,21 @@ if ('onhashchange' in window) { 14 draw-box-on-real-screen 0xf, 0x1f, 0x79, 0x51, 0x4 15 var x/eax: int <- copy 0x20 16 var y/ecx: int <- copy 0x20 -17 x, y <- draw-text-wrapping-right-then-down 0, "hello ", 0x10, 0x20, 0x78, 0x50, x, y, 0xa # (0x10, 0x20) -> (0x78, 0x50) -18 x, y <- draw-text-wrapping-right-then-down 0, "from ", 0x10, 0x20, 0x78, 0x50, x, y, 0xa -19 x, y <- draw-text-wrapping-right-then-down 0, "baremetal ", 0x10, 0x20, 0x78, 0x50, x, y, 0xa -20 x, y <- draw-text-wrapping-right-then-down 0, "Mu!", 0x10, 0x20, 0x78, 0x50, x, y, 0xa +17 x, y <- draw-text-wrapping-right-then-down 0/screen, "hello ", 0x10/xmin, 0x20/ymin, 0x78/xmax, 0x50/ymax, x, y, 0xa/color +18 x, y <- draw-text-wrapping-right-then-down 0/screen, "from ", 0x10/xmin, 0x20/ymin, 0x78/xmax, 0x50/ymax, x, y, 0xa/color +19 x, y <- draw-text-wrapping-right-then-down 0/screen, "baremetal ", 0x10/xmin, 0x20/ymin, 0x78/xmax, 0x50/ymax, x, y, 0xa/color +20 x, y <- draw-text-wrapping-right-then-down 0/screen, "Mu!", 0x10/xmin, 0x20/ymin, 0x78/xmax, 0x50/ymax, x, y, 0xa/color 21 22 # drawing at the cursor in multiple directions -23 draw-text-wrapping-down-then-right-from-cursor-over-full-screen 0, "abc", 0xa -24 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0, "def", 0xa +23 draw-text-wrapping-down-then-right-from-cursor-over-full-screen 0/screen, "abc", 0xa +24 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "def", 0xa 25 26 # test drawing near the edge -27 x <- draw-text-rightward 0, "R", 0x3f8, 0x400, 0x100, 0xa # 0x400 = screen-width -28 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0, "wrapped from R", 0xa +27 x <- draw-text-rightward 0/screen, "R", 0x3f8/x, 0x400/xmax=screen-width, 0x100/y, 0xa/color +28 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "wrapped from R", 0xa 29 -30 x <- draw-text-downward 0, "D", 0x100, 0x2f0, 0x300, 0xa # 0x300 = screen-height -31 draw-text-wrapping-down-then-right-from-cursor-over-full-screen 0, "wrapped from D", 0xa +30 x <- draw-text-downward 0/screen, "D", 0x100/x, 0x2f0/y, 0x300/ymax=screen-height, 0xa/color +31 draw-text-wrapping-down-then-right-from-cursor-over-full-screen 0/screen, "wrapped from D", 0xa 32 } -- cgit 1.4.1-2-gfad0