diff options
Diffstat (limited to 'cpp/display.mu')
-rw-r--r-- | cpp/display.mu | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpp/display.mu b/cpp/display.mu new file mode 100644 index 00000000..fa5f3b85 --- /dev/null +++ b/cpp/display.mu @@ -0,0 +1,19 @@ +recipe main [ + switch-to-display + print-character-to-display 97:literal + 1:integer/raw, 2:integer/raw <- cursor-position-on-display + $print 1:integer/raw + $print [, ] + $print 2:integer/raw + $print [ +] + wait-for-key-from-keyboard + clear-display + move-cursor-on-display 0:literal, 4:literal + print-character-to-display 98:literal + wait-for-key-from-keyboard + move-cursor-on-display 0:literal, 0:literal + clear-line-on-display + wait-for-key-from-keyboard + return-to-console +] |