Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > How do we bank switch in prg code? Owner: iexpress New post
Page 1 of 1 Sort:  
How do we bank switch in prg code? Posted: 2013-05-30 06:02  (Last Edited: 2013-05-30 06:03) Reply | Quote
iexpress



Member for: 3309 days
Location: saint louis, mo, USA
Status: Offline

#48062
Hello,

I'm wondering how to bank switch in prg code using MMC1 or MMC3?

It seems I have several 32k prg's but don't know how to swap them out for another.

I'm wanting to make a 256k rom but don't understand how to swap banks.

Do we .org to the same bank addresses like $8000 and keep replacing the data manually or is there an automated way to do it?

I'm coding for the actual hardware, but it can't see past 32k $FFFF.
How do we call in data from above that address?

Thanks

_______________________
JDS
Posted: 2013-05-30 09:19 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#48070
NSF bankswitching works with 4k banks, so the way Famitracker bankswitches in its NSFs isn't really pertinent to any of the standard NES mappers.

If you need to learn how to bankswitch on the regular mappers, I suggest you ask at nesdev instead of here. You will get better help with programming the NES there; very few Famitracker users actually code for the NES, so there are not many who can help you here.

Posted: 2013-05-30 09:37 Reply | Quote
iexpress



Member for: 3309 days
Location: saint louis, mo, USA
Status: Offline

#48072
Will do thanks.

It would be awesome if the next Famitracker release let us export prg code without 0 padding or load addresses so we can tell it where to load in our prg code manually. I'm trying to get the binary export to play, but I'm wondering if the binay has a load address inside it.

I need to wipe out any loading addresses and padding of 0's in the exports.

_______________________
JDS
Posted: 2013-05-30 18:47 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#48079
The .bin and .asm exports are only the music data. They won't play without the NSF driver to play it. There is no "load address" in the .bin/.asm/.prg exports; that's part of the NSF format. You can place the .bin/.asm data where they are needed.

Page 1 of 1 Sort: