Points of Required Attention™
Friendly reminder: Please don't respond to spammers! Their posts inevitably get memory-holed when staff get around to, leaving behind an inexplicable tableau of you shouting at nothing and (if they otherwise would have been alone in a thread) dangling posts and wrong postcounts.
Views: 46,476,057
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 01-20-18 11:39 AM
Guest: Register | Login

0 users currently in ROM Hacking | 1 guest | 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: 23

Posts: 73/100
EXP: 61733
Next: 5990

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

Last post: 3145 days
Last view: 3099 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: 26

Posts: 82/139
EXP: 100437
Next: 1838

Since: 10-09-07

Last post: 2201 days
Last view: 2195 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: 31

Posts: 167/285
EXP: 182112
Next: 3251

Since: 02-17-14

Last post: 849 days
Last view: 365 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+3δ (2016-01-08)
© 2005-2016 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.029 seconds. (343KB of memory used)
MySQL - queries: 46, rows: 70/0, time: 0.022 seconds.