Famicom Super Mario Bros / Tennis cart swap trick

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

User avatar
zeroone
Posts: 939
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by zeroone »

The other hack also works:

Image
Pokun
Posts: 2681
Joined: Tue May 28, 2013 5:49 am
Location: Hokkaido, Japan

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by Pokun »

I have SMB, Tennis and Family BASIC but I never dared to try this trick. If there's a chance I'll fry something I rather not do it. Plus there's a hack somewhere that allows you to choose any one of the 255 "levels" to start at.
User avatar
Myask
Posts: 965
Joined: Sat Jul 12, 2014 3:04 pm

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by Myask »

Or use game genie codes to uncap the level select.
User avatar
zeroone
Posts: 939
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by zeroone »

Pokun wrote:I have SMB, Tennis and Family BASIC but I never dared to try this trick. If there's a chance I'll fry something I rather not do it. Plus there's a hack somewhere that allows you to choose any one of the 255 "levels" to start at.
We can safely mess around in emulation.

Since this trick requires you to reset Tennis and SMB, it is surprising that it works at all. Why didn't they program it to fully clear out memory on reset? Were they saving precious NROM bytes? SMB needs to remember the last world number to provide the continue option, but that value did not necessarily need to survive a reset.

While I have an emulator rigged up to do this, are there any other experiments I should try?
User avatar
Myask
Posts: 965
Joined: Sat Jul 12, 2014 3:04 pm

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by Myask »

The reason they don't is posted earlier in the topic…
Grapeshot wrote:The other important aspect of this trick is that Super Mario Bros only clears RAM on startup when any of the bytes used to store the score is greater than 10 or the value of the last byte of RAM is anything other thn $A5. Tennis, being another early Nintendo game, uses the same place to store the high score and the same signature byte, so the RAM is not cleared. The same trick might work with some of the other Nintendo black box games as well depending on how much code was reused.
Reset, then, doesn't clear high-score tables.
User avatar
zeroone
Posts: 939
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by zeroone »

Myask wrote:The reason they don't is posted earlier in the topic…
Ah. Thanks.

It sounds like this trick is quite limited then. I was hoping to use Famicom BASIC like a game genie. That doesn't sound like it's going to happen.
Pokun
Posts: 2681
Joined: Tue May 28, 2013 5:49 am
Location: Hokkaido, Japan

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by Pokun »

Family BASIC is fun for other things though.

It could work with other games that have reset-persistent data if you figure out how it detects a reset to avoid clearing RAM. Funny we just discussed clearing RAM in another thread.
zeroone wrote:
Pokun wrote:I have SMB, Tennis and Family BASIC but I never dared to try this trick. If there's a chance I'll fry something I rather not do it. Plus there's a hack somewhere that allows you to choose any one of the 255 "levels" to start at.
We can safely mess around in emulation.
Always wanted to try this on real hardware though. But nope, not worth the risk.
User avatar
rainwarrior
Posts: 8734
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by rainwarrior »

I think it's relatively safe (though I'm no doctor). I've hotswapped cartridges hundreds of times, haven't broken any yet.
User avatar
zeroone
Posts: 939
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by zeroone »

rainwarrior wrote:I think it's relatively safe (though I'm no doctor). I've hotswapped cartridges hundreds of times, haven't broken any yet.
Any suggestions for experiments then?
User avatar
rainwarrior
Posts: 8734
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Famicom Super Mario Bros / Tennis cart swap trick

Post by rainwarrior »

zeroone wrote:Any suggestions for experiments then?
I do it to run tests on various mappers, mostly it's been to do with famicom expansion tests.

I don't really have any suggestions, unless there's something you want to know about the hardware inside a cartridge you have. (Easier and maybe safer than socketing ROMs etc.)
Post Reply