Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - Universal ASM Hack
  
User name:
Password:
Reply:
 

UserPost
ev0
Posts: 2/27


great!

thank you for letting me improve my asm skills with these

excuse me if i do grammatical error but i'm italian xD
Rockman
Posts: 70/250
I'll tell you how I did it.

First, I needed the code for the star.

So, using FCEud, I wrote to the address, $553, which is the Invincibility Timer. When I touched a star, the debugger snapped, because the address was written to.

Scroll up a bit to see the code.

$A808:AD F5 04 LDA $04F5 = #$0A
$A80B:09 0A ORA #$0A
$A80D:8D F5 04 STA $04F5 = #$0A
$A810:A9 E0 LDA #$E0
$A812:8D 53 05 STA $0553 = #$00

------------------------------------------------------

$A808:AD F5 04 LDA $04F5 = #$0A
$A80B:09 0A ORA #$0A
$A80D:8D F5 04 STA $04F5 = #$0A

This controls the music for the star.

$A810:A9 E0 LDA #$E0
$A812:8D 53 05 STA $0553 = #$00

This activates the star.

Then you have to write to $736, which is Player 1's lives counter. (this can be done for player 2 also, but I didn't feel like doing it for Player 2. Looks like Luigi gets fucked over again. )

When you get 100 coins, the debugger will snap. Highlight that code, and find it in the hex editor. FE 36 07 is the code that gives you another life. Jump to free space to put the Star code in, since it won't fit in the space thats there.

That means, overwrite the FE 36 07 with 20 20 B5. 20 is JSR. 20 B5 is reverse for $B520, which is where I found at one time there is a lot of free space in the ROM.

Then NOP the rest of the code out with EA(s). Just the music code for the 1-up.

At $B520, which is 0x35530, I put the code for the star.

Just put in all the hex values for the star code. Then return using RTS. Which is hex 60.

Presto!

Any questions?
HyperLamer
Posts: 2396/8210
OMG WHERD U GET TEH STAR

I imagine it only changes a few bytes? Probably not much harder to do in SMB. I might look into it.
Shadic
Posts: 159/304
Awesome, nifty little patch...

If only I had one for SMB... But I'm going to try and thing up some ideas myself. >.>
Chickenlump
Posts: 435/722
Originally posted by MathOnNapkins
If you get 100 gold coins you should get a hooker. A really nice one too, I mean c'mon it's GOLD.


*Chickenlump imagines "Super Mario Brothers: The Herpies Adventure" *

*shudders violently*

Anyways...nice asm hack, it's simple and different.
MathOnNapkins
Posts: 1170/2189
If you get 100 gold coins you should get a hooker. A really nice one too, I mean c'mon it's GOLD.
Rockman
Posts: 69/250
I have made a patch that will allow anyone to use my 100 Coins/Star ability in their hacks, or just add a little spice to the original game if they want.



The file contains the patch, and a small readme. To download, right click on the link, and select Save Target As...

http://www.geocities.com/heavencloud7777/star.zip
Acmlm's Board - I2 Archive - Rom Hacking - Universal ASM Hack


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.003 seconds.