From: root Date: Mon, 22 Jun 2015 23:33:33 +0000 (-0400) Subject: fixed font offset calculation X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1ea28365b71698cb15fc04cb74efc532073fdf46;p=16.git fixed font offset calculation --- diff --git a/fonttest.exe b/fonttest.exe index af6011a5..5adb78fc 100644 Binary files a/fonttest.exe and b/fonttest.exe differ diff --git a/src/fonttest.c b/src/fonttest.c index d521db30..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 + 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