VOGONS


VGA emulation problem

Topic actions

First post, by 4A75726120422E

User metadata
Rank Newbie
Rank
Newbie

The hardware VGA in text mode allows to read the fonts loaded to RAM by sending value 2 into its Read Map Select Register:

1png_6196755_20533709.png

But the DosBox emulator always reads 0 videomemory page, regardless of the RMSR register value:

2png_5270153_20533712.png

The Oracle VirtualBox runs this program correctly:

3png_6915591_20533714.png

Reply 2 of 3, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author
keropi wrote:

welcome Jura B.

Thank goodness it isn't in binary... 😵

Anyway, I don't know about the VGA emulation in VirtualBox, but in DOSBox you need to turn off odd/even mode to read the fontmap. So, in addition to what you're doing now, write 0Ch to index 6 of port 3CEh to use the the B800h-BFFFh address window with odd/even off, then write 0Eh to index 6 to turn odd/even mode back on after you're done reading the fontmap.

Reply 3 of 3, by lightmaster

User metadata
Rank Oldbie
Rank
Oldbie

Welcome 4A75726120422E!!

25071588525_735097840e_b.jpg