about summary refs log tree commit diff stats
path: root/baremetal/400.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-11 23:59:17 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-12 00:00:20 -0800
commit589eba07e2b1f1f3c6dbb3087b306071a2f9809b (patch)
treef66b67fbc0ca60193049c35026ca5826f8def60e /baremetal/400.mu
parentebf912eb7a5da220c031d453b64f7a2d90b41dea (diff)
downloadmu-589eba07e2b1f1f3c6dbb3087b306071a2f9809b.tar.gz
7500 - baremetal: bounds-check screen space before drawing
Diffstat (limited to 'baremetal/400.mu')
-rw-r--r--baremetal/400.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/baremetal/400.mu b/baremetal/400.mu
index f25e13a3..2adb3254 100644
--- a/baremetal/400.mu
+++ b/baremetal/400.mu
@@ -1,7 +1,8 @@
 sig pixel screen: (addr screen), x: int, y: int, color: int
 sig read-key kbd: (addr keyboard) -> _/eax: byte
 sig draw-grapheme screen: (addr screen), g: grapheme, x: int, y: int, color: int
-
+sig clear-stream f: (addr stream _)
+sig rewind-stream f: (addr stream _)
 sig write f: (addr stream byte), s: (addr array byte)
 sig append-byte f: (addr stream byte), n: int
 sig read-byte s: (addr stream byte) -> _/eax: byte