News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Modifying Music in The Guardian Legend ROM Updated 2/26/2012  (Read 1650 times)

Dracula X

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • My YouTube Page for ROM hacking
Modifying Music in The Guardian Legend ROM Updated 2/26/2012
« on: February 24, 2012, 03:56:21 am »
I found something interesting here in ASM:

Bank 0:
sound_init - $97bb: a9 0f
se_silence - $97c0: a9 30
sound_load - $97e4: 8d 04 03
song_headers - $9b04: cd            Data
song_headers+1 - $9b05: 9a 94 9b 2e   Data

ROM File in hex at location
Address   hex song

Music:
$1B14 - 9ACD SONG 0    Pause?
$1B16 - 949B SONG 1      Title Screen
$1B18 - 2E9F SONG 2      Area 3 $ 4
$1B1A - B1A1 SONG 3      Boss 1
$1B1C - FCA2 SONG 4      Corridor 13,3,14,4
$1B1E - 52A4 SONG 5      Corridor 15,5,16,6
$1B20 - EAA5 SONG 6      Boss 2
$1B22 - 52A7 SONG 7      Area 1,2,5,7
$1B24 - F8A8 SONG 8      Corridor 19,9,20,10
$1B26 - 08AA SONG 9      Area 0
$IB28 - 42AC SONG 10 $A      Game Over
$1B2A - A5AC SONG 11 $B      Corridor 17,7,18,8
$1B2C - A5AC SONG 12 $C      Corridor 17,7,18,8: I thought it was a beta song
$1B2E - CDAD SONG 13 $D      Area 6 $ 9
$1B30 - 23AF SONG 14 $E      Area 10
$1B32 - 1EB0 SONG 15 $F      Ending
$1B34 - FCB2 SONG 16 $10   Empy Room
$1B36 - C5B3 SONG 17 $11   Corridor Room
$1B38 - C5B3 SONG 18 $12   Corridor Room: I thought it was a beta song
$1B3A - B7B4 SONG 19 $13   Message Room
$1B3C - D7B5 SONG 20 $14   Corridor 1,11,12,2
$1B3E - D7B5 SONG 21 $15   Corridor 1,11,12,2: I thought it was a beta song
$1B40 - 09B7 SONG 22 $16   Boss 3
$1B42 - 84B7 SONG 23 $17   Corridor Victory
$1B44 - 80B8 SONG 24 $18   Save $ Shop Room
$1B46 - 1DB9 SONG 25 $19   Password Screen & Corridor 22
$1B48 - DBB9 SONG 26 $1A   Area Victory after beating a boss
$1B4A - 05BA SONG 27 $1B   Corridor Cleared
$1B4C - 4BBA SONG 28 $1C   Corridor 21
$1B4E - E2BB SONG 29 $1D   Take Off
$1B50 - 0F9F SONG 30 $1E   Corridor 0
$1B52 - 3E99 SOUND 31 $1F  Silence?

SFX:
$1B54 - F8BC SFX 1 32 $20
$1B56 - 08BD SFX 2 33 $21
$1B58 - 16BD SFX 3 34 $22
$1B5A - 2DBD SFX 4 35 $23
$1B5C - 48BD SFX 5 36 $24
$1B5E - 64BD SFX 6 37 $25
$1B60 - 74BD SFX 7 38 $26
$1B62 - 8CBD SFX 8 39 $27
$1B64 - ACBD SFX 9 40 $28
$1B66 - B39B SFX 10 41 $29
$1B68 - C1BD SFX 11 42 $2A
$1B6A - D7BD SFX 12 43 $2B
$1B6C - EBBD SFX 13 44 $2C
$1B6E - CF9B SFX 14 45 $2D
$1B70 - FCBD SFX 15 46 $2E
$1B72 - 12BE SFX 16 47 $2F
$1B74 - 27BE SFX 17 48 $30
$1B76 - 3EBE SFX 18 49 $31
$1B78 - 6EBE SFX 19 50 $32
$1B7A - 84BE SFX 20 51 $33
$1B7C - 9ABE SFX 21 52 $34
$1B7E - B1BE SFX 22 53 $35
$1B80 - C9BE SFX 23 54 $36
$1B82 - DDBE SFX 24 55 $37
$1B84 - F4BE SFX 25 56 $38
$1B86 - 07BF SFX 26 57 $39
$1B88 - 1CBF SFX 27 58 $3A
$1B8A - 1CFB SFX 28 59 $3B
$1B8C - 27BF SFX 29 60 $3C
$1B8E - 47BF SFX 30 61 $3D
$1B90 - 47BF SFX 31 62 $3E
$1B92 - 60BF SFX 32 63 $3F
$1B94 - 78BF SFX 33 64 $40
$1B96 - 8DBF SFX 34 65 $41
$1B98 - A2BF SFX 35 66 $42
$1B9A - B7BF SFX 36 67 $43
$1B9C - 3E99 SFX 37 68 $44
$1B9E - DF9A SFX 38 69 $45
$1BA0 - 3299 SFX 39 70 $46
$1BA2 - 3999 SFX 40 71 $47

Music data or whatever it is: I think the music starts at byte 30 00 01.
$1BA4 - Music 1 Found this in code/data/logger in FCEUX.

You can also rearrange the songs too.

Reason for edit is to correct the locations.

Now if I can figure out how to locate the music without the code/data/logger.
« Last Edit: February 26, 2012, 03:55:40 pm by Dracula X »
Learning how bankswitching works is completed.