Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,485,097
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-26-24 04:15 AM
Guest: Register | Login

0 users currently in ROM Hacking | 1 guest | 2 bots

Main - ROM Hacking - How to Adjust the Star Man Invincibility Timer New thread | New reply


GameGenie81
Posted on 07-27-08 02:38 PM (rev. 2 of 07-27-08 02:48 PM) Link | Quote | ID: 88078


Koopa
Level: 24

Posts: 66/100
EXP: 78094
Next: 31

Since: 08-15-07
From: Milwaukie, OR

Last post: 5433 days
Last view: 5387 days
How does one adjust the Star Man invincibility timer in Super Mario Bros. for the NES?

The default byte sets this limit to about 20 seconds, but I want to increase that by at least twice the limit. What byte do I change in the game's ROM to have up to at least 40 seconds of Star Man time?

What do I need to refer to in Doppelganger's SMB1 ASM guide to seek this out?

Regards,



Ben

____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

CKY-9K
Posted on 07-28-08 08:32 AM Link | Quote | ID: 88136


Pokey
Level: 57

Posts: 415/693
EXP: 1430437
Next: 55491

Since: 06-27-07
From: cKy

Last post: 210 days
Last view: 118 days
I remember editting the address, but I forgot, sorry.

I'll check into it later.

____________________








GameGenie81
Posted on 07-28-08 03:49 PM Link | Quote | ID: 88146


Koopa
Level: 24

Posts: 68/100
EXP: 78094
Next: 31

Since: 08-15-07
From: Milwaukie, OR

Last post: 5433 days
Last view: 5387 days
Posted by CKY-2K
I remember editting the address, but I forgot, sorry.

I'll check into it later.


Change the address at 0x5827 ($D817 in CPU-speak). The default offset byte is #$23 which would mean about 23 seconds tick away from the main game timer, correct?

____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

frantik
Posted on 07-29-08 02:18 AM (rev. 4 of 07-29-08 02:24 AM) Link | Quote | ID: 88171


Red Koopa
Level: 28

Posts: 74/139
EXP: 127402
Next: 3936

Since: 10-09-07

Last post: 4489 days
Last view: 4482 days
Posted by GameGenie81
What do I need to refer to in Doppelganger's SMB1 ASM guide to seek this out?


search "Star" in the disassembly

finds:

StarInvincibleTimer = $079f

now you can set a break point in fceud for when $079f is written to, and then go collect a star and examine the code surrounding the breakpoint for a LDA $xx. Or you can search in the rom for STA $079f (85 9f 07) and you will likely find a LDA $xx value right in front of it, in this case LDA $23 (a9 23) which you already found


additionally you can search the disasm for "StarInvincibleTimer" and find:

lda #$23 ;otherwise set star mario invincibility
sta StarInvincibleTimer ;timer, and load the star mario music



GameGenie81
Posted on 07-29-08 03:01 PM Link | Quote | ID: 88197


Koopa
Level: 24

Posts: 69/100
EXP: 78094
Next: 31

Since: 08-15-07
From: Milwaukie, OR

Last post: 5433 days
Last view: 5387 days
Posted by frantik
Posted by GameGenie81
What do I need to refer to in Doppelganger's SMB1 ASM guide to seek this out?


search "Star" in the disassembly

finds:

StarInvincibleTimer = $079f

now you can set a break point in fceud for when $079f is written to, and then go collect a star and examine the code surrounding the breakpoint for a LDA $xx. Or you can search in the rom for STA $079f (85 9f 07) and you will likely find a LDA $xx value right in front of it, in this case LDA $23 (a9 23) which you already found


additionally you can search the disasm for "StarInvincibleTimer" and find:

lda #$23 ;otherwise set star mario invincibility
sta StarInvincibleTimer ;timer, and load the star mario music





"85 9f 07" should be corrected to "8d 9f 07". Searched all that and there I was...

____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

frantik
Posted on 07-30-08 07:19 AM Link | Quote | ID: 88222


Red Koopa
Level: 28

Posts: 75/139
EXP: 127402
Next: 3936

Since: 10-09-07

Last post: 4489 days
Last view: 4482 days
oops yeah 85 is zero page sta

Main - ROM Hacking - How to Adjust the Star Man Invincibility Timer New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.029 seconds. (339KB of memory used)
MySQL - queries: 62, rows: 88/88, time: 0.016 seconds.