From b6ba4c30cc73d9d3217e19553b4b4c25bf469758 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 31 Aug 2021 22:35:22 -0700 Subject: [PATCH] fix a typo from commit a479f0d0837 Yet another gnarly reason to start checking all arg metadata in linux/pack.subx or something like that. With this bug most of my programs (including browser-slack!) were working even though the instruction stream was almost certainly misdecoded halfway through every attempt to draw glyphs. --- 103glyph.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/103glyph.subx b/103glyph.subx index f10ac871..779798d3 100644 --- a/103glyph.subx +++ b/103glyph.subx @@ -84,7 +84,7 @@ draw-code-point-on-screen-buffer: # buffer: (addr byte), c: code-point, x: int, 8b/-> *(ebp+0xc) 6/r32/esi # if (c >= 4352) return # unicode planes supported: latin, greek, cyrillic, armenian, hebrew, arabic, syriac, thaana, n'ko, indian (iscii), sinhala, thai, lao, tibetan, myanmar, georgian # next few to support: CJK, ethiopic, cherokee, ... - 81 7/subop/compare %esi 0x1100/imm32=4352 + 81 7/subop/compare %esi 0x1100/imm32/4352 0f 8d/jump-if->= $draw-code-point-on-screen-buffer:end/disp32 # var letter-bitmap/esi = font[c] 69/multiply %esi 0x21/imm32/glyph-size 6/r32/esi