]> 4ch.mooo.com Git - 16.git/commitdiff
fixed font offset calculation
authorroot <root@localhost.localdomain>
Mon, 22 Jun 2015 23:33:33 +0000 (19:33 -0400)
committerpngwen <pngwen@sdf.org>
Mon, 22 Jun 2015 23:35:50 +0000 (19:35 -0400)
fonttest.exe
src/fonttest.c

index af6011a5ec0ec2ff0db93f4bd84ea947e46b5afc..5adb78fc8d8131a2995a95fb049ad455879bc4c2 100644 (file)
Binary files a/fonttest.exe and b/fonttest.exe differ
index d521db306c6a23a8c7cbb8db18aa21b1f869630e..9b5b89c4ef44eeb3715186f2107237c8ba3326e1 100644 (file)
@@ -84,14 +84,11 @@ void main(int argc, char *argv[])
                MOV DI, addr\r
                MOV SI, o\r
                MOV ES, s\r
-               SUB BH, BH\r
-               MOV BL, c       ; the letter\r
-               SHL BX, 1\r
-               SHL BX, 1\r
-               SHL BX, 1\r
-               SHL BX, 1\r
-               ADD SI, BX      ;the address of A\r
+               SUB AH, AH\r
+               MOV AL, c       ; the letter\r
                MOV CX, w\r
+               MUL CX\r
+               ADD SI, AX      ;the address of charcter\r
        L1:     MOV AX, ES:SI\r
                MOV DS:DI, AX\r
                INC SI\r