diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-01-19 22:17:05 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-01-19 22:48:49 -0800 |
commit | 7363c6dfd3cf2104d7e3a0e814cde2d8b4f4e6ce (patch) | |
tree | e0f2114917851fac0107eec5cb6cbdaf0556af5f /baremetal/103grapheme.subx | |
parent | 6ce43fce4f288fda97e4034abc512e03d0304177 (diff) | |
download | mu-7363c6dfd3cf2104d7e3a0e814cde2d8b4f4e6ce.tar.gz |
7537 - baremetal: start of cursor support
Diffstat (limited to 'baremetal/103grapheme.subx')
-rw-r--r-- | baremetal/103grapheme.subx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/baremetal/103grapheme.subx b/baremetal/103grapheme.subx index b17f60a1..f854e03d 100644 --- a/baremetal/103grapheme.subx +++ b/baremetal/103grapheme.subx @@ -5,7 +5,7 @@ == code -draw-grapheme-on-real-screen: # g: grapheme, x: int, y: int, color: int +draw-grapheme-on-real-screen: # g: grapheme, x: int, y: int, color: int, background-color: int # . prologue 55/push-ebp 89/<- %ebp 4/r32/esp @@ -45,14 +45,14 @@ draw-grapheme-on-real-screen: # g: grapheme, x: int, y: int, color: int 7c/jump-if-< break/disp8 # shift LSB from row-bitmap into carry flag (CF) c1 5/subop/shift-right-logical %ebx 1/imm8 - # if LSB, draw a pixel + # if LSB, draw a pixel in the given color { 73/jump-if-not-CF break/disp8 (pixel-on-real-screen %eax %edx *(ebp+0x14)) eb/jump $draw-grapheme-on-real-screen:continue/disp8 } - # otherwise draw a black pixel - (pixel-on-real-screen %eax %edx 0) + # otherwise use the background color + (pixel-on-real-screen %eax %edx *(ebp+0x18)) $draw-grapheme-on-real-screen:continue: # --x 48/decrement-eax |