diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-29 20:34:53 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-29 20:34:53 -0700 |
commit | b1dcfb03d00f93999da0225600fe5f9d708e439c (patch) | |
tree | f4f3978f93918d4551dd7e13b2f97f57f8b83db9 /103grapheme.subx | |
parent | 354c72a6377d04574efe1c5cfb4b29d91c939b15 (diff) | |
download | mu-b1dcfb03d00f93999da0225600fe5f9d708e439c.tar.gz |
load Font in a non-contiguous area of memory
Diffstat (limited to '103grapheme.subx')
-rw-r--r-- | 103grapheme.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/103grapheme.subx b/103grapheme.subx index eaeacfab..abcfe57c 100644 --- a/103grapheme.subx +++ b/103grapheme.subx @@ -83,7 +83,7 @@ draw-grapheme-on-screen-buffer: # buffer: (addr byte), g: grapheme, x: int, y: 0f 8d/jump-if->= $draw-grapheme-on-screen-buffer:end/disp32 # var letter-bitmap/esi = font[g] 69/multiply %esi 0x21/imm32/glyph-size 6/r32/esi - 81 0/subop/add %esi Font/imm32 + 81 0/subop/add %esi 0x0010000c/imm32/Font # see boot.subx # dispatch based on letter-bitmap->size b8/copy-to-eax 0/imm32 8a/byte-> *esi 0/r32/AL @@ -116,7 +116,7 @@ wide-grapheme?: # g: grapheme -> _/eax: boolean 0f 8d/jump-if->= $wide-grapheme?:end/disp32 # var letter-bitmap/eax = font[g] 69/multiply %eax 0x21/imm32/glyph-size 0/r32/eax - 05/add-to-eax Font/imm32 + 05/add-to-eax 0x0010000c/imm32/Font # see boot.subx # dispatch based on letter-bitmap->size 8a/byte-> *eax 0/r32/AL 25/and-eax-with 0xff/imm32 |