about summary refs log tree commit diff stats
path: root/baremetal/ex7.mu
diff options
context:
space:
mode:
Diffstat (limited to 'baremetal/ex7.mu')
-rw-r--r--baremetal/ex7.mu13
1 files changed, 5 insertions, 8 deletions
diff --git a/baremetal/ex7.mu b/baremetal/ex7.mu
index aa2083c7..30e3c1bc 100644
--- a/baremetal/ex7.mu
+++ b/baremetal/ex7.mu
@@ -19,29 +19,26 @@ fn main {
     {
       compare key, 0x68/h
       break-if-!=
-      var g/eax: grapheme <- copy 0x2d/dash
-      draw-grapheme-at-cursor 0/screen, g, 0x31/fg, 0/bg
+      draw-code-point-at-cursor 0/screen, 0x2d/dash, 0x31/fg, 0/bg
       move-cursor-left 0
     }
     {
       compare key, 0x6a/j
       break-if-!=
-      var g/eax: grapheme <- copy 0x7c/vertical-bar
-      draw-grapheme-at-cursor 0/screen, g, 0x31/fg, 0/bg
+      draw-code-point-at-cursor 0/screen, 0x7c/vertical-bar, 0x31/fg, 0/bg
       move-cursor-down 0
     }
     {
       compare key, 0x6b/k
       break-if-!=
-      var g/eax: grapheme <- copy 0x7c/vertical-bar
-      draw-grapheme-at-cursor 0/screen, g, 0x31/fg, 0/bg
+      draw-code-point-at-cursor 0/screen, 0x7c/vertical-bar, 0x31/fg, 0/bg
       move-cursor-up 0
     }
     {
       compare key, 0x6c/l
       break-if-!=
-      var g/eax: grapheme <- copy 0x2d/dash
-      draw-grapheme-at-cursor 0/screen, g, 0x31/fg, 0/bg
+      var g/eax: code-point <- copy 0x2d/dash
+      draw-code-point-at-cursor 0/screen, 0x2d/dash, 0x31/fg, 0/bg
       move-cursor-right 0
     }
     loop