VGA Address

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
falconfx

VGA Address

Post by falconfx »

Hello!

This week I finished my multi-console driver. :)
It supports 12 virtual consoles, ANSI espace sequences, etc...

I have a doubt when updating the 'real' console: should I use the address 0xB0000 or 0xB8000?

I have set some preprocessor defines for the screen, such as width, height, text attribute and, of course, the address. I can change the video address by directly modifying the relative define.

What do you think? Have I to implement a 'detect' function using the 0x3CC port to detect the correct address or can I choose it at the compile-time?

Nowadays monochrome displays... ;D
Phugoid

Re:VGA Address

Post by Phugoid »

I would say set the Memory Map Select field in the Miscellaneous Graphics Register appropriately if you are paranoid, but compile in 0xB8000. If reading back the value of the register does not give you what you wrote, perhaps you should blame the user for having a broken card or monochrome display... unless you are prepared to support it, that is.
Post Reply