From 422ebaf88c5a04900beb0a68162213ebc94e37c2 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 13 Jan 2021 00:02:35 -0800 Subject: 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. --- baremetal/400.mu | 1 + 1 file changed, 1 insertion(+) (limited to 'baremetal/400.mu') 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) -- cgit 1.4.1-2-gfad0