gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > [newbe] can I use more than 4 bank ?

#71259 - mlequim - Sat Feb 11, 2006 2:15 pm

The question is in the title ;), can I use more than 4 bank ? I ask that because the vramSetMainBanks() has four parameters..

#71274 - chishm - Sat Feb 11, 2006 2:55 pm

vramSetMainBanks() has four parameters because it sets the main banks. There are at least 3 other banks that I can remember. Check Neimod's DSTek or Martin Korth's GBATek 2.2 for more details.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com

#71278 - SeanMon - Sat Feb 11, 2006 3:16 pm

There are 9 video banks in total (A-I) of various sizes.

Code:
uint32 videoSetMainBanks(VRAM_A_TYPE a, VRAM_B_TYPE b, VRAM_C_TYPE c, VRAM_D_TYPE d);
sets the first four banks with the parameters you supply and returns an unsigned int 32 (which is a standard unsigned int on the DS, right?) which you can later use to restore the first four banks to their previous state with
Code:
void vramRestoreMainBanks(uint32);

#71279 - mlequim - Sat Feb 11, 2006 3:19 pm

thank's for the help ! :-p