Users browsing this thread: 1 Guest(s)
Random battle theme
10-16-2018, 11:48 AM
Here is a version with the different kefka tower songs:
Code:
hirom
org $C2BDB7
JSR free_space
NOP
org $C26469 ; change to free space
free_space:
LDA $C2BF3B,X
CMP #$24 ; check if battle song
BNE exit ; branch if not
LDA $11E2 ; load battle background byte
AND #$3F ; isolate battle background
BEQ is_wor_grass
CMP #$01
BEQ is_wob_forest
CMP #$02
BEQ is_wob_desert
CMP #$03
BEQ is_wor_forest
CMP #$05
BEQ is_wob_grass
CMP #$2F
BEQ is_wor_desert
CMP #$16
BEQ is_kefka1
CMP #$28
BEQ is_kefka2
LDA #$24 ; default battle song ID
BRA exit
is_wob_grass:
LDA #$10 ; song ID
BRA exit
is_wob_forest:
LDA #$11 ; song ID
BRA exit
is_wob_desert:
LDA #$12 ; song ID
BRA exit
is_wor_forest:
LDA #$13 ; song ID
BRA exit
is_wor_grass:
LDA #$14 ; song ID
BRA exit
is_wor_desert:
LDA #$15 ; song ID
BRA exit
is_kefka1:
LDA #$16 ; song ID
BRA exit
is_kefka2:
LDA #$17 ; song ID
exit:
RTS
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)