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 10:39:12 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-09 10:39:12 -0800
commitbe87d723358c5889541fd145f76398bc4447584b (patch)
treed116f20c6480b49d76fd26bce1f59c69f55c4888 /baremetal/400.mu
parent8be561f59977a375af2af7cf300273d3548da2e0 (diff)
downloadmu-be87d723358c5889541fd145f76398bc4447584b.tar.gz
7486 - primitive for reading keys
It also clears keys after reading them, allowing us to read more than 16
keys.
Diffstat (limited to 'baremetal/400.mu')
-rw-r--r--baremetal/400.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/baremetal/400.mu b/baremetal/400.mu
index 1121a00a..0f36e3fe 100644
--- a/baremetal/400.mu
+++ b/baremetal/400.mu
@@ -1 +1,2 @@
 sig pixel screen: (addr screen), x: int, y: int, color: int
+sig read-key kbd: (addr keyboard) -> _/eax: byte