I am attempting to load the bios fonts into memory like in this example from os-dev.org:
;in: es:di=4k buffer
;out: buffer filled with font
push ds
push es
;ask BIOS to return VGA bitmap fonts
mov ax, 1130h
mov bh, 6
int 10h
;copy charmap
push es
pop ds
pop es
mov si, bp
mov cx, 256*16/4
rep movsd
pop ds
however i am unsure how to access the loaded fonts from my c kernel to print to the screen.
I have tried setting my c font pointer to multiple memory addresses which I believed may have been the ones where the font was loaded however this did not work and I can only assume that it is the bios that decides where to place the font in memory.
Alex OT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.