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

0 users currently in ROM Hacking | 5 guests | 3 bots

Main - ROM Hacking - SMB Code: Five Extra Seconds of Time? New thread | New reply


GameGenie81
Posted on 08-12-08 08:58 AM Link | Quote | ID: 88828


Koopa
Level: 24

Posts: 73/100
EXP: 78100
Next: 25

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

Last post: 5434 days
Last view: 5388 days
What Game Genie code for Super Mario Bros. will alter the ones digit in the game timer? If so, I am hoping for a value which will change the onscreen ones digit in the timer to "6." That way, when you use any of the infinite time codes (such as TTLZSN or VZTLTN) you will always have a six fireworks bonus.

~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.

frantik
Posted on 08-14-08 03:17 AM Link | Quote | ID: 88890


Red Koopa
Level: 28

Posts: 82/139
EXP: 127412
Next: 3926

Since: 10-09-07

Last post: 4490 days
Last view: 4483 days
it would be easier to just make a code which always gave u fireworks regardless of the time

ShaneM
Posted on 10-08-14 07:21 AM (rev. 4 of 10-08-14 07:41 AM) Link | Quote | ID: 158686


Snifit
Compromised account.
Please contact an admin to restore access.
Level: 36

Posts: 167/285
EXP: 293502
Next: 14608

Since: 02-17-14

Last post: 3138 days
Last view: 2653 days
For people wanting to do this today. Very simple ASM modification. Can be done in a hex editor. Just follow this:


;what we want to do is replace the first three lines of code. Change "ldy #$05" to
;"ldy #$00" and change the next line, "lda GameTimerDisplay+2" to
;"lda #$06". Then finally, change the third line from "cmp #$01" to "cmp #$06"
;that's it (make sure your assembled binary is exactly 32, 768 bytes)!

GameTimerFireworks:
ldy #$05 ;set default state for star flag object
lda GameTimerDisplay+2 ;get game timer's last digit
cmp #$01
beq SetFWC ;if last digit of game timer set to 1, skip ahead
ldy #$03 ;otherwise load new value for state
cmp #$03
beq SetFWC ;if last digit of game timer set to 3, skip ahead
ldy #$00 ;otherwise load one more potential value for state
cmp #$06
beq SetFWC ;if last digit of game timer set to 6, skip ahead
lda #$ff ;otherwise set value for no fireworks
SetFWC: sta FireworksCounter ;set fireworks counter here
sty Enemy_State,x ;set whatever state we have in star flag object



--ShaneM

____________________
At the end, when the day is over, the only one left to face is yourself. Have you been true to yourself and made the most of your day?

Main - ROM Hacking - SMB Code: Five Extra Seconds of Time? New thread | New reply

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

Page rendered in 0.019 seconds. (341KB of memory used)
MySQL - queries: 47, rows: 70/70, time: 0.015 seconds.