Retro 320x240 256 color VGA driver
pedward
Posts: 1,642
I wanted to understand Bill's sample he posted, mainly to display at native 1280x1024 resolution. I did get that to work, but I think the 60Mhz clock is becoming a limitation.
Anyway, I went up, then scaled it back down. I have a DE0 board, so I don't have much screen buffer, however this driver implements an old MODE-X mode, 320x240 VGA, with 256 colors in the 3:3:2 color space.
It's not a lot of colors, but it's memory efficient, using 70,800 bytes of RAM.
I really wanted to do a 320x200 mode, but my LCD seems to get ticked off at 640x400 resolution.
I thought this might be useful for the start of a video game or something.
Anyway, I went up, then scaled it back down. I have a DE0 board, so I don't have much screen buffer, however this driver implements an old MODE-X mode, 320x240 VGA, with 256 colors in the 3:3:2 color space.
It's not a lot of colors, but it's memory efficient, using 70,800 bytes of RAM.
I really wanted to do a 320x200 mode, but my LCD seems to get ticked off at 640x400 resolution.
I thought this might be useful for the start of a video game or something.