Points of Required Attention™
Smaghetti, a new Super Mario Advance 4 editor, is currently in development! Check out the thread HERE!

Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,314,423
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 03-28-24 10:51 PM
Guest: Register | Login

0 users currently in ROM Hacking | 2 guests | 1 bot

Main - ROM Hacking - SMB1 - Castle Music Tweak New thread | New reply


GameGenie81
Posted on 04-24-08 12:59 PM (rev. 2 of 04-24-08 01:02 PM) Link | Quote | ID: 82303


Koopa
Level: 24

Posts: 49/100
EXP: 77913
Next: 212

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

Last post: 5405 days
Last view: 5358 days
Does anyone know how, in SMB1 for NES and SMB2J for FDS, to tweak the castle level music so that it plays continuously and uninterrupted (a la the Super NES All-Stars versions; which also means when you enter the water portion of the stage, the normal water music does not play) when you go down pipes?

What kind of coding routine should I mess around with to achieve this?

~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 04-25-08 01:53 AM Link | Quote | ID: 82329


Pokey
Level: 57

Posts: 390/693
EXP: 1427154
Next: 58774

Since: 06-27-07
From: cKy

Last post: 181 days
Last view: 89 days
no but there's a version of the castle music with noise channel and it goes:

cah cah cah cah cah cah cah cah cah cah chht ta chht, chht. chht ta chht, chht.

____________________








GameGenie81
Posted on 04-25-08 05:12 AM Link | Quote | ID: 82339


Koopa
Level: 24

Posts: 50/100
EXP: 77913
Next: 212

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

Last post: 5405 days
Last view: 5358 days
What I mean is that the area music is the normal castle version (area music constant #08, tune #03), but that I want it to play continuously/uninterrupted when I go down pipes (a la SMB3 and the All-Stars versions of SMB1-2J-3).

If I enter AVVOZE (which changes the value at address $10FA to $68), it will trigger this version of the music to play in the castle levels.

Perhaps, would you like to take a look at these following coding routines:


SoundEngine:
$F2D0:AD 70 07 - LDA $0770
$F2D3:D0 04 - BNE $F2D9
$F2D5:8D 15 40 - STA $4015
$F2D8:60 - RTS
$F2D9:A9 FF - LDA #$FF
$F2DB:8D 17 40 - STA $4017
$F2DE:A9 0F - LDA #$0F
$F2E0:8D 15 40 - STA $4015
$F2E3:AD C6 07 - LDA $07C6
$F2E6:D0 06 - BNE $F2EE
$F2E8:A5 FA - LDA $FA
$F2EA:C9 01 - CMP #$01
$F2EC:D0 5D - BNE $F34B
$F2EE:AD B2 07 - LDA $07B2
$F2F1:D0 23 - BNE $F316
$F2F3:A5 FA - LDA $FA
$F2F5:F0 66 - BEQ $F35D
$F2F7:8D B2 07 - STA $07B2
$F2FA:8D C6 07 - STA $07C6
$F2FD:A9 00 - LDA #$00
$F2FF:8D 15 40 - STA $4015
$F302:85 F1 - STA $F1
$F304:85 F2 - STA $F2
$F306:85 F3 - STA $F3
$F308:A9 0F - LDA #$0F
$F30A:8D 15 40 - STA $4015
$F30D:A9 2A - LDA #$2A
$F30F:8D BB 07 - STA $07BB
$F312:A9 44 - LDA #$44
$F314:D0 11 - BNE $F327
$F316:AD BB 07 - LDA $07BB
$F319:C9 24 - CMP #$24
$F31B:F0 08 - BNE $F325
$F31D:C9 1E - CMP #$1E
$F31F:F0 F1 - BNE $F312
$F321:C9 18 - CMP #$18
$F323:D0 09 - BNE $F32E
$F325:A9 64 - LDA #$64
$F327:A2 84 - LDX #$84
$F329:A0 7F - LDY #$7F
$F32B:20 88 F3 - JSR $F388
$F32E:CE BB 07 - DEC $07BB
$F331:D0 2A - BNE $F35D
$F333:A9 00 - LDA #$00
$F335:8D 15 40 - STA $4015
$F338:AD B2 07 - LDA $07B2
$F33B:C9 02 - CMP #$02
$F33D:D0 05 - BNE $F344
$F33F:A9 00 - LDA #$00
$F341:8D C6 07 - STA $07C6
$F344:A9 00 - LDA #$00
$F346:8D B2 07 - STA $07B2
$F349:F0 12 - BNE $F35D



RunSoundSubroutines:
$F34B:20 1B F4 - JSR $F41B
$F34E:20 7C F5 - JSR $F57C
$F351:20 67 F6 - JSR $F667
$F354:20 94 F6 - JSR $F694
$F357:A9 00 - LDA #$00
$F359:85 FB - STA $FB
$F35B:85 FC - STA $FC



SkipSoundSubroutines:
$F35D:A9 00 - LDA #$00
$F35F:85 FF - STA $FF
$F361:85 FE - STA $FE
$F363:85 FD - STA $FD
$F365:85 FA - STA $FA
$F367:AC C0 07 - LDY $07C0
$F36A:A5 F4 - LDA $F4
$F36C:29 03 - AND #$03
$F36E:F0 07 - BEQ $F377
$F370:EE C0 07 - INC $07C0
$F373:C0 30 - CPY #$30
$F375:90 06 - BCC $F37D
$F377:98 - TYA
$F378:F0 03 - BEQ $F37D
$F37A:CE C0 07 - DEC $07C0
$F37D:8C 11 40 - STY $4011
$F380:60 - RTS


Would any of these routines be of any help to me?

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

Main - ROM Hacking - SMB1 - Castle Music Tweak New thread | New reply

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

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