mirror of https://github.com/pret/pokecrystal.git
commit
1795b9fbae
111
constants.asm
111
constants.asm
|
@ -5,6 +5,10 @@ dwb: MACRO
|
|||
db \2
|
||||
ENDM
|
||||
|
||||
dn: MACRO
|
||||
db \1 << 4 + \2
|
||||
ENDM
|
||||
|
||||
callab: MACRO
|
||||
ld hl, \1
|
||||
ld a, BANK(\1)
|
||||
|
@ -3005,4 +3009,109 @@ MOBILE_STUDIUM EQU 5
|
|||
|
||||
; name length
|
||||
PLAYER_NAME_LENGTH EQU 8
|
||||
PKMN_NAME_LENGTH EQU 11
|
||||
PKMN_NAME_LENGTH EQU 11
|
||||
|
||||
; music
|
||||
MUSIC_NONE EQU 0
|
||||
MUSIC_TITLE EQU 1
|
||||
MUSIC_ROUTE_1 EQU 2
|
||||
MUSIC_ROUTE_3 EQU 3
|
||||
MUSIC_ROUTE_12 EQU 4
|
||||
MUSIC_MAGNET_TRAIN EQU 5
|
||||
MUSIC_KANTO_GYM_LEADER_BATTLE EQU 6
|
||||
MUSIC_KANTO_TRAINER_BATTLE EQU 7
|
||||
MUSIC_KANTO_WILD_BATTLE EQU 8
|
||||
MUSIC_POKEMON_CENTER EQU 9
|
||||
MUSIC_HIKER_ENCOUNTER EQU 10
|
||||
MUSIC_LASS_ENCOUNTER EQU 11
|
||||
MUSIC_OFFICER_ENCOUNTER EQU 12
|
||||
MUSIC_HEAL EQU 13
|
||||
MUSIC_LAVENDER_TOWN EQU 14
|
||||
MUSIC_ROUTE_2 EQU 15
|
||||
MUSIC_MT_MOON EQU 16
|
||||
MUSIC_SHOW_ME_AROUND EQU 17
|
||||
MUSIC_GAME_CORNER EQU 18
|
||||
MUSIC_BICYCLE EQU 19
|
||||
MUSIC_HALL_OF_FAME EQU 20
|
||||
MUSIC_VIRIDIAN_CITY EQU 21
|
||||
MUSIC_CELADON_CITY EQU 22
|
||||
MUSIC_TRAINER_VICTORY EQU 23
|
||||
MUSIC_WILD_VICTORY EQU 24
|
||||
MUSIC_GYM_VICTORY EQU 25
|
||||
MUSIC_MT_MOON_SQUARE EQU 26
|
||||
MUSIC_GYM EQU 27
|
||||
MUSIC_PALLET_TOWN EQU 28
|
||||
MUSIC_POKEMON_TALK EQU 29
|
||||
MUSIC_PROF_OAK EQU 30
|
||||
MUSIC_RIVAL_ENCOUNTER EQU 31
|
||||
MUSIC_RIVAL_AFTER EQU 32
|
||||
MUSIC_SURF EQU 33
|
||||
MUSIC_EVOLUTION EQU 34
|
||||
MUSIC_NATIONAL_PARK EQU 35
|
||||
MUSIC_CREDITS EQU 36
|
||||
MUSIC_AZALEA_TOWN EQU 37
|
||||
MUSIC_CHERRYGROVE_CITY EQU 38
|
||||
MUSIC_KIMONO_ENCOUNTER EQU 39
|
||||
MUSIC_UNION_CAVE EQU 40
|
||||
MUSIC_JOHTO_WILD_BATTLE EQU 41
|
||||
MUSIC_JOHTO_TRAINER_BATTLE EQU 42
|
||||
MUSIC_ROUTE_30 EQU 43
|
||||
MUSIC_ECRUTEAK_CITY EQU 44
|
||||
MUSIC_VIOLET_CITY EQU 45
|
||||
MUSIC_JOHTO_GYM_LEADER_BATTLE EQU 46
|
||||
MUSIC_CHAMPION_BATTLE EQU 47
|
||||
MUSIC_RIVAL_BATTLE EQU 48
|
||||
MUSIC_ROCKET_BATTLE EQU 49
|
||||
MUSIC_PROF_ELM EQU 50
|
||||
MUSIC_DARK_CAVE EQU 51
|
||||
MUSIC_ROUTE_29 EQU 52
|
||||
MUSIC_ROUTE_36 EQU 53
|
||||
MUSIC_SS_AQUA EQU 54
|
||||
MUSIC_YOUNGSTER_ENCOUNTER EQU 55
|
||||
MUSIC_BEAUTY_ENCOUNTER EQU 56
|
||||
MUSIC_ROCKET_ENCOUNTER EQU 57
|
||||
MUSIC_POKEMANIAC_ENCOUNTER EQU 58
|
||||
MUSIC_SAGE_ENCOUNTER EQU 59
|
||||
MUSIC_NEW_BARK_TOWN EQU 60
|
||||
MUSIC_GOLDENROD_CITY EQU 61
|
||||
MUSIC_VERMILION_CITY EQU 62
|
||||
MUSIC_POKEMON_CHANNEL EQU 63
|
||||
MUSIC_POKE_FLUTE_CHANNEL EQU 64
|
||||
MUSIC_TIN_TOWER EQU 65
|
||||
MUSIC_SPROUT_TOWER EQU 66
|
||||
MUSIC_BURNED_TOWER EQU 67
|
||||
MUSIC_LIGHTHOUSE EQU 68
|
||||
MUSIC_LAKE_OF_RAGE EQU 69
|
||||
MUSIC_INDIGO_PLATEAU EQU 70
|
||||
MUSIC_ROUTE_37 EQU 71
|
||||
MUSIC_ROCKET_HIDEOUT EQU 72
|
||||
MUSIC_DRAGONS_DEN EQU 73
|
||||
MUSIC_JOHTO_WILD_BATTLE_NIGHT EQU 74
|
||||
MUSIC_RUINS_OF_ALPH_RADIO EQU 75
|
||||
MUSIC_CAPTURE EQU 76
|
||||
MUSIC_ROUTE_26 EQU 77
|
||||
MUSIC_MOM EQU 78
|
||||
MUSIC_VICTORY_ROAD EQU 79
|
||||
MUSIC_POKEMON_LULLABY EQU 80
|
||||
MUSIC_POKEMON_MARCH EQU 81
|
||||
MUSIC_GS_OPENING EQU 82
|
||||
MUSIC_GS_OPENING_2 EQU 83
|
||||
MUSIC_MAIN_MENU EQU 84
|
||||
MUSIC_RUINS_OF_ALPH_INTERIOR EQU 85
|
||||
MUSIC_ROCKET_OVERTURE EQU 86
|
||||
MUSIC_DANCING_HALL EQU 87
|
||||
MUSIC_BUG_CATCHING_CONTEST_RANKING EQU 88
|
||||
MUSIC_BUG_CATCHING_CONTEST EQU 89
|
||||
MUSIC_LAKE_OF_RAGE_ROCKET_RADIO EQU 90
|
||||
MUSIC_PRINTER EQU 91
|
||||
MUSIC_POST_CREDITS EQU 92
|
||||
MUSIC_CLAIR EQU 93
|
||||
MUSIC_MOBILE_ADAPTER_MENU EQU 94
|
||||
MUSIC_MOBILE_ADAPTER EQU 95
|
||||
MUSIC_BUENAS_PASSWORD EQU 96
|
||||
MUSIC_MYSTICALMAN_ENCOUNTER EQU 97
|
||||
MUSIC_CRYSTAL_OPENING EQU 98
|
||||
MUSIC_BATTLE_TOWER_THEME EQU 99
|
||||
MUSIC_SUICUNE_BATTLE EQU 100
|
||||
MUSIC_BATTLE_TOWER_LOBBY EQU 101
|
||||
MUSIC_MOBILE_CENTER EQU 102
|
||||
|
|
189
wram.asm
189
wram.asm
|
@ -1,3 +1,98 @@
|
|||
SECTION "audio",BSS[$c101]
|
||||
; channel structure:
|
||||
; $00: music id lo
|
||||
; $01: music id hi
|
||||
;
|
||||
; $03: channel flags? bit 0 = on/off
|
||||
;
|
||||
; $06: address of music data
|
||||
;
|
||||
; $19: note length lo
|
||||
; $1a: note length hi
|
||||
; $1b: lr tracks (bit corresponds to track #)
|
||||
;
|
||||
; $2d: tempo
|
||||
|
||||
Channels:
|
||||
Channel1:
|
||||
Channel1MusicID: ; c101
|
||||
ds 2
|
||||
Channel1MusicBank: ; c103
|
||||
ds 1
|
||||
; $03 = channel flags?
|
||||
ds 1
|
||||
; note/octave????
|
||||
ds 2
|
||||
Channel1MusicAddress: ; c107
|
||||
ds 2
|
||||
ds 17
|
||||
Channel1NoteLength: ; c11a
|
||||
ds 2
|
||||
Channel1LR: ; c11c
|
||||
ds 1
|
||||
ds 17
|
||||
Channel1Tempo: ; c12e
|
||||
ds 1
|
||||
ds 4
|
||||
|
||||
Channel2: ; c133
|
||||
ds 50
|
||||
Channel3: ; c165
|
||||
ds 50
|
||||
Channel4: ; c197
|
||||
ds 50
|
||||
|
||||
SFXChannels:
|
||||
Channel5: ; c1c9
|
||||
ds 50
|
||||
Channel6: ; c1fb
|
||||
ds 50
|
||||
Channel7: ; c22d
|
||||
ds 50
|
||||
Channel8: ; c25f
|
||||
ds 50
|
||||
|
||||
ds 7
|
||||
|
||||
MusicHeaderBuffer: ; c298
|
||||
ds 1
|
||||
CurMusicChannel: ; c299
|
||||
ds 1
|
||||
|
||||
Volume: ; c29a
|
||||
; corresponds to $ff24
|
||||
; Channel control / ON-OFF / Volume (R/W)
|
||||
; bit 7 - Vin->SO2 ON/OFF
|
||||
; bit 6-4 - SO2 output level (volume) (# 0-7)
|
||||
; bit 3 - Vin->SO1 ON/OFF
|
||||
; bit 2-0 - SO1 output level (volume) (# 0-7)
|
||||
ds 1
|
||||
|
||||
ds 2
|
||||
|
||||
MusicID:
|
||||
MusicIDLo: ; c29d
|
||||
ds 1
|
||||
MusicIDHi: ; c29e
|
||||
ds 1
|
||||
|
||||
MusicBank: ; c29f
|
||||
ds 1
|
||||
|
||||
ds 7
|
||||
|
||||
MusicLength: ; c2a7
|
||||
; fades out when counter hits this value
|
||||
; $00 = infinite
|
||||
ds 1
|
||||
|
||||
ds 23
|
||||
|
||||
CurSFX: ; c2bf
|
||||
; id of sfx currently playing
|
||||
ds 1
|
||||
|
||||
|
||||
SECTION "linkbattle",BSS[$c2dc]
|
||||
|
||||
InLinkBattle: ; 0xc2dc
|
||||
|
@ -63,6 +158,48 @@ BattleMonSpclAtk: ; c646
|
|||
BattleMonSpclDef: ; c648
|
||||
ds 2
|
||||
|
||||
SECTION "Engine",BSS[$cfcc]
|
||||
Options: ; cfcc
|
||||
; bit 0-2: number of frames to delay when printing text
|
||||
; fast 1; mid 3; slow 5
|
||||
; bit 3-4: unused
|
||||
; bit 5: stereo off/on
|
||||
; bit 6: battle style shift/set
|
||||
; bit 7: battle scene off/on
|
||||
ds 1
|
||||
|
||||
TextBoxFrame: ; cfce
|
||||
; bits 0-2: textbox frame 0-7
|
||||
ds 1
|
||||
|
||||
GBPrinter: ; cfd0
|
||||
; bit 0-6: brightness
|
||||
; lightest: $00
|
||||
; lighter: $20
|
||||
; normal: $40 (default)
|
||||
; darker: $60
|
||||
; darkest: $7F
|
||||
ds 1
|
||||
|
||||
Options2: ; cfd1
|
||||
; bit 1: menu account off/on
|
||||
ds 1
|
||||
|
||||
|
||||
VramState: ; d0ed
|
||||
; bit 0: overworld sprite updating on/off
|
||||
; bit 6: something to do with text
|
||||
; bit 7: on when surf initiates
|
||||
; flickers when climbing waterfall
|
||||
ds 1
|
||||
|
||||
|
||||
CurPartyMon: ; d109
|
||||
; contains which monster in your party
|
||||
; is being dealt with at the moment
|
||||
; 0-5
|
||||
ds 1
|
||||
|
||||
SECTION "EnemyMon",BSS[$d204]
|
||||
|
||||
EnemyMonSpecies: ; d204
|
||||
|
@ -706,6 +843,8 @@ SECTION "Status",BSS[$d84e]
|
|||
Money: ; d84e
|
||||
ds 3
|
||||
|
||||
ds 6
|
||||
|
||||
Badges:
|
||||
JohtoBadges: ; d857
|
||||
ds 1
|
||||
|
@ -1252,3 +1391,53 @@ PartyMon5Nickname: ; 0xde6d
|
|||
ds 11
|
||||
PartyMon6Nickname: ; 0xde78
|
||||
ds 11
|
||||
|
||||
SECTION "Breeding",BSS[$def5]
|
||||
DaycareMan: ; def5
|
||||
; bit 7: active
|
||||
; bit 6: monsters are compatible
|
||||
; bit 5: egg ready
|
||||
; bit 0: monster 1 in daycare
|
||||
ds 1
|
||||
|
||||
BreedMon1:
|
||||
BreedMon1Nick: ; def6
|
||||
ds 11
|
||||
BreedMon1OT: ; df01
|
||||
ds 11
|
||||
BreedMon1Stats:
|
||||
Breedmon1Species: ; df0c
|
||||
ds 1
|
||||
ds 31
|
||||
|
||||
DaycareLady: ; df2c
|
||||
; bit 7: active
|
||||
; bit 0: monster 2 in daycare
|
||||
ds 1
|
||||
|
||||
StepsToEgg: ; df2d
|
||||
ds 1
|
||||
DittoInDaycare: ; df2e
|
||||
; z: yes
|
||||
; nz: no
|
||||
ds 1
|
||||
|
||||
BreedMon2:
|
||||
BreedMon2Nick: ; df2f
|
||||
ds 11
|
||||
BreedMon2OT: ; df3a
|
||||
ds 11
|
||||
BreedMon2Stats:
|
||||
BreedMon1Species: ; df45
|
||||
ds 1
|
||||
ds 31
|
||||
|
||||
EggNick: ; df65
|
||||
; EGG@
|
||||
ds 11
|
||||
EggOT: ; df70
|
||||
ds 11
|
||||
EggStats:
|
||||
EggSpecies: ; df7b
|
||||
ds 1
|
||||
ds 31
|
||||
|
|
Loading…
Reference in New Issue