NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectMMC 3 conversion - runs on all but LoopyNES.  
Posted byAnonymous
Posted on9/14/03 3:53 PM
From IP68.75.24.101  



I am doing a conversion of SMB1 to MMC3, in order to expand available space for levels using ROM bank switching.

I am using 256K of PRG-ROM, for 32 ($00-$1f) pages.

I have re-mapped the reset vector to an area within the level data ($9fd8 to be exact). This level data isn't used until later in the game (4-3 and 6-3, again to be exact), so this doesn't pose a problem for now. I have this proc mirrored in the same spot in pages $00 and $1e (since some emulators like to load page $00 to $8000 on startup, and some like to load page $1e both there and $c000, and also because page $1e will be going there later (read on). This proc sets the page for $a000 to $1c, and the page for $c000 to $1d (using function #'s $46 and $47 to $8000), then jmps to the old main entry point of $8000. At this point, the pages are set up in memory as follows:

$8000 = page $1e = page $00 of original smb rom (+bankswitching patch)
$a000 = page $1c = page $01 of original smb rom
$c000 = page $1d = page $02 of original smb rom
$f000 = page $1f = page $03 of original smb rom (+vector patches)

The only other code I've modified is the IRQ vector, which I've set to point to a legit rti instruction, since it points to garbage in the original ROM.

The LoopyNES debugger 'S' command verifies this is working correctly. The game loads up fine, and plays fine on FCE Ultra, NESTen, and Nesticle. It loads fine on LoopyNES, but glitches when the first sprite beyond Mario (eg. the first goomba, or if I remove him, the mushroom in the ? block) begins moving, no matter whether it is in the startup demo loop, or an actual live game. I end up in my IRQ handler, with an invalid return address (S=$FE). What in Mercury's MHz is going on here? Anyone have a clue? I'd appreciate the help.

Thanks.




-
Entire Thread
Subject  Posted byPosted On
.MMC 3 conversion - runs on all but LoopyNES.  Anonymous9/14/03 3:53 PM
.*Re: SMB MMC 3 conversion - update  phoenix9/26/03 04:28 AM
.*MMC 3 conversion of SMB  phoenix9/17/03 04:22 AM
.*Update  Anonymous9/14/03 9:09 PM
.*Re: MMC 3 conversion - runs on all but LoopyNES.  Memblers9/14/03 5:14 PM
..*Re: MMC 3 conversion - runs on all but LoopyNES.  Anonymous9/14/03 6:31 PM
...*Re: MMC 3 conversion - runs on all but LoopyNES.  Memblers9/14/03 9:22 PM
....*Re: MMC 3 conversion - runs on all but LoopyNES.  Anonymous9/15/03 03:31 AM
....*Re: MMC 3 conversion - runs on all but LoopyNES.  loopy9/15/03 01:28 AM
.....*Re: MMC 3 conversion - runs on all but LoopyNES.  Anonymous9/16/03 00:35 AM
......*Re: MMC 3 conversion - runs on all but LoopyNES.  loopy9/16/03 01:01 AM
.......*Re: MMC 3 conversion - runs on all but LoopyNES.  Anonymous9/16/03 04:33 AM
.......*Re: MMC 3 conversion - runs on all but LoopyNES.  hcs9/16/03 03:43 AM
.....*Re: MMC 3 conversion - runs on all but LoopyNES.  Anonymous9/15/03 03:15 AM
..*Re: MMC 3 conversion - runs on all but LoopyNES.  Anonymous9/14/03 5:57 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo