about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-01 21:07:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-01 21:11:40 -0700
commit2c0539e6fa0ca8bc868f89aad72a030e5a580737 (patch)
treeed07eb527932f46a507f426f11dfb75fa7cf3be6 /400.mu
parent83847e9f0a9994f591ac1547cdb5e44be6c41eec (diff)
downloadmu-2c0539e6fa0ca8bc868f89aad72a030e5a580737.tar.gz
primitive: read r/g/b for color
Diffstat (limited to '400.mu')
-rw-r--r--400.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/400.mu b/400.mu
index 4052ea55..9fc89689 100644
--- a/400.mu
+++ b/400.mu
@@ -4,6 +4,7 @@ sig draw-grapheme-on-real-screen g: grapheme, x: int, y: int, color: int, backgr
 sig cursor-position-on-real-screen -> _/eax: int, _/ecx: int
 sig set-cursor-position-on-real-screen x: int, y: int
 sig draw-cursor-on-real-screen g: grapheme
+sig color-rgb color: int -> _/ecx: int, _/edx: int, _/ebx: int
 
 # keyboard
 sig read-key kbd: (addr keyboard) -> _/eax: byte