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-09 18:55:24 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-09 18:55:24 -0800
commit57e4978eac1e5deb544b07db77ac382433d35d03 (patch)
treebe0bd25ed1bbd7bc5a7d1d8cda114d904c13f631 /baremetal/400.mu
parent0518944e379f343542c872a20d3d5a2aee744297 (diff)
downloadmu-57e4978eac1e5deb544b07db77ac382433d35d03.tar.gz
7492
Port some support for unicode to baremetal.
Diffstat (limited to 'baremetal/400.mu')
-rw-r--r--baremetal/400.mu5
1 files changed, 5 insertions, 0 deletions
diff --git a/baremetal/400.mu b/baremetal/400.mu
index 016204c5..f25e13a3 100644
--- a/baremetal/400.mu
+++ b/baremetal/400.mu
@@ -1,3 +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 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
+sig stream-empty? s: (addr stream _) -> _/eax: boolean