Hi all,
i was wondering if it is possible in my real mode os to change the default black background color to white and the letters to black. But according to ralf brown's int list, in text mode only the border color is changeable. So i decided to change my video mode and go to graphics
xor ax,ax
mov ax,04h
int 10h
then i change the background color
xor ax,ax
mov ah,0Bh
mov bl,0Fh ;White
int 10h
and i've changed all my output functions
mov ah,0Eh
mov bl,00h ;black
int 10h
However what i get is a screen filled with an outstanding white and no black letters. How can i print black letters in graphics mode?
Thank you all!
Video mode and text output
Video mode and text output
I need someone to show me the things in life that I cant find
I cant see the things that make true happiness, I must be blind
I cant see the things that make true happiness, I must be blind
using BIOS interupts, im not sure... but if you work directly with the screen (not hard to do), this is quite easy to do (and im quite surprised that the bios calls dont do it)i was wondering if it is possible in my real mode os to change the default black background color to white and the letters to black. But according to ralf brown's int list, in text mode only the border color is changeable. So i decided to change my video mode and go to graphics
when writing the attribute byte, simply use the low nybble for the foreground, and the high nybble for the background
some video cards dont implement text->graphics translation (required for using int10/0E in graphics mode), however i cannot say if this is your problemHowever what i get is a screen filled with an outstanding white and no black letters. How can i print black letters in graphics mode?