about summary refs log tree commit diff stats
path: root/baremetal/103grapheme.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-24 19:38:10 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-24 20:16:27 -0800
commit3844651e49258a400ed81273f7cd620a14264386 (patch)
treeec050e286314f49945dd0b3f97e4aa839b1a67f5 /baremetal/103grapheme.subx
parent1c77be68d75d8134bea72305057eb9ce523e9748 (diff)
downloadmu-3844651e49258a400ed81273f7cd620a14264386.tar.gz
7559 - reorganize sectors built in raw hex
This was tedious for three reasons beyond the usual one of having to
track and update offsets several time while I debug:
  - The Bochs troubles of the previous commit kept polluting my brain
    even though they were irrelevant.
  - I had to keep some changes locally to allow myself to use Bochs,
    which polluted my working directory.
  - I had to travel the long way to the realization that I'm not
    actually initializing the stack anywhere. BIOS was starting my stack
    off at 0x10000, which was promptly clobbered by my second read from
    disk.

The good news: while I'm here I grow the interrupt descriptor table. So
I don't have to go through this exercise when I get back to supporting
the mouse.
Diffstat (limited to 'baremetal/103grapheme.subx')
-rw-r--r--baremetal/103grapheme.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/baremetal/103grapheme.subx b/baremetal/103grapheme.subx
index 16a44fbc..841abf6c 100644
--- a/baremetal/103grapheme.subx
+++ b/baremetal/103grapheme.subx
@@ -25,9 +25,9 @@ draw-grapheme-on-real-screen:  # g: grapheme, x: int, y: int, color: int, backgr
     # var letter-bitmap/esi = font[g]
     8b/-> *(ebp+8) 6/r32/esi
     c1 4/subop/shift-left %esi 4/imm8
-    8d/copy-address *(esi+0x8800) 6/r32/esi  # font-start
-    # if (letter-bitmap >= 0x9000) return  # characters beyond ASCII currently not supported
-    81 7/subop/compare %esi 0x9000/imm32
+    8d/copy-address *(esi+0x8c00) 6/r32/esi  # font-start
+    # if (letter-bitmap >= 0x9400) return  # characters beyond ASCII currently not supported
+    81 7/subop/compare %esi 0x9400/imm32
     7d/jump-if->= $draw-grapheme-on-real-screen:end/disp8
     # var ycurr/edx: int = y*16
     8b/-> *(ebp+0x10) 2/r32/edx