]> 4ch.mooo.com Git - 16.git/blobdiff - src/fonttest.c
fixed the show memory output well~
[16.git] / src / fonttest.c
index 8c5bfcd33461f217b386c76c33a5652202623004..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
-               MOV CX, 16\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