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-15 20:30:07 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-15 20:30:07 -0800
commit6e36ce06dd035408d43a6599b75b933a0709cc78 (patch)
treeb5b90ee59b5387036d311096fed1c96aa588cacb /baremetal/400.mu
parent20d6be52405130930fde9ca5bb5e95131ba4e659 (diff)
downloadmu-6e36ce06dd035408d43a6599b75b933a0709cc78.tar.gz
7521 - new plan for tests
It's not really manageable to make the fake screen pixel-oriented. Feels
excessive to compare things pixel by pixel when we will mostly be
writing text to screen. It'll also make expected screen assertions
more difficult to manage.

So I'm not sure how to make assertions about pixels for now. Instead
we'll introduce fake screens at draw-grapheme.
Diffstat (limited to 'baremetal/400.mu')
-rw-r--r--baremetal/400.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/baremetal/400.mu b/baremetal/400.mu
index ff84a643..5025a51c 100644
--- a/baremetal/400.mu
+++ b/baremetal/400.mu
@@ -1,8 +1,8 @@
 # screen
-sig pixel screen: (addr screen), x: int, y: int, color: int
-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 pixel-on-real-screen x: int, y: int, color: int
+sig draw-grapheme-on-real-screen g: grapheme, x: int, y: int, color: int
+sig cursor-position-on-real-screen -> _/eax: int, _/ecx: int
+sig set-cursor-position-on-real-screen x: int, y: int
 
 # keyboard
 sig read-key kbd: (addr keyboard) -> _/eax: byte