X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffonttest.c;h=9b5b89c4ef44eeb3715186f2107237c8ba3326e1;hb=1ea28365b71698cb15fc04cb74efc532073fdf46;hp=8c5bfcd33461f217b386c76c33a5652202623004;hpb=562a5008d417d162e2f133b2eea7e5bb37a3070c;p=16.git diff --git a/src/fonttest.c b/src/fonttest.c index 8c5bfcd3..9b5b89c4 100644 --- a/src/fonttest.c +++ b/src/fonttest.c @@ -84,14 +84,11 @@ void main(int argc, char *argv[]) MOV DI, addr MOV SI, o MOV ES, s - SUB BH, BH - MOV BL, c ; the letter - SHL BX, 1 - SHL BX, 1 - SHL BX, 1 - SHL BX, 1 - ADD SI, BX ;the address of A - MOV CX, 16 + SUB AH, AH + MOV AL, c ; the letter + MOV CX, w + MUL CX + ADD SI, AX ;the address of charcter L1: MOV AX, ES:SI MOV DS:DI, AX INC SI