Update vdp.c
added comments about old VRAM layout
@@ -103,6 +103,17 @@ void VDP_init()
pw = (u16 *) GFX_CTRL_PORT;
for (i = 0x00; i < 0x13; i++) *pw = 0x8000 | (i << 8) | regValues[i];
+ // these lines can be used in your code to change VRAM layout as olders SGDK (<= 1.30)
+ /*
+ VDP_setPlanSize(64, 64);
+
+ VDP_setWindowAddress(0xB000);
+ VDP_setSpriteListAddress(0xBC00);
+ VDP_setHScrollTableAddress(0xB800);
+ VDP_setBPlanAddress(0xC000);
+ VDP_setAPlanAddress(0xE000);
+ */
+
// reset video memory (len = 0 is a special value to define 0x10000)
DMA_doVRamFill(0, 0, 0, 1);
// wait for DMA completion
