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

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

Main - ROM Hacking - SMB1 Area Music Help New thread | New reply


GameGenie81
Posted on 04-23-08 05:16 AM (rev. 3 of 04-23-08 05:25 AM) Link | Quote | ID: 82255


Koopa
Level: 24

Posts: 45/100
EXP: 78100
Next: 25

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

Last post: 5434 days
Last view: 5388 days
Hi,

I am in need of some help with getting to trigger the SMB1 music engine to play the Koopa Castle theme all the time.

The code YYAPYO only plays this music outside and in the rightful stages it belongs to.

To see what I mean, I'm posting the entire Get Area Music routine ($10fd-$1125)


$90ED:AD 70 07 - LDA $0770
$90F0:F0 23 - BEQ $9115
$90F2:AD 52 07 - LDA $0752
$90F5:C9 02 - CMP #$02
$90F7:F0 0D - BEQ $9106
$90F9:A0 05 - LDY #$05
$90FB:AD 10 07 - LDA $0710
$90FE:C9 06 - CMP #$06
$9100:F0 0E - BEQ $9110
$9102:C9 07 - CMP #$07
$9104:F0 0A - BEQ $9110
$9106:AC 4E 07 - LDY $074E
$9109:AD 43 07 - LDA $0743
$910C:F0 02 - BEQ $9110
$910E:A0 04 - LDY #$04
$9110:B9 E7 90 - LDA $90E7,Y
$9113:85 FB - STA $00FB
$9115:60 - RTS


Perhaps within all these addresses, could there be a proper fix to this besides the assignment that begins with $9106 (which is where some of the GG "music all the time" codes lie in)?

According to Doppelganger's SMB1 ASM guide, the area music constants are:
%01000000 (40) - Star Man music
%00100000 (20) - Pipe intro music
%00010000 (10) - Cloud music
%00001000 (08) - Castle music
%00000100 (04) - Underground music
%00000010 (02) - Water music
%00000001 (01) - Ground music
%00000000 (00) - Silence

Thank you,



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.

Main - ROM Hacking - SMB1 Area Music Help New thread | New reply

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

Page rendered in 0.018 seconds. (341KB of memory used)
MySQL - queries: 37, rows: 58/58, time: 0.015 seconds.