about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--103glyph.subx8
-rw-r--r--apps/ex14.mu2
2 files changed, 5 insertions, 5 deletions
diff --git a/103glyph.subx b/103glyph.subx
index 61035f22..f10ac871 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
+    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
@@ -208,14 +208,14 @@ draw-wide-code-point-on-screen-buffer:  # buffer: (addr byte), letter-bitmap: (a
       39/compare %edx 7/r32/edi
       0f 8d/jump-if->= break/disp32
       # var row-bitmap/ebx: byte = *letter-bitmap
-      8a/byte-> *(esi+1) 3/r32/BL
+      8a/byte-> *esi 3/r32/BL
       # ecx = x
       8b/-> *(ebp+0x10) 1/r32/ecx
       # first half-row
       (draw-run-of-pixels-from-glyph *(ebp+8) %ebx %ecx %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24))
       # second half-row
-      8a/byte-> *esi 3/r32/BL
-      49/increment-ecx
+      8a/byte-> *(esi+1) 3/r32/BL
+      41/increment-ecx
       (draw-run-of-pixels-from-glyph *(ebp+8) %ebx %ecx %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24))
       # ++y
       42/increment-edx
diff --git a/apps/ex14.mu b/apps/ex14.mu
index 600aded5..4a2d5dd7 100644
--- a/apps/ex14.mu
+++ b/apps/ex14.mu
@@ -23,5 +23,5 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
   var text-storage: (stream byte 0x200)
   var text/esi: (addr stream byte) <- address text-storage
   load-sectors data-disk, 0/lba, 1/num-sectors, text
-  var dummy/eax: int <- draw-stream-rightward screen, text, 1/x 0x80/xmax 0/y, 0xa/fg, 0/bg
+  var dummy/eax: int <- draw-stream-rightward screen, text, 0/x 0x80/xmax 0/y, 0xa/fg, 0/bg
 }
commit/README?h=v1.6.1&id=e952d6cb8e67f80fcd2019abf3d30b20dc5b9f7c'>e952d6cb ^
36e4e71e ^
4ea0f69a ^

36e4e71e ^
e952d6cb ^
36e4e71e ^

78a7d762 ^
e952d6cb ^
78a7d762 ^
e952d6cb ^
4ea0f69a ^

7838675f ^










4ea0f69a ^

36e4e71e ^
e952d6cb ^


7582555b ^
e952d6cb ^
36e4e71e ^
e952d6cb ^




36e4e71e ^
e952d6cb ^

36e4e71e ^
306c76d8 ^
e952d6cb ^

306c76d8 ^
e952d6cb ^


306c76d8 ^
e952d6cb ^
306c76d8 ^
e952d6cb ^

45cf5174 ^
e952d6cb ^

45cf5174 ^
b34fd133 ^
e952d6cb ^

45cf5174 ^
e952d6cb ^
45cf5174 ^
e952d6cb ^

45cf5174 ^
e952d6cb ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98