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.

Coding > SRAM, swicth banks??

#1490 - zanor - Sun Jan 19, 2003 4:12 pm

Hi!

I'm trying to do sme work with the SRAM, but it all mirrors after 64Kbit and my cart is supporting 256Kbit(F2A)... Do I have to switch banks or something?

#1492 - Kay - Sun Jan 19, 2003 4:35 pm

SRAM is physicaly limited to 64Kb and needs extra specialised hardware (GAL, PAL or ASIC latch logic) to use bank switching method.
Softwares using more than this limitation needs to be patched in order to work properly.


-- Kay

#1500 - NEiM0D - Sun Jan 19, 2003 5:20 pm

There's probably some specific FA code to be called in order to switch banks.
I think PogoShell has the ability to change between these banks, so I'd suggest looking at the PogoShell source.

#1502 - Kay - Sun Jan 19, 2003 5:32 pm

You may found SRAM banks swap code for F2A at this adresse:

http://www.reinerziegler.de


-- Kay

#1505 - zanor - Sun Jan 19, 2003 5:47 pm

Thanks! I'l take a look at the page and source..

#1524 - ampz - Sun Jan 19, 2003 8:52 pm

Why do you need such huge amounts of NVRAM?

#1578 - zanor - Mon Jan 20, 2003 1:36 pm

I don't need it. I'm just trying different things with my GBA while I'm learning... And BTW GBA developent is fun!! :P

#1640 - MrMr[iCE] - Mon Jan 20, 2003 11:48 pm

If you have a visoly cart, you can try Pogoshell. The source code includes a file called visoly.s that does sram bank switches.
_________________
Does the corpse have a familiar face?