diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-01-13 00:02:35 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-01-13 00:02:35 -0800 |
commit | 422ebaf88c5a04900beb0a68162213ebc94e37c2 (patch) | |
tree | f6cffe2276da0a73c9d00716546c7b776586dee5 /baremetal/400.mu | |
parent | 4413168269ad3d3f31fdc60669bb812f54a3d01e (diff) | |
download | mu-422ebaf88c5a04900beb0a68162213ebc94e37c2.tar.gz |
7508
This is the right way to be direction-independent. Don't save the cursor when drawing a single grapheme. Where the next char goes is just a property of the direction-oriented primitives.
Diffstat (limited to 'baremetal/400.mu')
-rw-r--r-- | baremetal/400.mu | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/baremetal/400.mu b/baremetal/400.mu index c32497b8..dd494ecf 100644 --- a/baremetal/400.mu +++ b/baremetal/400.mu @@ -2,6 +2,7 @@ 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 cursor-position screen: (addr screen) -> _/eax: int, _/ecx: int +sig set-cursor-position screen: (addr screen), x: int, y: int sig clear-stream f: (addr stream _) sig rewind-stream f: (addr stream _) sig write f: (addr stream byte), s: (addr array byte) |