Page 1 of 1

how to shange the ascii font ?

Posted: Sat Jan 06, 2007 2:21 pm
by mohammed
i don't want to be silly but i asked this question before i am trying to test my luck again i knew a code that lode a new font.. i couldn't undersatnd it any way but i searched the web for any tutorials that learn you how to change the font of the ascii .. how ?
i made this

Code: Select all

org   100h   
use16
jmp   start
%INCLUDE "myfont.inc"
start:
call REPROGRAMFONT
mov ah,0eh
mov al,01h
int 10h
REPROGRAMFONT:

        push es

        mov  ax,ds
        mov  es,ax
        mov  bp,V2OSFONT
        mov  cx,00FFh
        xor  dx, dx
        mov  bx, 0800h
        mov  ax, 1100h
        int  10h                                        ; REPROGRAM FONT

        pop  es

        ret 

Code: Select all

V2OSFONT     DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H, 01111110b, 10000001b
             DB 10100101b, 10111101b ,10011001b,10000001b,01111110b
but i discovered that it doesn't print the character from my font but from the ascii i knew that when i tried to change it :(
what is wrong with this code ?
how can i change characters of ascii this code above (i think)load a new font how can i keep the ascii and just change what i want to change ?