about summary refs log tree commit diff stats
path: root/baremetal/ex6.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-17 10:49:23 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-17 10:49:23 -0800
commitc5b573cf83b8848657ae86be40ba3b1ec24c6813 (patch)
tree2a21109457d3f32c581d35b7b7d96b6a33d3fcf6 /baremetal/ex6.mu
parent851959ccc6d728b9a6fa02ff42d170cbebd272bb (diff)
downloadmu-c5b573cf83b8848657ae86be40ba3b1ec24c6813.tar.gz
7535
Diffstat (limited to 'baremetal/ex6.mu')
-rw-r--r--baremetal/ex6.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/baremetal/ex6.mu b/baremetal/ex6.mu
index 72d21f2e..304867f6 100644
--- a/baremetal/ex6.mu
+++ b/baremetal/ex6.mu
@@ -24,9 +24,9 @@ fn main {
   draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0, "def", 0xa
 
   # test drawing near the edge
-  x <- draw-text-rightward 0, "R", 0x3f8, 0x400, 0x100, 0xa
+  x <- draw-text-rightward 0, "R", 0x3f8, 0x400, 0x100, 0xa  # 0x400 = screen-width
   draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0, "wrapped from R", 0xa
 
-  x <- draw-text-downward 0, "D", 0x100, 0x2f0, 0x300, 0xa
+  x <- draw-text-downward 0, "D", 0x100, 0x2f0, 0x300, 0xa  # 0x300 = screen-height
   draw-text-wrapping-down-then-right-from-cursor-over-full-screen 0, "wrapped from D", 0xa
 }