bochs-emu / Bochs

Bochs - Cross Platform x86 Emulator Project
https://bochs.sourceforge.io/
GNU Lesser General Public License v2.1
891 stars 107 forks source link

How to change Bochs VBE Memory (Video Memory) to 8MB or lower or higher than 16 MB? #309

Closed youself64github closed 1 week ago

youself64github commented 6 months ago

Since default Bochs VBE Memory is 16 MB, but how can I change it to 8MB or lower or higher than 16 MB (Max 32 MB)?

vruppert commented 6 months ago

Currently the only way to change VBE video memory size is to set VBE_DISPI_TOTAL_VIDEO_MEMORY_MB in vga.h to the desired size before compiling Bochs. The VGABIOS should be able to use it, since the size in 64k units is stored in a readonly register. Adding a bochsrc option for the vram size seems to be possible.

vruppert commented 1 week ago

I have now added an option to change the VBE memory size. Valid choices are 4, 8, 16 and 32 MB (default is still 16 MB). The latest binary of the LGPL'd VGABIOS is required to make it work correctly.