If I want to draw pixels in Mode13h in DOS, all I have to do is declaring the following:
Now, I can access every of the 64000 pixels in the video memory by using the pointer as an array.Code:unsigned char far *screen = MK_FP(0xA000, 0x0000);
How can I do this in text mode?
As far as I know, in DOS text mode, each character occupies two bytes: One for the character value and one that saves the text color, the background color and the information if the text blinks.
Now let's say I have an array of the size of 80 x 25 x 2 bytes. (columns x rows x (character + color + blinking)). How do I retreive access to the video memory so that I can use memcpy and fill the screen with the characters and colors declared in my array?