Chooses what VIDEO memory is available in main memory between 0xE000...0xFFFF
u8 in IO at 0x80 called VIDEOBANKREG
76543210
xxxBBBBB
B: RW VRAM Bank Selector
*** If this changes, so must the toolchain!!! (eg. MakeEdf.py)
Name | Value | Comment |
VB_Bg0Map | 0 | 8K 128x64 map |
VB_Bg1Map | 1 | 8K 128x64 map |
VB_Bg2Map | 2 | 8K 128x64 map |
VB_Bg3Map | 3 | 8K 128x64 map |
VB_Bg0Color | 4 | 8K 128x64 map |
VB_Bg1Color | 5 | 8K 128x64 map |
VB_Bg2Color | 6 | 8K 128x64 map |
VB_Bg3Color | 7 | 8K 128x64 map |
VB_Bg0CellData | 8 | 8K 256 x 8x8 16-color cells |
VB_Bg1CellData | 9 | 8K 256 x 8x8 16-color cells |
VB_Bg2CellData | 10 | 8K 256 x 8x8 16-color cells |
VB_Bg3CellData | 11 | 8K 256 x 8x8 16-color cells |
VB_SpriteImageData0 | 12 | 8K 172 x 16x16 16-color sprites |
VB_SpriteImageData1 | 13 | 8K ^ |
VB_SpriteImageData2 | 14 | 5.5K ^ |
VB_SpriteImageData3 | 15 | 0K ^ |
VB_SpriteRegisters | 16 | 2K 2 x 256 x 4byte Sprite Registers |
VB_Palettes | 17 | 2K 64 x 16color palettes |
VB_VideoRegisters | 18 | (no VRAM here) |
VB_SpriteCollisionRegisters | 19 | 2K 2 x 256 x 2byte Sprite Collision Regs + 1K of unused RAM. |