mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-03-21 17:45:52 -05:00
- Remove trailing whitespace
- Indent with single tabs, not spaces - Colons after labels - Capitalize BANK, HIGH, and LOW - dbw BANK(X), X -> dba X
This commit is contained in:
parent
bfb981f188
commit
fac958b280
|
|
@ -1,14 +1,14 @@
|
|||
SongHeaderPointers:
|
||||
dbw Bank(Song_None), Song_None
|
||||
dbw Bank(Song_Title), Song_Title
|
||||
dbw Bank(Song_Route1), Song_Route1
|
||||
dbw Bank(Song_OakIntro), Song_OakIntro
|
||||
dbw Bank(Song_LeaderBattle), Song_LeaderBattle
|
||||
dbw Bank(Song_TrainerBattle), Song_TrainerBattle
|
||||
dbw Bank(Song_NidorinoIntro), Song_NidorinoIntro
|
||||
dbw Bank(Song_ViridianCity), Song_ViridianCity
|
||||
dbw Bank(Song_Heal), Song_Heal
|
||||
dbw Bank(Song_Bicycle), Song_Bicycle
|
||||
dbw Bank(Song_SpottedRocket), Song_SpottedRocket
|
||||
dbw Bank(Song_VictoryTrainer), Song_VictoryTrainer
|
||||
dbw Bank(Song_Evolution), Song_Evolution
|
||||
dba Song_None
|
||||
dba Song_Title
|
||||
dba Song_Route1
|
||||
dba Song_OakIntro
|
||||
dba Song_LeaderBattle
|
||||
dba Song_TrainerBattle
|
||||
dba Song_NidorinoIntro
|
||||
dba Song_ViridianCity
|
||||
dba Song_Heal
|
||||
dba Song_Bicycle
|
||||
dba Song_SpottedRocket
|
||||
dba Song_VictoryTrainer
|
||||
dba Song_Evolution
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ RTC_M EQU $09 ; Minutes 0-59 (0-3Bh)
|
|||
RTC_H EQU $0a ; Hours 0-23 (0-17h)
|
||||
RTC_DL EQU $0b ; Lower 8 bits of Day Counter (0-FFh)
|
||||
RTC_DH EQU $0c ; Upper 1 bit of Day Counter, Carry Bit, Halt Flag
|
||||
; Bit 0 Most significant bit of Day Counter (Bit 8)
|
||||
; Bit 6 Halt (0=Active, 1=Stop Timer)
|
||||
; Bit 7 Day Counter Carry Bit (1=Counter Overflow)
|
||||
; Bit 0 Most significant bit of Day Counter (Bit 8)
|
||||
; Bit 6 Halt (0=Active, 1=Stop Timer)
|
||||
; Bit 7 Day Counter Carry Bit (1=Counter Overflow)
|
||||
|
||||
; interrupt flags
|
||||
VBLANK EQU 0
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
const_def
|
||||
const M_NEW_GAME
|
||||
const M_CONTINUE
|
||||
const M_PLAY_GAME
|
||||
const M_SET_TIME
|
||||
|
||||
const M_NEW_GAME
|
||||
const M_CONTINUE
|
||||
const M_PLAY_GAME
|
||||
const M_SET_TIME
|
||||
|
||||
const_def
|
||||
const CONTINUE
|
||||
const NEW_GAME
|
||||
const OPTION
|
||||
const PLAY_POKEMON
|
||||
const CONTINUE
|
||||
const NEW_GAME
|
||||
const OPTION
|
||||
const PLAY_POKEMON
|
||||
const SET_TIME
|
||||
|
|
|
|||
|
|
@ -1,31 +1,20 @@
|
|||
; all outside tileset share certain metatiles
|
||||
; this is used in overworld code when editing the map
|
||||
; All outside tilesets share certain metatiles.
|
||||
; this is used in overworld code when editing the map.
|
||||
; D - dirt
|
||||
; L - lawn
|
||||
; T - small tree
|
||||
; C - cut tree
|
||||
; G - grass
|
||||
METATILE_GROUND EQU $01 ; DD
|
||||
; DD
|
||||
METATILE_LAWN EQU $04 ; LL
|
||||
; LL
|
||||
METATILE_SMALL_TREES_N EQU $25 ; TT
|
||||
; LL
|
||||
METATILE_SMALL_TREES_W EQU $28 ; TL
|
||||
; TL
|
||||
METATILE_SMALL_TREES_E EQU $2a ; LT
|
||||
; LT
|
||||
METATILE_CUT_SE_TREES_N EQU $30 ; TT
|
||||
; LC
|
||||
METATILE_CUT_NW_TREES_E EQU $31 ; CT
|
||||
; LT
|
||||
METATILE_CUT_NE_TREE_NW EQU $32 ; TC
|
||||
; LL
|
||||
METATILE_CUT_NE_TREE_SE EQU $33 ; LC
|
||||
; LT
|
||||
METATILE_SMALL_TREE_NW EQU $34 ; TL
|
||||
; LL
|
||||
METATILE_SMALL_TREE_SE EQU $35 ; TL
|
||||
; LL
|
||||
METATILE_GRASS EQU $3b ; GG
|
||||
; GG
|
||||
|
||||
METATILE_GROUND EQU $01 ; D D / D D
|
||||
METATILE_LAWN EQU $04 ; L L / L L
|
||||
METATILE_SMALL_TREES_N EQU $25 ; T T / L L
|
||||
METATILE_SMALL_TREES_W EQU $28 ; T L / T L
|
||||
METATILE_SMALL_TREES_E EQU $2a ; L T / L T
|
||||
METATILE_CUT_SE_TREES_N EQU $30 ; T T / L C
|
||||
METATILE_CUT_NW_TREES_E EQU $31 ; C T / L T
|
||||
METATILE_CUT_NE_TREE_NW EQU $32 ; T C / L L
|
||||
METATILE_CUT_NE_TREE_SE EQU $33 ; L C / L T
|
||||
METATILE_SMALL_TREE_NW EQU $34 ; T L / L L
|
||||
METATILE_SMALL_TREE_SE EQU $35 ; T L / L L
|
||||
METATILE_GRASS EQU $3b ; G G / G G
|
||||
|
|
|
|||
|
|
@ -294,6 +294,6 @@ NUM_ATTACKS EQU const_value + -1
|
|||
const BATTLEANIM_WOBBLE
|
||||
const BATTLEANIM_SHAKE
|
||||
const BATTLEANIM_HIT_CONFUSION
|
||||
|
||||
|
||||
|
||||
|
||||
MOVE_DATA_SIZE EQU 7
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
const SCRIPT_ID_03 ; 03
|
||||
const SCRIPT_ID_04 ; 04
|
||||
const SCRIPT_ID_05 ; 05
|
||||
|
||||
|
||||
; Flags
|
||||
SCRIPT_FINISHED_F EQU 7
|
||||
|
||||
|
|
|
|||
|
|
@ -91,5 +91,5 @@
|
|||
const SPRITE_59 ; 59 duplicate SPRITE_OLD_LINK_RECEPTIONIST
|
||||
const SPRITE_EGG ; 5a
|
||||
const SPRITE_BOULDER ; 5b
|
||||
|
||||
|
||||
SPRITE_TILE_SIZE EQU 64
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ NUM_DIRECTIONS EQU const_value
|
|||
const BOXMON ; 2
|
||||
const TEMPMON ; 3
|
||||
const WILDMON ; 4
|
||||
|
||||
|
||||
; wPlayerState:: ; d95d
|
||||
PLAYER_NORMAL EQU 0
|
||||
PLAYER_BIKE EQU 1
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ include "constants.asm"
|
|||
|
||||
item_attribute: MACRO
|
||||
; price, held effect, parameter, property, pocket, field menu, battle menu
|
||||
dw \1
|
||||
db \2, \3, \4, \5
|
||||
dn \6, \7
|
||||
dw \1
|
||||
db \2, \3, \4, \5
|
||||
dn \6, \7
|
||||
ENDM
|
||||
|
||||
SECTION "data/items/attributes.asm", ROMX
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@ TextEntryChars: ; 04:58B3
|
|||
db "マミムメモ ヤユヨワン ラりルレロ"
|
||||
db "ゃゅょっを ャュョッヲ ゙゚ ー。"
|
||||
db "12345 67890 ?!×.円"
|
||||
|
||||
|
||||
TextEntryHiragana: ; 04:593B
|
||||
db "あいうえお かきくけこ さしすせそ"
|
||||
db "たちつてと なにぬねの はひふへほ"
|
||||
db "まみむめも やゆよわん らりるれろ"
|
||||
db "ゃゅょっを 12345 67890"
|
||||
db " ゙゚ ー?!円"
|
||||
|
||||
|
||||
TextEntryKatakana: ; 04:5987
|
||||
db "アイウエオ カキクケコ サシスセソ"
|
||||
db "タチツテト ナニヌネノ ハヒフへホ"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
INCLUDE "constants.asm"
|
||||
|
||||
|
||||
SECTION "engine/bcd.asm", ROMX
|
||||
|
||||
AddBCD: ; 03:4de3
|
||||
|
|
@ -15,10 +15,10 @@ AddBCD: ; 03:4de3
|
|||
dec c
|
||||
jr nz, .add
|
||||
jr nc, .done
|
||||
|
||||
|
||||
ld a, $99
|
||||
inc de
|
||||
|
||||
|
||||
.fill
|
||||
ld [de], a
|
||||
inc de
|
||||
|
|
@ -44,7 +44,7 @@ SubBCD: ; 03:4df9
|
|||
jr nc, .done
|
||||
ld a, 0
|
||||
inc de
|
||||
|
||||
|
||||
.fill
|
||||
ld [de], a
|
||||
inc de
|
||||
|
|
|
|||
|
|
@ -109,32 +109,32 @@ Table416b:
|
|||
|
||||
Unknown41eb: ; 01:41eb
|
||||
db $00, $01, $02, $03
|
||||
|
||||
|
||||
Unknown41ef: ; 01:41ef
|
||||
db $80, $81, $82, $83
|
||||
|
||||
|
||||
Unknown41f3: ; 01:41f3
|
||||
db $04, $05, $06, $07
|
||||
|
||||
|
||||
Unknown41f7: ; 01:41f7
|
||||
db $84, $85, $86, $87
|
||||
|
||||
|
||||
Unknown41fb: ; 01:41fb
|
||||
db $08, $09, $0a, $0b
|
||||
|
||||
|
||||
Unknown41ff: ; 01:41ff
|
||||
db $88, $89, $8a, $8b
|
||||
|
||||
|
||||
Unknown4203: ; 01:4203
|
||||
db $00, $00, $00, $00
|
||||
db $08, $00, $08, $00
|
||||
db $02, $08, $08, $03
|
||||
|
||||
|
||||
Unknown420f: ; 01:420f
|
||||
db $00, $08, $20, $00
|
||||
db $00, $20, $08, $08
|
||||
db $22, $08, $00, $23
|
||||
|
||||
|
||||
Table421b: ; 01:421b
|
||||
dw Unknown423b
|
||||
dw Unknown424b
|
||||
|
|
@ -152,13 +152,13 @@ Table421b: ; 01:421b
|
|||
dw Unknown42cb
|
||||
dw Unknown42ab
|
||||
dw Unknown42cb
|
||||
|
||||
|
||||
Unknown423b: ; 01:423b
|
||||
db $00, $00, $00, $00
|
||||
db $00, $08, $01, $00
|
||||
db $08, $00, $02, $02
|
||||
db $08, $08, $03, $03
|
||||
|
||||
|
||||
Unknown424b: ; 01:424b
|
||||
db $00, $00, $80, $00
|
||||
db $00, $08, $81, $00
|
||||
|
|
@ -170,49 +170,49 @@ Unknown425b: ; 01:425b
|
|||
db $00, $00, $81, $20
|
||||
db $08, $08, $82, $22
|
||||
db $08, $00, $83, $23
|
||||
|
||||
|
||||
Unknown426b: ; 01:426b
|
||||
db $00, $00, $04, $00
|
||||
db $00, $08, $05, $00
|
||||
db $08, $00, $06, $02
|
||||
db $08, $08, $07, $03
|
||||
|
||||
|
||||
Unknown427b: ; 01:427b
|
||||
db $00, $00, $84, $00
|
||||
db $00, $08, $85, $00
|
||||
db $08, $00, $86, $02
|
||||
db $08, $08, $87, $03
|
||||
|
||||
|
||||
Unknown428b: ; 01:428b
|
||||
db $00, $08, $84, $20
|
||||
db $00, $00, $85, $20
|
||||
db $08, $08, $86, $22
|
||||
db $08, $00, $87, $23
|
||||
|
||||
|
||||
Unknown429b: ; 01:429b
|
||||
db $00, $00, $08, $00
|
||||
db $00, $08, $09, $00
|
||||
db $08, $00, $0a, $02
|
||||
db $08, $08, $0b, $03
|
||||
|
||||
|
||||
Unknown42ab: ; 01:42ab
|
||||
db $00, $08, $08, $20
|
||||
db $00, $00, $09, $20
|
||||
db $08, $08, $0a, $22
|
||||
db $08, $00, $0b, $23
|
||||
|
||||
|
||||
Unknown42bb: ; 01:42bb
|
||||
db $00, $00, $88, $00
|
||||
db $00, $08, $89, $00
|
||||
db $08, $00, $8a, $02
|
||||
db $08, $08, $8b, $03
|
||||
|
||||
|
||||
Unknown42cb: ; 01:42cb
|
||||
db $00, $08, $88, $20
|
||||
db $00, $00, $89, $20
|
||||
db $08, $08, $8a, $22
|
||||
db $08, $00, $8b, $23
|
||||
|
||||
|
||||
Function42db: ; 01:42db
|
||||
ld bc, wCmdQueue
|
||||
ld a, $01
|
||||
|
|
@ -256,7 +256,7 @@ Function42db: ; 01:42db
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
Table431d::
|
||||
dw Function4333
|
||||
dw Function439e
|
||||
|
|
@ -264,14 +264,14 @@ Table431d::
|
|||
dw Function4374
|
||||
dw Function4374
|
||||
dw Function43c9
|
||||
|
||||
|
||||
Table4329::
|
||||
dw Function4334
|
||||
dw Function4452
|
||||
dw Function4459
|
||||
dw Function446c
|
||||
dw Function4495
|
||||
|
||||
|
||||
Function4333: ; 01:4333
|
||||
ret
|
||||
|
||||
|
|
@ -338,11 +338,11 @@ Function4366: ; 01:4366
|
|||
Function4374: ; 01:4374
|
||||
ld de, Table437a
|
||||
jp Function4358
|
||||
|
||||
|
||||
Table437a: ; 01:437a
|
||||
dw Function437e
|
||||
dw Function439b
|
||||
|
||||
|
||||
Function437e: ; 01:437e
|
||||
call Function4341
|
||||
ld hl, $000e
|
||||
|
|
@ -360,14 +360,14 @@ Function437e: ; 01:437e
|
|||
ld hl, $0007
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
|
||||
|
||||
Function439b: ; 01:439b
|
||||
jp Function4402
|
||||
|
||||
Function439e: ; 01:439e
|
||||
ld de, Table43a4
|
||||
jp Function4358
|
||||
|
||||
|
||||
Table43a4: ; 01:43a4
|
||||
dw Function43a8
|
||||
dw Function43c6
|
||||
|
|
@ -464,11 +464,11 @@ Function4402: ; 01:4402
|
|||
Function4430: ; 01:4430
|
||||
ld hl, Table4436
|
||||
jp Function4358
|
||||
|
||||
|
||||
Table4436: ; 01:4436
|
||||
dw Function443a
|
||||
dw Function444f
|
||||
|
||||
|
||||
Function443a: ; 01:443a
|
||||
call Function4341
|
||||
ld hl, $000b
|
||||
|
|
@ -549,39 +549,39 @@ Function4495: ; 01:4495
|
|||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Table44ab: ; 01:44ab
|
||||
dw Unknown44b5
|
||||
dw Unknown44b6
|
||||
dw Unknown44c7
|
||||
dw Unknown44d0
|
||||
dw Unknown44e1
|
||||
|
||||
|
||||
Unknown44b5: ; 01:44b5
|
||||
db $00
|
||||
|
||||
|
||||
Unknown44b6: ; 01:44b6
|
||||
db $04, $00, $00, $00
|
||||
db $00, $00, $08, $01
|
||||
db $00, $08, $00, $02
|
||||
db $00, $08, $08, $03, $00
|
||||
|
||||
|
||||
Unknown44c7: ; 01:44c7
|
||||
db $02, $00, $00, $00
|
||||
db $00, $00, $08, $00, $20
|
||||
|
||||
|
||||
Unknown44d0: ; 01:44d0
|
||||
db $04, $00, $00, $00
|
||||
db $00, $00, $08, $00
|
||||
db $00, $08, $00, $00
|
||||
db $00, $08, $08, $00, $00
|
||||
|
||||
|
||||
Unknown44e1: ; 01:44e1
|
||||
db $04, $00, $00, $00
|
||||
db $40, $00, $08, $00
|
||||
db $40, $08, $00, $00
|
||||
db $40, $08, $08, $00, $40
|
||||
|
||||
|
||||
Function44f2: ; 01:44f2
|
||||
ld hl, $0008
|
||||
add hl, bc
|
||||
|
|
@ -605,7 +605,7 @@ Function44f2: ; 01:44f2
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
Table4516::
|
||||
dw Function486a
|
||||
dw Function47b8
|
||||
|
|
@ -627,13 +627,13 @@ Table4516::
|
|||
dw Function4a05
|
||||
dw Function4a8b
|
||||
dw Function4869
|
||||
|
||||
|
||||
Function453e: ; 01:453e
|
||||
ld hl, $000a
|
||||
add hl, bc
|
||||
ld [hl], $02
|
||||
ret
|
||||
|
||||
|
||||
Function4545: ; 01:4545
|
||||
ld hl, $0005
|
||||
add hl, bc
|
||||
|
|
@ -644,7 +644,7 @@ Function4545: ; 01:4545
|
|||
ld a, [hl]
|
||||
ld hl, Table4558
|
||||
jp CallJumptable
|
||||
|
||||
|
||||
Table4558: ; 01:4558
|
||||
dw Function4560
|
||||
dw Function4567
|
||||
|
|
@ -729,7 +729,7 @@ Function45a0: ; 01:45a0
|
|||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Unknown45d0: ; 01:45d0
|
||||
db $00, $0C, $04, $08
|
||||
|
||||
|
|
@ -806,7 +806,7 @@ Function4636: ; 01:4636
|
|||
res 7, [hl]
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
Function4644: ; 01:4644
|
||||
ld hl, $0005
|
||||
add hl, bc
|
||||
|
|
@ -860,7 +860,7 @@ Function4678: ; 01:4678
|
|||
add hl, bc
|
||||
ld [hl], $ff
|
||||
ret
|
||||
|
||||
|
||||
Function468a: ; 01:468a
|
||||
and $0f
|
||||
ld hl, $0006
|
||||
|
|
@ -938,7 +938,7 @@ Function46e5: ; 01:46e5
|
|||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ret
|
||||
|
||||
|
||||
Function46f9: ; 01:46f9
|
||||
ld hl, $0006
|
||||
add hl, bc
|
||||
|
|
@ -950,10 +950,10 @@ Function46f9: ; 01:46f9
|
|||
add hl, de
|
||||
ld a, [hl]
|
||||
ret
|
||||
|
||||
|
||||
Table4708: ; 01:4708
|
||||
db $00, $01, $10
|
||||
|
||||
|
||||
Table470b: ; 01:470b
|
||||
db $01, $00, $ff
|
||||
db $10, $01, $ff
|
||||
|
|
@ -1068,7 +1068,7 @@ Function47b8: ; 01:47b8
|
|||
and $1f
|
||||
ld hl, Table47c5
|
||||
jp CallJumptable
|
||||
|
||||
|
||||
Table47c5: ; 01:47c5
|
||||
dw Function47fb
|
||||
dw Function4812
|
||||
|
|
@ -1205,7 +1205,7 @@ Function486a: ; 01:486a
|
|||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Function488c: ; 01:488c
|
||||
call Function468a
|
||||
call Function771e
|
||||
|
|
@ -1262,7 +1262,7 @@ Function48da: ; 01:48da
|
|||
add hl, bc
|
||||
ld [hl], a
|
||||
jp Function4b65
|
||||
|
||||
|
||||
Function48f5: ; 01:48f5
|
||||
ld hl, $0008
|
||||
add hl, bc
|
||||
|
|
@ -1368,11 +1368,11 @@ Function497a: ; 01:497a
|
|||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Table4994: ; 01:4994
|
||||
db $00, $FF, $FE, $FD
|
||||
db $FC, $FD, $FE, $FF
|
||||
|
||||
|
||||
Function499c: ; 01:499c
|
||||
call Function46f9
|
||||
ld hl, $001f
|
||||
|
|
@ -1411,7 +1411,7 @@ Function499c: ; 01:499c
|
|||
add hl, bc
|
||||
ld [hl], $02
|
||||
ret
|
||||
|
||||
|
||||
Unknown49dc: ; 01:49dc
|
||||
db $FC, $FB, $FA, $F9
|
||||
db $F8, $F7, $F6, $F5
|
||||
|
|
@ -1431,13 +1431,13 @@ Function49fc: ; 01:49fc
|
|||
Function4a05: ; 01:4a05
|
||||
ld de, Table4a0b
|
||||
jp Function47ab
|
||||
|
||||
|
||||
Table4a0b: ; 01:4a0b
|
||||
dw Function4a13
|
||||
dw Function4a28
|
||||
dw Function4a38
|
||||
dw Function4a53
|
||||
|
||||
|
||||
Function4a13: ; 01:4a13
|
||||
ld hl, $001e
|
||||
add hl, bc
|
||||
|
|
@ -1503,7 +1503,7 @@ Function4a53: ; 01:4a53
|
|||
ld [hl], $00
|
||||
call Function4792
|
||||
ret
|
||||
|
||||
|
||||
Function4a82: ; 01:4a82
|
||||
ld hl, $0008
|
||||
add hl, bc
|
||||
|
|
@ -1513,7 +1513,7 @@ Function4a82: ; 01:4a82
|
|||
Function4a8b: ; 01:4a8b
|
||||
ld de, Table4a91
|
||||
jp Function47ab
|
||||
|
||||
|
||||
Table4a91: ; 01:4a91
|
||||
dw Function4a9f
|
||||
dw Function4aaf
|
||||
|
|
@ -1555,7 +1555,7 @@ Function4ab8: ; 01:4ab8
|
|||
ld [hl], $10
|
||||
call Function4799
|
||||
ret
|
||||
|
||||
|
||||
Function4ad4: ; 01:4ad4
|
||||
ld hl, $000a
|
||||
add hl, bc
|
||||
|
|
@ -1583,7 +1583,7 @@ Function4af6: ; 01:4af6
|
|||
ld [hl], $10
|
||||
call Function4799
|
||||
ret
|
||||
|
||||
|
||||
Function4b00: ; 01:4b00
|
||||
ld hl, $000a
|
||||
add hl, bc
|
||||
|
|
@ -1605,10 +1605,10 @@ Function4b0c: ; 01:4b0c
|
|||
ld [hl], $00
|
||||
call Function4792
|
||||
ret
|
||||
|
||||
|
||||
Function4b22: ; 01:4b22
|
||||
call Function4792
|
||||
|
||||
|
||||
Function4b25: ; 01:4b25
|
||||
ret
|
||||
|
||||
|
|
@ -1630,10 +1630,10 @@ Function4b26: ; 01:4b26
|
|||
add hl, de
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Unknown4b42: ; 01:4b42
|
||||
db $01, $01, $FC, $02, $00, $08
|
||||
|
||||
|
||||
Function4b48: ; 01:4b48
|
||||
ld e, a
|
||||
add a
|
||||
|
|
@ -1653,7 +1653,7 @@ Function4b48: ; 01:4b48
|
|||
|
||||
Unknown4b5f: ; 01:4b5f
|
||||
db $05, $04, $FC, $02, $02, $08
|
||||
|
||||
|
||||
Function4b65: ; 01:4b65
|
||||
ld hl, $000a
|
||||
add hl, bc
|
||||
|
|
@ -1733,7 +1733,7 @@ Function4bc9: ; 01:4bc9
|
|||
add hl, bc
|
||||
ld [hl], $ff
|
||||
ret
|
||||
|
||||
|
||||
Function4bed: ; 01:4bed
|
||||
ld a, [wPlayerMovement]
|
||||
jp Function4c37
|
||||
|
|
@ -1798,7 +1798,7 @@ Function4c37: ; 01:4c37
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
Table4c48: ; 01:4c48
|
||||
dw Function4d94
|
||||
dw Function4d98
|
||||
|
|
@ -2238,7 +2238,7 @@ Function4ed5: ; 01:4ed5
|
|||
Table4edb: ; 01:4edb
|
||||
dw Function4edf
|
||||
dw Function4efb
|
||||
|
||||
|
||||
Function4edf: ; 01:4edf
|
||||
call Function46d3
|
||||
call Function499c
|
||||
|
|
@ -2271,12 +2271,12 @@ Function4efb: ; 01:4efb
|
|||
Function4f14: ; 01:4f14
|
||||
ld de, Table4f1a
|
||||
jp Function47ab
|
||||
|
||||
|
||||
Table4f1a: ; 01:4f1a
|
||||
dw Function4f20
|
||||
dw Function4f40
|
||||
dw Function4f4b
|
||||
|
||||
|
||||
Function4f20: ; 01:4f20
|
||||
call Function499c
|
||||
call Function4750
|
||||
|
|
@ -2916,7 +2916,7 @@ Function52dc: ; 01:52dc
|
|||
add hl, de
|
||||
call PrintPlayTime
|
||||
ret
|
||||
|
||||
|
||||
SECTION "engine/dumps/bank01.asm@Function5388", ROMX
|
||||
|
||||
Function5388: ; 01:5388
|
||||
|
|
@ -2955,7 +2955,7 @@ Function53b0: ; 01:53b0
|
|||
ld [wce66], a
|
||||
call CloseSRAM
|
||||
ret
|
||||
|
||||
|
||||
SECTION "engine/dumps/bank01.asm@ReanchorBGMap_NoOAMUpdate", ROMX
|
||||
|
||||
ReanchorBGMap_NoOAMUpdate: ; 01:63d8
|
||||
|
|
@ -3016,7 +3016,7 @@ LoadFonts_NoOAMUpdate: ; 01:6437
|
|||
ld a, $90
|
||||
ldh [hWY], a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
Function6445: ; 01:6445
|
||||
call BackUpTilesToBuffer
|
||||
|
|
@ -3182,7 +3182,7 @@ Function6445: ; 01:6445
|
|||
.sub_658a
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
Text658c: ; 01:658c
|
||||
text_from_ram wcd11
|
||||
text "は あたらしく"
|
||||
|
|
@ -3198,7 +3198,7 @@ Text65a5: ; 01:65a5
|
|||
sound_dex_fanfare_50_79
|
||||
text_waitbutton
|
||||
text_end
|
||||
|
||||
|
||||
Text65a8: ; 01:65a8
|
||||
text "どの わざを"
|
||||
next "わすれさせたい?"
|
||||
|
|
@ -3207,30 +3207,30 @@ Text65a8: ; 01:65a8
|
|||
Text65b9: ; 01:65b9
|
||||
text "それでは<⋯⋯> "
|
||||
text_end
|
||||
|
||||
|
||||
Text65c1: ; 01:65c1
|
||||
text_from_ram wStringBuffer2
|
||||
text "を"
|
||||
line "おぼえるのを あきらめますか?"
|
||||
done
|
||||
|
||||
|
||||
Text65d7: ; 01:65d7
|
||||
text_from_ram wcd11
|
||||
text "は "
|
||||
text_end
|
||||
|
||||
|
||||
Text65de: ; 01:65de
|
||||
text_from_ram wStringBuffer2
|
||||
text "を"
|
||||
line "おぼえずに おわった!"
|
||||
prompt
|
||||
|
||||
|
||||
Text65f0: ; 01:65f0
|
||||
text_from_ram wcd11
|
||||
text "は あたらしく"
|
||||
line ""
|
||||
text_end
|
||||
|
||||
|
||||
Text65fd: ; 01:65fd
|
||||
text_from_ram wStringBuffer2
|
||||
text "を おぼえたい<⋯⋯>!"
|
||||
|
|
@ -3249,11 +3249,11 @@ Text662e: ; 01:662e
|
|||
text "の かわりに"
|
||||
line "ほかの わざを わすれさせますか?"
|
||||
done
|
||||
|
||||
|
||||
Text664b: ; 01:664b
|
||||
text "1 2の <⋯⋯>"
|
||||
text_end
|
||||
|
||||
|
||||
Text6653: ; 01:6653
|
||||
text_exit
|
||||
start_asm
|
||||
|
|
@ -3263,17 +3263,17 @@ Text6653: ; 01:6653
|
|||
pop de
|
||||
ld hl, Text6661
|
||||
ret
|
||||
|
||||
|
||||
Text6661: ; 01:6661
|
||||
text " ポカン!"
|
||||
text_end
|
||||
|
||||
|
||||
Text6668: ; 01:6668
|
||||
text_exit
|
||||
text ""
|
||||
para ""
|
||||
text_end
|
||||
|
||||
|
||||
Text666c: ; 01:666c
|
||||
text_from_ram wcd11
|
||||
text "は "
|
||||
|
|
@ -3285,7 +3285,7 @@ Text6673: ; 01:6673
|
|||
line "つかいかたを きれいに わすれた!"
|
||||
para "そして<⋯⋯>!"
|
||||
prompt
|
||||
|
||||
|
||||
Text6691: ; 01:6691
|
||||
text "それは たいせつなわざです"
|
||||
line "わすれさせることは できません!"
|
||||
|
|
@ -3340,7 +3340,7 @@ Function66b1: ; 01:66b1
|
|||
ldh [hConnectionStripLength], a
|
||||
ldh [hSpriteOffset], a
|
||||
ret
|
||||
|
||||
|
||||
Table66fa: ; 01:66fa
|
||||
db $32, $21, $34, $24
|
||||
db $34, $21, $45, $55
|
||||
|
|
@ -3407,13 +3407,13 @@ Function6713: ; 01:6713
|
|||
.sub_6784
|
||||
call CloseWindow
|
||||
ret
|
||||
|
||||
|
||||
Text6788: ; 01:6788
|
||||
text_from_ram wStringBuffer1
|
||||
text "に"
|
||||
line "ニックネームを つけますか?"
|
||||
done
|
||||
|
||||
|
||||
Function679d: ; 01:679d
|
||||
ld de, wFieldMoveScriptID
|
||||
push de
|
||||
|
|
@ -3482,12 +3482,12 @@ CorrectNickErrors: ; 01:67d5
|
|||
pop de
|
||||
pop bc
|
||||
ret
|
||||
|
||||
|
||||
Table6805:: ; 01:6805
|
||||
db $00, $05, $14, $19, $1d
|
||||
db $26, $35, $3a, $49, $7f
|
||||
db $ff
|
||||
|
||||
|
||||
SECTION "engine/dumps/bank01.asm@Function771e", ROMX
|
||||
|
||||
Function771e: ; 01:771e
|
||||
|
|
@ -3569,7 +3569,7 @@ Function77a1: ; 01:77a1
|
|||
add hl, bc
|
||||
ld e, [hl]
|
||||
jr _CheckObjectCollision
|
||||
|
||||
|
||||
Function77ad: ; 01:77ad
|
||||
ldh a, [hConnectionStripLength]
|
||||
call GetObjectStruct
|
||||
|
|
@ -4048,7 +4048,7 @@ Function7a93: ; 01:7a93
|
|||
add $f7
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Text7bad: ; 01:7bad
|
||||
db "はなしの はやさ"
|
||||
next " はやい ふつう おそい"
|
||||
|
|
@ -4075,15 +4075,15 @@ Text7c12: ; 01:7c12
|
|||
Text7c17: ; 01:7c17
|
||||
db " わく を かえる "
|
||||
text_end
|
||||
|
||||
|
||||
Table7c22: ; 01:7c22
|
||||
db $0F
|
||||
|
||||
|
||||
Table7c23: ; 01:7c23
|
||||
db $05, $08, $03
|
||||
db $01, $01, $08
|
||||
db $FF
|
||||
|
||||
|
||||
Unknown7c2a: ; 01:7c2a
|
||||
rept 491
|
||||
db $39, $00
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ Function806c: ; 02:406c
|
|||
ld a, $ff
|
||||
ld [wObjectFollow_Leader], a
|
||||
ret
|
||||
|
||||
|
||||
Function807b: ; 02:407b
|
||||
ld a, $01
|
||||
ld hl, Data8089
|
||||
|
|
@ -152,7 +152,7 @@ Function80eb: ; 02:40eb
|
|||
add hl, de
|
||||
set 5, [hl]
|
||||
ret
|
||||
|
||||
|
||||
Function811a: ; 02:411a
|
||||
ldh a, [hConnectionStripLength]
|
||||
ld e, a
|
||||
|
|
@ -306,7 +306,7 @@ Function81f8: ; 02:41f8
|
|||
add hl, de
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Function820d: ; 02:420d
|
||||
push af
|
||||
ldh a, [hConnectionStripLength]
|
||||
|
|
@ -360,7 +360,7 @@ Function824c: ; 02:424c
|
|||
ret z
|
||||
ld hl, Table8259
|
||||
jp CallJumptable
|
||||
|
||||
|
||||
Table8259: ; 02:4259
|
||||
dw Function8299
|
||||
dw Function8292
|
||||
|
|
@ -411,7 +411,7 @@ Function8292: ; 02:4292
|
|||
Function8299: ; 02:4299
|
||||
ld a, [wYCoord]
|
||||
add $09
|
||||
|
||||
|
||||
Function829e: ; 02:429e
|
||||
ld d, a
|
||||
ld a, [wXCoord]
|
||||
|
|
@ -669,7 +669,7 @@ Function8425: ; 02:4425
|
|||
ld [wVBCopyFarDst], a
|
||||
ld a, d
|
||||
ld [wVBCopyFarDst+1], a
|
||||
|
||||
|
||||
Function842d: ; 02:442d
|
||||
ld a, b
|
||||
ld [wVBCopyFarSize], a
|
||||
|
|
@ -768,7 +768,7 @@ Function84b8: ; 02:44b8
|
|||
jp Function842d
|
||||
|
||||
SECTION "engine/dumps/bank02.asm@QueueFollowerFirstStep", ROMX
|
||||
|
||||
|
||||
QueueFollowerFirstStep: ; 02:45df
|
||||
call Function85f2
|
||||
jr c, .sub_85ec
|
||||
|
|
@ -914,7 +914,7 @@ Function86a0: ; 02:46a0
|
|||
and $03
|
||||
jr z, .sub_86b4
|
||||
ret
|
||||
|
||||
|
||||
FlyMap: ; 02:46cb
|
||||
ld hl, hJoyDebounceSrc
|
||||
ld a, [hl]
|
||||
|
|
@ -1011,10 +1011,10 @@ Function8747: ; 02:4747
|
|||
ret z
|
||||
ld [wFlyDestination], a
|
||||
ret
|
||||
|
||||
|
||||
Text8776: ; 02:4776
|
||||
db "とびさき を えらんでください@"
|
||||
|
||||
|
||||
Function8786: ; 02:4786
|
||||
ld a, [wFlyDestination]
|
||||
push af
|
||||
|
|
@ -1059,7 +1059,7 @@ Function8786: ; 02:4786
|
|||
|
||||
Text87e4: ; 02:47e4
|
||||
db "の すみか@"
|
||||
|
||||
|
||||
Function87ea: ; 02:47ea
|
||||
ld a, [wFlyDestination]
|
||||
and $10
|
||||
|
|
@ -1195,7 +1195,7 @@ Function88b3: ; 02:48b3
|
|||
add hl, bc
|
||||
ld [hl], $08
|
||||
ret
|
||||
|
||||
|
||||
TownMapTilemap: ; 02:48da
|
||||
db $04, $05
|
||||
db $19, $01
|
||||
|
|
@ -1352,44 +1352,44 @@ TownMapTilemap: ; 02:48da
|
|||
db $10, $01
|
||||
db $04, $01
|
||||
db $00
|
||||
|
||||
|
||||
SECTION "engine/dumps/bank02.asm@Data8a17", ROMX
|
||||
|
||||
Data8a17: ; 02:4a17
|
||||
db $0b
|
||||
db $ff
|
||||
|
||||
|
||||
db $01, $0a, $03, $00, $02, $00, $05, $01, $03, $01, $04, $02, $0d, $02
|
||||
db $0d, $03, $0d, $05, $04, $02, $04, $06, $07
|
||||
db $ff
|
||||
|
||||
|
||||
db $05, $08
|
||||
db $ff
|
||||
|
||||
|
||||
db $06
|
||||
db $ff
|
||||
|
||||
|
||||
db $ff
|
||||
|
||||
|
||||
db $0e, $09, $06, $0e, $08, $0a, $0a
|
||||
db $08, $09, $00, $00, $09, $0c, $00
|
||||
db $ff
|
||||
|
||||
|
||||
db $ff
|
||||
|
||||
|
||||
db $ff
|
||||
|
||||
|
||||
db $0b
|
||||
db $ff
|
||||
|
||||
|
||||
db $ff
|
||||
|
||||
|
||||
db $04, $03
|
||||
db $ff
|
||||
|
||||
|
||||
db $04
|
||||
db $ff
|
||||
|
||||
|
||||
db $08, $08
|
||||
db $ff
|
||||
|
||||
|
|
@ -1557,7 +1557,7 @@ Function8bd5: ; 02:4bd5
|
|||
ld bc, $8102
|
||||
call PrintNumber
|
||||
ret
|
||||
|
||||
|
||||
Function8bfd: ; 02:4bfd
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
|
|
@ -1579,7 +1579,7 @@ Table8c0c: ; 02:4c0c
|
|||
dw Function8d62
|
||||
dw Function8e6c
|
||||
dw Function8e9e
|
||||
|
||||
|
||||
Function8c1c: ; 02:4c1c
|
||||
ld hl, wJumptableIndex
|
||||
inc [hl]
|
||||
|
|
@ -1656,7 +1656,7 @@ DrawMap: ; 02:4c7c
|
|||
add $18
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
Function8cab: ; 02:4cab
|
||||
ld hl, hJoyDown
|
||||
ld a, [hl]
|
||||
|
|
@ -1665,7 +1665,7 @@ Function8cab: ; 02:4cab
|
|||
xor a
|
||||
ld [wJumptableIndex], a
|
||||
ret
|
||||
|
||||
|
||||
Function8cb7: ; 02:4cb7
|
||||
call Function8c1c
|
||||
call Function8eaa
|
||||
|
|
@ -1740,7 +1740,7 @@ Function8cb7: ; 02:4cb7
|
|||
xor a
|
||||
ld [wcb61], a
|
||||
ret
|
||||
|
||||
|
||||
Function8d62: ; 02:4d62
|
||||
ld hl, hJoyDown
|
||||
ld a, [hl]
|
||||
|
|
@ -1749,7 +1749,7 @@ Function8d62: ; 02:4d62
|
|||
xor a
|
||||
ld [wJumptableIndex], a
|
||||
ret
|
||||
|
||||
|
||||
Function8d6e: ; 02:4d6e
|
||||
ld hl, wcb61
|
||||
ld e, [hl]
|
||||
|
|
@ -1886,12 +1886,12 @@ Function8dfd: ; 02:4dfd
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
Function8e2c: ; 02:4e2c
|
||||
pop bc
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
Table8e2f: ; 02:4e2f
|
||||
dw Data8e4d
|
||||
dw Data8e4d
|
||||
|
|
@ -1913,21 +1913,21 @@ Data8e4d: ; 02:4e4d
|
|||
db $10, $02
|
||||
dw Function8e66
|
||||
dw Function8e66
|
||||
|
||||
|
||||
db $20, $05
|
||||
dw Function8e66
|
||||
dw Function8e66
|
||||
|
||||
|
||||
db $40, $07
|
||||
dw Function8e66
|
||||
dw Function8e66
|
||||
|
||||
|
||||
db $48, $09
|
||||
dw Function8e66
|
||||
dw Function8e66
|
||||
|
||||
|
||||
db $00
|
||||
|
||||
|
||||
Function8e66: ; 02:4e66
|
||||
ld d, $00
|
||||
call PlayMusic
|
||||
|
|
@ -2012,7 +2012,7 @@ Function8eca: ; 02:4eca
|
|||
|
||||
Data8ef5: ; 02:4ef5
|
||||
db $00, $18, $30, $00
|
||||
|
||||
|
||||
Function8ef9: ; 02:4ef9
|
||||
dec c
|
||||
dec c
|
||||
|
|
@ -2079,7 +2079,7 @@ SetTitleBGDecorationBorder: ; 02:51d2
|
|||
ld b, $54
|
||||
call Function91ef
|
||||
ret
|
||||
|
||||
|
||||
Function91ef: ; 02:51ef
|
||||
xor a
|
||||
ld c, $14
|
||||
|
|
@ -2282,10 +2282,10 @@ Function93bb: ; 02:53bb
|
|||
Table93cc: ; 02:53cc
|
||||
dw Data986c
|
||||
dw Data996c
|
||||
|
||||
|
||||
dw Data987c
|
||||
dw Data998c
|
||||
|
||||
|
||||
dw Data986c
|
||||
dw Data999c
|
||||
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ Functionca68: ; 03:4a68
|
|||
pop hl
|
||||
.sub_caa0
|
||||
ret
|
||||
|
||||
|
||||
|
||||
SECTION "engine/dumps/bank03.asm@Functiond41d", ROMX
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ Textd491: ; 03:5491
|
|||
text "それは とても たいせつなモノです"
|
||||
line "すてることは できません!"
|
||||
prompt
|
||||
|
||||
|
||||
Functiond4b2: ; 03:54b2
|
||||
push hl
|
||||
push bc
|
||||
|
|
@ -385,7 +385,7 @@ Functiond4e6: ; 03:54e6
|
|||
ret
|
||||
.sub_d4f8
|
||||
jr Functiond505
|
||||
|
||||
|
||||
Functiond4fa: ; 03:54fa
|
||||
call Functiond51e
|
||||
ld hl, Function8261
|
||||
|
|
@ -2239,7 +2239,7 @@ Texte1c3: ; 03:61c3
|
|||
text "に"
|
||||
line "なまえを つけますか?"
|
||||
done
|
||||
|
||||
|
||||
Functione1d5: ; 03:61d5
|
||||
call Functione284
|
||||
ret c
|
||||
|
|
@ -2272,11 +2272,11 @@ Functione1d5: ; 03:61d5
|
|||
call LoadFontExtra
|
||||
call CloseWindow
|
||||
ret
|
||||
|
||||
|
||||
Texte224: ; 03:6224
|
||||
text "なんに するん?"
|
||||
done
|
||||
|
||||
|
||||
Datae22e: ; 03:622e
|
||||
db $40, $00, $00, $11, $0e
|
||||
dw Datae236
|
||||
|
|
@ -2287,10 +2287,10 @@ Datae236: ; 03:6236
|
|||
dw Datae27c
|
||||
db $8a, $1f
|
||||
dw Texte23e
|
||||
|
||||
|
||||
Texte23e: ; 03:623e
|
||||
db "#の ようすをみる@"
|
||||
|
||||
|
||||
Texte248: ; 03:6248
|
||||
db "#を つれていく@"
|
||||
|
||||
|
|
@ -2305,7 +2305,7 @@ Texte260: ; 03:6260
|
|||
|
||||
Texte26a: ; 03:626a
|
||||
db "さようなら@"
|
||||
|
||||
|
||||
Tablee270: ; 03:6270
|
||||
dw Functione5c5
|
||||
dw Functione31b
|
||||
|
|
@ -2342,7 +2342,7 @@ Functione2a6: ; 03:62a6
|
|||
.sub_e2ae
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
Functione2b0: ; 03:72b0
|
||||
ld a, [wPartyCount]
|
||||
and a
|
||||
|
|
@ -2516,7 +2516,7 @@ Datae414: ; 03:6414
|
|||
db $38, $64, $00, $00, $00, $03, $9d, $64
|
||||
db $0a, $01, $02, $03, $04, $05, $06, $07
|
||||
db $08, $09, $0a, $ff
|
||||
|
||||
|
||||
Functione438: ; 03:6438
|
||||
push de
|
||||
ld a, [wMenuSelection]
|
||||
|
|
@ -2539,7 +2539,7 @@ Functione438: ; 03:6438
|
|||
pop hl
|
||||
call PlaceString
|
||||
ret
|
||||
|
||||
|
||||
Texte461: ; 03:6461
|
||||
db "・.01 @"
|
||||
db "・.02 @"
|
||||
|
|
@ -2551,7 +2551,7 @@ Texte461: ; 03:6461
|
|||
db "・.08 @"
|
||||
db "・.09 @"
|
||||
db "・.10 @"
|
||||
|
||||
|
||||
Functione49d: ; 03:649d
|
||||
ld h, d
|
||||
ld l, e
|
||||
|
|
@ -2569,7 +2569,7 @@ Functione49d: ; 03:649d
|
|||
ld de, Texte4ca
|
||||
call PlaceString
|
||||
ret
|
||||
|
||||
|
||||
Texte4bf: ; 03:64bf
|
||||
db "あずかっている#"
|
||||
next " @"
|
||||
|
|
@ -2594,7 +2594,7 @@ Functione4ce: ; 03:64ce
|
|||
ld a, [hl]
|
||||
call CloseSRAM
|
||||
ret
|
||||
|
||||
|
||||
Datae4e7: ; 03:64e7
|
||||
db $02, $00, $a0
|
||||
db $02, $48, $a5
|
||||
|
|
@ -2643,7 +2643,7 @@ Functione53e: ; 03:653e
|
|||
Functione54d: ; 03:654d
|
||||
ld a, [wMenuSelection]
|
||||
ret
|
||||
|
||||
|
||||
Texte551: ; 03:6551
|
||||
text "# ボックスを かえると"
|
||||
line "どうじに レポートが かかれます"
|
||||
|
|
@ -2672,7 +2672,7 @@ Datae5a5: ; 03:65a5
|
|||
db $40, $06, $00, $0e, $0e
|
||||
dw Datae5ad
|
||||
db $01
|
||||
|
||||
|
||||
Datae5ad: ; 03:65ad
|
||||
db $80, $03
|
||||
db "ボックスきりかえ@"
|
||||
|
|
@ -2801,38 +2801,38 @@ Functione6a4: ; 03:66a4
|
|||
Texte6d0: ; 03:66d0
|
||||
text "#を えらんだ!"
|
||||
prompt
|
||||
|
||||
|
||||
Tablee6da: ; 03:66da
|
||||
dw Datae6e0
|
||||
dw wcd3c
|
||||
dw wcd46
|
||||
|
||||
|
||||
Datae6e0: ; 03:66e0
|
||||
db $40, $03, $05, $0b, $12
|
||||
dw Datae6e8
|
||||
db $01
|
||||
|
||||
|
||||
Datae6e8: ; 03:e6e8
|
||||
db $00, $04
|
||||
|
||||
|
||||
Datae6ea: ; 03:66ea
|
||||
db $08, $01, $00, $aa, $d6, $09, $a6
|
||||
db $47, $09, $ba, $47, $00, $00, $00
|
||||
|
||||
|
||||
Datae6f8: ; 03:66f8
|
||||
dw Datae6fe
|
||||
dw wcd3c
|
||||
dw wcd46
|
||||
|
||||
|
||||
Datae6fe: ; 03:66fe
|
||||
db $40, $03, $05, $0b, $12
|
||||
dw Datae706
|
||||
db $01
|
||||
|
||||
|
||||
Datae706: ; 03:6706
|
||||
db $00, $04, $08, $01, $00, $83, $da, $09
|
||||
db $ab, $47, $09, $c1, $47, $00, $00, $00
|
||||
|
||||
|
||||
Datae716: ; 03:6716
|
||||
dw Datae71c
|
||||
dw wcd3c
|
||||
|
|
@ -2842,7 +2842,7 @@ Datae71c: ; 03:671c
|
|||
db $40, $04, $01, $0b, $13, $24, $67, $01
|
||||
db $00, $04, $00, $01, $00, $83, $da, $09
|
||||
db $d8, $47, $00, $00, $00, $00, $00, $00
|
||||
|
||||
|
||||
Function6734: ; 03:6734
|
||||
call RefreshScreen
|
||||
call LowVolume
|
||||
|
|
@ -3423,11 +3423,11 @@ Textebdc: ; 03:6bdc
|
|||
text "おしい!"
|
||||
line "あと ちょっとの ところだったのに!"
|
||||
prompt
|
||||
|
||||
|
||||
Textebf5: ; 03:6bf5
|
||||
text "やったー!"
|
||||
line "@"
|
||||
|
||||
|
||||
Textebfd: ; 03:6bfd
|
||||
text_from_ram wBattleMonNickname
|
||||
text "を つかまえたぞ!@"
|
||||
|
|
@ -3538,7 +3538,7 @@ Functionecd5: ; 03:6cd5
|
|||
call PlayMapMusic
|
||||
call Function1fea
|
||||
ret
|
||||
|
||||
|
||||
Functioned00: ; 03:6d00
|
||||
ld a, [wBattleMode]
|
||||
and a
|
||||
|
|
@ -3651,7 +3651,7 @@ Textedd2: ; 03:6dd2
|
|||
text "の"
|
||||
line "きそ ポイントが あがった!"
|
||||
prompt
|
||||
|
||||
|
||||
|
||||
|
||||
Textede7: ; 03:6de7
|
||||
|
|
@ -3664,7 +3664,7 @@ Tableedf7: ; 03:6df7
|
|||
dw Textee0f
|
||||
dw Textee17
|
||||
dw Textee1c
|
||||
|
||||
|
||||
Textee01: ; 03:6e01
|
||||
db "たいりょく@"
|
||||
|
||||
|
|
@ -3679,7 +3679,7 @@ Textee17: ; 03:6e17
|
|||
|
||||
Textee1c: ; 03:6e1c
|
||||
db "とくしゅのうりょく@"
|
||||
|
||||
|
||||
Functionee26: ; 03:6e26
|
||||
ld a, [wCurItem]
|
||||
ld hl, Dataee38
|
||||
|
|
@ -3694,14 +3694,14 @@ Functionee26: ; 03:6e26
|
|||
ld c, a
|
||||
ld b, $00
|
||||
ret
|
||||
|
||||
|
||||
Dataee38: ; 03:6e38
|
||||
db $1a, $00
|
||||
db $1b, $02
|
||||
db $1c, $04
|
||||
db $1d, $06
|
||||
db $1f, $08
|
||||
|
||||
|
||||
Functionee42: ; 03:6e42
|
||||
ld a, [wBattleMode]
|
||||
and a
|
||||
|
|
@ -3865,7 +3865,7 @@ Functionef17: ; 03:6f17
|
|||
ld c, [hl]
|
||||
pop hl
|
||||
ret
|
||||
|
||||
|
||||
Dataef77: ; 03:6f77
|
||||
db $09, $f0, $08
|
||||
db $0a, $f1, $10
|
||||
|
|
@ -3874,7 +3874,7 @@ Dataef77: ; 03:6f77
|
|||
db $0d, $f4, $40
|
||||
db $26, $f6, $ff
|
||||
db $ff, $00, $00
|
||||
|
||||
|
||||
Functionef8c: ; 03:6f8c
|
||||
ld a, [wPartyCount]
|
||||
and a
|
||||
|
|
@ -3923,7 +3923,7 @@ Functionef8c: ; 03:6f8c
|
|||
|
||||
Functionefed: ; 03:6fed
|
||||
ret
|
||||
|
||||
|
||||
Functionefee: ; 03:6fee
|
||||
ld a, [wPartyCount]
|
||||
and a
|
||||
|
|
@ -4014,7 +4014,7 @@ Functionf05b: ; 03:705b
|
|||
call Functionf0d8
|
||||
call Functionf7a2
|
||||
jp Functionf104
|
||||
|
||||
|
||||
Functionf0af: ; 03:70af
|
||||
ret
|
||||
|
||||
|
|
@ -4175,7 +4175,7 @@ Functionf195: ; 03:7195
|
|||
ld a, [wHPBarNewHP]
|
||||
ld e, a
|
||||
ret
|
||||
|
||||
|
||||
Functionf19e: ; 03:719e
|
||||
ld a, $22
|
||||
call GetPartyParamLocation
|
||||
|
|
@ -4226,7 +4226,7 @@ Functionf1ce: ; 03:71ce
|
|||
ldh a, [hQuotient+2]
|
||||
ld e, a
|
||||
ret
|
||||
|
||||
|
||||
Functionf1e9: ; 03:71e9
|
||||
push hl
|
||||
ld a, [wCurItem]
|
||||
|
|
@ -4249,7 +4249,7 @@ Functionf1e9: ; 03:71e9
|
|||
ld d, [hl]
|
||||
pop hl
|
||||
ret
|
||||
|
||||
|
||||
Dataf203: ; 03:7203
|
||||
db $2e, $32, $00
|
||||
db $2f, $3c, $00
|
||||
|
|
@ -4258,7 +4258,7 @@ Dataf203: ; 03:7203
|
|||
db $11, $32, $00
|
||||
db $12, $14, $00
|
||||
db $ff, $00, $00
|
||||
|
||||
|
||||
Functionf218: ; 03:7218
|
||||
ld a, [wcd3c]
|
||||
dec a
|
||||
|
|
@ -4343,7 +4343,7 @@ Textf2a6: ; 03:72a6
|
|||
text "その#には "
|
||||
line "つかえません"
|
||||
done
|
||||
|
||||
|
||||
Functionf2b5: ; 03:72b5
|
||||
xor a
|
||||
ld [wFieldMoveSucceeded], a
|
||||
|
|
@ -4519,7 +4519,7 @@ Textf3da: ; 03:73da
|
|||
Textf3ec: ; 03:73ec
|
||||
text "<PLAYER>は"
|
||||
line "#のふえを ふいてみた!@"
|
||||
|
||||
|
||||
Functionf3fd: ; 03:73fd
|
||||
ld b, $08
|
||||
ld a, [wBattleMode]
|
||||
|
|
@ -4541,16 +4541,16 @@ Functionf413: ; 03:7413
|
|||
call MenuTextBox
|
||||
call CloseWindow
|
||||
ret
|
||||
|
||||
|
||||
Textf424: ; 03:7424
|
||||
text "あなたの コイン"
|
||||
line "@"
|
||||
|
||||
|
||||
Textf42f: ; 03:742f
|
||||
deciram wd15b, 2, 4
|
||||
text "まい"
|
||||
prompt
|
||||
|
||||
|
||||
Functionf437: ; 03:7437
|
||||
call Functionf49f
|
||||
jp c, Functionf7dd
|
||||
|
|
@ -4585,7 +4585,7 @@ Functionf444: ; 03:7444
|
|||
|
||||
Dataf46a: ; 03:746a
|
||||
db $0a, $9d, $0a, $47
|
||||
|
||||
|
||||
Functionf46e: ; 03:746e
|
||||
call Functionf49f
|
||||
jp c, Functionf7dd
|
||||
|
|
@ -5033,7 +5033,7 @@ Functionf7f4: ; 03:77f4
|
|||
xor a
|
||||
ld [wFieldMoveSucceeded], a
|
||||
jp PrintText
|
||||
|
||||
|
||||
Textf7fb: ; 03:77fb
|
||||
text "オーキドの ことば<⋯⋯>"
|
||||
line "<PLAYER>よ! こういうものには"
|
||||
|
|
@ -5051,7 +5051,7 @@ Textf832: ; 03:7832
|
|||
Textf841: ; 03:7841
|
||||
text "つかっても こうかがないよ"
|
||||
prompt
|
||||
|
||||
|
||||
Textf850: ; 03:7850
|
||||
text "<TRAINER>に ボールを はじかれた!"
|
||||
prompt
|
||||
|
|
@ -5105,7 +5105,7 @@ Textf8ea: ; 03:78ea
|
|||
text_from_ram wStringBuffer2
|
||||
text "から おりた"
|
||||
prompt
|
||||
|
||||
|
||||
SECTION "engine/dumps/bank03.asm@Functionf960", ROMX
|
||||
|
||||
Functionf960: ; 03:7960
|
||||
|
|
@ -5168,7 +5168,7 @@ Functionf960: ; 03:7960
|
|||
Functionf9c9: ; 03:79c9
|
||||
ld a, [wWhichPokemon]
|
||||
call AddNTimes
|
||||
|
||||
|
||||
Functionf9cf: ; 03:79cf
|
||||
ld a, [w2DMenuDataEnd]
|
||||
ld c, a
|
||||
|
|
@ -5212,7 +5212,7 @@ Functionf9d9: ; 03:79d9
|
|||
ld c, [hl]
|
||||
ld e, $01
|
||||
ret
|
||||
|
||||
|
||||
Datafa08: ; 03:7a08
|
||||
dbw $00, Datafa6c
|
||||
dbw $01, Datafa6c
|
||||
|
|
@ -5248,7 +5248,7 @@ Datafa08: ; 03:7a08
|
|||
dbw $e3, Datafaa2
|
||||
dbw $e4, Datafaa2
|
||||
db $ff
|
||||
|
||||
|
||||
Datafa6c: ; 03:7a6c
|
||||
db $02, $0f, $18, $0f, $47
|
||||
|
||||
|
|
@ -5450,7 +5450,7 @@ Datafc30: ; 03:7c30
|
|||
db $40, $04, $0d, $0b, $13
|
||||
dw Datafc38
|
||||
db $01
|
||||
|
||||
|
||||
Datafc38: ; 03:7c38
|
||||
db $80, $03
|
||||
db "あずける@"
|
||||
|
|
@ -5620,12 +5620,12 @@ Textfdc7: ; 03:7dc7
|
|||
text_from_ram wStringBuffer1
|
||||
text "は すでに"
|
||||
line "@"
|
||||
|
||||
|
||||
Textfdd2: ; 03:7dd2
|
||||
text_from_ram wStringBuffer2
|
||||
text "を おぼえています"
|
||||
prompt
|
||||
|
||||
|
||||
Textfde0: ; 03:7de0
|
||||
db "います"
|
||||
prompt
|
||||
|
|
@ -5656,7 +5656,7 @@ Functionfdf3: ; 03:7df3
|
|||
call PrintText
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
Textfe0a: ; 03:7e0a
|
||||
text_from_ram wStringBuffer1
|
||||
text "は すでに"
|
||||
|
|
@ -5666,7 +5666,7 @@ Textfe15: ; 03:7e15
|
|||
text_from_ram wStringBuffer2
|
||||
text "を おぼえています"
|
||||
prompt
|
||||
|
||||
|
||||
Datafe23: ; 03:7e23
|
||||
db $e0, $22, $47, $24, $80, $a3, $01, $50
|
||||
db $02, $85, $b0, $09, $35, $51, $2c, $08
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ CutFunction: ; 03:4fab
|
|||
ld a, [wFieldMoveScriptID]
|
||||
ld hl, .CutScriptTable
|
||||
jp CallJumptable
|
||||
|
||||
|
||||
.CutScriptTable ; 03:4fc5
|
||||
init_script_table
|
||||
add_script TryCut
|
||||
|
|
@ -79,7 +79,7 @@ GetCutReplacementBlock: ; 03:5015
|
|||
jr nz, .loop
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
CutReplacementBlocks: ; 03:5023
|
||||
; replacement block, facing block
|
||||
db $30, $25
|
||||
|
|
@ -109,7 +109,7 @@ CheckCuttableTile: ; 03:502c
|
|||
set_script FailCut
|
||||
xor a
|
||||
ret
|
||||
|
||||
|
||||
IsCuttableTile: ; 03:5057
|
||||
ld hl, CuttableTiles
|
||||
ld c, a
|
||||
|
|
@ -121,7 +121,7 @@ IsCuttableTile: ; 03:5057
|
|||
jr nz, .loop
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
CuttableTiles: ; 03:5064
|
||||
db $81
|
||||
db $82
|
||||
|
|
@ -135,7 +135,7 @@ FailCut: ; 03:5069
|
|||
scf
|
||||
ld a, SCRIPT_FAIL
|
||||
ret
|
||||
|
||||
|
||||
Text_CantUseCutHere: ; 03:5073
|
||||
text "ここでは つかえません"
|
||||
prompt
|
||||
|
|
@ -171,12 +171,12 @@ CutScript: ; 03:508C
|
|||
call Function1fea
|
||||
scf
|
||||
ret
|
||||
|
||||
Text_CutItDown ; 03:50c4
|
||||
|
||||
Text_CutItDown: ; 03:50c4
|
||||
text_from_ram wStringBuffer2
|
||||
text " は "
|
||||
line "くさかりを つかった!"
|
||||
prompt
|
||||
prompt
|
||||
|
||||
SurfFunction: ; 03:50d8
|
||||
call .ResetScriptID
|
||||
|
|
@ -236,7 +236,7 @@ Text_CantSurfHere: ; 03:5133
|
|||
text "ここでは のることが"
|
||||
next "できません"
|
||||
prompt
|
||||
|
||||
|
||||
SurfScript: ; 03:5145
|
||||
call RefreshScreen
|
||||
ld hl, wPartyMonNicknames
|
||||
|
|
@ -262,7 +262,7 @@ Text_UsedSurf: ; 03:5171
|
|||
text_from_ram wPlayerName
|
||||
text "を のせた!"
|
||||
prompt
|
||||
|
||||
|
||||
MovePlayerIntoWater: ; 03:5185
|
||||
call InitMovementBuffer
|
||||
call .get_movement_direction
|
||||
|
|
@ -377,7 +377,7 @@ FlyScript: ; 03:5254
|
|||
ldh [hMapEntryMethod], a
|
||||
jpab Functionfcc24
|
||||
|
||||
|
||||
|
||||
DigFunction: ; 03:5260
|
||||
call .ResetScriptID
|
||||
.next
|
||||
|
|
@ -393,7 +393,7 @@ DigFunction: ; 03:5260
|
|||
and $FF - SCRIPT_FINISHED_MASK
|
||||
ld [wFieldMoveSucceeded], a
|
||||
ret
|
||||
|
||||
|
||||
.ResetScriptID
|
||||
xor a
|
||||
ld [wFieldMoveScriptID], a
|
||||
|
|
@ -433,7 +433,7 @@ FailDig: ; 03:52a8
|
|||
Text_CantUseDigHere: ; 03:52b4
|
||||
text "ここでは つかえません!"
|
||||
prompt
|
||||
|
||||
|
||||
DigScript: ; 03:52c2
|
||||
ld hl, wDigWarpNumber
|
||||
ld de, wNextWarp
|
||||
|
|
@ -445,7 +445,7 @@ DigScript: ; 03:52c2
|
|||
|
||||
EmptyFunctiond2da: ; 03:52da
|
||||
ret
|
||||
|
||||
|
||||
TeleportFunction: ; 03:52db
|
||||
xor a
|
||||
ld [wFieldMoveScriptID], a
|
||||
|
|
@ -462,7 +462,7 @@ TeleportFunction: ; 03:52db
|
|||
and $FF - SCRIPT_FINISHED_MASK
|
||||
ld [wFieldMoveSucceeded], a
|
||||
ret
|
||||
|
||||
|
||||
.TeleportScriptTable
|
||||
init_script_table
|
||||
add_script TryTeleport
|
||||
|
|
@ -481,8 +481,8 @@ TryTeleport: ; 03:52fc
|
|||
.success
|
||||
set_script CheckIfSpawnPoint
|
||||
ret
|
||||
|
||||
CheckIfSpawnPoint ; 03:5313
|
||||
|
||||
CheckIfSpawnPoint: ; 03:5313
|
||||
ld a, [wLastSpawnMapGroup]
|
||||
ld d, a
|
||||
ld a, [wLastSpawnMapNumber]
|
||||
|
|
@ -535,7 +535,7 @@ TeleportScript: ; 03:5375
|
|||
ld a, MAPSETUP_TELEPORT
|
||||
ldh [hMapEntryMethod], a
|
||||
jpab Functionfcc24
|
||||
|
||||
|
||||
Text_ReturnToLastMonCenter: ; 03:5395
|
||||
text "さいごに たちよった"
|
||||
line "#センターにもどります"
|
||||
|
|
|
|||
232
engine/intro.asm
232
engine/intro.asm
|
|
@ -19,7 +19,7 @@ DemoStart:: ; 558D
|
|||
ldh [rOBP0], a
|
||||
call DemoSetUpPlayer
|
||||
jp IntroCleanup
|
||||
|
||||
|
||||
GameStart:: ; 55BB
|
||||
ld de, OakPic
|
||||
lb bc, BANK(OakPic), $00
|
||||
|
|
@ -94,7 +94,7 @@ GameStart:: ; 55BB
|
|||
call Bankswitch
|
||||
ld c, $04
|
||||
call DelayFrames
|
||||
|
||||
|
||||
IntroCleanup:: ; 568E
|
||||
ld de, ShrinkPic1
|
||||
lb bc, BANK(ShrinkPic1), $00
|
||||
|
|
@ -122,7 +122,7 @@ IntroCleanup:: ; 568E
|
|||
ld a, $00
|
||||
ld [wd638], a
|
||||
ld [wd637], a
|
||||
|
||||
|
||||
OverworldStart::
|
||||
call SetUpGameEntry
|
||||
ld hl, wDebugFlags
|
||||
|
|
@ -131,7 +131,7 @@ OverworldStart::
|
|||
ld hl, wd4a9
|
||||
set 0, [hl]
|
||||
jp Function2a85
|
||||
|
||||
|
||||
SetUpGameEntry:: ; 56E8
|
||||
ld a, $04
|
||||
ld [wd65e], a
|
||||
|
|
@ -149,16 +149,16 @@ SetUpGameEntry:: ; 56E8
|
|||
ld bc, wd65e - wMapGroup
|
||||
call CopyBytes
|
||||
ret
|
||||
|
||||
|
||||
GameStartPlacement:: ; 570D
|
||||
db $01 ; map group
|
||||
db $01 ; map group
|
||||
db MAP_PLAYER_HOUSE_2F ; map
|
||||
dwcoord 15, 45 ; screen anchor
|
||||
db $04 ; metatile x
|
||||
db $04 ; metatile y
|
||||
db $00 ; in-metatile x
|
||||
db $01 ; in-metatile y
|
||||
|
||||
|
||||
DebugSetUpPlayer:: ; 5715
|
||||
call SetPlayerNamesDebug
|
||||
ld a, $0F
|
||||
|
|
@ -184,17 +184,17 @@ DebugSetUpPlayer:: ; 5715
|
|||
ld [hl], $01
|
||||
call Function40fd
|
||||
ret
|
||||
|
||||
|
||||
DebugFillPokedex:: ; 5755
|
||||
ld b, $1F
|
||||
ld a, $FF
|
||||
.loop
|
||||
ld [hl+], a
|
||||
dec b
|
||||
jr nz, .loop
|
||||
jr nz, .loop
|
||||
ld [hl], $07
|
||||
ret
|
||||
|
||||
|
||||
FillBagWithList:: ; 5760
|
||||
ld hl, wNumBagItems
|
||||
.loop
|
||||
|
|
@ -203,37 +203,37 @@ FillBagWithList:: ; 5760
|
|||
jr z, .yump
|
||||
ld [wCurItem], a
|
||||
inc de
|
||||
ld a, [de]
|
||||
ld a, [de]
|
||||
inc de
|
||||
ld [wItemQuantity], a
|
||||
call ReceiveItem
|
||||
jr .loop
|
||||
.yump
|
||||
ret
|
||||
|
||||
|
||||
DebugBagItems:: ; 5777
|
||||
db ITEM_IMPORTANT_BAG, $01
|
||||
db ITEM_BAG, $01
|
||||
db ITEM_TM_HOLDER, $01
|
||||
db ITEM_BALL_HOLDER, $01
|
||||
db ITEM_BICYCLE, $01
|
||||
db ITEM_MAIL, $06
|
||||
db ITEM_ULTRA_BALL, $1E
|
||||
db ITEM_POKE_BALL, $63
|
||||
db ITEM_POTION, $1E
|
||||
db ITEM_RARE_CANDY, $14
|
||||
db ITEM_MOON_STONE, $63
|
||||
db ITEM_FULL_HEAL, $63
|
||||
db ITEM_PROTEIN, $63
|
||||
db ITEM_QUICK_NEEDLE, $63
|
||||
db ITEM_SNAKESKIN, $63
|
||||
db ITEM_KINGS_ROCK, $63
|
||||
db ITEM_FLEE_FEATHER, $63
|
||||
db ITEM_FOCUS_ORB, $63
|
||||
db ITEM_SHARP_SCYTHE, $63
|
||||
db ITEM_DETECT_ORB, $63
|
||||
db ITEM_IMPORTANT_BAG, $01
|
||||
db ITEM_BAG, $01
|
||||
db ITEM_TM_HOLDER, $01
|
||||
db ITEM_BALL_HOLDER, $01
|
||||
db ITEM_BICYCLE, $01
|
||||
db ITEM_MAIL, $06
|
||||
db ITEM_ULTRA_BALL, $1E
|
||||
db ITEM_POKE_BALL, $63
|
||||
db ITEM_POTION, $1E
|
||||
db ITEM_RARE_CANDY, $14
|
||||
db ITEM_MOON_STONE, $63
|
||||
db ITEM_FULL_HEAL, $63
|
||||
db ITEM_PROTEIN, $63
|
||||
db ITEM_QUICK_NEEDLE, $63
|
||||
db ITEM_SNAKESKIN, $63
|
||||
db ITEM_KINGS_ROCK, $63
|
||||
db ITEM_FLEE_FEATHER, $63
|
||||
db ITEM_FOCUS_ORB, $63
|
||||
db ITEM_SHARP_SCYTHE, $63
|
||||
db ITEM_DETECT_ORB, $63
|
||||
db $FF
|
||||
|
||||
|
||||
GiveRandomPokemon:: ; 57A0
|
||||
and a
|
||||
ret z
|
||||
|
|
@ -246,9 +246,9 @@ GiveRandomPokemon:: ; 57A0
|
|||
dec a
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
GiveRandomJohto:: ; 57B0
|
||||
.loop
|
||||
.loop
|
||||
call Random
|
||||
and $03
|
||||
jr z, .loop
|
||||
|
|
@ -262,7 +262,7 @@ GiveRandomJohto:: ; 57B0
|
|||
ld a, $8D
|
||||
ld [wPartyMon1 + 1], a
|
||||
ret
|
||||
|
||||
|
||||
GiveKantoStarters:: ; 57C8
|
||||
ld a, $03
|
||||
ld b, $20
|
||||
|
|
@ -274,7 +274,7 @@ GiveKantoStarters:: ; 57C8
|
|||
ld b, $24
|
||||
call GivePokemon
|
||||
ret
|
||||
|
||||
|
||||
GivePokemon:: ; 57DE
|
||||
ld [wMonDexIndex], a
|
||||
ld a, b
|
||||
|
|
@ -282,7 +282,7 @@ GivePokemon:: ; 57DE
|
|||
ld a, $10
|
||||
call Predef
|
||||
ret
|
||||
|
||||
|
||||
AddRandomPokemonToBox: ; 57EB
|
||||
and a
|
||||
ret z
|
||||
|
|
@ -302,9 +302,9 @@ AddRandomPokemonToBox: ; 57EB
|
|||
dec a
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
RandomUnder246:: ; 5818
|
||||
.loop
|
||||
.loop
|
||||
call Random
|
||||
and a
|
||||
jr z, .loop
|
||||
|
|
@ -321,7 +321,7 @@ FillTMs:: ; 5823
|
|||
dec b
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
DebugGiveKeyItems:: ; 582F
|
||||
ld hl, DebugKeyItemsList
|
||||
ld de, wKeyItems
|
||||
|
|
@ -343,7 +343,7 @@ DebugKeyItemsList:: ; 5844
|
|||
db ITEM_BAG
|
||||
db ITEM_BICYCLE
|
||||
db $FF
|
||||
|
||||
|
||||
DemoSetUpPlayer:: ; 5849
|
||||
ld hl, wPlayerName
|
||||
ld de, DemoPlayerName
|
||||
|
|
@ -356,130 +356,130 @@ DemoSetUpPlayer:: ; 5849
|
|||
call FillBagWithList
|
||||
call GiveRandomJohto
|
||||
ret
|
||||
|
||||
|
||||
DemoItemList:: ; 5868
|
||||
db ITEM_POKE_BALL, $05
|
||||
db ITEM_POTION, $0A
|
||||
db ITEM_FULL_HEAL, $0A
|
||||
db ITEM_STIMULUS_ORB, $01
|
||||
db ITEM_FOCUS_ORB, $01
|
||||
db ITEM_POKE_BALL, $05
|
||||
db ITEM_POTION, $0A
|
||||
db ITEM_FULL_HEAL, $0A
|
||||
db ITEM_STIMULUS_ORB, $01
|
||||
db ITEM_FOCUS_ORB, $01
|
||||
db $FF
|
||||
|
||||
|
||||
DemoPlayerName:: ; 5873
|
||||
db "サトシ@"
|
||||
|
||||
|
||||
DemoRivalName:: ; 5877
|
||||
db "シゲル@"
|
||||
|
||||
|
||||
OakSpeechDemo:: ; 587B
|
||||
text "ようこそ"
|
||||
text "ようこそ"
|
||||
line "ポケット モンスターの せかいへ!"
|
||||
cont "ごぞんじ わしが オーキドじゃ!"
|
||||
|
||||
|
||||
para "きょう きみに きてもらったのは"
|
||||
line "ほかでもない"
|
||||
cont "あたらしい ずかんづくりを"
|
||||
cont "てつだって ほしいのじゃ!"
|
||||
|
||||
|
||||
para "もちろん"
|
||||
line "きみの パートナーとなる ポケモンと"
|
||||
cont "りュックは ようい しておる"
|
||||
|
||||
|
||||
para "りュックの なかには"
|
||||
line "キズぐすりと"
|
||||
cont "モンスターボールが"
|
||||
cont "はいっておるから あんしんじゃ!"
|
||||
|
||||
|
||||
para "すでに きみの ライバルは"
|
||||
line "しゅっぱつ しとる"
|
||||
|
||||
|
||||
para "まけないよう がんばって くれい!"
|
||||
prompt
|
||||
|
||||
|
||||
OakSpeech1:: ; 5956
|
||||
text "いやあ またせた!"
|
||||
|
||||
|
||||
para "ポケット モンスターの せかいへ"
|
||||
line "ようこそ!"
|
||||
|
||||
|
||||
para "わたしの なまえは オーキド"
|
||||
|
||||
|
||||
para "みんなからは # はかせと"
|
||||
line "したわれて おるよ"
|
||||
prompt
|
||||
|
||||
|
||||
OakSpeech2:: ; 599F
|
||||
text "きみも もちろん"
|
||||
line "しっているとは おもうが"
|
||||
|
||||
|
||||
para "この せかいには"
|
||||
line "ポケット モンスターと よばれる"
|
||||
cont "いきもの たちが"
|
||||
cont "いたるところに すんでいる!"
|
||||
prompt
|
||||
|
||||
|
||||
OakSpeech3:: ; 59E8
|
||||
text "その # という いきものを"
|
||||
line "ひとは ぺットに したり"
|
||||
cont "しょうぶに つかったり"
|
||||
cont "そして・・・"
|
||||
|
||||
|
||||
para "わたしは この #の"
|
||||
line "けんきゅうを してる というわけだ"
|
||||
prompt
|
||||
|
||||
|
||||
OakSpeech4:: ; 5A35
|
||||
text "では はじめに きみの なまえを"
|
||||
line "おしえて もらおう!"
|
||||
prompt
|
||||
|
||||
|
||||
OakSpeech5:: ; 5A52
|
||||
text "そして この しょうねんは"
|
||||
line "きみの おさななじみであり"
|
||||
cont"ライバルである"
|
||||
|
||||
|
||||
para "・・・えーと?"
|
||||
line "なまえは なんて いったかな?"
|
||||
prompt
|
||||
|
||||
|
||||
OakSpeech6:: ; 5A8F
|
||||
text "さて きみの きねんすべき"
|
||||
line "たびだちのひを"
|
||||
cont "きろくしておこう!"
|
||||
|
||||
|
||||
para "じかんも なるべく せいかくにな!"
|
||||
prompt
|
||||
|
||||
|
||||
OakSpeech7:: ; 5AC2
|
||||
text "<PLAYER>!"
|
||||
|
||||
|
||||
para "いよいよ これから"
|
||||
line "きみの ものがたりの はじまりだ!"
|
||||
|
||||
|
||||
para "ゆめと ぼうけんと!"
|
||||
line "ポケット モンスターの せかいへ!"
|
||||
|
||||
|
||||
para "レッツ ゴー!"
|
||||
done
|
||||
|
||||
|
||||
SetPlayerNamesDebug:: ; 5B07
|
||||
ld hl, DebugPlayerName
|
||||
ld de, wPlayerName
|
||||
call CopyNameDebug
|
||||
ld hl, DebugRivalName
|
||||
ld de, wRivalName
|
||||
|
||||
|
||||
CopyNameDebug:
|
||||
ld bc, PLAYER_NAME_LENGTH
|
||||
call CopyBytes
|
||||
ret
|
||||
|
||||
|
||||
DebugPlayerName: ; 5B1D
|
||||
db "コージ@"
|
||||
|
||||
|
||||
DebugRivalName: ; 5B21
|
||||
db "レッド@"
|
||||
|
||||
|
||||
ChoosePlayerName:: ; 5B25
|
||||
call PanPortraitRight
|
||||
ld hl, PlayerNameMenuHeader
|
||||
|
|
@ -490,7 +490,7 @@ ChoosePlayerName:: ; 5B25
|
|||
ld de, wPlayerName
|
||||
call SaveCustomName
|
||||
jr .farjump
|
||||
|
||||
|
||||
.loop
|
||||
ld b, $01
|
||||
ld de, wPlayerName
|
||||
|
|
@ -498,7 +498,7 @@ ChoosePlayerName:: ; 5B25
|
|||
ld a, [wPlayerName]
|
||||
cp "@"
|
||||
jr z, .loop
|
||||
|
||||
|
||||
call GBFadeOutToWhite
|
||||
call ClearTileMap
|
||||
call LoadFontExtra
|
||||
|
|
@ -511,20 +511,20 @@ ChoosePlayerName:: ; 5B25
|
|||
ld hl, ChoosePlayerNameEndText
|
||||
call PrintText
|
||||
ret
|
||||
|
||||
|
||||
ChoosePlayerNameEndText: ; 5B6F
|
||||
text "ふむ・・・"
|
||||
line "<PLAYER> と いうんだな!"
|
||||
prompt
|
||||
|
||||
|
||||
PlayerNameMenuHeader: ; 5B81
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 00, 00, 10, 11
|
||||
dw PlayerNameMenuData
|
||||
db 01 ; initial selection
|
||||
|
||||
PlayerNameMenuData; 5B89
|
||||
db STATICMENU_CURSOR | STATICMENU_PLACE_TITLE | STATICMENU_DISABLE_B
|
||||
|
||||
PlayerNameMenuData: ; 5B89
|
||||
db STATICMENU_CURSOR | STATICMENU_PLACE_TITLE | STATICMENU_DISABLE_B
|
||||
db 04 ; items
|
||||
db "じぶんできめる@"
|
||||
db "ゴールド@"
|
||||
|
|
@ -543,7 +543,7 @@ ChooseRivalName:: ; 5BA9
|
|||
ld de, wRivalName
|
||||
call SaveCustomName
|
||||
jr .farjump
|
||||
|
||||
|
||||
.loop
|
||||
ld b, $02
|
||||
ld de, wRivalName
|
||||
|
|
@ -551,7 +551,7 @@ ChooseRivalName:: ; 5BA9
|
|||
ld a, [wRivalName]
|
||||
cp "@"
|
||||
jr z, .loop
|
||||
|
||||
|
||||
call GBFadeOutToWhite
|
||||
call ClearTileMap
|
||||
call LoadFontExtra
|
||||
|
|
@ -564,20 +564,20 @@ ChooseRivalName:: ; 5BA9
|
|||
ld hl, ChooseRivalNameEndText
|
||||
call PrintText
|
||||
ret
|
||||
|
||||
|
||||
ChooseRivalNameEndText: ; 5BF3
|
||||
text "そうか そうだったな"
|
||||
line "<RIVAL> という なまえだ"
|
||||
prompt
|
||||
|
||||
|
||||
RivalNameMenuHeader: ; 5C0A
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 00, 00, 10, 11
|
||||
dw RivalNameMenuData
|
||||
dw RivalNameMenuData
|
||||
db 01 ; initial selection
|
||||
|
||||
|
||||
RivalNameMenuData: ; 5C12
|
||||
db STATICMENU_CURSOR | STATICMENU_PLACE_TITLE | STATICMENU_DISABLE_B
|
||||
db STATICMENU_CURSOR | STATICMENU_PLACE_TITLE | STATICMENU_DISABLE_B
|
||||
db 04 ; items
|
||||
db "じぶんできめる@"
|
||||
db "シルバー@"
|
||||
|
|
@ -585,7 +585,7 @@ RivalNameMenuData: ; 5C12
|
|||
db "ジョン@"
|
||||
db 3
|
||||
db "なまえこうほ@"
|
||||
|
||||
|
||||
MomNamePrompt:: ; 5C31
|
||||
ld hl, MomNameMenuHeader
|
||||
call NamingWindow
|
||||
|
|
@ -595,7 +595,7 @@ MomNamePrompt:: ; 5C31
|
|||
ld de, wMomsName
|
||||
call SaveCustomName
|
||||
jr .escape
|
||||
|
||||
|
||||
.loop
|
||||
ld b, $03
|
||||
ld de, wMomsName
|
||||
|
|
@ -603,7 +603,7 @@ MomNamePrompt:: ; 5C31
|
|||
ld a, [wMomsName]
|
||||
cp "@"
|
||||
jr z, .loop
|
||||
|
||||
|
||||
call ClearPalettes
|
||||
call ClearTileMap
|
||||
callab Function140d9
|
||||
|
|
@ -612,15 +612,15 @@ MomNamePrompt:: ; 5C31
|
|||
call WaitBGMap
|
||||
.escape
|
||||
ret
|
||||
|
||||
|
||||
MomNameMenuHeader: ; 5C71
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 00, 00, 10, 11
|
||||
dw .MomNameMenuData
|
||||
db 01 ; initial selection
|
||||
|
||||
|
||||
.MomNameMenuData: ; 5C79
|
||||
db STATICMENU_CURSOR | STATICMENU_PLACE_TITLE | STATICMENU_DISABLE_B
|
||||
db STATICMENU_CURSOR | STATICMENU_PLACE_TITLE | STATICMENU_DISABLE_B
|
||||
db 04 ; items
|
||||
db "じぶんで きめる@"
|
||||
db "おかあさん@"
|
||||
|
|
@ -628,7 +628,7 @@ MomNameMenuHeader: ; 5C71
|
|||
db "かあちゃん@"
|
||||
db 3
|
||||
db "なまえこうほ@"
|
||||
|
||||
|
||||
NamingWindow:: ; 5C9B
|
||||
; loads the menu header put into hl
|
||||
call LoadMenuHeader
|
||||
|
|
@ -638,13 +638,13 @@ NamingWindow:: ; 5C9B
|
|||
call CopyNameFromMenu
|
||||
call CloseWindow
|
||||
ret
|
||||
|
||||
|
||||
SaveCustomName:: ; 5CAC
|
||||
ld hl, wStringBuffer2
|
||||
ld bc, PLAYER_NAME_LENGTH
|
||||
call CopyBytes
|
||||
ret
|
||||
|
||||
|
||||
PanPortraitRight:: ; 5CB6
|
||||
hlcoord 5, 4
|
||||
ld d, $06
|
||||
|
|
@ -665,7 +665,7 @@ PanPortraitRight:: ; 5CB6
|
|||
dec hl
|
||||
dec c
|
||||
jr nz, .innerLoop
|
||||
|
||||
|
||||
call WaitBGMap
|
||||
pop bc
|
||||
pop hl
|
||||
|
|
@ -673,7 +673,7 @@ PanPortraitRight:: ; 5CB6
|
|||
dec b ; passed c - how many tiles right to pan?
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
PanPortraitLeft:: ; 5CD7
|
||||
hlcoord 12, 4
|
||||
ld b, $06
|
||||
|
|
@ -689,7 +689,7 @@ PanPortraitLeft:: ; 5CD7
|
|||
inc hl
|
||||
dec c
|
||||
jr nz, .innerloop
|
||||
|
||||
|
||||
call WaitBGMap
|
||||
pop bc
|
||||
pop hl
|
||||
|
|
@ -697,11 +697,11 @@ PanPortraitLeft:: ; 5CD7
|
|||
dec b
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
MenuCallSettings:: ; 5CF3
|
||||
call SettingsScreen
|
||||
ret
|
||||
|
||||
|
||||
FadeInIntroPic: ; 5CF7
|
||||
ld hl, IntroFadePalettes
|
||||
ld b, 6
|
||||
|
|
@ -713,7 +713,7 @@ FadeInIntroPic: ; 5CF7
|
|||
dec b
|
||||
jr nz, .next
|
||||
ret
|
||||
|
||||
|
||||
IntroFadePalettes:
|
||||
db %01010100
|
||||
db %10101000
|
||||
|
|
@ -721,12 +721,12 @@ IntroFadePalettes:
|
|||
db %11111000
|
||||
db %11110100
|
||||
db %11100100
|
||||
|
||||
|
||||
MovePicLeft: ; 5D0E
|
||||
ld a, 119
|
||||
ldh [hWX], a
|
||||
call DelayFrame
|
||||
|
||||
|
||||
ld a, %11100100
|
||||
ldh [rBGP], a
|
||||
.next
|
||||
|
|
@ -737,7 +737,7 @@ MovePicLeft: ; 5D0E
|
|||
ret z
|
||||
ldh [hWX], a
|
||||
jr .next
|
||||
|
||||
|
||||
IntroDisplayPicCenteredOrUpperRight:: ; 5D27
|
||||
; b = bank
|
||||
; de = address of compressed pic
|
||||
|
|
@ -766,7 +766,7 @@ IntroDisplayPicCenteredOrUpperRight:: ; 5D27
|
|||
ld bc, $0707
|
||||
predef PlaceGraphic
|
||||
ret
|
||||
|
||||
|
||||
LoadStartingSprites: ; 5D5D
|
||||
ld de, GoldSpriteGFX
|
||||
lb bc, BANK(GoldSpriteGFX), $0C
|
||||
|
|
@ -790,11 +790,11 @@ LoadStartingSprites: ; 5D5D
|
|||
dec c
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
GameStartSprites: ; 5D80
|
||||
db $50, $48, $00
|
||||
db $50, $50, $01
|
||||
db $50, $48, $00
|
||||
db $50, $50, $01
|
||||
db $58, $48, $02
|
||||
db $58, $50, $03
|
||||
|
||||
|
||||
; 5D8C
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ _ReceiveItem: ; 03:4AA1
|
|||
dec a
|
||||
ld hl, .Pockets
|
||||
jp CallJumptable
|
||||
|
||||
|
||||
.Pockets: ; 03:4ABA
|
||||
dw .Item
|
||||
dw .KeyItem
|
||||
|
|
@ -39,7 +39,7 @@ _ReceiveItem: ; 03:4AA1
|
|||
ld c, a
|
||||
call GetTMHMNumber
|
||||
jp ReceiveTMHM
|
||||
|
||||
|
||||
|
||||
_TossItem: ; 03:4AE0
|
||||
call DoesHLEqualwNumBagItems
|
||||
|
|
@ -50,31 +50,31 @@ _TossItem: ; 03:4AE0
|
|||
dec a
|
||||
ld hl, .Pockets
|
||||
jp CallJumptable
|
||||
|
||||
|
||||
.Pockets ; 03:4AF8
|
||||
dw .Item
|
||||
dw .KeyItem
|
||||
dw .Ball
|
||||
dw .TMHM
|
||||
|
||||
|
||||
.Ball ; 03:4B00
|
||||
pop hl
|
||||
ld a, [wCurItem]
|
||||
ld c, a
|
||||
call GetBallIndex
|
||||
jp TossBall
|
||||
|
||||
|
||||
.TMHM ; 03:4B0B
|
||||
pop hl
|
||||
ld a, [wCurItem]
|
||||
ld c, a
|
||||
call GetTMHMNumber
|
||||
jp TossTMHM
|
||||
|
||||
|
||||
.KeyItem ; 03:4B16
|
||||
pop hl
|
||||
jp TossKeyItem
|
||||
|
||||
|
||||
.Item ; 03:4B1A
|
||||
pop hl
|
||||
|
||||
|
|
@ -91,13 +91,13 @@ _CheckItem: ; 03:4B1E
|
|||
dec a
|
||||
ld hl, .Pockets
|
||||
jp CallJumptable
|
||||
|
||||
|
||||
.Pockets ; 03:4B36
|
||||
dw .Item
|
||||
dw .KeyItem
|
||||
dw .Ball
|
||||
dw .TMHM
|
||||
|
||||
|
||||
.Ball ; 03:4B3E
|
||||
pop hl
|
||||
ld a, [wCurItem]
|
||||
|
|
@ -111,14 +111,14 @@ _CheckItem: ; 03:4B1E
|
|||
ld c, a
|
||||
call GetTMHMNumber
|
||||
jp CheckTMHM
|
||||
|
||||
|
||||
.KeyItem ; 03:4B54
|
||||
pop hl
|
||||
jp CheckKeyItems
|
||||
|
||||
|
||||
.Item ; 03:4B58
|
||||
pop hl
|
||||
|
||||
|
||||
.not_bag
|
||||
jp CheckTheItem
|
||||
|
||||
|
|
@ -139,7 +139,7 @@ PutItemInPocket: ; 03:4B64
|
|||
ld a, [wCurItem]
|
||||
ld c, a
|
||||
ld b, 0
|
||||
|
||||
|
||||
; will add the item once the total
|
||||
; available space (b) exceeds the
|
||||
; amount being added
|
||||
|
|
@ -161,22 +161,22 @@ PutItemInPocket: ; 03:4B64
|
|||
.next
|
||||
inc hl
|
||||
jr .loop
|
||||
|
||||
|
||||
.terminator
|
||||
call GetPocketCapacity
|
||||
ld a, [de]
|
||||
cp c
|
||||
jr c, .can_add
|
||||
|
||||
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
.can_add
|
||||
ld h, d
|
||||
ld l, e
|
||||
ld a, [wCurItem]
|
||||
ld c, a
|
||||
|
||||
|
||||
.loop2
|
||||
inc hl
|
||||
ld a, [hli]
|
||||
|
|
@ -184,7 +184,7 @@ PutItemInPocket: ; 03:4B64
|
|||
jr z, .terminator2
|
||||
cp c
|
||||
jr nz, .loop2
|
||||
|
||||
|
||||
ld a, [wItemQuantity]
|
||||
add [hl]
|
||||
cp a, 100
|
||||
|
|
@ -200,7 +200,7 @@ PutItemInPocket: ; 03:4B64
|
|||
sub 99
|
||||
ld [wItemQuantity], a
|
||||
jr .loop2
|
||||
|
||||
|
||||
.terminator2
|
||||
dec hl
|
||||
ld a, [wCurItem]
|
||||
|
|
@ -211,12 +211,12 @@ PutItemInPocket: ; 03:4B64
|
|||
ld h, d
|
||||
ld l, e
|
||||
inc [hl]
|
||||
|
||||
|
||||
.done
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
|
||||
GetPocketCapacity: ; 03:4BC1
|
||||
ld c, MAX_ITEMS
|
||||
ld a, e
|
||||
|
|
@ -225,12 +225,12 @@ GetPocketCapacity: ; 03:4BC1
|
|||
ld a, d
|
||||
cp HIGH(wNumBagItems)
|
||||
ret z
|
||||
|
||||
|
||||
.not_bag
|
||||
ld c, MAX_PC_ITEMS
|
||||
ret
|
||||
|
||||
|
||||
|
||||
RemoveItemFromPocket: ;03:4BCF
|
||||
ld d, h
|
||||
ld e, l
|
||||
|
|
@ -246,12 +246,12 @@ RemoveItemFromPocket: ;03:4BCF
|
|||
ld a, [hl]
|
||||
sub b
|
||||
jr c, .underflow
|
||||
|
||||
|
||||
ld [hl], a
|
||||
ld [wItemQuantityBuffer], a
|
||||
and a
|
||||
jr nz, .done
|
||||
|
||||
|
||||
; if the remaining quantity is zero
|
||||
; then erase the slot by shifting
|
||||
; the subsequent data upwards
|
||||
|
|
@ -260,7 +260,7 @@ RemoveItemFromPocket: ;03:4BCF
|
|||
ld c, l
|
||||
inc hl
|
||||
inc hl
|
||||
|
||||
|
||||
.loop
|
||||
ld a, [hli]
|
||||
ld [bc], a
|
||||
|
|
@ -270,20 +270,20 @@ RemoveItemFromPocket: ;03:4BCF
|
|||
ld h, d
|
||||
ld l, e
|
||||
dec [hl]
|
||||
|
||||
|
||||
.done
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.underflow
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
CheckTheItem: ; 03:4BFD
|
||||
ld a, [wCurItem]
|
||||
ld c, a
|
||||
|
||||
|
||||
.loop
|
||||
inc hl
|
||||
ld a, [hli]
|
||||
|
|
@ -291,15 +291,15 @@ CheckTheItem: ; 03:4BFD
|
|||
jr z, .fail
|
||||
cp c
|
||||
jr nz, .loop
|
||||
|
||||
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.fail
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
ReceiveKeyItem: ; 03:4C0E
|
||||
ld hl, wNumKeyItems
|
||||
ld a, [hli]
|
||||
|
|
@ -315,12 +315,12 @@ ReceiveKeyItem: ; 03:4C0E
|
|||
inc [hl]
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.full_pack
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
TossKeyItem: ; 03:4C28
|
||||
ld hl, wNumKeyItems
|
||||
dec [hl]
|
||||
|
|
@ -332,7 +332,7 @@ TossKeyItem: ; 03:4C28
|
|||
ld d, h
|
||||
ld e, l
|
||||
inc hl
|
||||
|
||||
|
||||
; erase this item by shifting
|
||||
; all subsequent data upwards
|
||||
.loop
|
||||
|
|
@ -343,13 +343,13 @@ TossKeyItem: ; 03:4C28
|
|||
jr nz, .loop
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
CheckKeyItems: ; 03:4C40
|
||||
ld a, [wCurItem]
|
||||
ld c, a
|
||||
ld hl, wKeyItems
|
||||
|
||||
|
||||
.loop
|
||||
ld a, [hli]
|
||||
cp c
|
||||
|
|
@ -359,12 +359,12 @@ CheckKeyItems: ; 03:4C40
|
|||
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
.done
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
; get index of ball item id c from BallItems
|
||||
GetBallIndex: ; 03:4C53
|
||||
ld a, c
|
||||
|
|
@ -380,8 +380,8 @@ GetBallIndex: ; 03:4C53
|
|||
pop hl
|
||||
ld c, a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
; get ball item id at index c in BallItems
|
||||
GetBallByIndex: ; 03:4c66
|
||||
push bc
|
||||
|
|
@ -394,8 +394,8 @@ GetBallByIndex: ; 03:4c66
|
|||
pop bc
|
||||
ld c, a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
BallItems: ; 03:4C73
|
||||
db ITEM_MASTER_BALL
|
||||
db ITEM_ULTRA_BALL
|
||||
|
|
@ -415,7 +415,7 @@ EmptyBallPocket: ; 03:4C78
|
|||
ld [hli], a
|
||||
ld [hl], -1
|
||||
ret
|
||||
|
||||
|
||||
|
||||
ReceiveBall: ; 03:4C80
|
||||
ld hl, wBallQuantities
|
||||
|
|
@ -429,22 +429,22 @@ ReceiveBall: ; 03:4C80
|
|||
ld a, [hl]
|
||||
and a
|
||||
jr nz, .done
|
||||
|
||||
|
||||
; increase the ball pocket size if
|
||||
; this ball's previous quantity was 0
|
||||
ld a, [wNumBallItems]
|
||||
inc a
|
||||
ld [wNumBallItems], a
|
||||
|
||||
|
||||
.done
|
||||
ld [hl], b
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.overflow
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
TossBall: ; 03:4C9F
|
||||
ld hl, wBallQuantities
|
||||
|
|
@ -456,7 +456,7 @@ TossBall: ; 03:4C9F
|
|||
sub b
|
||||
jr c, .underflow
|
||||
jr nz, .done
|
||||
|
||||
|
||||
; increase the ball pocket size if
|
||||
; this ball's new quantity is 0
|
||||
ld b, a
|
||||
|
|
@ -464,18 +464,18 @@ TossBall: ; 03:4C9F
|
|||
dec a
|
||||
ld [wNumBallItems], a
|
||||
ld a, b
|
||||
|
||||
|
||||
.done
|
||||
ld [hl], a
|
||||
ld [wItemQuantityBuffer], a
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.underflow
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
CheckBall: ; 03:4CC0
|
||||
ld hl, wBallQuantities
|
||||
ld b, 0
|
||||
|
|
@ -486,7 +486,7 @@ CheckBall: ; 03:4CC0
|
|||
scf
|
||||
ret
|
||||
|
||||
|
||||
|
||||
ReceiveTMHM: ; 03:4CCB
|
||||
ld b, 0
|
||||
ld hl, wTMsHMs
|
||||
|
|
@ -498,12 +498,12 @@ ReceiveTMHM: ; 03:4CCB
|
|||
ld [hl], a
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.overflow
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
TossTMHM: ; 03:4CDE
|
||||
ld b, 0
|
||||
ld hl, wTMsHMs
|
||||
|
|
@ -513,7 +513,7 @@ TossTMHM: ; 03:4CDE
|
|||
ld a, [hl]
|
||||
sub b
|
||||
jr c, .underflow
|
||||
|
||||
|
||||
ld [hl], a
|
||||
ld [wItemQuantityBuffer], a
|
||||
scf
|
||||
|
|
@ -523,7 +523,7 @@ TossTMHM: ; 03:4CDE
|
|||
and a
|
||||
ret
|
||||
|
||||
|
||||
|
||||
CheckTMHM: ; 03:4CF4
|
||||
ld b, 0
|
||||
ld hl, wTMsHMs
|
||||
|
|
@ -537,18 +537,18 @@ CheckTMHM: ; 03:4CF4
|
|||
GetTMHMNumber: ; 03:4CFF
|
||||
ld a, c
|
||||
ld c, 0
|
||||
|
||||
|
||||
sub ITEM_TM01
|
||||
jr c, .not_machine
|
||||
|
||||
|
||||
cp ITEM_C8 - ITEM_TM01
|
||||
jr z, .not_machine
|
||||
jr c, .finish
|
||||
|
||||
|
||||
inc c
|
||||
cp ITEM_E1 - ITEM_TM01
|
||||
jr z, .not_machine
|
||||
|
||||
|
||||
jr c, .finish
|
||||
inc c
|
||||
|
||||
|
|
@ -560,7 +560,7 @@ GetTMHMNumber: ; 03:4CFF
|
|||
ld c, a
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.not_machine
|
||||
and a
|
||||
ret
|
||||
|
|
@ -600,7 +600,7 @@ GetItemAmount: ; 03:4e10
|
|||
ld b, 0
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
; Returns the amount of item b in b
|
||||
CheckAmountInItemPocket: ; 03:4E1C
|
||||
ld hl, wItems
|
||||
|
|
@ -633,7 +633,7 @@ CheckAmountInKeyItems: ; 03:4E2B
|
|||
ld b, 1
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
SECTION "engine/items/inventory.asm@_CheckTossableItem", ROMX
|
||||
|
||||
; Return 1 in wItemAttributeParamBuffer and
|
||||
|
|
@ -680,7 +680,7 @@ CheckItemMenu: ; 03:53D9
|
|||
and $f
|
||||
ld [wItemAttributeParamBuffer], a
|
||||
ret
|
||||
|
||||
|
||||
; Get attribute a of wCurItem.
|
||||
GetItemAttr: ; 03:53E6
|
||||
push hl
|
||||
|
|
@ -707,7 +707,7 @@ ItemAttr_ReturnCarry: ; 03:5405
|
|||
ld [wItemAttributeParamBuffer], a
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
; Return the price of wCurItem in de.
|
||||
GetItemPrice: ; 03:540C
|
||||
push hl
|
||||
|
|
|
|||
|
|
@ -3,20 +3,20 @@ INCLUDE "constants.asm"
|
|||
SECTION "engine/items/tmhm.asm", ROMX
|
||||
|
||||
CanLearnTMHMMove: ; 04:528f
|
||||
; Gets the index of TM or HM with move ID wce32,
|
||||
; Gets the index of TM or HM with move ID wce32,
|
||||
; then checks the corresponding flag in wMonDexIndex's learnset.
|
||||
; Sets register c to 1 if TM/HM is in learnset OR if debug is enabled.
|
||||
ld a, [wDebugFlags]
|
||||
ld c, 01
|
||||
bit 1, a
|
||||
ret nz
|
||||
|
||||
|
||||
ld a, [wMonDexIndex]
|
||||
ld [wCurSpecies], a
|
||||
call GetMonHeader
|
||||
ld hl, wMonHLearnset
|
||||
push hl
|
||||
|
||||
|
||||
ld a, [wce32]
|
||||
ld b, a
|
||||
ld c, 0
|
||||
|
|
@ -27,7 +27,7 @@ CanLearnTMHMMove: ; 04:528f
|
|||
jr z, .jump
|
||||
inc c
|
||||
jr .loop
|
||||
|
||||
|
||||
.jump
|
||||
pop hl
|
||||
ld b, 2 ;CHECK_FLAG
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ DebugJumpTable:: ; 4064
|
|||
dw DebugMenuOptionSubGames
|
||||
dw DebugMenuOptionMonsterTest
|
||||
dw DebugMenuOptionName
|
||||
|
||||
|
||||
DebugMenuHeader: ; 4070
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 05, 02, SCREEN_WIDTH - 7, SCREEN_HEIGHT - 1
|
||||
|
|
@ -37,12 +37,12 @@ DebugMenuHeader: ; 4070
|
|||
db 01 ; default option
|
||||
|
||||
.MenuData: ; 4078
|
||||
db $A0
|
||||
db $A0
|
||||
db 0 ; items
|
||||
dw DebugMenuItems
|
||||
db $8A, $1F
|
||||
db $8A, $1F
|
||||
dw .Strings
|
||||
|
||||
|
||||
.Strings
|
||||
db "ファイト@"
|
||||
db "フィールド@"
|
||||
|
|
@ -50,22 +50,22 @@ DebugMenuHeader: ; 4070
|
|||
db "サブゲーム@"
|
||||
db "モンスター@"
|
||||
db "なまえ@"
|
||||
|
||||
|
||||
DebugMenuItems:
|
||||
db 06
|
||||
db 00
|
||||
db 01
|
||||
db 02
|
||||
db 03
|
||||
db 04
|
||||
db 05
|
||||
db 06
|
||||
db 00
|
||||
db 01
|
||||
db 02
|
||||
db 03
|
||||
db 04
|
||||
db 05
|
||||
db -1
|
||||
|
||||
DebugMenuOptionField:: ; 40A8
|
||||
ld hl, wDebugFlags
|
||||
set DEBUG_FIELD_F, [hl] ; set debug mode
|
||||
jp StartNewGame
|
||||
|
||||
|
||||
DebugMenuOptionFight:: ; 40B0
|
||||
ld hl, wDebugFlags
|
||||
set DEBUG_BATTLE_F, [hl]
|
||||
|
|
@ -96,7 +96,7 @@ DebugMenuOptionMonsterTest:: ; 40CB
|
|||
callab MonsterTest
|
||||
ld a, $e4
|
||||
ldh [rBGP], a
|
||||
|
||||
|
||||
Function40eb::
|
||||
jp DebugMenu
|
||||
|
||||
|
|
@ -105,5 +105,5 @@ DebugMenuOptionName:: ; 40EE
|
|||
ld a, $e4
|
||||
ldh [rBGP], a
|
||||
jp DebugMenu
|
||||
|
||||
|
||||
; 40FD
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ InitializeNewGameWRAM:
|
|||
ld bc, $1164
|
||||
xor a
|
||||
call ByteFill
|
||||
|
||||
|
||||
; Lots of other setup.
|
||||
|
||||
pop af
|
||||
|
|
@ -61,7 +61,7 @@ InitializeNewGameWRAM:
|
|||
|
||||
ld a, $B8
|
||||
ld [wd15f], a
|
||||
|
||||
|
||||
ld hl, wUnknownListLengthd1ea
|
||||
ld a, ITEM_REPEL
|
||||
ld [wCurItem], a
|
||||
|
|
@ -88,7 +88,7 @@ InitializeByteList:
|
|||
SECTION "engine/menu/main_menu.asm@MainMenu", ROMX
|
||||
|
||||
MainMenu:: ; 01:53CC
|
||||
ld hl, wd4a9
|
||||
ld hl, wd4a9
|
||||
res 0, [hl]
|
||||
call ClearTileMap
|
||||
call GetMemSGBLayout
|
||||
|
|
@ -273,7 +273,7 @@ PlayerInfoText:
|
|||
next "#ずかん ひき"
|
||||
next "プレイじかん"
|
||||
text_end
|
||||
|
||||
|
||||
StartNewGame:: ; 555C
|
||||
ld de, MUSIC_NONE
|
||||
call PlayMusic
|
||||
|
|
@ -292,5 +292,5 @@ StartNewGame:: ; 555C
|
|||
jp z, DemoStart
|
||||
call DebugSetUpPlayer
|
||||
jp IntroCleanup
|
||||
|
||||
|
||||
; 558D
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,11 +1,11 @@
|
|||
INCLUDE "constants.asm"
|
||||
|
||||
|
||||
SECTION "engine/menu/text_entry.asm@naming", ROMX
|
||||
|
||||
NAMINGSCREEN_UNDERSCORE EQU "♀"
|
||||
NAMINGSCREEN_HYPHEN EQU "♂"
|
||||
NAMINGSCREEN_END EQU $F0
|
||||
|
||||
|
||||
NamingScreen: ; 04:53F4
|
||||
ld hl, wNamingScreenDestinationPointer
|
||||
ld [hl], e
|
||||
|
|
@ -30,7 +30,7 @@ NamingScreen: ; 04:53F4
|
|||
.loop
|
||||
call NamingScreenJoypadLoop
|
||||
jr nc, .loop
|
||||
|
||||
|
||||
pop af
|
||||
ldh [hJoyDebounceSrc], a
|
||||
pop af
|
||||
|
|
@ -39,7 +39,7 @@ NamingScreen: ; 04:53F4
|
|||
ld [wce5f], a
|
||||
call ClearJoypad
|
||||
ret
|
||||
|
||||
|
||||
.SetUpNamingScreen: ; 04:542B
|
||||
call ClearBGPalettes
|
||||
ld b, SGB_DIPLOMA
|
||||
|
|
@ -58,7 +58,7 @@ NamingScreen: ; 04:53F4
|
|||
ldh [rOBP0], a
|
||||
call NamingScreenInitNameEntry
|
||||
ret
|
||||
|
||||
|
||||
GetNamingScreenSetup: ; 04:5455
|
||||
; wNamingScreenType selects which entry in the table below to jump to
|
||||
ld a, [wNamingScreenType]
|
||||
|
|
@ -72,17 +72,17 @@ GetNamingScreenSetup: ; 04:5455
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
.Jumptable: ; 04:5466
|
||||
dw .Pokemon
|
||||
dw .Player
|
||||
dw .Rival
|
||||
dw .Mom
|
||||
dw .Box
|
||||
dw .Pokemon
|
||||
dw .Pokemon
|
||||
dw .Pokemon
|
||||
|
||||
dw .Pokemon
|
||||
dw .Player
|
||||
dw .Rival
|
||||
dw .Mom
|
||||
dw .Box
|
||||
dw .Pokemon
|
||||
dw .Pokemon
|
||||
dw .Pokemon
|
||||
|
||||
.Pokemon: ; 04:5476
|
||||
ld hl, Function8f0e3
|
||||
ld a, BANK(Function8f0e3)
|
||||
|
|
@ -100,7 +100,7 @@ GetNamingScreenSetup: ; 04:5455
|
|||
|
||||
.NicknameText ; 04:5495
|
||||
db "のニックネームは?@"
|
||||
|
||||
|
||||
.Player: ; 04:549F
|
||||
ld de, GoldSpriteGFX
|
||||
call .LoadSprite
|
||||
|
|
@ -109,10 +109,10 @@ GetNamingScreenSetup: ; 04:5455
|
|||
call PlaceString
|
||||
call .StoreSpriteIconParams
|
||||
ret
|
||||
|
||||
|
||||
.NameText: ; 04:54B2
|
||||
db "あなた の なまえは?@"
|
||||
|
||||
|
||||
.Rival: ; 04:54BE
|
||||
ld de, SilverSpriteGFX
|
||||
call .LoadSprite
|
||||
|
|
@ -121,23 +121,23 @@ GetNamingScreenSetup: ; 04:5455
|
|||
call PlaceString
|
||||
call .StoreSpriteIconParams
|
||||
ret
|
||||
|
||||
|
||||
.RivalText: ; 04:54D1
|
||||
; the ret just preceeding this would make the first word Rival.
|
||||
db "ライバル の なまえは?@"
|
||||
|
||||
|
||||
.Mom: ; 04:54DE
|
||||
ld de, MomSpriteGFX
|
||||
call .LoadSprite
|
||||
hlcoord 5, 2
|
||||
ld de, .MomText
|
||||
call PlaceString
|
||||
call .StoreSpriteIconParams
|
||||
ld de, .MomText
|
||||
call PlaceString
|
||||
call .StoreSpriteIconParams
|
||||
ret
|
||||
|
||||
|
||||
.MomText: ; 04:54F1
|
||||
db "ははおや の なまえは?@"
|
||||
|
||||
|
||||
.Box: ; 04:54FE
|
||||
ld de, PokeBallSpriteGFX
|
||||
ld hl, vChars0
|
||||
|
|
@ -158,13 +158,13 @@ GetNamingScreenSetup: ; 04:5455
|
|||
call PlaceString
|
||||
call .StoreBoxIconParams
|
||||
ret
|
||||
|
||||
|
||||
.BoxText: ; 04:552D
|
||||
db "バンク の なまえは?@"
|
||||
|
||||
|
||||
.LoadSprite: ; 04:5539
|
||||
; copies the sprite at de into the top of VRAM, as well as the sprite $C0 after de
|
||||
push de
|
||||
push de
|
||||
ld hl, vChars0
|
||||
lb bc, BANK(GoldSpriteGFX), $04
|
||||
call Request2bpp
|
||||
|
|
@ -184,7 +184,7 @@ GetNamingScreenSetup: ; 04:5455
|
|||
ld a, $41
|
||||
call InitSpriteAnimStruct
|
||||
ret
|
||||
|
||||
|
||||
.StoreSpriteIconParams: ; 04:5564
|
||||
ld a, $05
|
||||
ld [wNamingScreenMaxNameLength], a
|
||||
|
|
@ -194,7 +194,7 @@ GetNamingScreenSetup: ; 04:5455
|
|||
ld a, h
|
||||
ld [wNamingScreenStringEntryCoordX], a
|
||||
ret
|
||||
|
||||
|
||||
.StoreBoxIconParams: ; 04:5575
|
||||
ld a, $08
|
||||
ld [wNamingScreenMaxNameLength], a
|
||||
|
|
@ -204,7 +204,7 @@ GetNamingScreenSetup: ; 04:5455
|
|||
ld a, h
|
||||
ld [wNamingScreenStringEntryCoordX], a
|
||||
ret
|
||||
|
||||
|
||||
NamingScreen_InitText: ; 04:5586
|
||||
; fills the tilemap with ■, then clears a 12x17 box at 1,1
|
||||
; next it places the tiles at 04:58B3 onto the screen at 2,9 (tiles form an 11x8 box)
|
||||
|
|
@ -222,25 +222,25 @@ NamingScreen_InitText: ; 04:5586
|
|||
hlcoord 2, 9
|
||||
ld de, TextEntryChars
|
||||
ld b, $08
|
||||
|
||||
|
||||
.outerloop
|
||||
ld c, $11
|
||||
|
||||
|
||||
.innerloop
|
||||
ld a, [de]
|
||||
ld [hl+], a
|
||||
inc de
|
||||
dec c
|
||||
jr nz, .innerloop
|
||||
|
||||
|
||||
inc hl
|
||||
inc hl
|
||||
inc hl
|
||||
dec b
|
||||
jr nz, .outerloop
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
NamingScreenJoypadLoop: ; 04:55BD
|
||||
call GetJoypadDebounced
|
||||
ld a, [wJumptableIndex]
|
||||
|
|
@ -252,7 +252,7 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
call DelayFrame
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
.leap ; 04:55DA
|
||||
; kills sprites and resets screen position
|
||||
callab InitEffectObject
|
||||
|
|
@ -283,7 +283,7 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
ld a, $01
|
||||
ldh [hBGMapMode], a
|
||||
ret
|
||||
|
||||
|
||||
.RunJumpTable: ; 04:560C
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
|
|
@ -295,11 +295,11 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
.JumpTable: ; 04:561B
|
||||
dw .InitCursor
|
||||
dw .InitCursor
|
||||
dw .ReadButtons
|
||||
|
||||
|
||||
.InitCursor: ; 04:561F
|
||||
ld de, $5818
|
||||
ld a, $39
|
||||
|
|
@ -311,7 +311,7 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
ld hl, wJumptableIndex
|
||||
inc [hl]
|
||||
ret
|
||||
|
||||
|
||||
.ReadButtons: ; 04:5634
|
||||
; if A or B were pressed, clear hJoypadSum after calling functions; if start, set 7 in the jumptable??
|
||||
ld hl, hJoypadSum
|
||||
|
|
@ -325,7 +325,7 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
and START
|
||||
jr nz, .jumpstart
|
||||
ret
|
||||
|
||||
|
||||
.jumpa ; 04:5647
|
||||
call NamingScreenGetLastCharacter
|
||||
cp NAMINGSCREEN_END
|
||||
|
|
@ -334,19 +334,19 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
xor a
|
||||
ldh [hJoypadSum], a
|
||||
ret
|
||||
|
||||
|
||||
.jumpb ; 04:5655
|
||||
call NamingScreenDeleteCharacter
|
||||
xor a
|
||||
ldh [hJoypadSum], a
|
||||
ret
|
||||
|
||||
|
||||
.jumpstart ; 04:565C
|
||||
call NamingScreenStoreEntry
|
||||
ld hl, wJumptableIndex
|
||||
set 7, [hl]
|
||||
ret
|
||||
|
||||
|
||||
.GetDPad: ; 04:5665
|
||||
ld hl, hJoySum
|
||||
ld a, [hl]
|
||||
|
|
@ -362,7 +362,7 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
and D_RIGHT
|
||||
jr nz, .rightjump
|
||||
ret
|
||||
|
||||
|
||||
.rightjump ; 04:567D
|
||||
ld hl, $000C
|
||||
add hl, bc
|
||||
|
|
@ -371,11 +371,11 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
jr nc, .skip1
|
||||
inc [hl]
|
||||
jr .escape
|
||||
|
||||
|
||||
.skip1
|
||||
ld [hl], $00
|
||||
jr .escape
|
||||
|
||||
|
||||
.leftjump
|
||||
ld hl, $000C
|
||||
add hl, bc
|
||||
|
|
@ -384,10 +384,10 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
jr z, .skip2
|
||||
dec [hl]
|
||||
jr .escape
|
||||
.skip2
|
||||
.skip2
|
||||
ld [hl], $0E
|
||||
jr .escape
|
||||
|
||||
jr .escape
|
||||
|
||||
.downjump
|
||||
ld hl, $000D
|
||||
add hl, bc
|
||||
|
|
@ -395,11 +395,11 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
cp $07
|
||||
jr nc, .skip3
|
||||
inc [hl]
|
||||
jr .escape
|
||||
jr .escape
|
||||
.skip3
|
||||
ld [hl], $00
|
||||
jr .escape
|
||||
|
||||
|
||||
.upjump ; 04:56AC :24
|
||||
ld hl, $000D
|
||||
add hl, bc
|
||||
|
|
@ -433,13 +433,13 @@ NamingScreenJoypadLoop: ; 04:55BD
|
|||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
LetterOffsetsTable1: ; 04:56DE
|
||||
db $00, $08, $10, $18, $20, $30, $38, $40, $48, $50, $60, $68, $70, $78, $80
|
||||
|
||||
|
||||
LetterOffsetsTable2:; 04:56ED
|
||||
db $00, $08, $10, $18, $20, $28, $30, $38
|
||||
|
||||
|
||||
NamingScreenTryAddCharacter: ; 04:56F5
|
||||
ld a, [wNamingScreenLastCharacter]
|
||||
ld hl, Dakutens
|
||||
|
|
@ -447,7 +447,7 @@ NamingScreenTryAddCharacter: ; 04:56F5
|
|||
jr z, .jump
|
||||
ld hl, Handakutens
|
||||
cp "゚"
|
||||
jr z, .jump
|
||||
jr z, .jump
|
||||
ld a, [wNamingScreenMaxNameLength]
|
||||
ld c, a
|
||||
ld a, [wNamingScreenCurNameLength]
|
||||
|
|
@ -464,7 +464,7 @@ NamingScreenTryAddCharacter: ; 04:56F5
|
|||
ret z
|
||||
ld [hl], NAMINGSCREEN_UNDERSCORE
|
||||
ret
|
||||
|
||||
|
||||
.jump ; 04:5724
|
||||
ld a, [wNamingScreenCurNameLength]
|
||||
and a
|
||||
|
|
@ -491,7 +491,7 @@ NamingScreenTryAddCharacter: ; 04:56F5
|
|||
ld hl, wNamingScreenCurNameLength
|
||||
inc [hl]
|
||||
ret
|
||||
|
||||
|
||||
Dakutens: ; 04:5748
|
||||
db "かがきぎくぐけげこご"
|
||||
db "さざしじすずせぜそぞ"
|
||||
|
|
@ -500,14 +500,14 @@ Dakutens: ; 04:5748
|
|||
db "カガキギクグケゲコゴ"
|
||||
db "サザシジスズセゼソゾ"
|
||||
db "タダチヂツヅテデトド"
|
||||
db "ハバヒビフブへべホボ"
|
||||
db "ハバヒビフブへべホボ"
|
||||
db $FF
|
||||
|
||||
|
||||
Handakutens: ; 04:5799
|
||||
db "はぱひぴふぷへぺほぽ"
|
||||
db "ハパヒピフプへぺホポ"
|
||||
db $FF
|
||||
|
||||
db "ハパヒピフプへぺホポ"
|
||||
db $FF
|
||||
|
||||
NamingScreenDeleteCharacter: ; 04:57AE
|
||||
ld hl, wNamingScreenCurNameLength
|
||||
ld a, [hl]
|
||||
|
|
@ -522,7 +522,7 @@ NamingScreenDeleteCharacter: ; 04:57AE
|
|||
ret nz
|
||||
ld [hl], NAMINGSCREEN_HYPHEN
|
||||
ret
|
||||
|
||||
|
||||
NamingScreenGetTextCursorPosition: ; 04:57C2
|
||||
push af
|
||||
ld hl, wNamingScreenDestinationPointer
|
||||
|
|
@ -535,7 +535,7 @@ NamingScreenGetTextCursorPosition: ; 04:57C2
|
|||
add hl, de
|
||||
pop af
|
||||
ret
|
||||
|
||||
|
||||
NamingScreenInitNameEntry: ; 04:57D2
|
||||
ld hl, wNamingScreenDestinationPointer
|
||||
ld a, [hli]
|
||||
|
|
@ -553,7 +553,7 @@ NamingScreenInitNameEntry: ; 04:57D2
|
|||
jr nz, .loop
|
||||
ld [hl], "@"
|
||||
ret
|
||||
|
||||
|
||||
NamingScreenStoreEntry: ; 04:57E9
|
||||
ld hl, wNamingScreenDestinationPointer
|
||||
ld a, [hli]
|
||||
|
|
@ -567,14 +567,14 @@ NamingScreenStoreEntry: ; 04:57E9
|
|||
jr z, .terminator
|
||||
cp NAMINGSCREEN_UNDERSCORE
|
||||
jr nz, .notterminator
|
||||
.terminator
|
||||
.terminator
|
||||
ld [hl], "@"
|
||||
.notterminator
|
||||
inc hl
|
||||
dec c
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
NamingScreenGetLastCharacter: ; 04:5803
|
||||
ld hl, wNamingScreenCursorObjectPointer
|
||||
ld c, [hl]
|
||||
|
|
@ -601,7 +601,7 @@ NamingScreenGetLastCharacter: ; 04:5803
|
|||
srl a
|
||||
srl a
|
||||
srl a
|
||||
ld d, a
|
||||
ld d, a
|
||||
hlcoord 0, 0
|
||||
ld bc, $0014
|
||||
.loop
|
||||
|
|
@ -611,45 +611,45 @@ NamingScreenGetLastCharacter: ; 04:5803
|
|||
add hl, bc
|
||||
dec d
|
||||
jr .loop
|
||||
|
||||
|
||||
.done
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
ld [wNamingScreenLastCharacter], a
|
||||
ret
|
||||
|
||||
|
||||
LoadNamingScreenGFX: ; 04:5843
|
||||
call ClearSprites
|
||||
callab InitEffectObject
|
||||
call LoadFont
|
||||
|
||||
|
||||
ld de, TextScreenGFX_End
|
||||
ld hl, vChars1 tile $70
|
||||
lb bc, BANK(TextScreenGFX_End), 1
|
||||
call Get1bpp
|
||||
|
||||
|
||||
ld de, TextScreenGFX_Hyphen
|
||||
ld hl, vChars1 tile $6F
|
||||
lb bc, BANK(TextScreenGFX_Hyphen), 1
|
||||
call Get1bpp
|
||||
|
||||
|
||||
ld de, TextScreenGFX_Underscore
|
||||
ld hl, vChars1 tile $75
|
||||
lb bc, BANK(TextScreenGFX_Underscore), 1
|
||||
call Get1bpp
|
||||
|
||||
|
||||
ld de, vChars2 tile $60
|
||||
ld hl, TrainerCardGFX
|
||||
ld bc, $10
|
||||
ld a, BANK(TrainerCardGFX)
|
||||
call FarCopyData
|
||||
|
||||
|
||||
ld de, vChars0 tile $7f
|
||||
ld hl, PokedexBorderGFX
|
||||
ld bc, $10
|
||||
ld a, BANK(PokedexBorderGFX)
|
||||
call FarCopyData
|
||||
|
||||
|
||||
ld a, $26
|
||||
ld hl, wc41a
|
||||
ld [hli], a
|
||||
|
|
@ -690,17 +690,17 @@ ComposeMailMessage: ; 04:59EB
|
|||
.innerloop
|
||||
call DoMailEntry
|
||||
jr nc, .innerloop
|
||||
|
||||
|
||||
ld a, [wFlyDestination]
|
||||
bit 7, a
|
||||
jr nz, .outerloop
|
||||
|
||||
|
||||
pop af
|
||||
ldh [hJoyDebounceSrc], a
|
||||
pop af
|
||||
ldh [hMapAnims], a
|
||||
ret
|
||||
|
||||
|
||||
.firstruncheck; 04:5A1B
|
||||
ld hl, wFlyDestination
|
||||
ld a, [hl]
|
||||
|
|
@ -712,7 +712,7 @@ ComposeMailMessage: ; 04:59EB
|
|||
.skip
|
||||
call .InitBlankMail
|
||||
ret
|
||||
|
||||
|
||||
.InitBlankMail: ; 04:5A2C
|
||||
call ClearBGPalettes
|
||||
ld b, 8 ;diploma?
|
||||
|
|
@ -760,7 +760,7 @@ ComposeMailMessage: ; 04:59EB
|
|||
add hl, de
|
||||
ld [hl], "<NEXT>"
|
||||
ret
|
||||
|
||||
|
||||
InitMailText: ; 04:5A96
|
||||
hlcoord 5, 2
|
||||
ld de, MailPromptText
|
||||
|
|
@ -768,10 +768,10 @@ InitMailText: ; 04:5A96
|
|||
ld a, $21
|
||||
ld [wNamingScreenMaxNameLength], a
|
||||
ret
|
||||
|
||||
|
||||
MailPromptText: ; 04:5AA5
|
||||
db "メールを かいてね@"
|
||||
|
||||
|
||||
InitCharSet: ; 04:5AAF
|
||||
call WaitForAutoBgMapTransfer
|
||||
ld hl, wTileMap
|
||||
|
|
@ -789,7 +789,7 @@ InitCharSet: ; 04:5AAF
|
|||
ld b, $8
|
||||
.outerloop
|
||||
ld c, $11
|
||||
.innerloop
|
||||
.innerloop
|
||||
ld a, [de]
|
||||
ld [hli], a
|
||||
inc de
|
||||
|
|
@ -801,7 +801,7 @@ InitCharSet: ; 04:5AAF
|
|||
dec b
|
||||
jr nz, .outerloop
|
||||
ret
|
||||
|
||||
|
||||
DoMailEntry: ; 04:5AE6
|
||||
call GetJoypadDebounced
|
||||
ld a, [wJumptableIndex]
|
||||
|
|
@ -816,7 +816,7 @@ DoMailEntry: ; 04:5AE6
|
|||
call DelayFrame
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
.exit_mail ; 04:5B0A
|
||||
callab InitEffectObject
|
||||
call ClearSprites
|
||||
|
|
@ -825,7 +825,7 @@ DoMailEntry: ; 04:5AE6
|
|||
ldh [hSCY], a
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.Update: ; 04:5B1C
|
||||
xor a
|
||||
ldh [hBGMapMode], a
|
||||
|
|
@ -841,7 +841,7 @@ DoMailEntry: ; 04:5AE6
|
|||
ld a, 1
|
||||
ldh [hBGMapMode], a
|
||||
ret
|
||||
|
||||
|
||||
.DoJumpTable: ; 04:5B39
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
|
|
@ -853,16 +853,16 @@ DoMailEntry: ; 04:5AE6
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
.Jumptable: ; 04:5B48
|
||||
dw .blinkcursor
|
||||
dw .blinkcursor
|
||||
dw .processjoypad
|
||||
|
||||
.blinkcursor ; 04:5B4C
|
||||
ld hl, wJumptableIndex
|
||||
inc [hl]
|
||||
ret
|
||||
|
||||
|
||||
.processjoypad; 04:5B51
|
||||
ld hl, hJoypadSum
|
||||
ld a, [hl]
|
||||
|
|
@ -878,7 +878,7 @@ DoMailEntry: ; 04:5AE6
|
|||
and SELECT
|
||||
jr nz, .selectjump
|
||||
ret
|
||||
|
||||
|
||||
.ajump ; 04:5B69
|
||||
call NamingScreenGetLastCharacter
|
||||
cp "円"
|
||||
|
|
@ -922,7 +922,7 @@ DoMailEntry: ; 04:5AE6
|
|||
ld [hl], a
|
||||
set 7, [hl]
|
||||
ret
|
||||
|
||||
|
||||
SECTION "engine/menu/text_entry.asm@mail2", ROMX
|
||||
|
||||
SetupMail: ; 04:5C31
|
||||
|
|
@ -977,7 +977,7 @@ SetupMail: ; 04:5C31
|
|||
add hl, de
|
||||
ld [hl], "<NEXT>"
|
||||
ret
|
||||
|
||||
|
||||
DrawMailLoadedText: ; 04:5CA9
|
||||
hlcoord 5, 2
|
||||
ld de, MailLoadedText
|
||||
|
|
@ -985,10 +985,10 @@ DrawMailLoadedText: ; 04:5CA9
|
|||
ld a, $21
|
||||
ld [wNamingScreenMaxNameLength], a
|
||||
ret
|
||||
|
||||
|
||||
MailLoadedText: ; 04:5CB8
|
||||
db "スアケシ!!!@" ; should be "MAIL!!!" since the bold english font is loaded into vChars1
|
||||
|
||||
|
||||
DrawMail: ; 04:5CC0
|
||||
call WaitForAutoBgMapTransfer
|
||||
hlcoord 0, 0
|
||||
|
|
@ -1012,7 +1012,7 @@ DrawMail: ; 04:5CC0
|
|||
ld c, $10
|
||||
call DrawMailTextExtra
|
||||
ret
|
||||
|
||||
|
||||
DrawMailRow: ; 04:5CFC
|
||||
ld c, $07
|
||||
call .loop
|
||||
|
|
@ -1029,22 +1029,21 @@ DrawMailRow: ; 04:5CFC
|
|||
inc hl
|
||||
inc hl
|
||||
ld c, $05
|
||||
|
||||
|
||||
.loop ; 04:5D15
|
||||
ld [hli], a
|
||||
ld [hli], a
|
||||
inc a
|
||||
dec c
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
DrawMailTextExtra: ; 04:5D1B
|
||||
ld a, [de]
|
||||
ld a, [de]
|
||||
inc de
|
||||
ld [hli], a
|
||||
dec c
|
||||
jr nz, DrawMailTextExtra
|
||||
ret
|
||||
|
||||
|
||||
MailTextExtra: ; 04:5D22
|
||||
db "?!12345 67890ー円"
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ _CheckObjectCollision: ; 01:77dd
|
|||
.collision
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
SECTION "engine/overworld/object_collision.asm@_CheckPlayerObjectCollision", ROMX
|
||||
|
||||
; Sets the carry flag if the player will collide with another sprite's current or next position
|
||||
|
|
@ -102,7 +102,7 @@ _CheckPlayerObjectCollision: ; 01:7894
|
|||
ld e, a
|
||||
ld bc, wObjectStructs
|
||||
xor a
|
||||
|
||||
|
||||
.loop
|
||||
ldh [hObjectStructIndexBuffer], a
|
||||
ld hl, OBJECT_SPRITE
|
||||
|
|
@ -120,13 +120,13 @@ _CheckPlayerObjectCollision: ; 01:7894
|
|||
ld a, [hl]
|
||||
cp d
|
||||
jr nz, .check_last_position
|
||||
|
||||
|
||||
; skip the player sprite
|
||||
ldh a, [hObjectStructIndexBuffer]
|
||||
cp PLAYER_OBJECT_INDEX
|
||||
jr z, .next
|
||||
jr .collision
|
||||
|
||||
|
||||
.check_last_position
|
||||
ld hl, OBJECT_MAP_Y
|
||||
add hl, bc
|
||||
|
|
@ -151,7 +151,7 @@ _CheckPlayerObjectCollision: ; 01:7894
|
|||
jr nz, .loop
|
||||
xor a
|
||||
ret
|
||||
|
||||
|
||||
.collision
|
||||
scf
|
||||
ret
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ UnusedOverworldMovementCheck:: ; 03:4003
|
|||
|
||||
SetPlayerIdle: ; 03:402c
|
||||
ld a, NO_MOVEMENT
|
||||
|
||||
|
||||
SetPlayerMovement: ; 03:402e
|
||||
ld [wPlayerMovement], a
|
||||
ld a, [wPlayerLastMapX]
|
||||
|
|
@ -58,7 +58,7 @@ _CheckMovementWalkOrBike: ; 03:4045
|
|||
.idle
|
||||
ld a, NO_MOVEMENT
|
||||
ret
|
||||
|
||||
|
||||
.check_right
|
||||
ld a, [wPlayerLastMapX]
|
||||
inc a
|
||||
|
|
@ -158,7 +158,7 @@ _CheckMovementDebug: ; 03:40f2
|
|||
jr nz, .move_right
|
||||
ld a, NO_MOVEMENT
|
||||
ret
|
||||
|
||||
|
||||
.move_down
|
||||
ld a, [wTileDown]
|
||||
cp -1
|
||||
|
|
@ -166,7 +166,7 @@ _CheckMovementDebug: ; 03:40f2
|
|||
ret nz
|
||||
ld a, JUMP_UP
|
||||
ret
|
||||
|
||||
|
||||
.move_up
|
||||
ld a, [wTileUp]
|
||||
cp -1
|
||||
|
|
@ -174,7 +174,7 @@ _CheckMovementDebug: ; 03:40f2
|
|||
ret nz
|
||||
ld a, JUMP_DOWN
|
||||
ret
|
||||
|
||||
|
||||
.move_left
|
||||
ld a, [wTileLeft]
|
||||
cp -1
|
||||
|
|
@ -182,7 +182,7 @@ _CheckMovementDebug: ; 03:40f2
|
|||
ret nz
|
||||
ld a, JUMP_RIGHT
|
||||
ret
|
||||
|
||||
|
||||
.move_right
|
||||
ld a, [wTileRight]
|
||||
cp -1
|
||||
|
|
@ -260,11 +260,11 @@ CheckSkateDown: ; 03:4177
|
|||
jr z, .slow
|
||||
ld a, FAST_STEP_DOWN
|
||||
ret
|
||||
|
||||
|
||||
.slow
|
||||
ld a, STEP_DOWN
|
||||
ret
|
||||
|
||||
|
||||
.collision
|
||||
ld a, STANDING
|
||||
ld [wSkatingDirection], a
|
||||
|
|
@ -285,17 +285,17 @@ CheckSkateUp: ; 03:41ab
|
|||
jr nz, .collision
|
||||
ld a, FAST_JUMP_UP
|
||||
ret
|
||||
|
||||
|
||||
.can_skate
|
||||
call OldIsTileCollisionGrass
|
||||
jr z, .slow
|
||||
ld a, FAST_STEP_UP
|
||||
ret
|
||||
|
||||
|
||||
.slow
|
||||
ld a, STEP_UP
|
||||
ret
|
||||
|
||||
|
||||
.collision
|
||||
ld a, STANDING
|
||||
ld [wSkatingDirection], a
|
||||
|
|
@ -316,7 +316,7 @@ CheckSkateLeft: ; 03:41db
|
|||
jr nz, .collision
|
||||
ld a, FAST_JUMP_LEFT
|
||||
ret
|
||||
|
||||
|
||||
.can_skate
|
||||
call OldIsTileCollisionGrass
|
||||
jr z, .slow
|
||||
|
|
@ -326,7 +326,7 @@ CheckSkateLeft: ; 03:41db
|
|||
.slow
|
||||
ld a, STEP_LEFT
|
||||
ret
|
||||
|
||||
|
||||
.collision
|
||||
ld a, STANDING
|
||||
ld [wSkatingDirection], a
|
||||
|
|
@ -357,7 +357,7 @@ CheckSkateRight: ; 03:420b
|
|||
.slow
|
||||
ld a, STEP_RIGHT
|
||||
ret
|
||||
|
||||
|
||||
.collision
|
||||
ld a, STANDING
|
||||
ld [wSkatingDirection], a
|
||||
|
|
@ -1081,7 +1081,7 @@ GetCollisionType::
|
|||
ret
|
||||
|
||||
SECTION "engine/overworld/player_movement.asm@Rest of Player Movement", ROMX
|
||||
|
||||
|
||||
_UnusedReturnFalse:: ; 03:4764
|
||||
xor a
|
||||
ret
|
||||
|
|
@ -1152,7 +1152,7 @@ GetPlayerSprite: ; 05:400a
|
|||
ld [wPlayerSprite], a
|
||||
ld [wPlayerObjectSprite], a
|
||||
ret
|
||||
|
||||
|
||||
PlayerSpriteTable: ; 03:402d
|
||||
; state, sprite
|
||||
db PLAYER_NORMAL, SPRITE_GOLD
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ LoadSpawnPoint: ; 03:4791
|
|||
pop de
|
||||
pop hl
|
||||
ret
|
||||
|
||||
|
||||
IsSpawnPoint: ; 03:47b6
|
||||
; Checks if the map loaded in de is a spawn point.
|
||||
; Returns carry if it's a spawn point.
|
||||
|
|
|
|||
|
|
@ -3,111 +3,111 @@ INCLUDE "constants.asm"
|
|||
SECTION "engine/palettes.asm@Overworld fade", ROMX
|
||||
|
||||
OverworldFadeIn:: ; 23:433e
|
||||
ld c, 0
|
||||
call GetFadeStep
|
||||
ld b, 4
|
||||
call FadeTowardsWhite
|
||||
ret
|
||||
ld c, 0
|
||||
call GetFadeStep
|
||||
ld b, 4
|
||||
call FadeTowardsWhite
|
||||
ret
|
||||
|
||||
OverworldFadeOut:: ; 23:4349
|
||||
ld c, 9
|
||||
call GetFadeStep
|
||||
ld b, 4
|
||||
call FadeTowardsBlack
|
||||
ret
|
||||
ld c, 9
|
||||
call GetFadeStep
|
||||
ld b, 4
|
||||
call FadeTowardsBlack
|
||||
ret
|
||||
|
||||
|
||||
; TODO: merge this
|
||||
SECTION "engine/palettes.asm@Palette fading, part 2?", ROMX
|
||||
|
||||
ApplyPalettesAtHL:: ; 23:43d1
|
||||
push hl
|
||||
ld a, [hli]
|
||||
ld [rBGP], a
|
||||
ld a, [hli]
|
||||
ld [rOBP0], a
|
||||
ld a, [hli]
|
||||
ld [rOBP1], a
|
||||
pop hl
|
||||
ret
|
||||
push hl
|
||||
ld a, [hli]
|
||||
ld [rBGP], a
|
||||
ld a, [hli]
|
||||
ld [rOBP0], a
|
||||
ld a, [hli]
|
||||
ld [rOBP1], a
|
||||
pop hl
|
||||
ret
|
||||
|
||||
FadeTowardsWhite:: ; 23:43dd
|
||||
call ApplyPalettesAtHL
|
||||
inc hl
|
||||
inc hl
|
||||
inc hl
|
||||
ld c, 8
|
||||
call DelayFrames
|
||||
dec b
|
||||
jr nz, FadeTowardsWhite
|
||||
ret
|
||||
call ApplyPalettesAtHL
|
||||
inc hl
|
||||
inc hl
|
||||
inc hl
|
||||
ld c, 8
|
||||
call DelayFrames
|
||||
dec b
|
||||
jr nz, FadeTowardsWhite
|
||||
ret
|
||||
|
||||
FadeTowardsBlack:: ; 23:43ec
|
||||
call ApplyPalettesAtHL
|
||||
dec hl
|
||||
dec hl
|
||||
dec hl
|
||||
ld c, 8
|
||||
call DelayFrames
|
||||
dec b
|
||||
jr nz, FadeTowardsBlack
|
||||
ret
|
||||
call ApplyPalettesAtHL
|
||||
dec hl
|
||||
dec hl
|
||||
dec hl
|
||||
ld c, 8
|
||||
call DelayFrames
|
||||
dec b
|
||||
jr nz, FadeTowardsBlack
|
||||
ret
|
||||
|
||||
GetFadeStep:: ; 23:43fb
|
||||
ld a, [wTimeOfDayPal]
|
||||
and 3
|
||||
push bc
|
||||
ld c, a
|
||||
ld b, 0
|
||||
ld hl, .sequences
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
pop bc
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
ret
|
||||
ld a, [wTimeOfDayPal]
|
||||
and 3
|
||||
push bc
|
||||
ld c, a
|
||||
ld b, 0
|
||||
ld hl, .sequences
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
pop bc
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
ret
|
||||
|
||||
.sequences
|
||||
dw .sequence0
|
||||
dw .sequence1
|
||||
dw .sequence2
|
||||
dw .sequence3
|
||||
dw .sequence0
|
||||
dw .sequence1
|
||||
dw .sequence2
|
||||
dw .sequence3
|
||||
|
||||
.sequence0
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $fe
|
||||
db $f9, $e4, $e4
|
||||
db $e4, $d0, $d0
|
||||
db $90, $80, $80
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $fe
|
||||
db $f9, $e4, $e4
|
||||
db $e4, $d0, $d0
|
||||
db $90, $80, $80
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
|
||||
.sequence1
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $fe
|
||||
db $f9, $e4, $e4
|
||||
db $e9, $d0, $d0
|
||||
db $90, $80, $80
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $fe
|
||||
db $f9, $e4, $e4
|
||||
db $e9, $d0, $d0
|
||||
db $90, $80, $80
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
|
||||
.sequence2
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $ff
|
||||
db $f9, $e4, $ff
|
||||
db $f9, $d0, $ff
|
||||
db $90, $80, $90
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $ff
|
||||
db $f9, $e4, $ff
|
||||
db $f9, $d0, $ff
|
||||
db $90, $80, $90
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
|
||||
.sequence3
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $fe
|
||||
db $f9, $e4, $e4
|
||||
db $e8, $d0, $d0
|
||||
db $90, $80, $80
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
db $ff, $ff, $ff
|
||||
db $fe, $fe, $fe
|
||||
db $f9, $e4, $e4
|
||||
db $e8, $d0, $d0
|
||||
db $90, $80, $80
|
||||
db $40, $40, $40
|
||||
db $00, $00, $00
|
||||
|
|
|
|||
|
|
@ -12,19 +12,19 @@ HealParty: ; 03:4d6f
|
|||
jr z, .party_done
|
||||
push hl
|
||||
push de
|
||||
|
||||
|
||||
; Clear the status
|
||||
ld hl, MON_STATUS
|
||||
add hl, de
|
||||
xor a
|
||||
ld [hli], a
|
||||
ld [hl], a
|
||||
|
||||
|
||||
; Reset the PP
|
||||
ld hl, MON_MOVES
|
||||
add hl, de
|
||||
ld b, NUM_MOVES
|
||||
|
||||
|
||||
.move_loop
|
||||
push hl
|
||||
push bc
|
||||
|
|
@ -46,14 +46,14 @@ HealParty: ; 03:4d6f
|
|||
and PP_UP_MASK
|
||||
add b
|
||||
ld [hl], a
|
||||
|
||||
|
||||
.next_move
|
||||
pop bc
|
||||
pop hl
|
||||
inc hl
|
||||
dec b
|
||||
jr nz, .move_loop
|
||||
|
||||
|
||||
; Reset the HP
|
||||
pop de
|
||||
push de
|
||||
|
|
@ -94,9 +94,9 @@ HealParty: ; 03:4d6f
|
|||
dec b
|
||||
jr nz, .pp_up
|
||||
ret
|
||||
|
||||
|
||||
SECTION "engine/pokemon/health.asm@HP Bar", ROMX
|
||||
|
||||
|
||||
ComputeHPBarPixels: ; 03:4e3c
|
||||
push hl
|
||||
xor a
|
||||
|
|
@ -139,7 +139,7 @@ ComputeHPBarPixels: ; 03:4e3c
|
|||
ret nz
|
||||
ld e, 1
|
||||
ret
|
||||
|
||||
|
||||
UpdateHPBar: ; 03:4e7c
|
||||
ld a, [wHPBarOldHP]
|
||||
ld c, a
|
||||
|
|
@ -178,7 +178,7 @@ UpdateHPBar: ; 03:4e7c
|
|||
call UpdateHPBar_CompareNewHPToOldHP
|
||||
jr z, .animate_hp_bar_done
|
||||
jr nc, .hp_increase
|
||||
|
||||
|
||||
;hp_decrease
|
||||
dec bc
|
||||
ld a, c
|
||||
|
|
@ -225,7 +225,7 @@ UpdateHPBar: ; 03:4e7c
|
|||
ld a, 1
|
||||
call UpdateHPBar_AnimateHPBar
|
||||
jp WaitBGMap
|
||||
|
||||
|
||||
; animates the HP bar going up or down for (a) ticks (two waiting frames each)
|
||||
; stops prematurely if bar is filled up
|
||||
; e: current health (in pixels) to start with
|
||||
|
|
@ -257,7 +257,7 @@ UpdateHPBar_AnimateHPBar: ; 03:4F11
|
|||
pop af
|
||||
pop hl
|
||||
ret
|
||||
|
||||
|
||||
; compares old HP and new HP and sets c and z flags accordingly
|
||||
UpdateHPBar_CompareNewHPToOldHP: ; 03:4F37
|
||||
ld a, d
|
||||
|
|
@ -266,7 +266,7 @@ UpdateHPBar_CompareNewHPToOldHP: ; 03:4F37
|
|||
ld a, e
|
||||
sub c
|
||||
ret
|
||||
|
||||
|
||||
; calcs HP difference between bc and de (into de)
|
||||
UpdateHPBar_CalcHPDifference: ; 03:4F3D
|
||||
ld a, d
|
||||
|
|
@ -296,7 +296,7 @@ UpdateHPBar_CalcHPDifference: ; 03:4F3D
|
|||
jr nz, .new_hp_greater
|
||||
ld de, 0
|
||||
ret
|
||||
|
||||
|
||||
UpdateHPBar_PrintHPNumber: ; 03:4F5B
|
||||
push af
|
||||
push de
|
||||
|
|
|
|||
218
engine/title.asm
218
engine/title.asm
|
|
@ -3,34 +3,34 @@ INCLUDE "constants.asm"
|
|||
SECTION "engine/title.asm@Title screen", ROMX
|
||||
|
||||
IntroSequence::
|
||||
callab GameFreakIntro ; Bank $39
|
||||
callab GameFreakIntro ; Bank $39
|
||||
jr c, TitleSequenceStart
|
||||
ld a, [wTitleSequenceOpeningType]
|
||||
and a
|
||||
jr z, .opening_sequence
|
||||
|
||||
|
||||
.pikachu_minigame
|
||||
callab PikachuMiniGame ; Bank $38
|
||||
callab PikachuMiniGame ; Bank $38
|
||||
jr TitleSequenceStart
|
||||
|
||||
.opening_sequence
|
||||
callab OpeningCutscene ; Bank $39
|
||||
callab OpeningCutscene ; Bank $39
|
||||
|
||||
TitleSequenceStart::
|
||||
call TitleSequenceInit
|
||||
callab SetTitleBGDecorationBorder ; Bank $02
|
||||
|
||||
callab SetTitleBGDecorationBorder ; Bank $02
|
||||
|
||||
.loop
|
||||
call TitleScreenMain
|
||||
call TitleScreenMain
|
||||
jr nc, .loop
|
||||
|
||||
|
||||
call ClearBGPalettes
|
||||
call ClearSprites
|
||||
ld a, $01
|
||||
ldh [hBGMapMode], a
|
||||
call ClearTileMap
|
||||
call UpdateTimePals
|
||||
|
||||
|
||||
ld a, [wJumptableIndex + 1]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
|
|
@ -40,31 +40,31 @@ TitleSequenceStart::
|
|||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
|
||||
|
||||
jp hl
|
||||
|
||||
TitleScreenJumpTable::
|
||||
dw MainMenu
|
||||
dw DebugMenu
|
||||
dw DebugMenu
|
||||
dw SRAMClearMenu
|
||||
dw IntroSequence
|
||||
|
||||
TitleSequenceInit::
|
||||
call ClearPalettes
|
||||
|
||||
|
||||
xor a
|
||||
ldh [hMapAnims], a
|
||||
ldh [hSCY], a
|
||||
ldh [hSCX], a
|
||||
|
||||
ld de, MUSIC_NONE ; Stop the music.
|
||||
|
||||
ld de, MUSIC_NONE ; Stop the music.
|
||||
call PlayMusic
|
||||
|
||||
|
||||
call ClearTileMap
|
||||
call DisableLCD
|
||||
call ClearSprites
|
||||
|
||||
callba InitEffectObject ; Bank $23
|
||||
|
||||
callba InitEffectObject ; Bank $23
|
||||
ld hl, vChars0
|
||||
ld bc, vBGMap0 - vChars0
|
||||
|
||||
|
|
@ -81,70 +81,70 @@ TitleSequenceInit::
|
|||
ld bc, 13 tiles
|
||||
ld a, BANK(TitleScreenGFX)
|
||||
call FarCopyData
|
||||
|
||||
|
||||
ld hl, TitleScreenVersionGFX
|
||||
ld de, vChars2 + 96 tiles
|
||||
ld bc, 24 tiles
|
||||
ld a, BANK(TitleScreenVersionGFX)
|
||||
call FarCopyData
|
||||
|
||||
|
||||
ld hl, TitleScreenHoOhGFX
|
||||
ld de, vChars2
|
||||
ld bc, 49 tiles
|
||||
ld a, BANK(TitleScreenHoOhGFX)
|
||||
call FarCopyData
|
||||
|
||||
|
||||
ld hl, TitleScreenLogoGFX
|
||||
ld de, vChars1
|
||||
ld bc, 58 tiles
|
||||
ld a, BANK(TitleScreenLogoGFX)
|
||||
call FarCopyData
|
||||
|
||||
|
||||
ld hl, TitleScreenGoldLogoGFX
|
||||
ld de, vChars0 + 186 tiles
|
||||
ld bc, 20 tiles
|
||||
ld a, BANK(TitleScreenGoldLogoGFX)
|
||||
call FarCopyData
|
||||
|
||||
|
||||
call SetTitleGfx
|
||||
ld hl, wTileMapBackup
|
||||
ld a, $24
|
||||
ld [hli], a
|
||||
ld a, $00
|
||||
ld [hli], a
|
||||
|
||||
|
||||
ld hl, vBGMap0
|
||||
ld bc, 128 tiles
|
||||
ld a, " "
|
||||
call ByteFill
|
||||
|
||||
|
||||
ld b, $06
|
||||
call GetSGBLayout
|
||||
call EnableLCD
|
||||
ld a, $01
|
||||
ld a, $01
|
||||
ldh [hBGMapMode], a
|
||||
call WaitBGMap
|
||||
xor a
|
||||
ldh [hBGMapMode], a
|
||||
ld hl, wJumptableIndex
|
||||
ld [hli], a ; (Possibly wJumptableIndex from Crystal)
|
||||
ld [hli], a ; (Possibly wIntroSceneFrameCounter from Crystal)
|
||||
ld [hli], a ; (Possibly wTitleScreenTimer from Crystal)
|
||||
ld [hl], a ; (Possibly wTitleScreenTimer + 1 from Crystal)
|
||||
|
||||
ld [hli], a ; (Possibly wJumptableIndex from Crystal)
|
||||
ld [hli], a ; (Possibly wIntroSceneFrameCounter from Crystal)
|
||||
ld [hli], a ; (Possibly wTitleScreenTimer from Crystal)
|
||||
ld [hl], a ; (Possibly wTitleScreenTimer + 1 from Crystal)
|
||||
|
||||
call .load_position_table
|
||||
|
||||
|
||||
|
||||
|
||||
ld a, %00011010
|
||||
ldh [rBGP], a
|
||||
ld a, %11100100
|
||||
ldh [rOBP0], a
|
||||
ret
|
||||
|
||||
|
||||
.load_position_table:
|
||||
ld hl, FirePositionTable
|
||||
ld c, 6 ; Load 6 flying objects on the screen.
|
||||
|
||||
ld c, 6 ; Load 6 flying objects on the screen.
|
||||
|
||||
.set_fire_note_loop
|
||||
push bc
|
||||
ld e, [hl]
|
||||
|
|
@ -152,7 +152,7 @@ TitleSequenceInit::
|
|||
ld d, [hl]
|
||||
inc hl
|
||||
push hl
|
||||
ld a, $2E ; Title fire/note object effect type?
|
||||
ld a, $2E ; Title fire/note object effect type?
|
||||
call InitSpriteAnimStruct
|
||||
pop hl
|
||||
pop bc
|
||||
|
|
@ -168,15 +168,15 @@ FirePositionTable::
|
|||
dw $7CB0
|
||||
dw $8800
|
||||
|
||||
TitleFireGFX:: INCBIN "gfx/title/fire.2bpp" ; 5EB8-5F37
|
||||
TitleNotesGFX:: INCBIN "gfx/title/notes.2bpp" ; 5F38=5FB7
|
||||
TitleFireGFX:: INCBIN "gfx/title/fire.2bpp" ; 5EB8-5F37
|
||||
TitleNotesGFX:: INCBIN "gfx/title/notes.2bpp" ; 5F38=5FB7
|
||||
|
||||
TitleScreenMain::
|
||||
ld a, [wJumptableIndex]
|
||||
bit 7, a
|
||||
jr nz, .exit
|
||||
call TitleScreenSequence
|
||||
callba EffectObjectJumpNoDelay ; Bank $23
|
||||
callba EffectObjectJumpNoDelay ; Bank $23
|
||||
call DelayFrame
|
||||
and a
|
||||
ret
|
||||
|
|
@ -195,47 +195,47 @@ TitleScreenSequence::
|
|||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
|
||||
TitleScreenSequenceTable::
|
||||
dw TitleSeq_Start
|
||||
dw TitleSeq_LoadPokemonLogo
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_MoveTitle
|
||||
dw TitleSeq_MoveTitleEnd
|
||||
dw TitleSeq_InitFlashTitle
|
||||
dw TitleSeq_Start
|
||||
dw TitleSeq_LoadPokemonLogo
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_MoveTitle
|
||||
dw TitleSeq_MoveTitleEnd
|
||||
dw TitleSeq_InitFlashTitle
|
||||
dw TitleSeq_FlashTitle
|
||||
|
||||
dw TitleSeq_PMJapaneseChara
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_PMSubtitle
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_PMJapaneseChara
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_PMSubtitle
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_Version
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_Version
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_CopyRight
|
||||
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_HoOh
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_HoOh
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
dw TitleSeq_IncreaseJumpTableIndex
|
||||
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_PressButtonInit
|
||||
dw TitleSeq_TitleScreenInputAndTimeout
|
||||
dw TitleSeq_WaitForNextSequence
|
||||
dw TitleSeq_PressButtonInit
|
||||
dw TitleSeq_TitleScreenInputAndTimeout
|
||||
dw TitleSeq_FadeMusicOut
|
||||
|
||||
TitleSeq_IncreaseJumpTableIndex::
|
||||
|
|
@ -262,13 +262,13 @@ TitleSeq_LoadPokemonLogo::
|
|||
call TitleSeq_IncreaseJumpTableIndex
|
||||
ld a, $01
|
||||
ldh [hBGMapMode], a
|
||||
ret
|
||||
|
||||
TitleSeq_Start::
|
||||
ret
|
||||
|
||||
TitleSeq_Start::
|
||||
call TitleSeq_IncreaseJumpTableIndex
|
||||
push de
|
||||
ld de, $002D
|
||||
call PlaySFX ; Play "Swish" sound
|
||||
call PlaySFX ; Play "Swish" sound
|
||||
pop de
|
||||
ld a, $80
|
||||
ld [wJumptableIndex + 2], a
|
||||
|
|
@ -277,7 +277,7 @@ TitleSeq_Start::
|
|||
ldh [hLCDCPointer], a
|
||||
ret
|
||||
|
||||
TitleSeq_MoveTitle::
|
||||
TitleSeq_MoveTitle::
|
||||
xor a
|
||||
ldh [hBGMapMode], a
|
||||
ld hl, wJumptableIndex + 2
|
||||
|
|
@ -297,14 +297,14 @@ TitleSeq_MoveTitle::
|
|||
|
||||
.nextseq
|
||||
call TitleSeq_IncreaseJumpTableIndex
|
||||
ret
|
||||
|
||||
ret
|
||||
|
||||
TitleSeq_MoveTitleEnd::
|
||||
xor a
|
||||
ldh [hLCDCPointer], a
|
||||
call TitleSeq_IncreaseJumpTableIndex
|
||||
ld de, MUSIC_TITLE
|
||||
call PlayMusic ; Play "Title Theme"
|
||||
call PlayMusic ; Play "Title Theme"
|
||||
ret
|
||||
|
||||
TitleSeq_InitFlashTitle::
|
||||
|
|
@ -315,7 +315,7 @@ TitleSeq_InitFlashTitle::
|
|||
ld [wJumptableIndex + 3], a
|
||||
ret
|
||||
|
||||
TitleSeq_FlashTitle::
|
||||
TitleSeq_FlashTitle::
|
||||
ld hl, wJumptableIndex + 3
|
||||
ld a, [hl]
|
||||
and a
|
||||
|
|
@ -362,7 +362,7 @@ TitleSeq_Version::
|
|||
ldh [hBGMapMode], a
|
||||
ret
|
||||
|
||||
TitleSeq_CopyRight::
|
||||
TitleSeq_CopyRight::
|
||||
call PrintCopyRight
|
||||
ld a, $10
|
||||
ld [wJumptableIndex + 2], a
|
||||
|
|
@ -384,12 +384,12 @@ TitleSeq_PressButtonInit::
|
|||
ld hl, wJumptableIndex
|
||||
inc [hl]
|
||||
ld hl, wJumptableIndex + 2
|
||||
ld de, DecodeNybble0Table - 3 ; DecodeNybble0Table - 3 = $0C00
|
||||
ld de, DecodeNybble0Table - 3 ; DecodeNybble0Table - 3 = $0C00
|
||||
ld [hl], e
|
||||
inc hl
|
||||
ld [hl], d
|
||||
ret
|
||||
|
||||
ret
|
||||
|
||||
TitleSeq_TitleScreenInputAndTimeout::
|
||||
ld hl, wJumptableIndex + 2
|
||||
ld e, [hl]
|
||||
|
|
@ -403,29 +403,29 @@ TitleSeq_TitleScreenInputAndTimeout::
|
|||
dec hl
|
||||
ld [hl], e
|
||||
call GetJoypad
|
||||
ld hl, hJoyState
|
||||
ld hl, hJoyState
|
||||
ld a, [hl]
|
||||
and D_UP | B_BUTTON | SELECT ; UP + B + SELECT brings you to the SRAM clear screen.
|
||||
and D_UP | B_BUTTON | SELECT ; UP + B + SELECT brings you to the SRAM clear screen.
|
||||
cp D_UP | B_BUTTON | SELECT
|
||||
jr z, .psbtn_sramclear
|
||||
ld a, [hl]
|
||||
and SELECT ; SELECT will bring you to the debug menu.
|
||||
and SELECT ; SELECT will bring you to the debug menu.
|
||||
jr nz, .psbtn_gotodebug
|
||||
ld a, [hl]
|
||||
and $09
|
||||
ret z
|
||||
|
||||
|
||||
.psbtn_play
|
||||
ld a, $00 ; MainMenu
|
||||
ld a, $00 ; MainMenu
|
||||
jr .psbtn_nextseq
|
||||
|
||||
.psbtn_gotodebug
|
||||
ld a, $01 ; DebugMenu
|
||||
ld a, $01 ; DebugMenu
|
||||
jr .psbtn_nextseq
|
||||
|
||||
.psbtn_sramclear
|
||||
ld a, $02
|
||||
|
||||
|
||||
.psbtn_nextseq
|
||||
ld [wJumptableIndex + 1], a
|
||||
ld hl, wJumptableIndex
|
||||
|
|
@ -436,12 +436,12 @@ TitleSeq_TitleScreenInputAndTimeout::
|
|||
ld hl, wJumptableIndex
|
||||
inc [hl]
|
||||
xor a
|
||||
ld [wMusicFadeID], a
|
||||
ld [wMusicFadeID], a
|
||||
ld [wMusicFadeID + 1], a
|
||||
ld hl, wMusicFade
|
||||
ld [hl], 8
|
||||
ret
|
||||
|
||||
ret
|
||||
|
||||
TitleSeq_FadeMusicOut::
|
||||
ld a, [wMusicFade]
|
||||
and a
|
||||
|
|
@ -450,7 +450,7 @@ TitleSeq_FadeMusicOut::
|
|||
ld [wJumptableIndex + 1], a
|
||||
ld hl, wJumptableIndex
|
||||
set 7, [hl]
|
||||
ret
|
||||
ret
|
||||
|
||||
SetLYOverrides::
|
||||
ld hl, wLYOverrides
|
||||
|
|
@ -471,7 +471,7 @@ PrintVersion::
|
|||
coord hl, 4, 1
|
||||
ld b, $09
|
||||
ld a, $60
|
||||
|
||||
|
||||
LoadPrintArea::
|
||||
ld [hli], a
|
||||
inc a
|
||||
|
|
@ -493,12 +493,12 @@ PrintPokemonLogo::
|
|||
coord hl, 1, 2
|
||||
ld a, $80
|
||||
ld bc, $0E04
|
||||
|
||||
|
||||
PrintBoxArea::
|
||||
ld de, SCREEN_WIDTH
|
||||
push bc
|
||||
push hl
|
||||
|
||||
|
||||
.xloop
|
||||
ld [hli], a
|
||||
inc a
|
||||
|
|
@ -510,19 +510,19 @@ PrintBoxArea::
|
|||
dec c
|
||||
jr nz, PrintBoxArea
|
||||
ret
|
||||
|
||||
|
||||
PrintCopyRight::
|
||||
coord hl, 3, 17
|
||||
ld a, $41
|
||||
ld b, $0D
|
||||
|
||||
|
||||
.loop
|
||||
ld [hli], a
|
||||
inc a
|
||||
dec b
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
|
||||
SRAMClearMenu::
|
||||
call ClearTileMap
|
||||
call GetMemSGBLayout
|
||||
|
|
@ -549,7 +549,7 @@ SRAMClear_WinPOS::
|
|||
db 0
|
||||
db 7,14,11,19
|
||||
dw SRAMClear_TextChoice ; menu data
|
||||
db 1 ; default option
|
||||
db 1 ; default option
|
||||
|
||||
SRAMClear_TextChoice::
|
||||
db %11000000
|
||||
|
|
@ -570,9 +570,9 @@ IntroCopyRightInfo::
|
|||
jp PlaceString
|
||||
|
||||
IntroCopyRightInfo_Text::
|
||||
db $60, $61, $62, $63, $6D, $6E, $6F, $70, $71, $72, $4E ; "(C)1997 Nintendo\n"
|
||||
db $60, $61, $62, $63, $73, $74, $75, $76, $77, $78, $6B, $6C, $4E ; "(C)1997 Creatures Inc.\n"
|
||||
db $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $6A, $6B, $6C, $50 ; "(C)1997 GAME FREAK Inc.{EOL}"
|
||||
db $60, $61, $62, $63, $6D, $6E, $6F, $70, $71, $72, $4E ; "(C)1997 Nintendo\n"
|
||||
db $60, $61, $62, $63, $73, $74, $75, $76, $77, $78, $6B, $6C, $4E ; "(C)1997 Creatures Inc.\n"
|
||||
db $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $6A, $6B, $6C, $50 ; "(C)1997 GAME FREAK Inc.{EOL}"
|
||||
|
||||
Set_HoOh::
|
||||
coord hl, 7, 9
|
||||
|
|
@ -591,7 +591,7 @@ Set_HoOh::
|
|||
jr nz, .loop
|
||||
ret
|
||||
|
||||
; Unused code, looks like it sets the font type for the logo?
|
||||
; Unused code, looks like it sets the font type for the logo?
|
||||
SetTitleFont::
|
||||
ld de, vChars1
|
||||
ld hl, TitleScreenLogoGFX
|
||||
|
|
@ -599,15 +599,15 @@ SetTitleFont::
|
|||
ld a, $04
|
||||
jp FarCopyDataDouble
|
||||
|
||||
; Sets the type of art that will be displayed on the title screen
|
||||
; depending on wTitleSequenceOpeningType.
|
||||
; Sets the type of art that will be displayed on the title screen
|
||||
; depending on wTitleSequenceOpeningType.
|
||||
SetTitleGfx::
|
||||
ld hl, wTitleSequenceOpeningType
|
||||
ld a, [hl]
|
||||
xor $01
|
||||
ld [hl], a
|
||||
jr nz, .flame
|
||||
|
||||
|
||||
.note
|
||||
ld hl, TitleNotesGFX
|
||||
jr SetTitleGfxNext
|
||||
|
|
|
|||
|
|
@ -7,17 +7,17 @@ Unknown11d32: ; 04:5D32
|
|||
ld a, [hl]
|
||||
and D_UP
|
||||
jr nz, .upJump
|
||||
ld a, [hl]
|
||||
ld a, [hl]
|
||||
and D_DOWN
|
||||
jr nz, .downJump
|
||||
ld a, [hl]
|
||||
and D_LEFT
|
||||
jr nz, .leftJump
|
||||
ld a, [hl]
|
||||
ld a, [hl]
|
||||
and D_RIGHT
|
||||
jr nz, .rightJump
|
||||
ret
|
||||
|
||||
|
||||
.rightJump; 04:5D4A
|
||||
ld hl, $000C
|
||||
add hl, bc
|
||||
|
|
@ -84,9 +84,9 @@ Unknown11d32: ; 04:5D32
|
|||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
.Offsets1: ; 04:5DAB
|
||||
db $00, $08, $10, $18, $20, $28, $30, $48, $50, $58, $60, $68, $70, $78
|
||||
|
||||
db $00, $08, $10, $18, $20, $28, $30, $48, $50, $58, $60, $68, $70, $78
|
||||
|
||||
.Offsets2: ; 04:5DB9
|
||||
db $00, $08, $18, $20, $30
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ SECTION "engine/unknown_boxes.asm", ROMX
|
|||
|
||||
Function1130a: ; 04:530A
|
||||
ret
|
||||
|
||||
|
||||
Function1130b: ; 04:530B
|
||||
ld a, [wPartyCount]
|
||||
cp PARTY_LENGTH
|
||||
|
|
@ -28,7 +28,7 @@ Function1130b: ; 04:530B
|
|||
call PrintText
|
||||
scf
|
||||
ret
|
||||
.fullbox
|
||||
.fullbox
|
||||
ld hl, BoxFullText
|
||||
call PrintText
|
||||
and a
|
||||
|
|
@ -38,7 +38,7 @@ Function1130b: ; 04:530B
|
|||
predef Functiond886
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
RecievePokemon: ; 04:5357
|
||||
ld a, [wMonDexIndex]
|
||||
push af
|
||||
|
|
@ -53,17 +53,17 @@ RecievePokemon: ; 04:5357
|
|||
call GetPokemonName
|
||||
ld hl, RecievePokemonText
|
||||
jp PrintText
|
||||
|
||||
|
||||
RecievePokemonText: ; 04:5377
|
||||
text "<PLAYER>は"
|
||||
line "@"
|
||||
|
||||
|
||||
db $01, $26, $CD
|
||||
|
||||
|
||||
text "を てにいれた!@"
|
||||
|
||||
db $0B, "@"
|
||||
|
||||
|
||||
db $0B, "@"
|
||||
|
||||
BoxCantHoldText: ; 04:538B
|
||||
text "#を もちきれないので"
|
||||
line "<PC>の ボックス@"
|
||||
|
|
@ -73,7 +73,7 @@ BoxCantHoldText: ; 04:538B
|
|||
db $01, $17, $DF
|
||||
text "を てんそうした!"
|
||||
done
|
||||
|
||||
|
||||
BoxFullText: ; 04:53B6
|
||||
text "#を もちきれません!"
|
||||
para "ボックスも いっぱいで"
|
||||
|
|
|
|||
2
gfx.asm
2
gfx.asm
|
|
@ -81,7 +81,7 @@ TitleScreenGoldLogoGFX:: INCBIN "gfx/title/title_silverlogo.2bpp"
|
|||
endc
|
||||
|
||||
SECTION "gfx.asm@Name Entry Extra Tiles", ROMX
|
||||
TextScreenGFX_End::
|
||||
TextScreenGFX_End::
|
||||
INCBIN "gfx/font/text_entry_end.1bpp"
|
||||
TextScreenGFX_Hyphen::
|
||||
INCBIN "gfx/font/text_entry_hyphen.1bpp"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ SECTION "home/init.asm@Entry point", ROM0
|
|||
SECTION "home/init.asm@Global check value", ROM0
|
||||
; The ROM has an incorrect global check, so set it here.
|
||||
; It is not corrected by RGBFIX.
|
||||
dw $C621
|
||||
dw $C621
|
||||
|
||||
|
||||
SECTION "home/init.asm@Init", ROM0
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ TextboxWaitPressAorB_BlinkCursor:
|
|||
; Show a blinking cursor in the lower right-hand
|
||||
; corner of a textbox and wait until A or B is
|
||||
; pressed.
|
||||
;
|
||||
;
|
||||
; CAUTION: The cursor has to be shown when calling
|
||||
; this function or no cursor will be shown at all.
|
||||
; Waiting on button presses is unaffected by this.
|
||||
|
|
|
|||
22
home/map.asm
22
home/map.asm
|
|
@ -959,7 +959,7 @@ InitUnknownBuffercc9e:: ; 26f4
|
|||
ld a, e
|
||||
or d
|
||||
jr z, .null
|
||||
|
||||
|
||||
ld a, [wMapBuffer]
|
||||
ld l, a
|
||||
ld h, 0
|
||||
|
|
@ -1579,17 +1579,17 @@ Function2a8d:: ; 00:2a8d
|
|||
|
||||
.Pointers: ; 00:2ab1
|
||||
dbbw $00, $55, Function2ae5
|
||||
dbbw $00, $55, Function2b52
|
||||
dbbw $00, $55, Function2b77
|
||||
dbbw $0e, $33, Function3904
|
||||
dbbw $00, $55, Function2b39
|
||||
dbbw $0e, $33, Function391f
|
||||
dbbw $00, $33, Function2b78
|
||||
dbbw $00, $33, Function2b78
|
||||
dbbw $00, $55, Function2b52
|
||||
dbbw $00, $55, Function2b77
|
||||
dbbw $0e, $33, Function3904
|
||||
dbbw $00, $55, Function2b79
|
||||
dbbw $00, $55, Function2b87
|
||||
dbbw $0e, $33, Function3920
|
||||
dbbw $00, $55, Function2b39
|
||||
dbbw $0e, $33, Function391f
|
||||
dbbw $00, $33, Function2b78
|
||||
dbbw $00, $33, Function2b78
|
||||
dbbw $0e, $33, Function3904
|
||||
dbbw $00, $55, Function2b79
|
||||
dbbw $00, $55, Function2b87
|
||||
dbbw $0e, $33, Function3920
|
||||
dbbw $05, $33, Function14777
|
||||
|
||||
Function2ae5::
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ GetObjectStruct:: ; 00:17bf
|
|||
|
||||
Function17cb::
|
||||
add $10
|
||||
|
||||
|
||||
Function17cd::
|
||||
ld e, a
|
||||
ldh a, [hROMBank]
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ ComputePathToWalkToPlayer::
|
|||
dec a
|
||||
cpl
|
||||
ld h, RIGHT
|
||||
.asm_1a1d:
|
||||
.asm_1a1d:
|
||||
ld d, a
|
||||
ld a, c
|
||||
sub e
|
||||
|
|
@ -70,7 +70,7 @@ ComputePathToWalkToPlayer::
|
|||
dec a
|
||||
cpl
|
||||
ld l, DOWN
|
||||
.asm_1a28:
|
||||
.asm_1a28:
|
||||
ld e, a
|
||||
cp d
|
||||
jr nc, .asm_1a32
|
||||
|
|
@ -80,7 +80,7 @@ ComputePathToWalkToPlayer::
|
|||
ld a, d
|
||||
ld d, e
|
||||
ld e, a
|
||||
.asm_1a32:
|
||||
.asm_1a32:
|
||||
pop af
|
||||
ld b, a
|
||||
ld a, h
|
||||
|
|
@ -110,7 +110,7 @@ ComputePathToWalkToPlayer::
|
|||
pop de
|
||||
ret
|
||||
|
||||
.Data:
|
||||
.Data:
|
||||
db $04, $05, $06, $07
|
||||
db $08, $09, $0a, $0b
|
||||
db $0c, $0d, $0e, $0f
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ GetItemName::
|
|||
jr .finish
|
||||
|
||||
.machine
|
||||
call GetMachineName
|
||||
call GetMachineName
|
||||
.finish
|
||||
ld de, wStringBuffer1
|
||||
pop bc
|
||||
|
|
|
|||
|
|
@ -47,10 +47,11 @@ _UncompressSpriteData:: ; 976 (0:976)
|
|||
add a
|
||||
add a
|
||||
ld [wSpriteWidth], a
|
||||
; initialite bit1 to 0 and bit0 to the first input bit
|
||||
; this will load two chunks of data to sSpriteBuffer1 and sSpriteBuffer2
|
||||
; bit 0 decides in which one the first chunk is placed
|
||||
call ReadNextInputBit
|
||||
ld [wSpriteLoadFlags], a ; initialite bit1 to 0 and bit0 to the first input bit
|
||||
; this will load two chunks of data to sSpriteBuffer1 and sSpriteBuffer2
|
||||
; bit 0 decides in which one the first chunk is placed
|
||||
ld [wSpriteLoadFlags], a
|
||||
; fallthrough
|
||||
|
||||
UncompressSpriteDataLoop::
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ INCLUDE "constants.asm"
|
|||
|
||||
SECTION "home/predef.asm", ROM0
|
||||
|
||||
Predef::
|
||||
Predef::
|
||||
ld [wPredefID], a
|
||||
ldh a, [hROMBank]
|
||||
push af
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ PrintBCDDigit::
|
|||
ld [hli], a
|
||||
jp PrintLetterDelay
|
||||
.zeroDigit
|
||||
bit 7, b ; either printing leading zeroes or
|
||||
bit 7, b ; either printing leading zeroes or
|
||||
jr z, .outputDigit ; already reached a nonzero digit?
|
||||
bit 6, b
|
||||
ret nz ; left-align, don't pad with space
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ PrintNumber::
|
|||
; instead of calling PrintNumber.
|
||||
; This function works as follow
|
||||
; There are three temporary registers
|
||||
; - hPrintNumDividend,
|
||||
; - hPrintNumDividend,
|
||||
; - hPrintNumDivisor,
|
||||
; - hPrintNumTemp
|
||||
; All are three bytes long and organized in big-endian order.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
INCLUDE "constants.asm"
|
||||
|
||||
|
||||
SECTION "home/tables.asm", ROM0
|
||||
|
||||
; find value a from table hl with row length de
|
||||
|
|
|
|||
|
|
@ -411,8 +411,8 @@ TextCommandProcessor:: ; 10a6 (0:10a6)
|
|||
ld [wTextDest], a
|
||||
ld a, b
|
||||
ld [wTextDest + 1], a
|
||||
; fall through
|
||||
|
||||
; fall through
|
||||
|
||||
NextTextCommand:: ; 10b7 (0:10b7)
|
||||
ld a, [hli]
|
||||
cp "@" ; terminator
|
||||
|
|
@ -454,7 +454,7 @@ Text_TX_BOX:: ; 10d0 (0:10d0)
|
|||
call DrawTextBox
|
||||
pop hl
|
||||
jr NextTextCommand
|
||||
|
||||
|
||||
Text_TX:: ; 10e2 (0:10e2)
|
||||
; TX
|
||||
; write text until "@"
|
||||
|
|
@ -697,7 +697,7 @@ Text_TX_DOTS: ; 11e1 (0:11e1)
|
|||
ld c, l
|
||||
pop hl
|
||||
jp NextTextCommand
|
||||
|
||||
|
||||
Text_TX_LINK_WAIT_BUTTON:: ; 1203 (0:1203)
|
||||
push bc
|
||||
call ButtonSound
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ Function38d8::
|
|||
|
||||
TestWildBattleStart::
|
||||
ldh a, [hJoyState]
|
||||
and D_PAD
|
||||
and D_PAD
|
||||
ret z ; if no directions are down, don't try and trigger a wild encounter
|
||||
call CheckBPressedDebug
|
||||
jp nz, ClearAccumulator ; if b button is down, clear acc
|
||||
|
|
|
|||
|
|
@ -51,14 +51,14 @@ Function33ef::
|
|||
|
||||
SkipNames::
|
||||
; Returns hl + a * 6
|
||||
and a
|
||||
ret z
|
||||
ld bc, 6
|
||||
and a
|
||||
ret z
|
||||
ld bc, 6
|
||||
.loop:
|
||||
add hl, bc
|
||||
dec a
|
||||
jr nz, .loop
|
||||
ret
|
||||
add hl, bc
|
||||
dec a
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
AddNTimes::
|
||||
; Adds bc to hl, a times
|
||||
|
|
@ -75,14 +75,14 @@ memcmp:: ; TODO: rename
|
|||
; Compare c bytes at hl and de
|
||||
; Returns z if all equal, nz otherwise.
|
||||
.loop:
|
||||
ld a, [de]
|
||||
cp [hl]
|
||||
ret nz
|
||||
inc de
|
||||
inc hl
|
||||
dec c
|
||||
jr nz, .loop
|
||||
ret
|
||||
ld a, [de]
|
||||
cp [hl]
|
||||
ret nz
|
||||
inc de
|
||||
inc hl
|
||||
dec c
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
Function3439::
|
||||
; Place 2x2 sprite from *de into OAM at slot a
|
||||
|
|
|
|||
62
hram.asm
62
hram.asm
|
|
@ -1,7 +1,7 @@
|
|||
SECTION "HRAM", HRAM
|
||||
|
||||
hOAMDMA:: ; ff80
|
||||
ds 10
|
||||
ds 10
|
||||
|
||||
ds 3 ; TODO
|
||||
|
||||
|
|
@ -9,22 +9,22 @@ hRTCHours:: db ; ff8d
|
|||
hRTCMinutes:: db ; ff8e
|
||||
hRTCSeconds:: db ; ff8f
|
||||
hRTCDays:: db ; ff90
|
||||
ds 2 ; TODO
|
||||
ds 2 ; TODO
|
||||
hRTCStatusFlags:: db ; ff93
|
||||
ds 3 ; TODO
|
||||
|
||||
hVBlankCounter:: ; ff97
|
||||
db
|
||||
db
|
||||
|
||||
hROMBank:: ; ff98
|
||||
db
|
||||
db
|
||||
|
||||
|
||||
hVBlank:: ; ff99
|
||||
db
|
||||
db
|
||||
|
||||
hMapEntryMethod:: ; ff9a
|
||||
db
|
||||
db
|
||||
|
||||
hStartmenuCloseAndSelectHookEnable:: db ; ff9b
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ hJoypadSum:: db ; ffa0
|
|||
; Sum of all keys that were pressed
|
||||
; since hJoypadSum was last cleared
|
||||
|
||||
ds 1; TODO
|
||||
ds 1; TODO
|
||||
hJoyDown:: db ; ffa2
|
||||
hJoyState:: db ; ffa3
|
||||
hJoySum:: db ; ffa4
|
||||
|
|
@ -57,7 +57,7 @@ hJoyDebounceSrc:: db ; ffa5
|
|||
|
||||
hJoypadState2:: db ; ffa6
|
||||
|
||||
ds 6 ; TODO
|
||||
ds 6 ; TODO
|
||||
hGraphicStartTile:: db ; ffad
|
||||
hMoveMon:: db
|
||||
|
||||
|
|
@ -73,9 +73,9 @@ NEXTU
|
|||
|
||||
hSpriteWidth:: ; ffaf
|
||||
hSpriteInterlaceCounter:: ; ffaf
|
||||
db
|
||||
db
|
||||
hSpriteHeight:: ; ffb0
|
||||
db
|
||||
db
|
||||
|
||||
NEXTU
|
||||
|
||||
|
|
@ -90,9 +90,9 @@ hObjectStructIndexBuffer:: db ; ffb0
|
|||
ENDU
|
||||
|
||||
hSpriteOffset:: ; ffb1
|
||||
db
|
||||
db
|
||||
|
||||
db ; TODO
|
||||
db ; TODO
|
||||
|
||||
UNION
|
||||
|
||||
|
|
@ -129,9 +129,9 @@ ENDU
|
|||
ds 3 ; TODO
|
||||
|
||||
hFFC0:: ds 1 ; FFC0
|
||||
|
||||
|
||||
ds 6
|
||||
|
||||
|
||||
hFFC7:: db ; FFC7
|
||||
hFFC8:: db ; FFC8
|
||||
hFFC9:: db ; FFC9
|
||||
|
|
@ -139,30 +139,30 @@ hFFCA:: db ; FFCA
|
|||
hFFCB:: db ; FFCB
|
||||
hFFCC:: db ; FFCC
|
||||
|
||||
ds 3 ; TODO
|
||||
ds 3 ; TODO
|
||||
|
||||
hLCDCPointer:: ; ffd0
|
||||
db
|
||||
db
|
||||
|
||||
hLYOverrideStart:: db ; ffd1
|
||||
hLYOverrideEnd:: db ; ffd2
|
||||
ds 1 ; TODO
|
||||
ds 1 ; TODO
|
||||
|
||||
|
||||
hSerialReceived:: ; ffd4
|
||||
db
|
||||
db
|
||||
|
||||
hLinkPlayerNumber:: ; ffd5
|
||||
db
|
||||
db
|
||||
|
||||
hSerialIgnoringInitialData::
|
||||
db
|
||||
db
|
||||
|
||||
|
||||
hSerialSend:: ; ffd7
|
||||
db
|
||||
db
|
||||
hSerialReceive:: ; ffd8
|
||||
db
|
||||
db
|
||||
|
||||
|
||||
hSCX:: db ; ffd9
|
||||
|
|
@ -181,18 +181,18 @@ hOverworldFlashlightEffect:: db ; ffdd
|
|||
; 0x04 - 2x 2 tile block
|
||||
|
||||
hBGMapMode:: ; ffde
|
||||
db
|
||||
db
|
||||
|
||||
hBGMapTransferPosition:: ; ffdf
|
||||
db
|
||||
db
|
||||
|
||||
hBGMapAddress:: ; ffe0
|
||||
dw
|
||||
db ; TODO
|
||||
|
||||
dw
|
||||
db ; TODO
|
||||
|
||||
hSPTemp:: ; ffe3
|
||||
dw
|
||||
|
||||
dw
|
||||
|
||||
hRedrawRowOrColumnMode:: db ; ffe5
|
||||
; Used for redrawing BG in small updates
|
||||
; instead of once completely for faster
|
||||
|
|
@ -221,7 +221,7 @@ hRedrawRowOrColumnMode:: db ; ffe5
|
|||
hRedrawRowOrColumnDest:: ds 2 ; ffe6
|
||||
|
||||
hMapAnims:: ; ffe8
|
||||
db
|
||||
db
|
||||
|
||||
hTileAnimFrame:: ; ffe9
|
||||
db
|
||||
|
|
@ -244,4 +244,4 @@ hBattleTurn:: db ; fff2
|
|||
|
||||
hCurMapTextSubroutinePtr:: dw ; fff3
|
||||
|
||||
; TODO
|
||||
; TODO
|
||||
|
|
|
|||
|
|
@ -77,10 +77,10 @@ map: MACRO
|
|||
ENDM
|
||||
|
||||
warp_event: MACRO
|
||||
db \2, \1 ; y, x
|
||||
db \3 ; index
|
||||
map_id \4
|
||||
dw \5 ; unused wOverworldMap offset
|
||||
db \2, \1 ; y, x
|
||||
db \3 ; index
|
||||
map_id \4
|
||||
dw \5 ; unused wOverworldMap offset
|
||||
ENDM
|
||||
|
||||
bg_event: MACRO
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
init_script_table: MACRO
|
||||
script_id = 0
|
||||
script_id = 0
|
||||
ENDM
|
||||
|
||||
add_script: MACRO
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@ para EQUS "db \"<PARA>\"," ; Start a new paragraph.
|
|||
cont EQUS "db \"<CONT>\"," ; Scroll to the next line.
|
||||
done EQUS "db \"<DONE>\"" ; End a text box.
|
||||
prompt EQUS "db \"<PROMPT>\"" ; Prompt the player to end a text box (initiating some other event).
|
||||
text_end EQUS "db $50" ; End control code for text processor
|
||||
; different from @
|
||||
text_end EQUS "db $50" ; End control code for text processor (different from "@")
|
||||
|
||||
; TODO: determine if these are in
|
||||
; Pokedex text commands are only used with pokered.
|
||||
|
|
@ -123,12 +122,12 @@ sound_slot_machine_start: macro
|
|||
cry_nidorina: macro
|
||||
db TX_CRY_14
|
||||
endm
|
||||
|
||||
|
||||
enum TX_CRY_15 ; $15
|
||||
cry_pigeot: macro
|
||||
db TX_CRY_15
|
||||
endm
|
||||
|
||||
|
||||
enum TX_CRY_16 ; $16
|
||||
cry_jugon: macro
|
||||
db TX_CRY_16
|
||||
|
|
|
|||
|
|
@ -7,55 +7,55 @@ PlayerHouse1FScriptLoader:: ; 409C
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse1FScriptPointers: ; 40A6
|
||||
dw PlayerHouse1FScript1
|
||||
dw PlayerHouse1FNPCIDs1
|
||||
dw PlayerHouse1FScript2
|
||||
dw PlayerHouse1FNPCIDs2
|
||||
|
||||
dw PlayerHouse1FScript1
|
||||
dw PlayerHouse1FNPCIDs1
|
||||
dw PlayerHouse1FScript2
|
||||
dw PlayerHouse1FNPCIDs2
|
||||
|
||||
PlayerHouse1FNPCIDs1: ; 40AE
|
||||
db $FF
|
||||
|
||||
|
||||
PlayerHouse1FNPCIDs2: ; 40AF
|
||||
db 0
|
||||
db $FF
|
||||
|
||||
|
||||
PlayerHouse1FScript1: ; 40B1
|
||||
ld hl, PlayerHouse1FNPCIDs1
|
||||
ld de, PlayerHouse1FSignPointers
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse1FScript2: ; 40BB
|
||||
ld hl, PlayerHouse1FNPCIDs2
|
||||
ld de, PlayerHouse1FSignPointers
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse1FSignPointers: ; 40C5
|
||||
dw Function38ab
|
||||
dw Function38b4
|
||||
dw Function38a2
|
||||
dw Function38bd
|
||||
dw Function38ab
|
||||
dw Function38b4
|
||||
dw Function38a2
|
||||
dw Function38bd
|
||||
dw Function3899
|
||||
PlayerHouse1FTextPointers::
|
||||
dw PlayerHouse1FNPCText1
|
||||
|
||||
dw PlayerHouse1FNPCText1
|
||||
|
||||
PlayerHouse1FNPCText1: ; 40D1
|
||||
ld hl, PlayerHouse1FTextString1
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse1FTextString1: ; 40D8
|
||||
text "おかあさん『えっ あなた"
|
||||
line "オーキドはかせに"
|
||||
cont "ポケモンずかんを つくってくれって"
|
||||
cont "たのまれたの?"
|
||||
|
||||
|
||||
para "すごいじゃない!"
|
||||
line "わたしも ポケモン きらいって"
|
||||
cont "わけじゃないし がんばるのよ!"
|
||||
done
|
||||
|
||||
|
||||
; 4132
|
||||
|
|
|
|||
|
|
@ -7,33 +7,33 @@ PlayerHouse2FScriptLoader:: ; 418B
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FScriptPointers: ; 4195
|
||||
dw PlayerHouse2FScript1
|
||||
dw PlayerHouse2FNPCIDs1
|
||||
dw PlayerHouse2FScript2
|
||||
dw PlayerHouse2FScript2
|
||||
dw PlayerHouse2FNPCIDs2
|
||||
|
||||
PlayerHouse2FTextPointers::
|
||||
dw PlayerHouse2FText1
|
||||
dw PlayerHouse2FDollText
|
||||
|
||||
|
||||
PlayerHouse2FNPCIDs1: ; 41A1
|
||||
db 0
|
||||
db 1
|
||||
db $FF
|
||||
|
||||
|
||||
PlayerHouse2FNPCIDs2: ; 41A4
|
||||
db 1
|
||||
db $FF
|
||||
|
||||
|
||||
PlayerHouse2FSignPointers: ; 41A6
|
||||
dw Function3899
|
||||
dw Function3899
|
||||
dw PlayerHouse2FRadioText
|
||||
dw PlayerHouse2FComputerText
|
||||
dw Function3899
|
||||
dw PlayerHouse2FN64Text
|
||||
|
||||
dw Function3899
|
||||
dw PlayerHouse2FN64Text
|
||||
|
||||
PlayerHouse2FScript1: ; 41B0
|
||||
call PlayerHouse2PositionCheck
|
||||
ret z
|
||||
|
|
@ -42,7 +42,7 @@ PlayerHouse2FScript1: ; 41B0
|
|||
call CallMapTextSubroutine
|
||||
ret nz
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2PositionCheck: ; 41BF
|
||||
ld hl, wd41a
|
||||
bit 0, [hl]
|
||||
|
|
@ -63,7 +63,7 @@ PlayerHouse2PositionCheck: ; 41BF
|
|||
call PlayerHouse2FMovePlayer
|
||||
call ClearAccumulator
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FMovePlayer: ; 41EA
|
||||
ld a, 0
|
||||
ld hl, Movement
|
||||
|
|
@ -73,18 +73,18 @@ PlayerHouse2FMovePlayer: ; 41EA
|
|||
ld a, 1
|
||||
call WriteIntod637
|
||||
ret
|
||||
|
||||
|
||||
Movement: ; 41FD
|
||||
db $08
|
||||
db $04
|
||||
db $32
|
||||
|
||||
|
||||
PlayerHouse2FScript2: ; 4200
|
||||
ld hl, PlayerHouse2FNPCIDs2
|
||||
ld de, PlayerHouse2FSignPointers
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FText1: ; 420A
|
||||
ld hl, wd41a
|
||||
bit 3, [hl]
|
||||
|
|
@ -99,17 +99,17 @@ PlayerHouse2FText1: ; 420A
|
|||
ld hl, PlayerHouse2FTextString2
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FDollText: ; 4228
|
||||
ld hl, PlayerHouse2FTextString3
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FRadioText: ; 422F
|
||||
ld hl, PlayerHouse2FTextString9
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FComputerText: ; 4236
|
||||
ld hl, wd41a
|
||||
bit 0, [hl]
|
||||
|
|
@ -124,7 +124,7 @@ PlayerHouse2FComputerText: ; 4236
|
|||
callab Function1477D
|
||||
call Function1fea
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FCheckEmail: ; 4253
|
||||
call YesNoBox
|
||||
jr c, .jump2
|
||||
|
|
@ -133,24 +133,24 @@ PlayerHouse2FCheckEmail: ; 4253
|
|||
ld hl, PlayerHouse2FTextString6
|
||||
call PrintText
|
||||
ret
|
||||
|
||||
|
||||
.jump2
|
||||
; 4264
|
||||
ld hl, PlayerHouse2FTextString7
|
||||
call PrintText
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FN64Text: ; 426B
|
||||
ld hl, PlayerHouse2FTextString4
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FTextString1: ; 4272
|
||||
text "ケン『おっ おまえの うでで"
|
||||
line "ひかりかがやく そのとけいは⋯⋯"
|
||||
cont "<PLAYER>も ついに"
|
||||
cont "トレーナーギアを かったのか!"
|
||||
|
||||
|
||||
para "すごいじゃないか!"
|
||||
line "でも かったばかりじゃ じかんしか"
|
||||
cont "わからないだろ?"
|
||||
|
|
@ -158,89 +158,89 @@ PlayerHouse2FTextString1: ; 4272
|
|||
cont "みられるように してやるよ!"
|
||||
cont "おまえ どうせ"
|
||||
cont "あそびに いくんだろう?"
|
||||
|
||||
|
||||
para "ざんねんながら おふくろは"
|
||||
line "かいものに いってるから"
|
||||
cont "おこづかいを もらおうなんて"
|
||||
cont "きょうは むり だぜ!"
|
||||
done
|
||||
|
||||
|
||||
PlayerHouse2FTextString2: ; 4332
|
||||
text "そうだ おまえの パソコンに"
|
||||
line "メールが とどいていたな"
|
||||
cont "でかけるんなら"
|
||||
cont "メールぐらい よんでおけよ"
|
||||
done
|
||||
|
||||
|
||||
PlayerHouse2FTextString3: ; 4365
|
||||
text "クりスマスに カントーの"
|
||||
line "しんせきに プレゼント"
|
||||
cont "してもらった にんぎょうだ"
|
||||
done
|
||||
|
||||
|
||||
PlayerHouse2FTextString4: ; 438D
|
||||
text "ニンテンドウ64を してる!"
|
||||
cont "⋯⋯ ⋯⋯ さてと!"
|
||||
cont "そろそろ そとに あそびに"
|
||||
cont "でかけるか!"
|
||||
done
|
||||
|
||||
|
||||
PlayerHouse2FTextString5: ; 43BD
|
||||
text "<PLAYER>は"
|
||||
line "パソコンの スイッチを いれた!"
|
||||
|
||||
|
||||
para "おや? <PLAYER>あてに"
|
||||
line "メールが とどいている ようだ"
|
||||
cont "よんでみる?@"
|
||||
|
||||
|
||||
db $08
|
||||
|
||||
|
||||
; 43F3
|
||||
call PlayerHouse2FCheckEmail
|
||||
call Function3036
|
||||
ret
|
||||
|
||||
|
||||
PlayerHouse2FTextString6: ; 43FA
|
||||
text "とつぜん メールを さしあげる"
|
||||
line "しつれいを おゆるしあれ"
|
||||
|
||||
|
||||
para "じつは きみに どうしても"
|
||||
line "わたしたい ものが あるのじゃが"
|
||||
cont "うけとって もらえんかのう"
|
||||
cont "ポケモンけんきゅうしゃ オーキド"
|
||||
done
|
||||
|
||||
|
||||
PlayerHouse2FTextString7: ; 4456
|
||||
text "あとで"
|
||||
line "よもっと<⋯⋯>"
|
||||
done
|
||||
|
||||
|
||||
PlayerHouse2FTextString8: ; 4461 (unused?)
|
||||
text "しんはつばい トレーナーギア!"
|
||||
line "ポケモントレーナーの ための"
|
||||
cont "さいせんたんの とけい です"
|
||||
|
||||
|
||||
para "じかんが わかるのは あたりまえ"
|
||||
line "カセットを ついかすれば"
|
||||
cont "ばしょも わかる! "
|
||||
cont "でんわが かけられる!"
|
||||
|
||||
|
||||
para "とどめは"
|
||||
line "ラジオを きくことができる!"
|
||||
|
||||
|
||||
para "もうしこみさきは⋯⋯"
|
||||
line "⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯"
|
||||
cont "シルフの ホームぺージだ"
|
||||
done
|
||||
|
||||
|
||||
PlayerHouse2FTextString9: ; 44FE
|
||||
text "<PLAYER>は"
|
||||
line "ラジオのスイッチを おした!"
|
||||
|
||||
|
||||
para "ジェイ オー ピー エム"
|
||||
line "こちらは"
|
||||
cont "# ほうそうきょく です"
|
||||
|
||||
|
||||
para "#ニュースを おおくりします"
|
||||
line "<⋯⋯> #の せかいてきな"
|
||||
cont "けんきゅうしゃ オーキドはかせが"
|
||||
|
|
@ -253,13 +253,13 @@ PlayerHouse2FTextString9: ; 44FE
|
|||
cont "かのうせいも あり"
|
||||
cont "かんけいしゃは とても"
|
||||
cont "しんぱい しています"
|
||||
|
||||
|
||||
para "<⋯⋯><⋯⋯>いじょう"
|
||||
line "#ニュースでした"
|
||||
|
||||
|
||||
para "<⋯⋯><⋯⋯><⋯⋯><⋯⋯><⋯⋯><⋯⋯>"
|
||||
line "それでは ひきつづき"
|
||||
cont "おんがくを おたのしみ ください"
|
||||
done
|
||||
|
||||
|
||||
; 45FF
|
||||
|
|
|
|||
|
|
@ -41,15 +41,15 @@ Route1Gate1FText2: ; 4089
|
|||
|
||||
Route1Gate1FText1String: ; 4090
|
||||
text "このゲートを ぬけると"
|
||||
line "すぐに オールドシティ です"
|
||||
done
|
||||
|
||||
line "すぐに オールドシティ です"
|
||||
done
|
||||
|
||||
Route1Gate1FText2String: ; 40AC
|
||||
text "オールドシティには"
|
||||
line "あの ゆうめいな"
|
||||
cont "ごじゅうのとう が あるの"
|
||||
|
||||
|
||||
para "いってみたこと ある?"
|
||||
done
|
||||
|
||||
|
||||
;ends at 40D9
|
||||
|
|
|
|||
|
|
@ -7,81 +7,81 @@ Route1Gate2FScriptLoader:: ; 411F
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
Route1Gate2FScriptPointers: ; 4129
|
||||
dw Route1Gate2FScript
|
||||
dw Route1Gate2FScript
|
||||
dw Route1Gate2FNPCIDs
|
||||
|
||||
|
||||
Route1Gate2FNPCIDs: ; 412D
|
||||
db 0
|
||||
db 1
|
||||
db $FF
|
||||
|
||||
Route1Gate2FSignPointers: ; 4130
|
||||
dw Route1Gate2FTextSign1
|
||||
dw Route1Gate2FTextSign2
|
||||
dw Route1Gate2FTextSign1
|
||||
dw Route1Gate2FTextSign2
|
||||
Route1Gate2FTextPointers:: ; 4134
|
||||
dw Route1Gate2FTextNPC1
|
||||
dw Route1Gate2FTextNPC1
|
||||
dw Route1Gate2FTextNPC2
|
||||
|
||||
|
||||
Route1Gate2FScript:: ; 4138
|
||||
ld hl, Route1Gate2FNPCIDs
|
||||
ld de, Route1Gate2FSignPointers
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
Route1Gate2FTextNPC1: ; 4142
|
||||
ld hl, Route1Gate2FTextString1
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1Gate2FTextNPC2: ; 4149
|
||||
ld hl, Route1Gate2FTextString2
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1Gate2FTextSign1: ; 4150
|
||||
ld hl, Route1Gate2FTextString3
|
||||
call OpenTextbox
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1Gate2FTextSign2: ; 4157
|
||||
ld hl, Route1Gate2FTextString4
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1Gate2FTextString1: ; 415E
|
||||
text "ガンテツさんって しってる?"
|
||||
|
||||
|
||||
para "ガンテツさんに"
|
||||
line "きに いられるように なれば"
|
||||
cont "トレーナーとして たいしたもの よ"
|
||||
done
|
||||
|
||||
|
||||
Route1Gate2FTextString2: ; 4197
|
||||
text "あなた かんこうで きたの?"
|
||||
line "なら ざんねんね"
|
||||
|
||||
|
||||
para "オールドシティの"
|
||||
line "ごじゅうのとう は"
|
||||
cont "だれでも はいれる って"
|
||||
cont "ものじゃないわ"
|
||||
done
|
||||
|
||||
|
||||
Route1Gate2FTextString3: ; 41D8
|
||||
text "<PLAYER>は"
|
||||
line "ぼうえんきょうを のぞいた!"
|
||||
|
||||
|
||||
para "むむむ!"
|
||||
line "たかーい とう が みえる!"
|
||||
done
|
||||
|
||||
|
||||
Route1Gate2FTextString4: ; 41FF
|
||||
text "<PLAYER>は"
|
||||
line "ぼうえんきょうを のぞいた!"
|
||||
|
||||
|
||||
para "むむ?"
|
||||
line "ながーい かわ が みえる"
|
||||
done
|
||||
|
||||
|
||||
; 4224
|
||||
|
|
|
|||
|
|
@ -18,16 +18,16 @@ Route1P1ScriptLoader:: ; 7B98
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
Route1P1ScriptPointers: ; 7BA2
|
||||
dw Route1P1Script
|
||||
dw Route1P1NPCIDs
|
||||
|
||||
|
||||
Route1P1NPCIDs: ; 7BA6
|
||||
db 0
|
||||
db 1
|
||||
db $FF
|
||||
|
||||
|
||||
Route1P1SignPointers: ; 7BA9
|
||||
dw Route1P1TextSign1
|
||||
dw Route1P1TextSign2
|
||||
|
|
@ -35,7 +35,7 @@ Route1P1SignPointers: ; 7BA9
|
|||
Route1P1TextPointers::
|
||||
dw Route1P1TextNPC1
|
||||
dw Route1P1TextNPC2
|
||||
|
||||
|
||||
Route1P1Script:: ; 7BB1
|
||||
ld hl, Route1P1NPCIDs
|
||||
ld de, Route1P1SignPointers
|
||||
|
|
@ -46,43 +46,43 @@ Route1P1TextNPC1: ; 7BBB
|
|||
ld hl, Route1P1TextString1
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1P1TextNPC2: ; 7BC2
|
||||
ld hl, Route1P1TextString2
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1P1TextSign1: ; 7BC9
|
||||
ld hl, Route1P1TextString3
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1P1TextSign2: ; 7BD0
|
||||
ld hl, Route1P1TextString4
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
Route1P1TextString1: ; 7BD7
|
||||
text "しょうねん!"
|
||||
|
||||
|
||||
para "モンスターボールは"
|
||||
line "やせいの ポケモンを よわらせてから"
|
||||
cont "つかうのが きほんだ!"
|
||||
done
|
||||
|
||||
|
||||
Route1P1TextString2: ; 7C08
|
||||
text "ぼく ゆうがた じゅくの かえりに"
|
||||
line "かわった ポケモンを みたよ"
|
||||
done
|
||||
|
||||
|
||||
Route1P1TextString3: ; 7C2A
|
||||
text "このさき しずかな おか"
|
||||
line "やせいの ポケモンに ちゅうい"
|
||||
done
|
||||
|
||||
|
||||
Route1P1TextString4:; 7C48
|
||||
text "ここは 1ばん どうろ"
|
||||
line "サイレントヒル ⋯⋯ オールドシティ"
|
||||
done
|
||||
|
||||
|
||||
; 7C68
|
||||
|
|
|
|||
|
|
@ -96,17 +96,17 @@ Route1P2TextString3: ; 7D19
|
|||
|
||||
Route1P2TextString4: ; 7D3B
|
||||
text "シゲル『おっ サトシじゃないか!"
|
||||
|
||||
|
||||
para "なんとか ここまで これた"
|
||||
line "って かんじだな"
|
||||
|
||||
|
||||
para "じつりょくが ないのに"
|
||||
line "むり するなよな"
|
||||
|
||||
|
||||
para "もっと ポケモン あつめるとか"
|
||||
line "いろんな ポケモン そだてるとか"
|
||||
cont "やること あるだろ?"
|
||||
|
||||
|
||||
para "ここで ひきかえしたほうが いいぜ!"
|
||||
line "じゃあな"
|
||||
done
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ ShizukanaOkaTrainer2: ;5681
|
|||
ld hl, ShizukanaOkaTrainer2WonString
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
ShizukanaOkaTrainer3: ;56A8
|
||||
ld hl, wd3a5
|
||||
bit 2, [hl]
|
||||
|
|
@ -81,7 +81,7 @@ ShizukanaOkaTrainer3: ;56A8
|
|||
ld hl, ShizukanaOkaTrainer3WonString
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
ShizukanaOkaTrainer4: ;56CF
|
||||
ld hl, wd3a5
|
||||
bit 3, [hl]
|
||||
|
|
@ -100,7 +100,7 @@ ShizukanaOkaTrainer4: ;56CF
|
|||
ld hl, ShizukanaOkaTrainer4WonString
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
ShizukanaOkaTrainer5: ;56F6
|
||||
ld hl, wd3a5
|
||||
bit 4, [hl]
|
||||
|
|
@ -138,12 +138,12 @@ ShizukanaOkaTrainer6: ;571D
|
|||
ld hl, ShizukanaOkaTrainer6WonString
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
ShizukanaOkaSignpost2: ;5744
|
||||
ld hl, ShizukanaOkaSignpost2String
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
ShizukanaOkaSignpost1: ;574b
|
||||
ld hl, ShizukanaOkaSignpost1String
|
||||
call OpenTextbox
|
||||
|
|
|
|||
|
|
@ -7,52 +7,52 @@ SilentHillScriptLoader:: ; 7669
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
SilentHillNPCIDs1: ; 7673
|
||||
db 0
|
||||
db 2
|
||||
db 3
|
||||
db $FF
|
||||
|
||||
|
||||
SilentHillNPCIDs2: ; 7677
|
||||
db 2
|
||||
db 3
|
||||
db $FF
|
||||
|
||||
|
||||
SilentHillNPCIDs3: ; 767A
|
||||
db 1
|
||||
db 2
|
||||
db 3
|
||||
db $FF
|
||||
|
||||
|
||||
SilentHillScriptPointers1: ; 767E
|
||||
dw SilentHillScript1
|
||||
dw SilentHillNPCIDs1
|
||||
|
||||
dw SilentHillNPCIDs1
|
||||
|
||||
SilentHillScriptPointers2: ; 7682
|
||||
dw SilentHillScript2
|
||||
dw SilentHillNPCIDs1
|
||||
|
||||
dw SilentHillScript2
|
||||
dw SilentHillNPCIDs1
|
||||
|
||||
SilentHillScriptPointers3: ; 7686
|
||||
dw SilentHillScript3
|
||||
dw SilentHillNPCIDs1
|
||||
|
||||
dw SilentHillScript3
|
||||
dw SilentHillNPCIDs1
|
||||
|
||||
SilentHillScriptPointers4: ; 768A
|
||||
dw SilentHillScript4
|
||||
dw SilentHillNPCIDs2
|
||||
|
||||
dw SilentHillScript4
|
||||
dw SilentHillNPCIDs2
|
||||
|
||||
SilentHillScriptPointers5: ; 768E
|
||||
dw SilentHillScript5
|
||||
dw SilentHillNPCIDs3
|
||||
|
||||
dw SilentHillScript5
|
||||
dw SilentHillNPCIDs3
|
||||
|
||||
SilentHillScriptPointers6: ; 7692
|
||||
dw SilentHillScript6
|
||||
dw SilentHillNPCIDs2
|
||||
|
||||
dw SilentHillScript6
|
||||
dw SilentHillNPCIDs2
|
||||
|
||||
SilentHillScriptPointers7: ; 7696
|
||||
dw SilentHillScript7
|
||||
dw SilentHillNPCIDs2
|
||||
|
||||
dw SilentHillScript7
|
||||
dw SilentHillNPCIDs2
|
||||
|
||||
SilentHillScript1: ; 769A
|
||||
ld a, [wYCoord]
|
||||
cp 5
|
||||
|
|
@ -74,16 +74,16 @@ SilentHillScript1: ; 769A
|
|||
ld a, 1
|
||||
call WriteIntod637
|
||||
ret
|
||||
|
||||
|
||||
SilentHillMovement1: ; 76C8
|
||||
db $0D
|
||||
db $0D
|
||||
db $0D
|
||||
db $09
|
||||
db $05
|
||||
db $02
|
||||
db $0D
|
||||
db $0D
|
||||
db $0D
|
||||
db $09
|
||||
db $05
|
||||
db $02
|
||||
db $32
|
||||
|
||||
|
||||
SilentHillScript2: ; 76CF
|
||||
ld a, 0
|
||||
ld d, RIGHT
|
||||
|
|
@ -104,17 +104,17 @@ SilentHillScript2: ; 76CF
|
|||
ld a, 2
|
||||
ld [wMapScriptNumber], a
|
||||
ret
|
||||
|
||||
|
||||
SilentHillMovement2: ; 76FF
|
||||
db $00, $04, $08, $0C, $0C, $0C, $33
|
||||
|
||||
|
||||
SilentHillScript3: ;7706
|
||||
call Function1848
|
||||
ld a, 3
|
||||
ld [wMapScriptNumber], a
|
||||
call InitUnknownBuffercc9e
|
||||
ret
|
||||
|
||||
|
||||
SilentHillScript4: ; 7712
|
||||
ld a, [wXCoord]
|
||||
cp 0
|
||||
|
|
@ -152,12 +152,12 @@ SilentHillScript4: ; 7712
|
|||
ld [wMapScriptNumber], a
|
||||
ret
|
||||
|
||||
.bigjump
|
||||
.bigjump
|
||||
ld hl, SilentHillNPCIDs2
|
||||
ld de, SilentHillSignPointers
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
Function776a: ; 776A
|
||||
ld hl, wd41a
|
||||
set 7, [hl]
|
||||
|
|
@ -165,13 +165,13 @@ Function776a: ; 776A
|
|||
ld hl, wd29d
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
|
||||
SilentHillMovement3: ; 7776
|
||||
db $0A, $0A, $0A, $09, $0A, $06, $02, $32
|
||||
|
||||
|
||||
SilentHillMovement4: ; 777E
|
||||
db $0A, $0A, $0A, $0A, $06, $02, $32
|
||||
|
||||
|
||||
SilentHillScript5: ; 7785
|
||||
ld a, 0
|
||||
ld d, RIGHT
|
||||
|
|
@ -192,7 +192,7 @@ SilentHillScript5: ; 7785
|
|||
jr z, .jump
|
||||
ld hl, SilentHillMovement5
|
||||
jr .skip
|
||||
.jump
|
||||
.jump
|
||||
ld hl, SilentHillMovement6
|
||||
.skip
|
||||
ld a, 3
|
||||
|
|
@ -204,13 +204,13 @@ SilentHillScript5: ; 7785
|
|||
ld a, 5
|
||||
ld [wMapScriptNumber], a
|
||||
ret
|
||||
|
||||
|
||||
SilentHillMovement5: ; 77CC
|
||||
db $0B, $0B, $0B, $0B, $0B, $0B, $08, $08, $08, $08, $0B, $0B, $0B, $0B, $0B, $0B, $0B, $0B, $05, $33
|
||||
|
||||
|
||||
SilentHillMovement6: ; 77E0
|
||||
db $0B, $0B, $0B, $0B, $0B, $0B, $08, $08, $08, $0B, $0B, $0B, $0B, $0B, $0B, $0B, $0B, $05, $33
|
||||
|
||||
|
||||
SilentHillScript6: ; 77F3
|
||||
ld hl, SilentHillNPCIDs2
|
||||
ld de, SilentHillSignPointers
|
||||
|
|
@ -223,15 +223,15 @@ SilentHillScript6: ; 77F3
|
|||
ld a, 6
|
||||
ld [wMapScriptNumber], a
|
||||
ret
|
||||
|
||||
|
||||
SilentHillScript7: ; 780D
|
||||
call CheckLabDoor
|
||||
call CheckLabDoor
|
||||
ret z
|
||||
ld hl, SilentHillNPCIDs2
|
||||
ld de, SilentHillSignPointers
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
CheckLabDoor: ; 781B
|
||||
ld a, [wYCoord]
|
||||
cp $C
|
||||
|
|
@ -256,7 +256,7 @@ CheckLabDoor: ; 781B
|
|||
call LabClosed
|
||||
call ClearAccumulator
|
||||
ret
|
||||
|
||||
|
||||
LabClosed: ; 784C
|
||||
ld a, 0
|
||||
ld hl, SilentHillMovement7
|
||||
|
|
@ -266,58 +266,58 @@ LabClosed: ; 784C
|
|||
ld a, 1
|
||||
call WriteIntod637
|
||||
ret
|
||||
|
||||
|
||||
SilentHillTextString1: ; 785F
|
||||
text "あれ? カギが かかっている"
|
||||
done
|
||||
|
||||
|
||||
SilentHillMovement7: ; 786F
|
||||
db $04, $32
|
||||
|
||||
SilentHillSignPointers:: ; 7871
|
||||
dw SilentHillPlayerHouseText
|
||||
dw Function38c6
|
||||
dw SilentHillPlayerHouseText
|
||||
dw Function38c6
|
||||
dw SilentHillSignText1
|
||||
dw SilentHillLabText
|
||||
dw SilentHillLabText
|
||||
dw SilentHillRivalHouseText
|
||||
|
||||
|
||||
SilentHillLabText: ; 787B
|
||||
ld hl, SilentHillTextString2
|
||||
ld hl, SilentHillTextString2
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillTextString2: ; 7882
|
||||
text "にゅうきょしゃ ぼしゅうちゅう!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillSignText1: ; 7894
|
||||
ld hl, SilentHillTextString3
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillTextString3: ; 789B
|
||||
text "ここは サイレント ヒル"
|
||||
line "しずかな おか"
|
||||
done
|
||||
|
||||
|
||||
SilentHillPlayerHouseText: ; 78B1
|
||||
ld hl, SilentHillTextString4
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillTextString4: ; 78B8
|
||||
text "ここは <PLAYER> のいえ"
|
||||
done
|
||||
|
||||
|
||||
SilentHillRivalHouseText: ; 78C3
|
||||
ld hl, SilentHillTextString5
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillTextString5: ; 78CA
|
||||
text "ここは <RIVAL> のいえ"
|
||||
done
|
||||
|
||||
|
||||
SilentHillTextPointers:: ; 78d5
|
||||
dw SilentHillTextRival1 ; west
|
||||
dw SilentHillTextNorthExit ; north
|
||||
|
|
@ -328,34 +328,34 @@ SilentHillTextRival1: ; 78DD
|
|||
text "<RIVAL>『よう ちょっと おまえに"
|
||||
cont "じまん したいことが"
|
||||
cont "あってきたんだよ"
|
||||
|
||||
|
||||
para "おれ あの ゆうめいなオーキドから"
|
||||
line "メール もらっちゃった!"
|
||||
cont "え? おまえにも きたの?"
|
||||
cont "ちぇっ! つまんねーの!"
|
||||
|
||||
|
||||
para "⋯⋯ふん!"
|
||||
line "じゃあさ じゃあさー おまえさー"
|
||||
cont "じぶんの ははおや のこと"
|
||||
cont "いつも なんて よんでる?@"
|
||||
|
||||
|
||||
db $08
|
||||
|
||||
|
||||
LoadMomNamePromptUnused: ; 796F
|
||||
call LoadStandardMenuHeader
|
||||
call LoadStandardMenuHeader
|
||||
callab MomNamePrompt
|
||||
call CloseWindow
|
||||
call GetMemSGBLayout
|
||||
call UpdateSprites
|
||||
call UpdateTimePals
|
||||
jp Function3036
|
||||
|
||||
|
||||
MomNameMenuHeaderUnused: ; 7989
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 00, 00, 10, 11
|
||||
dw .MomNameMenuDataUnused
|
||||
db 01 ; initial selection
|
||||
|
||||
|
||||
.MomNameMenuDataUnused: ; 7991
|
||||
db STATICMENU_CURSOR
|
||||
db 04 ; items
|
||||
|
|
@ -363,58 +363,58 @@ MomNameMenuHeaderUnused: ; 7989
|
|||
db "おかあさん @"
|
||||
db "ママ@"
|
||||
db "かあちゃん@"
|
||||
|
||||
|
||||
SilentHillTextRival2: ; 79AC - BYTE OFF
|
||||
text "<RIVAL>『えー かっこわりい!"
|
||||
line "そんな こどもっぽい"
|
||||
cont "よびかた してるなんて"
|
||||
cont "おわらいだぜ!"
|
||||
cont"あー ちょっとだけ すっきりした!"
|
||||
|
||||
|
||||
para "そんじゃあ"
|
||||
line "おれは ひとあし おさきに"
|
||||
cont "オーキドのところへ"
|
||||
cont "いくことに するぜ!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillTextNorthExit: ; 7A14
|
||||
text "ちょいまち!"
|
||||
line "まってよ! まてっ てば!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillTextPokemonInGrassString: ; 7A2A
|
||||
text "きみは まったく"
|
||||
line "なんにも しらないんだね!"
|
||||
cont "くさむらでは"
|
||||
cont "やせいの ポケモンが とびだす!"
|
||||
|
||||
|
||||
para "じぶんも ポケモンを"
|
||||
line "もって いれば"
|
||||
cont "たたかえるんだ⋯⋯"
|
||||
|
||||
|
||||
para "あっ! ひょっとして きみは"
|
||||
line "⋯⋯ちょっと"
|
||||
cont "ぼくに ついて きて!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillTextBackpack: ; 7A99
|
||||
ld hl, SilentHillTextBackpackString
|
||||
call OpenTextbox
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillTextBackpackString: ; 7AA0
|
||||
text "あなたの りュック かっこいいわよ"
|
||||
line "どこで てに いれたの?"
|
||||
done
|
||||
|
||||
|
||||
SilentHillTextPokemonHate: ; 7AC0
|
||||
ld hl, SilentHillTextPokemonHateString
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillTextPokemonHateString: ; 7AC7
|
||||
text "よのなかに ポケモンが きらいな"
|
||||
line "ひとは いるのかな?"
|
||||
done
|
||||
|
||||
|
||||
; 7AE4
|
||||
|
|
|
|||
|
|
@ -7,50 +7,50 @@ SilentHillHouseScriptLoader:: ; 4839
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
SilentHillHouseScriptPointers: ; 4843
|
||||
dw SilentHillHouseScript1
|
||||
dw SilentHillHouseNPCIDs1
|
||||
dw SilentHillHouseScript2
|
||||
dw SilentHillHouseNPCIDs2
|
||||
dw SilentHillHouseScript3
|
||||
dw SilentHillHouseNPCIDs1
|
||||
|
||||
dw SilentHillHouseNPCIDs1
|
||||
dw SilentHillHouseScript2
|
||||
dw SilentHillHouseNPCIDs2
|
||||
dw SilentHillHouseScript3
|
||||
dw SilentHillHouseNPCIDs1
|
||||
|
||||
SilentHillHouseScript1: ; 484F
|
||||
ld hl, SilentHillHouseNPCIDs1
|
||||
ld de, SilentHillHouseTextPointers2
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
SilentHillHouseScript2: ; 4859
|
||||
ld hl, SilentHillHouseNPCIDs2
|
||||
ld de, SilentHillHouseTextPointers2
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
SilentHillHouseScript3: ; 4863
|
||||
ld hl, SilentHillHouseNPCIDs1
|
||||
ld de, SilentHillHouseTextPointers2
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
SilentHillHouseNPCIDs1:
|
||||
|
||||
SilentHillHouseNPCIDs1:
|
||||
db 0
|
||||
db $FF
|
||||
|
||||
SilentHillHouseNPCIDs2:
|
||||
|
||||
SilentHillHouseNPCIDs2:
|
||||
db 0
|
||||
db 1
|
||||
db $FF
|
||||
|
||||
|
||||
SilentHillHouseTextPointers2:: ; 4872
|
||||
dw SilentHillHouseNPCText1
|
||||
dw Function38bd
|
||||
dw Function3899
|
||||
dw Function38b4
|
||||
dw Function38ab
|
||||
dw Function38cf
|
||||
|
||||
dw SilentHillHouseNPCText1
|
||||
dw Function38bd
|
||||
dw Function3899
|
||||
dw Function38b4
|
||||
dw Function38ab
|
||||
dw Function38cf
|
||||
|
||||
SilentHillHouseNPCText1: ; 487E
|
||||
ld hl, wd41a
|
||||
bit 6, [hl]
|
||||
|
|
@ -65,13 +65,13 @@ SilentHillHouseNPCText1: ; 487E
|
|||
callab Function1477D
|
||||
call Function1fea
|
||||
ret
|
||||
|
||||
|
||||
SilentHillHouseTextString1: ; 489B
|
||||
text "おや? <RIVAL>あてに メールが"
|
||||
line "とどいている ようだ"
|
||||
cont "よんでみる?@"
|
||||
db $08
|
||||
|
||||
|
||||
SilentHillHouseNPCText2: ; 48BD (unused due to typo in the text pointers?)
|
||||
call YesNoBox
|
||||
jr c, .jump
|
||||
|
|
@ -86,36 +86,36 @@ SilentHillHouseNPCText2: ; 48BD (unused due to typo in the text pointers?)
|
|||
call PrintText
|
||||
call Function3036
|
||||
ret
|
||||
|
||||
|
||||
SilentHillHouseTextString2: ; 48DB
|
||||
text "とつぜん メールを さしあげる"
|
||||
line "しつれいを おゆるしあれ"
|
||||
|
||||
|
||||
para "じつは きみに どうしても"
|
||||
line "わたしたい ものが あるのじゃが"
|
||||
cont "うけとって もらえんかのう"
|
||||
cont "ポケモンけんきゅうしゃ オーキド"
|
||||
done
|
||||
|
||||
|
||||
SilentHillHouseTextString3: ; 4937
|
||||
text "ひとのメールは"
|
||||
line "みちゃ いけないよな<⋯⋯>"
|
||||
done
|
||||
|
||||
|
||||
SilentHillHouseTextPointers:: ; 494C
|
||||
dw SilentHillHouseNPCText3
|
||||
dw SilentHillHouseNPCText3
|
||||
dw SilentHillHouseNPCText4
|
||||
|
||||
|
||||
SilentHillHouseNPCText3: ; 4950
|
||||
ld hl, SilentHillHouseTextString4
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillHouseTextString4: ; 4957
|
||||
text "このまえ かわったいろの"
|
||||
line "ポッポを みかけたわ"
|
||||
done
|
||||
|
||||
|
||||
SilentHillHouseNPCText4: ; 4970
|
||||
ld hl, wd41e
|
||||
bit 2, [hl]
|
||||
|
|
@ -132,40 +132,40 @@ SilentHillHouseNPCText4: ; 4970
|
|||
.skip
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillHouseTextString5: ; 4991
|
||||
text "ケン『ななな"
|
||||
line "なんだ <PLAYER> じゃないか!"
|
||||
|
||||
|
||||
para "おれは ちょっと あのー"
|
||||
line"がっこうの しゅくだいを"
|
||||
cont "おしえに きてるんだ!"
|
||||
|
||||
|
||||
para "えっ マップ?"
|
||||
line "そうか そんな やくそくも してたな"
|
||||
cont "わかった"
|
||||
cont "トレーナーギアを かしてみな"
|
||||
|
||||
|
||||
para "スロットに マップの カセットを "
|
||||
line "さしこんでっと⋯⋯"
|
||||
cont "よし これで マップが みれるぞ!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillHouseTextString6: ; 4A29
|
||||
text "もし オールドにいくなら"
|
||||
line "マサキって やつに あうといい"
|
||||
|
||||
|
||||
para "おれの ともだちで"
|
||||
line "すごい ポケモン マニアだ!"
|
||||
cont "きっと おまえの"
|
||||
cont "てだすけを してくれるぜ"
|
||||
done
|
||||
|
||||
|
||||
SilentHillHouseTextString7: ; 4A76
|
||||
text "ケン『<PLAYER>"
|
||||
line "オーキドはかせに みこまれて"
|
||||
cont "ポケモンずかんを つくるんだって?"
|
||||
cont "すごいじゃないか がんばれよ"
|
||||
done
|
||||
|
||||
|
||||
; 4AAC
|
||||
|
|
|
|||
|
|
@ -7,39 +7,39 @@ SilentHillLabBackScriptLoader:: ; 5C69
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackScriptPointers: ; 5C73
|
||||
dw SilentHillLabBackScript1
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackScript2
|
||||
dw SilentHillLabBackScript2
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackScript3
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackRivalChoosePokemon
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackScript5
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackScript6
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackScript5
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackScript6
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
dw SilentHillLabBackScript7
|
||||
dw SilentHillLabBackNPCIDs1
|
||||
|
||||
|
||||
SilentHillLabBackNPCIDs1: ; 5C8F
|
||||
db 00, 01, 02, 03, 04, $FF
|
||||
db 00, 01, 02, 03, 04, $FF
|
||||
SilentHillLabBackNPCIDs2: ; 5C95
|
||||
db 00, 01, 04, $FF
|
||||
db 00, 01, 04, $FF
|
||||
SilentHillLabBackNPCIDs3: ; 5C99
|
||||
db 00, 01, 02, $FF
|
||||
db 00, 01, 02, $FF
|
||||
SilentHillLabBackNPCIDs4: ; 5C9D
|
||||
db 00, 01, 03, $FF
|
||||
|
||||
SilentHillLabBackTextPointers:: ; 5CA1
|
||||
|
||||
SilentHillLabBackTextPointers:: ; 5CA1
|
||||
dw SilentHillLabBackText1
|
||||
dw SilentHillLabBackFunc3
|
||||
dw SilentHillLabBackFunc4
|
||||
dw SilentHillLabBackFunc4
|
||||
dw SilentHillLabBackFunc4
|
||||
|
||||
dw SilentHillLabBackFunc4
|
||||
|
||||
SilentHillLabBackScript1: ; 5CAB
|
||||
ld hl, wJoypadFlags
|
||||
set 4, [hl]
|
||||
|
|
@ -57,10 +57,10 @@ SilentHillLabBackScript1: ; 5CAB
|
|||
ld a, 1
|
||||
call WriteIntod637
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackMovement1: ; 5CD2
|
||||
db 09, 09, 05, $32
|
||||
|
||||
|
||||
SilentHillLabBackScript2: ; 5CD6
|
||||
ld hl, wc5ed
|
||||
set 6, [hl]
|
||||
|
|
@ -77,13 +77,13 @@ SilentHillLabBackScript2: ; 5CD6
|
|||
ld a, 2
|
||||
ld [wMapScriptNumber], a
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackScript3: ; 5CFD
|
||||
ld hl, SilentHillLabBackNPCIDs1
|
||||
ld de, SilentHillLabBackTextPointers2
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackRivalChoosePokemon: ; 5D07
|
||||
ld hl, wJoypadFlags
|
||||
set 4, [hl]
|
||||
|
|
@ -107,15 +107,15 @@ SilentHillLabBackRivalChoosePokemon: ; 5D07
|
|||
ld a, 1
|
||||
call WriteIntod637
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackMovementPointers: ; 5D34
|
||||
dw SilentHillLabBackMovement2+1
|
||||
dw SilentHillLabBackMovement2
|
||||
dw SilentHillLabBackMovement2+2
|
||||
|
||||
|
||||
SilentHillLabBackMovement2: ; 5D3A
|
||||
db $0B, $0B, $0B, $0B, $05, $32
|
||||
|
||||
|
||||
SilentHillLabBackScript5: ; 5D40
|
||||
ld hl, SilentHillLabBackTextString12
|
||||
call OpenTextbox
|
||||
|
|
@ -127,7 +127,7 @@ SilentHillLabBackScript5: ; 5D40
|
|||
ld a, 5
|
||||
ld [wMapScriptNumber], a
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackScript6: ; 5D5B
|
||||
call Function20f8
|
||||
ld hl, wc5ed
|
||||
|
|
@ -135,13 +135,13 @@ SilentHillLabBackScript6: ; 5D5B
|
|||
ld a, 6
|
||||
ld[wMapScriptNumber], a
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackScript7: ; 5D69
|
||||
ld hl, SilentHillLabBackNPCIDs1
|
||||
ld de, SilentHillLabBackTextPointers2
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackText1: ; 5D73
|
||||
ld hl, wd41b
|
||||
bit 2, [hl]
|
||||
|
|
@ -151,58 +151,58 @@ SilentHillLabBackText1: ; 5D73
|
|||
.skip
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackTextString1: ; 5D84
|
||||
text "オーキド『ほれ そこに 3びき"
|
||||
cont "ポケモンが いる じゃろう!"
|
||||
cont "ほっほ!"
|
||||
|
||||
|
||||
para "こいつらを きみたちに"
|
||||
cont "いっぴき づつ やろう!"
|
||||
cont "⋯⋯ さあ えらべ!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString2: ; 5DCD
|
||||
text "オーキド『まあ"
|
||||
line "あわてるな <RIVAL>!"
|
||||
cont "おまえも すきなものを とれ!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString3: ; 5DEF
|
||||
text "オーキド『さあ <PLAYER>"
|
||||
line "どの ポケモンに するかね?"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString4: ; 5E1C
|
||||
text "オーキド『ほう! ほのおのポケモン"
|
||||
line "@"
|
||||
ld bc, wStringBuffer1
|
||||
text "に するんじゃな?@"
|
||||
db 08
|
||||
call ConfirmPokemonSelection
|
||||
call ConfirmPokemonSelection
|
||||
call Function3036
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackTextString5: ; 5E32
|
||||
text "オーキド『ふむ みずのポケモン"
|
||||
line "@"
|
||||
ld bc, wStringBuffer1
|
||||
text "に きめるのじゃな?@"
|
||||
db 08
|
||||
call ConfirmPokemonSelection
|
||||
call ConfirmPokemonSelection
|
||||
call Function3036
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackTextString6: ; 5E6E
|
||||
text "オーキド『おお! くさのポケモン"
|
||||
line "@"
|
||||
ld bc, wStringBuffer1
|
||||
text "が いいんじゃな?@"
|
||||
db 08
|
||||
call ConfirmPokemonSelection
|
||||
call ConfirmPokemonSelection
|
||||
call Function3036
|
||||
ret
|
||||
|
||||
|
||||
ConfirmPokemonSelection: ; 5E85
|
||||
call YesNoBox
|
||||
jr c, .bigJump
|
||||
|
|
@ -230,30 +230,30 @@ ConfirmPokemonSelection: ; 5E85
|
|||
ret
|
||||
.bigJump ; 5EC6
|
||||
ld hl, SilentHillLabBackTextString7
|
||||
call PrintText
|
||||
call PrintText
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackTextString7: ; 5ECD
|
||||
text "では"
|
||||
line "どれに するのじゃ?"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString8: ; 5EDC
|
||||
text "オーキド『この ポケモンは"
|
||||
line "ほんとに げんきが いいぞ!"
|
||||
|
||||
|
||||
para "<PLAYER>は オーキドはかせから"
|
||||
line "@"
|
||||
ld bc, wStringBuffer1
|
||||
text "を もらった!<PROMPT>"
|
||||
|
||||
|
||||
SilentHillLabBackTextString9: ; 5F14
|
||||
text "オーキド『そうじゃ!"
|
||||
line "やせいの ポケモンが でて きても"
|
||||
cont "そいつを たたかわせて いけば"
|
||||
cont "となりまちへ いける!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackFunc3: ; 5F4E
|
||||
ld hl, wd41b
|
||||
bit 2, [hl]
|
||||
|
|
@ -263,36 +263,36 @@ SilentHillLabBackFunc3: ; 5F4E
|
|||
.skip
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackTextString10: ; 5F5F
|
||||
text "<RIVAL>『あッ! おれにも!"
|
||||
line "じいさん おれにもくれよう!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString11: ; 5F7B
|
||||
text "<RIVAL>『いいぜ <PLAYER>!"
|
||||
line "さきに えらんで!"
|
||||
cont "おれは こころが ひろいからな"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString12: ; 5F9F
|
||||
text "<RIVAL>『じゃ おれは これ!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString13: ; 5FAD
|
||||
text "<RIVAL>は オーキドから"
|
||||
line "@"
|
||||
ld bc, wStringBuffer1
|
||||
text "を もらった!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextString14: ; 5FC5
|
||||
text "<RIVAL>『<PLAYER>の#"
|
||||
line "いいなあ!"
|
||||
cont "でも おれのポケモンも"
|
||||
cont "ちょっと いいだろ?"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackFunc4: ; 5FE9
|
||||
ld hl, wd41b
|
||||
bit 2, [hl]
|
||||
|
|
@ -331,30 +331,30 @@ SilentHillLabBackFunc4: ; 5FE9
|
|||
ld hl, SilentHillLabBackTextString15
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillLabBackStarterData: ; 6031
|
||||
db DEX_HONOGUMA
|
||||
db DEX_HONOGUMA
|
||||
dw SilentHillLabBackTextString4
|
||||
db DEX_KURUSU
|
||||
|
||||
db DEX_KURUSU
|
||||
db DEX_KURUSU
|
||||
|
||||
db DEX_KURUSU
|
||||
dw SilentHillLabBackTextString5
|
||||
db DEX_HAPPA
|
||||
|
||||
db DEX_HAPPA
|
||||
db DEX_HAPPA
|
||||
dw SilentHillLabBackTextString6
|
||||
db DEX_HONOGUMA
|
||||
|
||||
|
||||
SilentHillLabBackTextString15: ; 603D
|
||||
text "オーキド『これ!"
|
||||
line "よくばっちゃ いかん!"
|
||||
done
|
||||
|
||||
|
||||
SilentHillLabBackTextPointers2: ; 6053
|
||||
dw Function3899
|
||||
dw Function3899
|
||||
dw Function3899
|
||||
dw Function3899
|
||||
dw Function3899
|
||||
dw MapDefaultText
|
||||
|
||||
|
||||
; 605D
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -7,20 +7,20 @@ SilentHillPokecenterScriptLoader:: ; 4682
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
SilentHillPokecenterScriptPointers: ; 468C
|
||||
dw SilentHillPokecenterScript
|
||||
dw SilentHillPokecenterNPCIDs
|
||||
dw SilentHillPokecenterScript
|
||||
dw SilentHillPokecenterNPCIDs
|
||||
|
||||
SilentHillPokecenterScript: ; 4690
|
||||
ld hl, SilentHillPokecenterNPCIDs
|
||||
ld de, SilentHillPokecenterPCPointer
|
||||
call CallMapTextSubroutine
|
||||
ret
|
||||
|
||||
|
||||
; 469A
|
||||
dw SilentHillPokecenterNPCIDs
|
||||
|
||||
|
||||
SilentHillPokecenterNPCIDs: ; 469C
|
||||
db 0
|
||||
db 1
|
||||
|
|
@ -28,54 +28,54 @@ SilentHillPokecenterNPCIDs: ; 469C
|
|||
db 3
|
||||
db 4
|
||||
db $FF
|
||||
|
||||
|
||||
SilentHillPokecenterPCPointer: ; 46A2
|
||||
dw SilentHillPokecenterPCText
|
||||
|
||||
|
||||
SilentHillPokecenterPCText: ; 46A4
|
||||
ld hl, SilentHillPokecenterTextString1
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillPokecenterTextString1: ; 46AB
|
||||
text "げんざい ちょうせいちゅうです"
|
||||
done
|
||||
|
||||
|
||||
SilentHillPokecenterTextPointers:: ; 46BC
|
||||
dw SilentHillPokecenterNPCText1
|
||||
dw SilentHillPokecenterNPCText2
|
||||
dw SilentHillPokecenterNPCText3
|
||||
dw SilentHillPokecenterNPCText4
|
||||
dw SilentHillPokecenterNPCText5
|
||||
|
||||
dw SilentHillPokecenterNPCText1
|
||||
dw SilentHillPokecenterNPCText2
|
||||
dw SilentHillPokecenterNPCText3
|
||||
dw SilentHillPokecenterNPCText4
|
||||
dw SilentHillPokecenterNPCText5
|
||||
|
||||
SilentHillPokecenterNPCText1: ; 46C6
|
||||
ld hl, SilentHillPokecenterTextString2
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillPokecenterTextString2: ; 46CD
|
||||
text "もうしわけありませんが"
|
||||
line "ただいま しゅうりちゅう でして"
|
||||
|
||||
|
||||
para "かいふくは できません"
|
||||
|
||||
|
||||
para "まちから でるときは"
|
||||
line "じゅうぶんに おきをつけ ください"
|
||||
done
|
||||
|
||||
|
||||
SilentHillPokecenterNPCText2: ; 4714
|
||||
ld hl, SilentHillPokecenterTextString3
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillPokecenterTextString3: ; 471B
|
||||
text "あそこに ある パソコンは"
|
||||
line "トレーナー だったら"
|
||||
cont "いつでも むりょうで"
|
||||
cont "つかうことが できるよ"
|
||||
cont "きが きいてるよな!"
|
||||
done
|
||||
|
||||
done
|
||||
|
||||
SilentHillPokecenterNPCText3: ; 4757
|
||||
ld hl, SilentHillPokecenterTextString4
|
||||
call OpenTextbox
|
||||
|
|
@ -84,30 +84,30 @@ SilentHillPokecenterNPCText3: ; 4757
|
|||
SilentHillPokecenterTextString4: ; 475E
|
||||
text "いま じゅんびちゅうの"
|
||||
line "きかいは すごいらしいよ"
|
||||
|
||||
|
||||
para "なんでも ときを こえて"
|
||||
line "ポケモンが こうかん できるって!"
|
||||
|
||||
|
||||
para "ほんとかな?"
|
||||
done
|
||||
|
||||
|
||||
SilentHillPokecenterNPCText4: ; 479E
|
||||
ld hl, SilentHillPokecenterTextString5
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillPokecenterTextString5: ; 47A5
|
||||
text "こいつ へルガー"
|
||||
line "いままでにない タイプの ポケモンさ"
|
||||
done
|
||||
|
||||
|
||||
SilentHillPokecenterNPCText5: ; 47C2
|
||||
ld hl, SilentHillPokecenterTextString6
|
||||
call OpenTextbox
|
||||
ret
|
||||
|
||||
|
||||
SilentHillPokecenterTextString6: ; 47C9
|
||||
text "へルガー『ぐるるうー"
|
||||
done
|
||||
|
||||
|
||||
; 47D5
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@ UnusedMap13ScriptLoader:: ; 6078
|
|||
call RunMapScript
|
||||
call WriteBackMapScriptNumber
|
||||
ret
|
||||
|
||||
|
||||
UnusedMap13ScriptPointers: ; 6082
|
||||
dw UnusedMap13Script
|
||||
dw UnusedMap13NPCIDs
|
||||
|
||||
|
||||
UnusedMap13NPCIDs: ; 6086
|
||||
db $FF
|
||||
|
||||
db $FF
|
||||
|
||||
UnusedMap13SignPointers: ; 6087
|
||||
dw MapDefaultText
|
||||
|
||||
UnusedMap13TextPointers:: ; 6089
|
||||
dw MapDefaultText
|
||||
|
||||
|
||||
UnusedMap13Script: ; 608B
|
||||
ld hl, UnusedMap13NPCIDs
|
||||
ld de, UnusedMap13SignPointers
|
||||
|
|
|
|||
3
sram.asm
3
sram.asm
|
|
@ -8,8 +8,7 @@ sSpriteBuffer2:: ds SPRITEBUFFERSIZE ; a310
|
|||
|
||||
SECTION "Unknown, bank 0", SRAM
|
||||
|
||||
s0_a600:: ; TODO: properly label this
|
||||
ds 7 ; TODO: figure out exact size
|
||||
s0_a600:: ds 7 ; TODO: properly label this and figure out exact size
|
||||
|
||||
SECTION "Window Stack Top", SRAM
|
||||
sWindowStackTop:: dw
|
||||
|
|
|
|||
220
wram.asm
220
wram.asm
|
|
@ -17,7 +17,7 @@ wChannel6:: channel_struct wChannel6 ; c0fa
|
|||
wChannel7:: channel_struct wChannel7 ; c12c
|
||||
wChannel8:: channel_struct wChannel8 ; c15e
|
||||
|
||||
ds 1 ; c190
|
||||
ds 1 ; c190
|
||||
|
||||
wCurTrackDuty:: db ; c191
|
||||
wCurTrackIntensity:: db ; c192
|
||||
|
|
@ -34,7 +34,7 @@ wSoundOutput:: ; c19a
|
|||
; bit 0-3: ch1-4 so1 on/off
|
||||
db
|
||||
|
||||
ds 1 ; TODO
|
||||
ds 1 ; TODO
|
||||
|
||||
wMusicID:: dw ; c19c
|
||||
wMusicBank:: db ; c19e
|
||||
|
|
@ -54,18 +54,18 @@ wMusicFade:: ; c1a5
|
|||
; $00 = none (default)
|
||||
db
|
||||
wMusicFadeCount:: db ; c1a6
|
||||
wMusicFadeID::
|
||||
wMusicFadeID::
|
||||
wMusicFadeIDLow:: db ; c1a7
|
||||
wMusicFadeIDHigh:: db ; c1a8
|
||||
|
||||
ds 2 ; TODO
|
||||
ds 2 ; TODO
|
||||
|
||||
wIncrementTempo: dw ; c1ab
|
||||
wMapMusic:: db ; c1ad
|
||||
wCryPitch:: dw ; c1ae
|
||||
wCryLength:: dw ; c1b0
|
||||
; c1b2
|
||||
ds 7 ; TODO
|
||||
ds 7 ; TODO
|
||||
|
||||
wc1b9:: db ; c1b9
|
||||
wc1ba:: db ; c1ba
|
||||
|
|
@ -79,16 +79,16 @@ wMusicInitEnd:: ; c1bc
|
|||
SECTION "OAM Buffer", WRAM0
|
||||
|
||||
wVirtualOAM:: ; c200
|
||||
ds SPRITEOAMSTRUCT_LENGTH * NUM_SPRITE_OAM_STRUCTS
|
||||
ds SPRITEOAMSTRUCT_LENGTH * NUM_SPRITE_OAM_STRUCTS
|
||||
wVirtualOAMEnd::
|
||||
|
||||
wTileMap:: ; c2a0
|
||||
ds SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
ds SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
|
||||
UNION
|
||||
|
||||
wTileMapBackup:: ; c408
|
||||
ds SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
ds SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
|
||||
NEXTU
|
||||
|
||||
|
|
@ -99,8 +99,8 @@ wc40a:: ds 1 ; c40a
|
|||
|
||||
; Monster or Trainer test?
|
||||
wWhichPicTest:: ; c40b
|
||||
db
|
||||
|
||||
db
|
||||
|
||||
|
||||
wc40c:: ds 1 ; c40c
|
||||
wc40d:: ds 1 ; c40d
|
||||
|
|
@ -115,12 +115,12 @@ wc41a:: db ; c41a
|
|||
wSpriteAnimIDBuffer:: db ; c4c0
|
||||
|
||||
ds 6
|
||||
|
||||
|
||||
wc4c7:: db ; c4c7
|
||||
wc4c8:: db ; c4c8
|
||||
|
||||
ds 7
|
||||
|
||||
|
||||
wNamingScreenDestinationPointer:: dw ; c4d0
|
||||
wNamingScreenCurNameLength:: db ; c4d2
|
||||
wNamingScreenMaxNameLength:: db ; c4d3
|
||||
|
|
@ -129,9 +129,9 @@ wNamingScreenCursorObjectPointer:: dw ; c4d5
|
|||
wNamingScreenLastCharacter:: db ; c4d7
|
||||
wNamingScreenStringEntryCoordY:: db ; c4d8
|
||||
wNamingScreenStringEntryCoordX:: db ; c4d9
|
||||
|
||||
|
||||
ds 64
|
||||
|
||||
|
||||
wc51a:: ds 1 ; c51a
|
||||
|
||||
ENDU
|
||||
|
|
@ -144,7 +144,7 @@ wMapScriptNumber:: db ; c5e8
|
|||
wMapScriptNumberLocation:: dw ; c5e9
|
||||
wUnknownMapPointer:: dw ; c5eb ; TODO
|
||||
wc5ed:: db ; c5ed
|
||||
ds 18
|
||||
ds 18
|
||||
wMapBufferEnd:: ; c600
|
||||
|
||||
|
||||
|
|
@ -156,9 +156,9 @@ wOverworldMapBlocksEnd:: ; cb14
|
|||
NEXTU
|
||||
|
||||
wLYOverrides:: ; c600
|
||||
ds SCREEN_HEIGHT_PX
|
||||
ds SCREEN_HEIGHT_PX
|
||||
; c690
|
||||
ds $10
|
||||
ds $10
|
||||
wLYOverrides2:: ; c6a0
|
||||
|
||||
NEXTU
|
||||
|
|
@ -206,13 +206,13 @@ wBattleAnimTempAddSubFlags:: db
|
|||
wBattleAnimTempPalette:: db
|
||||
ENDU ; c813
|
||||
|
||||
ds $32
|
||||
ds $32
|
||||
wBattleAnimEnd::
|
||||
; c845
|
||||
|
||||
ds $1aa ; TODO
|
||||
|
||||
|
||||
|
||||
|
||||
wc9ef:: ds 1 ; c9ef
|
||||
|
||||
ds 6
|
||||
|
|
@ -227,7 +227,7 @@ wca04:: ds 1 ; ca04
|
|||
ds 3
|
||||
|
||||
wca08:: ds 1 ; ca08
|
||||
wca09:: ds 1 ; ca09
|
||||
wca09:: ds 1 ; ca09
|
||||
wca0a:: ds 1 ; ca0a
|
||||
|
||||
ds 5 ; TODO
|
||||
|
|
@ -252,7 +252,7 @@ wca3e:: ds 1 ; ca3e
|
|||
wca3f:: ds 1 ; ca3f
|
||||
wca40:: ds 1 ; ca40
|
||||
wca41:: ds 1 ; ca41
|
||||
|
||||
|
||||
wEnemySubStatus3:: db ; ca42
|
||||
|
||||
wca43:: db ; ca43
|
||||
|
|
@ -268,9 +268,9 @@ wca59:: ds 1 ; ca59
|
|||
wca5a:: ds 1 ; ca5a
|
||||
wca5b:: ds 1 ; ca5b
|
||||
wca5c:: ds 1 ; ca5c
|
||||
|
||||
|
||||
ds $5c
|
||||
|
||||
|
||||
wcab9:: ds 1 ; cab9
|
||||
|
||||
ds 6
|
||||
|
|
@ -278,19 +278,19 @@ wcab9:: ds 1 ; cab9
|
|||
wcac0:: ds 1 ; cac0
|
||||
wcac1:: ds 1 ; cac1
|
||||
wcac2:: ds 1 ; cac2
|
||||
|
||||
|
||||
wLinkBattleRNCount:: db ; cac3
|
||||
|
||||
ds 12
|
||||
|
||||
|
||||
wcad0:: ds 1 ; cad0
|
||||
|
||||
ds 9
|
||||
|
||||
|
||||
wcada:: ds 1 ;cada
|
||||
|
||||
ds 6
|
||||
|
||||
|
||||
wcae1:: ds 1 ; cae1
|
||||
|
||||
ENDU
|
||||
|
|
@ -303,7 +303,7 @@ SECTION "CB14", WRAM0[$CB14]
|
|||
UNION
|
||||
wRedrawRowOrColumnSrcTiles:: ; cb14
|
||||
; the tiles of the row or column to be redrawn by RedrawRowOrColumn
|
||||
ds SCREEN_WIDTH * 2
|
||||
ds SCREEN_WIDTH * 2
|
||||
NEXTU
|
||||
wRedrawFlashlightDst0:: dw ; cb14
|
||||
wRedrawFlashlightSrc0:: dw ; cb16
|
||||
|
|
@ -359,7 +359,7 @@ wVBCopyFarSrcBank:: ds 1 ; cb76
|
|||
wPlayerMovement:: db ; cb77
|
||||
wMovementObject:: db ; cb78
|
||||
ptrba wMovementData ; cb79
|
||||
|
||||
|
||||
wcb7c:: ds 1 ; cb7c
|
||||
|
||||
SECTION "Collision buffer", WRAM0[$CB90]
|
||||
|
|
@ -434,15 +434,15 @@ wVBlankOccurred: db ; cc33
|
|||
wLastSpawnMapGroup: db ;cc34
|
||||
wLastSpawnMapNumber: db ; cc35
|
||||
|
||||
ds 2
|
||||
ds 2
|
||||
|
||||
;Controls what type of opening (fire/notes) you get.
|
||||
wcc38::
|
||||
wTitleSequenceOpeningType:: ; cc38
|
||||
db
|
||||
db
|
||||
|
||||
wDefaultSpawnPoint:: ; cc39
|
||||
db
|
||||
db
|
||||
|
||||
wMovementBufferCount:: db ; cc3a
|
||||
wMovementBufferObject:: db ; cc3b
|
||||
|
|
@ -456,10 +456,10 @@ wSkatingDirection:: db ; cc9a
|
|||
wCompanionCollisionFrameCounter:: db ; cc9b
|
||||
|
||||
wUnknownWordcc9c:: ; cc9c
|
||||
dw
|
||||
dw
|
||||
|
||||
wUnknownBuffercc9e:: ; cc9e
|
||||
ds 14
|
||||
ds 14
|
||||
|
||||
|
||||
wSpriteCurPosX : ds 1 ; ccac
|
||||
|
|
@ -507,7 +507,7 @@ wccd2:: ds 1 ; ccd2
|
|||
wccd3:: ds 1 ; ccd3
|
||||
|
||||
ds 5
|
||||
|
||||
|
||||
wccd9:: ds 1 ; ccd9
|
||||
|
||||
SECTION "CCE1", WRAM0[$CCE1]
|
||||
|
|
@ -518,11 +518,11 @@ wcce3:: ds 1 ; cce3
|
|||
wcce4:: ds 1 ; cce4
|
||||
|
||||
ds 6
|
||||
|
||||
|
||||
wcceb:: ds 1 ; cceb
|
||||
|
||||
|
||||
ds 5
|
||||
|
||||
|
||||
wccf1:: ds 1 ; ccf1
|
||||
wccf2:: ds 1 ; ccf2
|
||||
wccf3:: ds 1 ; ccf3
|
||||
|
|
@ -575,16 +575,16 @@ wQueuedScriptBank:: db ; cd4c
|
|||
wQueuedScriptAddr:: dw ; cd4d
|
||||
|
||||
wPredefID:: ; cd4f
|
||||
db
|
||||
db
|
||||
|
||||
wPredefHL:: ; cd50
|
||||
dw
|
||||
dw
|
||||
wPredefDE:: ; cd52
|
||||
dw
|
||||
dw
|
||||
wPredefBC:: ; cd54
|
||||
|
||||
wFarCallBCBuffer:: ; cd54
|
||||
dw
|
||||
dw
|
||||
|
||||
wcd56:: ds 1 ; cd56
|
||||
wcd57:: ds 1 ; cd57
|
||||
|
|
@ -626,8 +626,8 @@ SECTION "CDAF", WRAM0 [$CDAF]
|
|||
wcdaf:: db ; cdaf
|
||||
|
||||
SECTION "CDB0", WRAM0 [$CDB0]
|
||||
wTalkingTargetType:: db ; cdb0
|
||||
;bit 0 = has engaged NPC in dialogue
|
||||
wTalkingTargetType:: db ; cdb0
|
||||
;bit 0 = has engaged NPC in dialogue
|
||||
;bit 1 = has engaged sign in dialogue
|
||||
|
||||
wcdb1:: ds 1 ; cdb1
|
||||
|
|
@ -643,10 +643,10 @@ wCurPartyLevel:: db ; cdbb
|
|||
SECTION "CDBD", WRAM0[$CDBD]
|
||||
|
||||
wLinkMode:: db ; cdbd
|
||||
; 00 -
|
||||
; 01 -
|
||||
; 02 -
|
||||
; 03 -
|
||||
; 00 -
|
||||
; 01 -
|
||||
; 02 -
|
||||
; 03 -
|
||||
|
||||
wNextWarp:: db ; cdbe
|
||||
wNextMapGroup:: db ; cdbf
|
||||
|
|
@ -681,7 +681,7 @@ wcdda:: ds 1 ; cdda
|
|||
wcddb:: ds 1 ; cddb
|
||||
wcddc:: ds 1 ; cddc
|
||||
wcddd:: ds 1 ; cddd
|
||||
wcdde:: ds 1 ; cdde
|
||||
wcdde:: ds 1 ; cdde
|
||||
wcddf:: ds 1 ; cddf
|
||||
wcde0:: ds 1 ; cde0
|
||||
wcde1:: ds 1 ; cde1
|
||||
|
|
@ -714,63 +714,63 @@ wMonHeader::
|
|||
wMonHIndex:: ; ce07
|
||||
; In the ROM base stats data structure, this is the dex number, but it is
|
||||
; overwritten with the dex number after the header is copied to WRAM.
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHBaseStats:: ; ce08
|
||||
wMonHBaseHP:: ; ce08
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHBaseAttack:: ; ce09
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHBaseDefense:: ; ce0a
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHBaseSpeed:: ; ce0b
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHBaseSpecialAtt:: ; ce0c
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHBaseSpecialDef:: ; ce0d
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHTypes:: ; ce0e
|
||||
wMonHType1:: ; ce0e
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHType2:: ; ce0f
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHCatchRate:: ; ce10
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHBaseEXP:: ; ce11
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHItems:: ; ce12
|
||||
wMonHItem1:: ; ce12
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHItem2:: ; ce13
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHGenderRatio:: ; ce14
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHUnk0:: ; ce15
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHUnk1:: ; ce16
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHUnk2:: ; ce17
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHSpriteDim:: ; ce18
|
||||
ds 1
|
||||
ds 1
|
||||
wMonHFrontSprite:: ; ce19
|
||||
ds 2
|
||||
ds 2
|
||||
wMonHBackSprite:: ; ce1b
|
||||
ds 2
|
||||
ds 2
|
||||
|
||||
wMonHGrowthRate:: ; ce1d
|
||||
ds 1
|
||||
ds 1
|
||||
|
||||
wMonHLearnset:: ; ce1e
|
||||
; bit field
|
||||
flag_array 50 + 5 ; size = 7
|
||||
ds 1
|
||||
flag_array 50 + 5 ; size = 7
|
||||
ds 1
|
||||
|
||||
SECTION "CE2D", WRAM0[$CE2D]
|
||||
wce2d:: ds 1 ; ce2d
|
||||
|
|
@ -785,19 +785,19 @@ wce35:: ds 1 ; ce35
|
|||
wce36:: ds 1 ; ce36
|
||||
|
||||
wNamedObjectIndexBuffer::
|
||||
wCountSetBitsResult::
|
||||
wCountSetBitsResult::
|
||||
wce37:: ; ce37
|
||||
db
|
||||
db
|
||||
|
||||
SECTION "CE3A", WRAM0[$CE3A]
|
||||
|
||||
wce3a:: ds 1 ; ce3a
|
||||
|
||||
wVBlankSavedROMBank:: ; ce3b
|
||||
db
|
||||
db
|
||||
|
||||
wBuffer:: ; ce3c
|
||||
db
|
||||
db
|
||||
|
||||
wTimeOfDay:: db ; ce3d
|
||||
; based on RTC
|
||||
|
|
@ -812,7 +812,7 @@ wcd3f: ds 1
|
|||
SECTION "CE5F", WRAM0[$CE5F]
|
||||
|
||||
wce5f:: ; ce5f ; debug menu writes $41 to it
|
||||
db
|
||||
db
|
||||
|
||||
wce60:: ; ce60
|
||||
db ; main menu checks this, maybe states if there's a save present?
|
||||
|
|
@ -829,7 +829,7 @@ wDebugFlags:: db ; ce63
|
|||
wce64:: ds 1 ; ce64
|
||||
wce65:: ds 1 ; ce65
|
||||
wce66:: ds 1 ; ce66
|
||||
|
||||
|
||||
wPlayerName:: ds 6 ; ce67
|
||||
|
||||
wMomsName:: ds 6 ; ce6d
|
||||
|
|
@ -841,9 +841,9 @@ wce74: ds 1 ; ce74
|
|||
wce75: ds 1 ; ce75
|
||||
|
||||
wObjectFollow_Leader:: ; ce76
|
||||
db
|
||||
db
|
||||
wObjectFollow_Follower:: ; ce77
|
||||
db
|
||||
db
|
||||
wCenteredObject:: ; ce78
|
||||
db
|
||||
wFollowerMovementQueueLength:: ; ce79
|
||||
|
|
@ -908,7 +908,7 @@ wd153:: db ; d153
|
|||
; | \- show player coords in toolgear instead of time
|
||||
; \-------- switch overworld palettes according to seconds not hours
|
||||
|
||||
ds 3 ; TODO
|
||||
ds 3 ; TODO
|
||||
wTimeOfDayPalFlags:: db ; d157
|
||||
; 76543210
|
||||
; \-------- disable overworld palette switch
|
||||
|
|
@ -959,7 +959,7 @@ wNumBallItems:: db ; d1de
|
|||
wBallQuantities:: db ; d1df
|
||||
|
||||
ds 10
|
||||
|
||||
|
||||
wUnknownListLengthd1ea:: db ; d1ea
|
||||
wUnknownListd1eb:: db ; d1eb
|
||||
|
||||
|
|
@ -977,7 +977,7 @@ wPlayerState:: db ; d264
|
|||
|
||||
wd265:: db ; d265
|
||||
wd266:: db ; d266
|
||||
|
||||
|
||||
;The starting house's map script number is stored at d29a. Others are probably nearby.
|
||||
SECTION "D29A", WRAM0[$D29A]
|
||||
wd29a:: db ; d29a
|
||||
|
|
@ -1004,7 +1004,7 @@ wd41a:: db
|
|||
; \-------- talked to Blue, triggers Oak
|
||||
wd41b:: db
|
||||
; 76543210
|
||||
; |\-- followed Oak to his back room
|
||||
; |\-- followed Oak to his back room
|
||||
; \--- chose a starter
|
||||
wd41c:: db
|
||||
; 76543210
|
||||
|
|
@ -1044,25 +1044,25 @@ SECTION "Warp data", WRAM0[$D513]
|
|||
wWarpNumber:: db ; d513
|
||||
|
||||
wCurrMapWarpCount:: ; d514
|
||||
db
|
||||
db
|
||||
|
||||
wCurrMapWarps:: ; d515
|
||||
REPT 32 ; TODO: confirm this
|
||||
ds 5
|
||||
ds 5
|
||||
ENDR
|
||||
|
||||
|
||||
wCurrMapSignCount:: ; d5b5
|
||||
db
|
||||
db
|
||||
|
||||
wCurrMapSigns:: ; d5b6
|
||||
REPT 16 ; TODO: confirm this
|
||||
ds 4
|
||||
ds 4
|
||||
ENDR
|
||||
|
||||
wCurrMapObjectCount:: ; d5f6
|
||||
db
|
||||
|
||||
db
|
||||
|
||||
wCurrMapInlineTrainers:: ; d5f7
|
||||
REPT 32 ; TODO: confirm this
|
||||
ds 2 ; inline trainers. each pair of bytes is direction, distance
|
||||
|
|
@ -1079,10 +1079,10 @@ wBGMapAnchor:: ; d643
|
|||
|
||||
wUsedSprites:: ; d645
|
||||
dw ; This is for the player
|
||||
|
||||
|
||||
wUsedNPCSprites:: ;d647
|
||||
ds 2 * 5 ; This is for the NPCs
|
||||
|
||||
|
||||
wUsedSpritesEnd:: ; d651
|
||||
|
||||
|
||||
|
|
@ -1105,30 +1105,30 @@ wd65e:: ; d65e
|
|||
|
||||
wMapPartial:: ; d65f
|
||||
wMapAttributesBank:: ; d65f
|
||||
db
|
||||
db
|
||||
wMapTileset:: ; d660
|
||||
db
|
||||
db
|
||||
wMapPermissions:: ; d661
|
||||
db
|
||||
db
|
||||
wMapAttributesPtr:: ; d662
|
||||
dw
|
||||
dw
|
||||
wMapPartialEnd:: ; d664
|
||||
|
||||
wMapAttributes:: ; d664
|
||||
wMapHeight:: ; d664
|
||||
db
|
||||
db
|
||||
wMapWidth:: ; d665
|
||||
db
|
||||
db
|
||||
wMapBlocksPointer:: ; d666
|
||||
dw
|
||||
wMapTextPtr::
|
||||
dw
|
||||
wMapScriptPtr:: ; d66a
|
||||
dw
|
||||
dw
|
||||
wMapObjectsPtr:: ; d66c
|
||||
dw
|
||||
dw
|
||||
wMapConnections:: ; d66e
|
||||
db
|
||||
db
|
||||
wMapAttributesEnd:: ; d66f
|
||||
|
||||
wNorthMapConnection:: map_connection_struct wNorth ; d66f
|
||||
|
|
@ -1171,11 +1171,11 @@ wPartyMonNicknames:: ; d7f6
|
|||
wPartyMonNicknamesEnd:: ; d81a
|
||||
|
||||
wPokedexOwned:: ; d81a
|
||||
flag_array NUM_POKEMON
|
||||
flag_array NUM_POKEMON
|
||||
wPokedexOwnedEnd:: ; d839
|
||||
|
||||
wPokedexSeen:: ; d83a
|
||||
flag_array NUM_POKEMON
|
||||
flag_array NUM_POKEMON
|
||||
wPokedexSeenEnd:: ; d859
|
||||
|
||||
wAnnonDex:: ds 26 ; d85a
|
||||
|
|
@ -1188,7 +1188,7 @@ wd876:: ds 1 ; d876
|
|||
ds 5
|
||||
|
||||
wd87c:: ds 1 ; d87c
|
||||
|
||||
|
||||
ds 5
|
||||
|
||||
wd882:: ds 1 ; d882
|
||||
|
|
@ -1203,7 +1203,7 @@ wd8a4:: ds 1 ; d8a4
|
|||
wd8a5:: ds 1 ; d8a5
|
||||
|
||||
ds 5
|
||||
|
||||
|
||||
wd8ab:: ds 1 ; d8ab
|
||||
|
||||
SECTION "wd8b1", WRAM0[$D8B1]
|
||||
|
|
@ -1211,7 +1211,7 @@ SECTION "wd8b1", WRAM0[$D8B1]
|
|||
wd8b1:: ds 1 ; d8b1
|
||||
|
||||
ds 5
|
||||
|
||||
|
||||
wd8b7:: ds 1 ; d8b7
|
||||
wd8b8:: ds 1 ; d8b8
|
||||
|
||||
|
|
@ -1220,11 +1220,11 @@ SECTION "D8D1", WRAM0[$D8D1]
|
|||
wd8d1:: ds 1 ; d8d1
|
||||
|
||||
ds 5
|
||||
|
||||
|
||||
wd8d7:: ds 1 ; d8d7
|
||||
|
||||
ds 5
|
||||
|
||||
|
||||
wd8dd:: ds 1 ; d8dd
|
||||
|
||||
SECTION "D8E3", WRAM0[$D8E3]
|
||||
|
|
@ -1239,7 +1239,7 @@ wd8fd:: ds 1 ; d8fd
|
|||
SECTION "D913", WRAM0[$D913]
|
||||
|
||||
wd913:: ds 1 ; d913
|
||||
|
||||
|
||||
SECTION "Wild mon buffer", WRAM0[$D91B]
|
||||
|
||||
UNION
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user