VGA VRAM Wrap

Discussion of development and patch submission.
Post Reply
Mills
Posts: 14
Joined: Thu 28 Sep, 2017 9:29 pm

VGA VRAM Wrap

Post by Mills »

Hi, Thanks again for this great emulator.

I think the VGA VRAM is not wrapping correctly on mode 13, (the one with only 64 Kb).

Well, it wraps, but It always thinks the vram is 256 Kb (mode X) and I have to scroll 4 pages down until it reaches address 0 of VRAM again.

Here you see a screenshot from Dosbox (it works the same on real PC), and a screenshot using PCem, Also include a test program.

Thanks a lot.
Attachments
Images.zip
(11.53 KiB) Downloaded 331 times
pcem.png
pcem.png (7.55 KiB) Viewed 5122 times
DosBox.png
DosBox.png (10.3 KiB) Viewed 5123 times
Mills
Posts: 14
Joined: Thu 28 Sep, 2017 9:29 pm

Re: VGA VRAM Wrap

Post by Mills »

Well the code was tested it on a real VGA, and PCem is working OK. So that's not a bug, it just does not wrap around 64 KB but 256 Kb.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: VGA VRAM Wrap

Post by SarahWalker »

I suspect this varies from VGA board to VGA board. Which real board was it tested with?
Post Reply