Address comments on PR 322

This commit is contained in:
PikalaxALT 2015-10-24 19:49:19 -04:00
parent 69ee070021
commit 4d17f6e1f6
28 changed files with 754 additions and 936 deletions

View File

@ -8696,11 +8696,11 @@ Function3f6d0: ; 3f6d0
ld [wd267], a
ld [wd232], a
ld [wd0d8], a
ld [wKeyItemsPocketPointerLocation], a
ld [wItemsPocketPointerLocation], a
ld [wKeyItemsPocketCursor], a
ld [wItemsPocketCursor], a
ld [wd0d2], a
ld [CurMoveNum], a
ld [wBallsPocketPointerLocation], a
ld [wBallsPocketCursor], a
ld [wd0d6], a
ld [wd0e4], a
ld [wd0e0], a

View File

@ -1,8 +1,8 @@
const_def
const_value SET $f0
const MAPSETUP_00
const MAPSETUP_01
const MAPSETUP_WARP
const MAPSETUP_02
const MAPSETUP_03
const MAPSETUP_RELOADMAP
const MAPSETUP_04
const MAPSETUP_05
const MAPSETUP_06
@ -10,4 +10,55 @@
const MAPSETUP_08
const MAPSETUP_09
const MAPSETUP_10
const MAPSETUP_11
const MAPSETUP_BADWARP
; Command descriptions from Condensation water's scripting compendium. const_def
const_def
const map_lcd_on
const map_lcd_off
const map_sound_off
const map_music
const map_start_music
const map_fade_music
const map_fade
const map_bike_music
const map_music_force
const map_max_volume
const map_load_blocks
const map_connection_blocks
const map_save_screen
const map_buffer_screen
const map_load_graphics
const map_load_tileset_header
const map_time_of_day
const map_palettes
const map_wildmons
const map_sprites
const map_change_callback
const map_start_callback
const map_load_objects
const map_load_spawn
const map_load_connection
const map_load_warp
const map_attributes
const map_attributes_2
const map_clear_bg_palettes
const map_fade_out_palettes
const map_fade_in_palettes
const map_anchor_screen
const map_warp_face
const map_face_down
const map_spawn_coord
const map_player_coord
const map_prolong_sprites
const map_delay_sprites
const map_update_roam
const map_keep_roam
const map_fade_out_music
const map_animations_on
const map_animations_off
const map_keep_palettes
const map_text_scroll_off
const map_stop_script
map_end_setup_script EQU -1

View File

@ -1,11 +1,11 @@
; trainer groups
enum_start
trainerclass PHONE ; 0
const MOM_PHONE
const OAK_PHONE
const BILL_PHONE
const ELM_PHONE
const BUENA_PHONE
trainerclass TRAINER_NONE ; 0
const PHONECONTACT_MOM
const PHONECONTACT_BIKESHOP
const PHONECONTACT_BILL
const PHONECONTACT_ELM
const PHONECONTACT_BUENA
trainerclass FALKNER ; 1

View File

@ -13,7 +13,7 @@ Predef_StartBattle: ; 8c20f
ld [hl], $1
.loop
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .done
call FlashyTransitionToBattle
@ -72,7 +72,7 @@ Function8c26d: ; 8c26d
call DelayFrame
xor a
ld [hBGMapMode], a
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
xor a
rept 2
ld [hli], a
@ -146,7 +146,7 @@ INCBIN "gfx/overworld/trainer_battle_pokeball_tiles.2bpp"
FlashyTransitionToBattle: ; 8c314
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, .jumptable
@ -230,7 +230,7 @@ StartTrainerBattle_DetermineWhichAnimation: ; 8c365 (23:4365)
ld hl, .StartingPoints
add hl, de
ld a, [hl]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 8c38f (23:438f)
@ -242,11 +242,11 @@ StartTrainerBattle_DetermineWhichAnimation: ; 8c365 (23:4365)
StartTrainerBattle_Finish: ; 8c393 (23:4393)
call ClearSprites
ld a, $80
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
StartTrainerBattle_NextScene: ; 8c39c (23:439c)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
@ -331,7 +331,7 @@ StartTrainerBattle_SineWave: ; 8c408 (23:4408)
.end
ld a, $20
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
.DoSineWave: ; 8c419 (23:4419)
@ -416,7 +416,7 @@ endr
xor a
ld [hBGMapMode], a ; $ff00+$d4
ld a, $20
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 8c490 (23:4490)
@ -540,7 +540,7 @@ StartTrainerBattle_SpeckleToBlack: ; 8c58f (23:458f)
xor a
ld [hBGMapMode], a ; $ff00+$d4
ld a, $20
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
.BlackOutRandomTile: ; 8c5b8 (23:45b8)
@ -836,7 +836,7 @@ StartTrainerBattle_ZoomToBlack: ; 8c768 (23:4768)
.done
ld a, $20
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 8c792 (23:4792)

View File

@ -124,7 +124,7 @@ Function109847:: ; 109847
jr z, .asm_10984f
ld a, $40
.asm_10984f
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, [rSVBK]
push af
@ -225,7 +225,7 @@ Function1098fd: ; 1098fd
ld a, [hJoypadDown]
and $1
ret z
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
ret
; 109908
@ -234,7 +234,7 @@ Function109908: ; 109908
ld a, [hJoypadDown]
and $2
ret z
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 6, a
ret z
ld hl, CreditsPos
@ -255,7 +255,7 @@ Function109908: ; 109908
; 109926
Function109926: ; 109926
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
and $f
ld e, a
ld d, 0
@ -287,12 +287,12 @@ Jumptable_109937: ; 109937 (42:5937)
Function109951: ; 109951 (42:5951)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
Function109956: ; 109956 (42:5956)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
ld a, [hl]
and $f0
ld [hl], a
@ -348,7 +348,7 @@ Function1099a3: ; 1099a3 (42:59a3)
ParseCredits: ; 1099aa
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
bit 7, [hl]
jp nz, .done
@ -488,7 +488,7 @@ endr
.end
; Stop execution.
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ld a, $20
ld [MusicFade], a

View File

@ -138,19 +138,19 @@ EnterMap: ; 9673e
call ClearAllScriptFlags3
ld a, [hMapEntryMethod]
cp ($f << 4) + MAPSETUP_07
cp MAPSETUP_07
jr nz, .dontset
call SetAll_ScriptFlags3
.dontset
ld a, [hMapEntryMethod]
cp ($f << 4) + MAPSETUP_03
cp MAPSETUP_RELOADMAP
jr nz, .dontresetpoison
xor a
ld [PoisonStepCount], a
.dontresetpoison
xor a ; ($0 << 4) + MAPSETUP_00
xor a ; end map entry
ld [hMapEntryMethod], a
ld a, 2 ; HandleMap
ld [MapStatus], a
@ -320,7 +320,7 @@ PlayerEvents: ; 9681f
pop af
ld [ScriptRunning], a
call Function96beb
call DoPlayerEvent
ld a, [ScriptRunning]
cp 4
jr z, .ok2
@ -361,7 +361,7 @@ CheckTileEvent: ; 96874
callba CheckMovingOffEdgeOfMap
jr c, .return4
call Function2238
call CheckWarpTile
jr c, .return6
.bit2
@ -436,7 +436,11 @@ SetUpFiveStepWildEncounterCooldown: ; 968d1
ret
; 968d7
SetMinTwoStepWildEncounterCooldown: mobile ; 968d7
ret_968d7: ; 968d7
ret
;968d8
SetMinTwoStepWildEncounterCooldown: ; 968d8
ld a, [wWildEncounterCooldown]
cp 2
ret nc
@ -453,7 +457,7 @@ Dummy_CheckScriptFlags3Bit5: ; 968e4
; 968ec
DoMapTrigger: ; 968ec
ld a, [wdc07]
ld a, [wCurrMapTriggerCount]
and a
jr z, .nope
@ -464,7 +468,7 @@ DoMapTrigger: ; 968ec
ld e, a
ld d, 0
ld hl, wdc08
ld hl, wCurrMapTriggerHeaderPointer
ld a, [hli]
ld h, [hl]
ld l, a
@ -852,7 +856,7 @@ PlayerMovement: ; 96af0
; 96b10
.seven ; 96b10
call SetMinTwoStepWildEncounterCooldown ; mobile
call ret_968d7 ; mobile
xor a
ld c, a
ret
@ -1040,7 +1044,7 @@ DoRepelStep: ; 96bd7
ret
; 96beb
Function96beb: ; 96beb
DoPlayerEvent: ; 96beb
ld a, [ScriptRunning]
and a
ret z
@ -1093,16 +1097,16 @@ HatchEggScript: ; 96c2f
WarpToNewMapScript: ; 96c34
warpsound
newloadmap ($f << 4) + MAPSETUP_05
newloadmap MAPSETUP_05
end
; 96c38
FallIntoMapScript: ; 96c38
newloadmap ($f << 4) + MAPSETUP_06
newloadmap MAPSETUP_06
playsound SFX_KINESIS
applymovement PLAYER, MovementData_0x96c48
playsound SFX_STRENGTH
scall UnknownScript_0x96c4a
scall LandAfterPitfallScript
end
; 96c48
@ -1111,7 +1115,7 @@ MovementData_0x96c48: ; 96c48
step_end
; 96c4a
UnknownScript_0x96c4a: ; 96c4a
LandAfterPitfallScript: ; 96c4a
earthquake 16
end
; 96c4d

View File

@ -32,170 +32,170 @@ MapSetupScripts: ; 15377
; 1538f
MapSetupScript4: ; 1538f
map_prolong_sprites
db map_prolong_sprites
MapSetupScript12: ; 15390
map_fade_out_palettes
map_keep_roam
db map_fade_out_palettes
db map_keep_roam
MapSetupScript1: ; 15392
map_lcd_off
map_sound_off
map_load_spawn
map_attributes
map_change_callback
map_spawn_coord
map_player_coord
map_anchor_screen
map_load_blocks
map_buffer_screen
map_load_graphics
map_time_of_day
map_load_objects
map_lcd_on
map_palettes
map_face_down
map_sprites
map_bike_music
map_max_volume
map_fade_in_palettes
map_animations_on
map_wildmons
map_end_setup_script
db map_lcd_off
db map_sound_off
db map_load_spawn
db map_attributes
db map_change_callback
db map_spawn_coord
db map_player_coord
db map_anchor_screen
db map_load_blocks
db map_buffer_screen
db map_load_graphics
db map_time_of_day
db map_load_objects
db map_lcd_on
db map_palettes
db map_face_down
db map_sprites
db map_bike_music
db map_max_volume
db map_fade_in_palettes
db map_animations_on
db map_wildmons
db map_end_setup_script
MapSetupScript11: ; 153a9
map_load_spawn
map_attributes
map_change_callback
map_spawn_coord
map_player_coord
map_anchor_screen
map_load_blocks
map_buffer_screen
map_lcd_off
map_load_graphics
map_time_of_day
map_fade_out_music
map_lcd_on
map_load_objects
map_palettes
map_face_down
map_sprites
map_fade_music
map_fade_in_palettes
map_animations_on
map_wildmons
map_end_setup_script
db map_load_spawn
db map_attributes
db map_change_callback
db map_spawn_coord
db map_player_coord
db map_anchor_screen
db map_load_blocks
db map_buffer_screen
db map_lcd_off
db map_load_graphics
db map_time_of_day
db map_fade_out_music
db map_lcd_on
db map_load_objects
db map_palettes
db map_face_down
db map_sprites
db map_fade_music
db map_fade_in_palettes
db map_animations_on
db map_wildmons
db map_end_setup_script
MapSetupScript7: ; 153bf
map_animations_off
map_load_connection
map_attributes
map_change_callback
map_player_coord
map_load_blocks
map_load_tileset_header
map_save_screen
map_load_objects
map_fade_music
map_palettes
map_stop_script
map_keep_palettes
map_wildmons
map_update_roam
map_animations_on
map_end_setup_script
db map_animations_off
db map_load_connection
db map_attributes
db map_change_callback
db map_player_coord
db map_load_blocks
db map_load_tileset_header
db map_save_screen
db map_load_objects
db map_fade_music
db map_palettes
db map_stop_script
db map_keep_palettes
db map_wildmons
db map_update_roam
db map_animations_on
db map_end_setup_script
MapSetupScript6: ; 153d0
map_prolong_sprites
db map_prolong_sprites
MapSetupScript5: ; 153d1
map_fade_out_palettes
db map_fade_out_palettes
MapSetupScript9: ; 153d2
map_load_warp
map_attributes
map_warp_face
map_change_callback
map_player_coord
map_load_blocks
map_buffer_screen
map_lcd_off
map_load_graphics
map_time_of_day
map_fade_out_music
map_lcd_on
map_load_objects
map_palettes
map_sprites
map_fade_music
map_fade_in_palettes
map_animations_on
map_wildmons
map_update_roam
map_end_setup_script
db map_load_warp
db map_attributes
db map_warp_face
db map_change_callback
db map_player_coord
db map_load_blocks
db map_buffer_screen
db map_lcd_off
db map_load_graphics
db map_time_of_day
db map_fade_out_music
db map_lcd_on
db map_load_objects
db map_palettes
db map_sprites
db map_fade_music
db map_fade_in_palettes
db map_animations_on
db map_wildmons
db map_update_roam
db map_end_setup_script
MapSetupScript3: ; 153e7
map_fade
map_clear_bg_palettes
map_lcd_off
map_sound_off
map_load_blocks
map_connection_blocks
map_load_graphics
map_time_of_day
map_lcd_on
map_palettes
map_sprites
map_music_force
map_fade_in_palettes
map_animations_on
map_wildmons
map_end_setup_script
db map_fade
db map_clear_bg_palettes
db map_lcd_off
db map_sound_off
db map_load_blocks
db map_connection_blocks
db map_load_graphics
db map_time_of_day
db map_lcd_on
db map_palettes
db map_sprites
db map_music_force
db map_fade_in_palettes
db map_animations_on
db map_wildmons
db map_end_setup_script
MapSetupScript8: ; 153f7
map_fade
map_lcd_off
map_sound_off
map_change_callback
map_load_blocks
map_buffer_screen
map_load_graphics
map_time_of_day
map_lcd_on
map_palettes
map_sprites
map_bike_music
map_fade_in_palettes
map_animations_on
map_wildmons
map_text_scroll_off
map_end_setup_script
db map_fade
db map_lcd_off
db map_sound_off
db map_change_callback
db map_load_blocks
db map_buffer_screen
db map_load_graphics
db map_time_of_day
db map_lcd_on
db map_palettes
db map_sprites
db map_bike_music
db map_fade_in_palettes
db map_animations_on
db map_wildmons
db map_text_scroll_off
db map_end_setup_script
MapSetupScript2: ; 15408
map_lcd_off
map_sound_off
map_attributes_2
map_anchor_screen
map_start_callback
map_load_blocks
map_connection_blocks
map_buffer_screen
map_load_graphics
map_time_of_day
map_lcd_on
map_palettes
map_sprites
map_bike_music
map_fade_in_palettes
map_animations_on
map_wildmons
map_end_setup_script
db map_lcd_off
db map_sound_off
db map_attributes_2
db map_anchor_screen
db map_start_callback
db map_load_blocks
db map_connection_blocks
db map_buffer_screen
db map_load_graphics
db map_time_of_day
db map_lcd_on
db map_palettes
db map_sprites
db map_bike_music
db map_fade_in_palettes
db map_animations_on
db map_wildmons
db map_end_setup_script
MapSetupScript10: ; 1541a
map_load_blocks
map_connection_blocks
map_end_setup_script
db map_load_blocks
db map_connection_blocks
db map_end_setup_script
ReadMapSetupScript: ; 1541d

View File

@ -5,7 +5,7 @@ Pack: ; 10000
call Function1068a
.loop
call JoyTextDelay
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .done
call Function10026
@ -21,7 +21,7 @@ Pack: ; 10000
; 10026
Function10026: ; 10026
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld hl, Jumptable_10030
call Function1086b
jp [hl]
@ -47,7 +47,7 @@ Function10046: ; 10046 (4:4046)
ld [hBGMapMode], a ; $ff00+$d4
call Function10955
ld a, [wcf64]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call Function10a40
ret
@ -63,15 +63,15 @@ Function10056: ; 10056 (4:4056)
Function10067: ; 10067 (4:4067)
ld hl, MenuDataHeader_0x10a4f
call CopyMenuDataHeader
ld a, [wItemsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wItemsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0df]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0df], a
ld a, [wcfa9]
ld [wItemsPocketPointerLocation], a
ld [wItemsPocketCursor], a
ld b, $7
ld c, $3
call Function108d4
@ -91,15 +91,15 @@ Function10094: ; 10094 (4:4094)
Function100a6: ; 100a6 (4:40a6)
ld hl, MenuDataHeader_0x10a7f
call CopyMenuDataHeader
ld a, [wKeyItemsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wKeyItemsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0e0]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0e0], a
ld a, [wcfa9]
ld [wKeyItemsPocketPointerLocation], a
ld [wKeyItemsPocketCursor], a
ld b, $3
ld c, $7
call Function108d4
@ -221,15 +221,15 @@ Function10186: ; 10186 (4:4186)
Function10198: ; 10198 (4:4198)
ld hl, MenuDataHeader_0x10aaf
call CopyMenuDataHeader
ld a, [wBallsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wBallsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0e1]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0e1], a
ld a, [wcfa9]
ld [wBallsPocketPointerLocation], a
ld [wBallsPocketCursor], a
ld b, $1
ld c, $5
call Function108d4
@ -494,7 +494,7 @@ Function10311: ; 10311
and a
jr z, .Oak
ld a, $a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 10364 (4:4364)
@ -537,19 +537,19 @@ Function1039d: ; 1039d
.asm_103aa
xor a
ld [wBallsPocketPointerLocation], a
ld [wBallsPocketCursor], a
ld [wd0e1], a
ret
.asm_103b2
xor a
ld [wItemsPocketPointerLocation], a
ld [wItemsPocketCursor], a
ld [wd0df], a
ret
.asm_103ba
xor a
ld [wKeyItemsPocketPointerLocation], a
ld [wKeyItemsPocketCursor], a
ld [wd0e0], a
ret
; 103c2
@ -613,7 +613,7 @@ Function103fd: ; 103fd
call PrintText
jr .asm_10427
.asm_10453
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
push af
ld a, [wcf64]
push af
@ -626,7 +626,7 @@ Function103fd: ; 103fd
pop af
ld [wcf64], a
pop af
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
.asm_10475
pop af
ld [Options], a
@ -660,7 +660,7 @@ BattlePack: ; 10493
call Function1068a
.asm_1049b
call JoyTextDelay
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .asm_104ad
call Function104b9
@ -676,7 +676,7 @@ BattlePack: ; 10493
; 104b9
Function104b9: ; 104b9
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld hl, Jumptable_104c3
call Function1086b
jp [hl]
@ -702,7 +702,7 @@ Function104d9: ; 104d9 (4:44d9)
ld [hBGMapMode], a ; $ff00+$d4
call Function10955
ld a, [wcf64]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call Function10a40
ret
@ -718,15 +718,15 @@ Function104e9: ; 104e9 (4:44e9)
Function104fa: ; 104fa (4:44fa)
ld hl, MenuDataHeader_0x10a4f
call CopyMenuDataHeader
ld a, [wItemsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wItemsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0df]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0df], a
ld a, [wcfa9]
ld [wItemsPocketPointerLocation], a
ld [wItemsPocketCursor], a
ld b, $7
ld c, $3
call Function108d4
@ -746,15 +746,15 @@ Function10527: ; 10527 (4:4527)
Function10539: ; 10539 (4:4539)
ld hl, MenuDataHeader_0x10a7f
call CopyMenuDataHeader
ld a, [wKeyItemsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wKeyItemsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0e0]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0e0], a
ld a, [wcfa9]
ld [wKeyItemsPocketPointerLocation], a
ld [wKeyItemsPocketCursor], a
ld b, $3
ld c, $7
call Function108d4
@ -797,15 +797,15 @@ Function10594: ; 10594 (4:4594)
Function105a6: ; 105a6 (4:45a6)
ld hl, MenuDataHeader_0x10aaf
call CopyMenuDataHeader
ld a, [wBallsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wBallsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0e1]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0e1], a
ld a, [wcfa9]
ld [wBallsPocketPointerLocation], a
ld [wBallsPocketCursor], a
ld b, $1
ld c, $5
call Function108d4
@ -931,7 +931,7 @@ Function105dc: ; 105dc (4:45dc)
jr z, .asm_10684
.asm_1067e: ; 1067e (4:467e)
ld a, $a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
.asm_10684: ; 10684 (4:4684)
@ -947,7 +947,7 @@ Function105dc: ; 105dc (4:45dc)
Function1068a: ; 1068a
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, [wd0d6]
and $3
ld [wcf65], a
@ -965,7 +965,7 @@ Function1068a: ; 1068a
Function106a5: ; 106a5
xor a
ld [hBGMapMode], a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a
@ -984,7 +984,7 @@ Function106be: ; 106be
; 106c7
Function106c7: ; 106c7
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld hl, Jumptable_106d1
call Function1086b
jp [hl]
@ -1003,15 +1003,15 @@ Jumptable_106d1: ; 106d1 (4:46d1)
call InitPocket
ld hl, MenuDataHeader_0x10a67
call CopyMenuDataHeader
ld a, [wItemsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wItemsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0df]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0df], a
ld a, [wcfa9]
ld [wItemsPocketPointerLocation], a
ld [wItemsPocketCursor], a
ret
.KeyItemsPocket: ; 106ff (4:46ff)
@ -1019,15 +1019,15 @@ Jumptable_106d1: ; 106d1 (4:46d1)
call InitPocket
ld hl, MenuDataHeader_0x10a97
call CopyMenuDataHeader
ld a, [wKeyItemsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wKeyItemsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0e0]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0e0], a
ld a, [wcfa9]
ld [wKeyItemsPocketPointerLocation], a
ld [wKeyItemsPocketCursor], a
ret
.TMHMPocket: ; 10726 (4:4726)
@ -1044,15 +1044,15 @@ Jumptable_106d1: ; 106d1 (4:46d1)
call InitPocket
ld hl, MenuDataHeader_0x10ac7
call CopyMenuDataHeader
ld a, [wBallsPocketPointerLocation]
ld [wPocketPointerLocationBuffer], a
ld a, [wBallsPocketCursor]
ld [wPocketCursorBuffer], a
ld a, [wd0e1]
ld [wd0e4], a
call Function350c
ld a, [wd0e4]
ld [wd0e1], a
ld a, [wcfa9]
ld [wBallsPocketPointerLocation], a
ld [wBallsPocketCursor], a
ret
InitPocket: ; 10762 (4:4762)
@ -1093,10 +1093,10 @@ Function1076f: ; 1076f
ret
.asm_10795
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
dec a
and $3
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
push de
ld de, SFX_UNKNOWN_62
call PlaySFX
@ -1105,10 +1105,10 @@ Function1076f: ; 1076f
ret
.asm_107a8
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
inc a
and $3
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
push de
ld de, SFX_UNKNOWN_62
call PlaySFX
@ -1134,7 +1134,7 @@ Function107bb: ; 107bb
; 107d7
Function107d7: ; 107d7
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld hl, Jumptable_107e1
call Function1086b
jp [hl]
@ -1238,7 +1238,7 @@ Function1085a: ; 1085a (4:485a)
ret
Function10866: ; 10866 (4:4866)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
@ -1255,14 +1255,14 @@ endr
; 10874
Function10874: ; 10874 (4:4874)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
xor a
ld [wcf66], a
ret
Function1087e: ; 1087e (4:487e)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ld a, $1
ld [wcf66], a
@ -1346,12 +1346,12 @@ Function108d4: ; 108d4 (4:48d4)
ret
.asm_108fa
ld a, $9
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
scf
ret
.asm_10901
ld a, b
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
push de
ld de, SFX_UNKNOWN_62
@ -1361,7 +1361,7 @@ Function108d4: ; 108d4 (4:48d4)
ret
.asm_10912
ld a, c
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
push de
ld de, SFX_UNKNOWN_62

View File

@ -99,7 +99,7 @@ GetRemainingSpaceInPhoneList: ; 90040
; 90066
PermanentNumbers: ; 90066
db MOM_PHONE, ELM_PHONE, -1
db PHONECONTACT_MOM, PHONECONTACT_ELM, -1
; 90069
@ -428,7 +428,7 @@ LoadCallerScript: ; 9020d (24:420d)
; 90233 (24:4233)
WrongNumber: ; 90233
db PHONE, PHONE_00
db TRAINER_NONE, PHONE_00
dba .script
.script:
writetext .text
@ -776,17 +776,17 @@ phone: MACRO
dba \7 ; script 2
ENDM
phone PHONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone PHONE, MOM_PHONE, KRISS_HOUSE_1F, 7, MomPhoneScript, 0, UnusedPhoneScript
phone PHONE, OAK_PHONE, OAKS_LAB, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone PHONE, BILL_PHONE, N_A, 7, BillPhoneScript1, 0, BillPhoneScript2
phone PHONE, ELM_PHONE, ELMS_LAB, 7, ElmPhoneScript1, 0, ElmPhoneScript2
phone TRAINER_NONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone TRAINER_NONE, PHONECONTACT_MOM, KRISS_HOUSE_1F, 7, MomPhoneScript, 0, UnusedPhoneScript
phone TRAINER_NONE, PHONECONTACT_BIKESHOP, OAKS_LAB, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone TRAINER_NONE, PHONECONTACT_BILL, N_A, 7, BillPhoneScript1, 0, BillPhoneScript2
phone TRAINER_NONE, PHONECONTACT_ELM, ELMS_LAB, 7, ElmPhoneScript1, 0, ElmPhoneScript2
phone SCHOOLBOY, JACK1, NATIONAL_PARK, 7, JackPhoneScript1, 7, JackPhoneScript2
phone POKEFANF, BEVERLY1, NATIONAL_PARK, 7, BeverlyPhoneScript1, 7, BeverlyPhoneScript2
phone SAILOR, HUEY1, OLIVINE_LIGHTHOUSE_2F, 7, HueyPhoneScript1, 7, HueyPhoneScript2
phone PHONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone PHONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone PHONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone TRAINER_NONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone TRAINER_NONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone TRAINER_NONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone COOLTRAINERM, GAVEN3, ROUTE_26, 7, GavenPhoneScript1, 7, GavenPhoneScript2
phone COOLTRAINERF, BETH1, ROUTE_26, 7, BethPhoneScript1, 7, BethPhoneScript2
phone BIRD_KEEPER, JOSE2, ROUTE_27, 7, JosePhoneScript1, 7, JosePhoneScript2
@ -801,7 +801,7 @@ ENDM
phone JUGGLER, IRWIN1, ROUTE_35, 7, IrwinPhoneScript1, 7, IrwinPhoneScript2
phone BUG_CATCHER, ARNIE1, ROUTE_35, 7, ArniePhoneScript1, 7, ArniePhoneScript2
phone SCHOOLBOY, ALAN1, ROUTE_36, 7, AlanPhoneScript1, 7, AlanPhoneScript2
phone PHONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone TRAINER_NONE, PHONE_00, N_A, 0, UnusedPhoneScript, 0, UnusedPhoneScript
phone LASS, DANA1, ROUTE_38, 7, DanaPhoneScript1, 7, DanaPhoneScript2
phone SCHOOLBOY, CHAD1, ROUTE_38, 7, ChadPhoneScript1, 7, ChadPhoneScript2
phone POKEFANM, DEREK1, ROUTE_39, 7, DerekPhoneScript1, 7, DerekPhoneScript2
@ -813,7 +813,7 @@ ENDM
phone BLACKBELT_T, KENJI3, ROUTE_45, 7, KenjiPhoneScript1, 7, KenjiPhoneScript2
phone HIKER, PARRY1, ROUTE_45, 7, ParryPhoneScript1, 7, ParryPhoneScript2
phone PICNICKER, ERIN1, ROUTE_46, 7, ErinPhoneScript1, 7, ErinPhoneScript2
phone PHONE, BUENA_PHONE, GOLDENROD_DEPT_STORE_ROOF, 7, BuenaPhoneScript1, 7, BuenaPhoneScript2
phone TRAINER_NONE, PHONECONTACT_BUENA, GOLDENROD_DEPT_STORE_ROOF, 7, BuenaPhoneScript1, 7, BuenaPhoneScript2
; 90627
SpecialPhoneCallList: ; 90627

View File

@ -28,7 +28,7 @@ Pokedex: ; 40000
.main
call JoyTextDelay
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .exit
call Function4010b
@ -75,7 +75,7 @@ ENDC
call ByteFill
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a
@ -173,7 +173,7 @@ Function400ed: ; 400ed
; 4010b
Function4010b: ; 4010b
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld hl, Jumptable_40115
call Function41432
jp [hl]
@ -198,12 +198,12 @@ Jumptable_40115: ; 40115 (10:4115)
Function40131: ; 40131 (10:4131)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
Function40136: ; 40136 (10:4136)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ret
@ -283,7 +283,7 @@ Function401ae: ; 401ae (10:41ae)
call Function40bd0
ret z
ld a, $2
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, $0
ld [wcf64], a
ret
@ -291,7 +291,7 @@ Function401ae: ; 401ae (10:41ae)
.select
call Function41401
ld a, $7
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
xor a
ld [hSCX], a ; $ff00+$cf
ld a, $a7
@ -302,7 +302,7 @@ Function401ae: ; 401ae (10:41ae)
.start
call Function41401
ld a, $5
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
xor a
ld [hSCX], a ; $ff00+$cf
ld a, $a7
@ -312,7 +312,7 @@ Function401ae: ; 401ae (10:41ae)
.b
ld a, $d
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
Function40217: ; 40217 (10:4217)
@ -372,7 +372,7 @@ Function40258: ; 40258 (10:4258)
.asm_40288
call MaxVolume
ld a, [wcf64]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 40292 (10:4292)
@ -408,7 +408,7 @@ Function402aa: ; 402aa (10:42aa)
call Function41423
ld a, [CurPartySpecies]
call PlayCry
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
dec [hl]
ret
; 402e8 (10:42e8)
@ -478,11 +478,11 @@ Function4034f: ; 4034f
push af
ld a, [wcf64]
push af
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
push af
callba Function8442c
pop af
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
pop af
ld [wcf64], a
pop af
@ -552,7 +552,7 @@ Function403be: ; 403be (10:43be)
.asm_403ea
call Function41401
ld a, $0
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 403f3 (10:43f3)
@ -604,13 +604,13 @@ Function40417: ; 40417 (10:4417)
.asm_40431
call Function41401
ld a, $0
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
Function4043a: ; 4043a (10:443a)
call Function41401
ld a, $b
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
Function40443: ; 40443 (10:4443)
@ -656,7 +656,7 @@ Function40471: ; 40471 (10:4471)
.asm_40495
call Function41401
ld a, $0
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 4049e (10:449e)
@ -710,14 +710,14 @@ Function404b7: ; 404b7
ld [wc7d1], a
call Function41401
ld a, $9
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 40501
Function40501: ; 40501
call Function41401
ld a, $0
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 4050a
@ -779,7 +779,7 @@ Function40562: ; 40562 (10:4562)
call Function40bd0
ret z
ld a, $2
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, $9
ld [wcf64], a
ret
@ -795,7 +795,7 @@ Function40562: ; 40562 (10:4562)
call ClearSprites
call Function40bdc
ld a, $5
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
xor a
ld [hSCX], a ; $ff00+$cf
ld a, $a7
@ -827,7 +827,7 @@ Function405df: ; 405df (10:45df)
.asm_405eb
call Function41401
ld a, $7
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call DelayFrame
call Function41a24
jr nz, .asm_40603

View File

@ -529,7 +529,7 @@ Script_interpretmenu: ; 0x96f41
ld a, [ScriptBank]
ld hl, InterpretMenu
rst FarCall
ld a, [wPocketPointerLocationBuffer]
ld a, [wPocketCursorBuffer]
jr nc, .ok
xor a
.ok
@ -1585,7 +1585,7 @@ Script_reloadmap: ; 0x97491
xor a
ld [wd459], a
ld a, ($f << 4) + MAPSETUP_03
ld a, MAPSETUP_RELOADMAP
ld [hMapEntryMethod], a
ld a, $1
call LoadMapStatus
@ -2840,7 +2840,7 @@ Script_warp: ; 0x97a1d
ld [YCoord], a
ld a, -1
ld [wd001], a
ld a, ($f << 4) + MAPSETUP_01
ld a, MAPSETUP_WARP
ld [hMapEntryMethod], a
ld a, 1
call LoadMapStatus
@ -2852,7 +2852,7 @@ Script_warp: ; 0x97a1d
call GetScriptByte
ld a, -1
ld [wd001], a
ld a, ($f << 4) + MAPSETUP_11
ld a, MAPSETUP_BADWARP
ld [hMapEntryMethod], a
ld a, 1
call LoadMapStatus

View File

@ -9,7 +9,7 @@ _TitleScreen: ; 10ed67
ld [hBGMapMode], a
; Reset timing variables
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
ld [hli], a ; cf63 ; Scene?
ld [hli], a ; cf64
ld [hli], a ; cf65 ; Timer lo

View File

@ -247,7 +247,7 @@ Function8b0e2: ; 8b0e2
ld hl, .MenuDataHeader
call CopyMenuDataHeader
ld a, [MenuSelection]
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
xor a
ld [wcf76], a
ld [hBGMapMode], a

View File

@ -62,7 +62,7 @@ Kurt_SelectApricorn: ; 88055
ld hl, .MenuDataHeader
call CopyMenuDataHeader
ld a, [MenuSelection]
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
xor a
ld [hBGMapMode], a
call Function352f

View File

@ -4,9 +4,9 @@ Special_BankOfMom: ; 16218
ld a, $1
ld [hInMenu], a
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
.asm_16223
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .asm_1622f
call Function16233
@ -19,7 +19,7 @@ Special_BankOfMom: ; 16218
; 16233
Function16233: ; 16233
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, .jumptable
@ -57,7 +57,7 @@ endr
ld a, $2
.done_0
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 1626a
@ -79,7 +79,7 @@ endr
ld hl, UnknownText_0x16653
call PrintText
ld a, $8
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 16290
@ -96,7 +96,7 @@ endr
ld a, $7
.done_2
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 162a8
@ -133,7 +133,7 @@ endr
ld a, $6
.done_3
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 162e0
@ -201,7 +201,7 @@ endr
ld a, $7
.done_4
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 16373
@ -269,7 +269,7 @@ endr
ld a, $7
.done_5
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 16406
@ -283,14 +283,14 @@ endr
ld hl, UnknownText_0x16685
call PrintText
ld a, $8
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
.StopSavingMoney
ld a, $80
ld [wBankOfMomMode], a
ld a, $7
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 1642d
@ -299,7 +299,7 @@ endr
call PrintText
.JustDoWhatYouCan: ; 16433
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ret
; 16439

View File

@ -214,7 +214,7 @@ Function222a:: ; 222a
ret
; 2238
Function2238:: ; 2238
CheckWarpTile:: ; 2238
call Function2252
ret nc
push bc
@ -258,11 +258,11 @@ Function2266:: ; 2266
ld a, [MapX]
sub $4
ld d, a
ld a, [wdbfb]
ld a, [wCurrMapWarpCount]
and a
ret z
ld c, a
ld hl, wdbfc
ld hl, wCurrMapWarpHeaderPointer
ld a, [hli]
ld h, [hl]
ld l, a
@ -294,7 +294,7 @@ Function2266:: ; 2266
pop hl
call Function22a3
ret nc
ld a, [wdbfb]
ld a, [wCurrMapWarpCount]
inc a
sub c
ld c, a
@ -325,7 +325,7 @@ Function22a7:: ; 22a7
Function22b4:: ; 22b4
push bc
ld hl, wdbfc
ld hl, wCurrMapWarpHeaderPointer
ld a, [hli]
ld h, [hl]
ld l, a
@ -439,8 +439,8 @@ Function234f:: ; 234f
ld a, [hli]
ld h, [hl]
ld l, a
call Function23ac
call Function23c3
call ReadMapTriggers
call ReadMapCallbacks
ret
; 235c
@ -507,12 +507,12 @@ GetMapConnection:: ; 23a3
; 23ac
Function23ac:: ; 23ac
ReadMapTriggers:: ; 23ac
ld a, [hli] ; trigger count
ld c, a
ld [wdc07], a ; current map trigger count
ld [wCurrMapTriggerCount], a ; current map trigger count
ld a, l
ld [wdc08], a ; map trigger pointer
ld [wCurrMapTriggerHeaderPointer], a ; map trigger pointer
ld a, h
ld [wdc09], a
ld a, c
@ -524,14 +524,14 @@ Function23ac:: ; 23ac
ret
; 23c3
Function23c3:: ; 23c3
ReadMapCallbacks:: ; 23c3
ld a, [hli]
ld c, a
ld [wdc0a], a
ld [wCurrMapCallbackCount], a
ld a, l
ld [wdc0b], a
ld [wCurrMapCallbackHeaderPointer], a
ld a, h
ld [wdc0b + 1], a
ld [wCurrMapCallbackHeaderPointer + 1], a
ld a, c
and a
ret z
@ -544,9 +544,9 @@ Function23c3:: ; 23c3
ReadWarps:: ; 23da
ld a, [hli]
ld c, a
ld [wdbfb], a
ld [wCurrMapWarpCount], a
ld a, l
ld [wdbfc], a
ld [wCurrMapWarpHeaderPointer], a
ld a, h
ld [wdbfd], a
ld a, c
@ -562,7 +562,7 @@ ReadCoordEvents:: ; 23f1
ld c, a
ld [wCurrentMapXYTriggerCount], a
ld a, l
ld [wdbff], a
ld [wCurrentMapXYTriggerHeaderPointer], a
ld a, h
ld [wdc00], a
ld a, c
@ -1002,11 +1002,11 @@ RunMapCallback:: ; 263b
; 2653
Function2653:: ; 2653
ld a, [wdc0a]
ld a, [wCurrMapCallbackCount]
ld c, a
and a
ret z
ld hl, wdc0b
ld hl, wCurrMapCallbackHeaderPointer
ld a, [hli]
ld h, [hl]
ld l, a
@ -1898,7 +1898,7 @@ CheckCurrentMapXYTriggers:: ; 2ad4
CheckStandingOnXYTrigger:: ; 2ae7
; Checks to see if you are standing on an xy-trigger. If yes, copies the trigger to EngineBuffer1 and sets carry.
ld hl, wdbff
ld hl, wCurrentMapXYTriggerHeaderPointer
ld a, [hli]
ld h, [hl]
ld l, a

View File

@ -16,7 +16,7 @@ CopyMenuDataHeader::
; 0x1d4b
Function1d4b:: ; 1d4b
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
ret
; 1d4f
@ -410,7 +410,7 @@ Function1f2a:: ; 1f2a
ld a, [hl]
ld [MenuSelection], a
ld a, [wcfa9]
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
and a
ret
@ -571,7 +571,7 @@ InterpretMenu:: ; 202a
ld a, [hROMBank]
ld [wcf94], a
callba Function2400e
ld a, [wPocketPointerLocationBuffer]
ld a, [wPocketCursorBuffer]
ret
; 2039
@ -579,7 +579,7 @@ Function2039:: ; 2039
ld a, [hROMBank]
ld [wcf94], a
callba Function24022
ld a, [wPocketPointerLocationBuffer]
ld a, [wPocketCursorBuffer]
ret
; 2048
@ -587,7 +587,7 @@ Function2048:: ; 2048
ld a, [hROMBank]
ld [wcf94], a
callba Function2403c
ld a, [wPocketPointerLocationBuffer]
ld a, [wPocketCursorBuffer]
ret
; 2057

View File

@ -14,7 +14,6 @@ INCLUDE "macros/predef.asm"
INCLUDE "macros/rst.asm"
INCLUDE "macros/mobile.asm"
INCLUDE "macros/trainer.asm"
INCLUDE "macros/map_setup.asm"

View File

@ -1,236 +0,0 @@
; Command descriptions from Condensation water's scripting compendium. enum_start
enum_start
enum map_lcd_on_command
map_lcd_on: MACRO ; 00 = Turn LCD on
db map_lcd_on_command
ENDM
enum map_lcd_off_command
map_lcd_off: MACRO ; 01 = Turn LCD off
db map_lcd_off_command
ENDM
enum map_sound_off_command
map_sound_off: MACRO ; 02 = Turn speakers off
db map_sound_off_command
ENDM
enum map_music_command
map_music: MACRO ; 03 = Music check for current map/ special check for bug catcher contest
db map_music_command
ENDM
enum map_start_music_command
map_start_music: MACRO ; 04 = Start map music anew
db map_start_music_command
ENDM
enum map_fade_music_command
map_fade_music: MACRO ; 05 = Music check for current map / special check for Bug Contest/ music with FadeOut (old) and FadeIn
db map_fade_music_command
ENDM
enum map_fade_command
map_fade: MACRO ; 06 = Fade out music + screen
db map_fade_command
ENDM
enum map_bike_music_command
map_bike_music: MACRO ; 07 = If HIRO is on bike = bike music, else play map music
db map_bike_music_command
ENDM
enum map_music_force_command
map_music_force: MACRO ; 08 = Play map music
db map_music_force_command
ENDM
enum map_max_volume_command
map_max_volume: MACRO ; 09 = Turn music to highest volume
db map_max_volume_command
ENDM
enum map_load_blocks_command
map_load_blocks: MACRO ; 0A = Write map data to MapRAM
db map_load_blocks_command
ENDM
enum map_connection_blocks_command
map_connection_blocks: MACRO ; 0B = Compute maps connection pars and write into MapRAM
db map_connection_blocks_command
ENDM
enum map_save_screen_command
map_save_screen: MACRO ; 0C = Write current part of map into temporary memory
db map_save_screen_command
ENDM
enum map_buffer_screen_command
map_buffer_screen: MACRO ; 0D = Write current part of map into read-from memory
db map_buffer_screen_command
ENDM
enum map_load_graphics_command
map_load_graphics: MACRO ; 0E = Write tileset header to ram/ load tileset/ load sprite tiles/ load special tiles
db map_load_graphics_command
ENDM
enum map_load_tileset_header_command
map_load_tileset_header: MACRO ; 0F = Write tileset header to ram
db map_load_tileset_header_command
ENDM
enum map_time_of_day_command
map_time_of_day: MACRO ; 10 = Compute time of day/ Update screen
db map_time_of_day_command
ENDM
enum map_palettes_command
map_palettes: MACRO ; 11 = Load map palettes
db map_palettes_command
ENDM
enum map_wildmons_command
map_wildmons: MACRO ; 12 = Load probabilities for wild Pokémon battles
db map_wildmons_command
ENDM
enum map_sprites_command
map_sprites: MACRO ; 13 = Delete sprite data and draw new sprites
db map_sprites_command
ENDM
enum map_change_callback_command
map_change_callback: MACRO ; 14 = Check 2nd script header for 05 and 03 callbacks
db map_change_callback_command
ENDM
enum map_start_callback_command
map_start_callback: MACRO ; 15 = Check 2nd script header for 03 callbacks
db map_start_callback_command
ENDM
enum map_load_objects_command
map_load_objects: MACRO ; 16 = Analyze people data anew and check 2nd script header for 02 callbacks
db map_load_objects_command
ENDM
enum map_load_spawn_command
map_load_spawn: MACRO ; 17 = Writes arrival data for arrival by flying/Blackout from table 05:5319 to ram
db map_load_spawn_command
ENDM
enum map_load_connection_command
map_load_connection: MACRO ; 18 = Writes arrival data for entering a map by connection to ram
db map_load_connection_command
ENDM
enum map_load_warp_command
map_load_warp: MACRO ; 19 = Write warp data to ram when entering warp
db map_load_warp_command
ENDM
enum map_attributes_command
map_attributes: MACRO ; 1A = Load complete map data (primary, secondary, event, script headers)
db map_attributes_command
ENDM
enum map_attributes_2_command
map_attributes_2: MACRO ; 1B = Same as 1A, but some settings arent loaded new from the rom, such as hide function of the people events
db map_attributes_2_command
ENDM
enum map_clear_bg_palettes_command
map_clear_bg_palettes: MACRO ; 1C = Fill palette data with FFFF (=white)
db map_clear_bg_palettes_command
ENDM
enum map_fade_out_palettes_command
map_fade_out_palettes: MACRO ; 1D = All BG pallet color are converted to 0|0 (Pal0, Col0), all sprite colors to x|0 (FadeOut)
db map_fade_out_palettes_command
ENDM
enum map_fade_in_palettes_command
map_fade_in_palettes: MACRO ; 1E = Palette FadeIn
db map_fade_in_palettes_command
ENDM
enum map_anchor_screen_command
map_anchor_screen: MACRO ; 1F = Compute position of upper left-most block visible on screen
db map_anchor_screen_command
ENDM
enum map_warp_face_command
map_warp_face: MACRO ; 20 = Position computation when HIRO leaves a warp
db map_warp_face_command
ENDM
enum map_face_down_command
map_face_down: MACRO ; 21 = Set HIROs facing to “down”
db map_face_down_command
ENDM
enum map_spawn_coord_command
map_spawn_coord: MACRO ; 22 = Prepare HIRO data for arrival by flight
db map_spawn_coord_command
ENDM
enum map_player_coord_command
map_player_coord: MACRO ; 23 = Compute HIRO x/y data anew
db map_player_coord_command
ENDM
enum map_prolong_sprites_command
map_prolong_sprites: MACRO ; 24 = Prolong old sprites before removing them
db map_prolong_sprites_command
ENDM
enum map_delay_sprites_command
map_delay_sprites: MACRO ; 25 = Delay rendering new sprites
db map_delay_sprites_command
ENDM
enum map_update_roam_command
map_update_roam: MACRO ; 26 = Compute chances to meet Raikou, Entei or Suicune
db map_update_roam_command
ENDM
enum map_keep_roam_command
map_keep_roam: MACRO ; 27 = Recover chances to meet Raikou, Entei or Suicune
db map_keep_roam_command
ENDM
enum map_fade_out_music_command
map_fade_out_music: MACRO ; 28 = Temporarily stop music playing
db map_fade_out_music_command
ENDM
enum map_animations_on_command
map_animations_on: MACRO ; 29 = Activate animations
db map_animations_on_command
ENDM
enum map_animations_off_command
map_animations_off: MACRO ; 2A = Deactivate animations
db map_animations_off_command
ENDM
enum map_keep_palettes_command
map_keep_palettes: MACRO ; 2B = Recover all palettes
db map_keep_palettes_command
ENDM
enum map_text_scroll_off_command
map_text_scroll_off: MACRO ; 2C = Turn off text scroll (for town name overlays)
db map_text_scroll_off_command
ENDM
enum map_stop_script_command
map_stop_script: MACRO ; 2D = Deactivate code prolonging
db map_stop_script_command
ENDM
map_end_setup_script: MACRO
db -1
ENDM

514
main.asm

File diff suppressed because it is too large Load Diff

View File

@ -247,7 +247,7 @@ Function89261: ; 89261
add $5
ld [hl], a
pop af
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
call BackUpTiles
call Function8923c
call Function89209
@ -2194,7 +2194,7 @@ Function89d5e: ; 89d5e (22:5d5e)
push af
call CopyMenuDataHeader
pop af
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
call Function8923c
call Function1c89
call Function1c10
@ -3050,7 +3050,7 @@ Function8a31c: ; 8a31c (22:631c)
call Function8a3b2
pop bc
ld a, c
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
ld [MenuSelection], a
call Function1c89
call Function1c10

View File

@ -803,7 +803,7 @@ Function8b7bd: ; 8b7bd
ld hl, MenuDataHeader_0x8b867
call CopyMenuDataHeader
ld a, [wd030]
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
ld a, [wd031]
ld [wd0e4], a
ld a, [wd032]
@ -881,7 +881,7 @@ Function8b83e: ; 8b83e
Function8b84b: ; 8b84b
ld [wd0e4], a
ld a, [wcfa9]
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
ret
; 8b855

View File

@ -1786,12 +1786,12 @@ Function100b12: ; 100b12
ld a, BANK(BattleMenuDataHeader)
ld [wcf94], a
ld a, [wd0d2]
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
call Function100e72
call Function100b45
callba Function8e85
call Function100ed4
ld a, [wPocketPointerLocationBuffer]
ld a, [wPocketCursorBuffer]
ld [wd0d2], a
call ExitMenu
ret
@ -1818,7 +1818,7 @@ Function100b45: ; 100b45
ld c, a
ld a, [wcfa3]
call SimpleMultiply
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
and a
ret
; 100b7a
@ -6612,12 +6612,12 @@ Function102c71: ; 102c71
; 102c87
Function102c87: ; 102c87
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
push af
ld a, [wcf64]
push af
ld a, [wcd4c]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, [PartyCount]
ld [wcf64], a
ld a, $0
@ -6632,7 +6632,7 @@ Function102c87: ; 102c87
ld bc, $011a
call Function102d3e
ld a, [wcd4d]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, [OTPartyCount]
ld [wcf64], a
ld a, $5
@ -6649,18 +6649,18 @@ Function102c87: ; 102c87
pop af
ld [wcf64], a
pop af
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 102cee
Function102cee: ; 102cee
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
dec a
call Function102d34
ld de, DefaultFlypoint
ld bc, $002f
call CopyBytes
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld c, a
ld a, $6
sub c
@ -6669,7 +6669,7 @@ Function102cee: ; 102cee
ld hl, $0000
call AddNTimes
push hl
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
dec a
call Function102d34
ld d, h
@ -7688,7 +7688,7 @@ Function103612: ; 103612
ld a, [wdc40]
and $f
jr z, .asm_103622
ld [wPocketPointerLocationBuffer], a
ld [wPocketCursorBuffer], a
.asm_103622
call InterpretMenu2

View File

@ -124,7 +124,7 @@ Function108089: ; 108089
Function1080b7: ; 1080b7
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call WhiteBGMap
call ClearSprites
call ClearTileMap
@ -187,7 +187,7 @@ Function1080b7: ; 1080b7
Function108157: ; 108157
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call WhiteBGMap
call ClearSprites
call ClearTileMap
@ -310,7 +310,7 @@ Function108239: ; 108239
; 10824b
Function10824b: ; 10824b
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .asm_10825a
call Function10827b
@ -335,7 +335,7 @@ Function10824b: ; 10824b
; 10827b
Function10827b: ; 10827b
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, Jumptable_10828a
@ -372,7 +372,7 @@ Jumptable_10828a: ; 10828a
; 1082b2
Function1082b2: ; 1082b2
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
; 1082b7
@ -383,7 +383,7 @@ Function1082b7: ; 1082b7
inc hl
ld d, [hl]
ld a, [de]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
inc de
ld [hl], d
dec hl
@ -392,7 +392,7 @@ Function1082b7: ; 1082b7
; 1082c6
Function1082c6: ; 1082c6
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ret
; 1082cc

View File

@ -703,7 +703,7 @@ endr
ld a, d
or e
jr z, .asm_114559
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld e, [hl]
inc hl
ld d, [hl]
@ -1537,7 +1537,7 @@ Function1149cc: ; 1149cc
ld [hl], d
dec hl
ld [hl], e
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld e, [hl]
inc hl
ld d, [hl]
@ -3860,7 +3860,7 @@ Function11560a: ; 11560a
ld c, [hl]
inc hl
ld b, [hl]
ld a, [wdc0a]
ld a, [wCurrMapCallbackCount]
cp b
jp c, .asm_1156b1
jr nz, .asm_115631
@ -3874,7 +3874,7 @@ Function11560a: ; 11560a
jr z, .asm_1156a9
ld a, [wdc09]
ld l, a
ld a, [wdc0a]
ld a, [wCurrMapCallbackCount]
ld h, a
ld a, c
cpl
@ -3887,7 +3887,7 @@ Function11560a: ; 11560a
ld a, l
ld [wdc09], a
ld a, h
ld [wdc0a], a
ld [wCurrMapCallbackCount], a
.asm_11564d
ld a, $3
cp b
@ -3929,13 +3929,13 @@ Function11560a: ; 11560a
ld a, [wCurrentMapSignpostCount]
ld [$ff8c], a
ld [$4000], a
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld e, [hl]
inc hl
ld d, [hl]
ld hl, wdc24
call Function115d6a
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld [hl], e
inc hl
ld [hl], d
@ -4017,7 +4017,7 @@ Function1156cc: ; 1156cc
jp Function11425c
.asm_115716
ld hl, wdc0a
ld hl, wCurrMapCallbackCount
ld a, [hli]
cpl
ld e, a
@ -4262,9 +4262,9 @@ Function11581e: ; 11581e
ld b, [hl]
inc hl
push hl
ld a, [wdc0a]
ld a, [wCurrMapCallbackCount]
ld l, a
ld a, [wdc0b]
ld a, [wCurrMapCallbackHeaderPointer]
ld h, a
cp b
jr c, .asm_1158bb
@ -4284,12 +4284,12 @@ Function11581e: ; 11581e
inc bc
add hl, bc
ld a, l
ld [wdc0a], a
ld [wCurrMapCallbackCount], a
ld a, h
ld [wdc0b], a
ld [wCurrMapCallbackHeaderPointer], a
pop bc
pop hl
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld a, [hli]
ld [wCurrentMapSignpostCount], a
ld [$ff8c], a
@ -4299,7 +4299,7 @@ Function11581e: ; 11581e
ld d, [hl]
ld hl, PartyMon5Speed
call Function115d6a
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld a, [wCurrentMapSignpostCount]
ld [hli], a
ld a, e
@ -4615,7 +4615,7 @@ Function1159fb: ; 1159fb
jp Function11425c
.asm_115a45
ld hl, wdc0a
ld hl, wCurrMapCallbackCount
ld a, [hli]
cpl
ld e, a
@ -4826,9 +4826,9 @@ endr
ld b, [hl]
inc hl
push hl
ld a, [wdc0a]
ld a, [wCurrMapCallbackCount]
ld l, a
ld a, [wdc0b]
ld a, [wCurrMapCallbackHeaderPointer]
ld h, a
cp b
jr c, .asm_115b36
@ -4848,12 +4848,12 @@ endr
inc bc
add hl, bc
ld a, l
ld [wdc0a], a
ld [wCurrMapCallbackCount], a
ld a, h
ld [wdc0b], a
ld [wCurrMapCallbackHeaderPointer], a
pop bc
pop hl
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld a, [hli]
ld [wCurrentMapSignpostCount], a
ld [$ff8c], a
@ -4863,7 +4863,7 @@ endr
ld d, [hl]
ld hl, wdc26
call Function115d6a
ld hl, wdc07
ld hl, wCurrMapTriggerCount
ld a, [wCurrentMapSignpostCount]
ld [hli], a
ld a, e
@ -8168,7 +8168,7 @@ Function117a8d: ; 0x117a8d
Function117a94: ; 0x117a94
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a
@ -8190,7 +8190,7 @@ Function117ab4: ; 0x117ab4
Function117acd: ; 0x117acd
call JoyTextDelay
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .asm_117ae2 ; 0x117ad5 $b
call Function117ae9
@ -8202,7 +8202,7 @@ Function117acd: ; 0x117acd
ret
Function117ae9: ; 0x117ae9
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, $0
ld hl, Pointers117af8
@ -8306,7 +8306,7 @@ Function117b4f:
call ExitMenu
callba Function104061
ld a, $80
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
Function117bb6:
@ -8325,11 +8325,11 @@ Function117bb6:
ld [wc303], a
callba Function17f555
ld a, $80
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
.asm_117be1
ld a, $80
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
.asm_117be7
ld a, [rSVBK]
@ -8411,7 +8411,7 @@ Function117c4a:
pop af
ld [rSVBK], a
ld a, $80
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
Function117c89:
@ -8464,7 +8464,7 @@ MobileStadiumSuccessText: ; 0x117cd8
db "@"
Function117cdd: ; 0x117cdd
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
@ -11817,7 +11817,7 @@ Function119800: ; 119800
ld [wc702], a
ld a, [wcd81]
ld [wc74e], a
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
push af
ld a, [wcf64]
push af
@ -11840,7 +11840,7 @@ Function119800: ; 119800
pop af
ld [wcf64], a
pop af
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
callba Function115dc3
jp Function119e2e
; 11984e
@ -11853,7 +11853,7 @@ Function11984e: ; 11984e
and a
jr nz, .asm_1198a8
callba Function170000
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
push af
ld a, [wcf64]
push af
@ -11876,7 +11876,7 @@ Function11984e: ; 11984e
pop af
ld [wcf64], a
pop af
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
callba Function115dc3
jp Function119e2e
@ -11887,7 +11887,7 @@ Function11984e: ; 11984e
.asm_1198a8
callba Function17005a
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
push af
ld a, [wcf64]
push af
@ -11910,7 +11910,7 @@ Function11984e: ; 11984e
pop af
ld [wcf64], a
pop af
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
callba Function115dc3
jp Function119e2e
; 1198ee
@ -14343,7 +14343,7 @@ Function11ac51: ; 11ac51
call DelayFrame
.asm_11ac82
call JoyTextDelay
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .asm_11aca8
call Function11b314
@ -14444,7 +14444,7 @@ Function11ad1b: ; 11ad1b
xor a
call ByteFill
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a
@ -14456,7 +14456,7 @@ Function11ad1b: ; 11ad1b
; 11ad6e
Function11ad6e: ; 11ad6e
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld hl, Jumptable_11ad78
call Function11b239
jp [hl]
@ -14475,13 +14475,13 @@ Jumptable_11ad78: ; 11ad78
; 11ad8a
Function11ad8a: ; 11ad8a
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
; 11ad8f
Function11ad8f: ; 11ad8f
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ret
; 11ad95
@ -14522,7 +14522,7 @@ Function11adc4:
ret z
call PlayClickSFX
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
jr .asm_11ae2e
.asm_11ade6
@ -14643,7 +14643,7 @@ Function11ae98:
ld a, $7f
ld [hl], a
ld a, $1
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
jr .asm_11aef7
.asm_11aec1
@ -14734,7 +14734,7 @@ Function11af4e:
ld a, $7f
ld [hl], a
ld a, $1
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
jr .asm_11afaa
.asm_11af77
@ -14765,7 +14765,7 @@ Function11af4e:
cp $2
jr z, .asm_11af6a
ld a, $6
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
xor a
ld [ScriptVar], a
@ -15057,7 +15057,7 @@ Function11b0ff: ; 11b0ff
jr .asm_11b148
.asm_11b141
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
ld a, $7
ld [hl], a
ret
@ -15090,7 +15090,7 @@ Function11b0ff: ; 11b0ff
.asm_11b16c
ld [wcd30], a
ld a, $4
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 11b175
@ -15411,7 +15411,7 @@ Function11b314: ; 11b314
Function11b31b: ; 11b31b
ld hl, Unknown_11b350
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
cp $2
jr c, .asm_11b349
ld a, [wc7d1]
@ -15419,7 +15419,7 @@ Function11b31b: ; 11b31b
jr nc, .asm_11b344
cp $3
jr c, .asm_11b349
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
cp $2
jr z, .asm_11b349
cp $3
@ -15553,7 +15553,7 @@ Function11b3d9: ; 11b3d9
ld [hli], a
cp $41
jr c, .asm_11b42b
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
cp $4
jr z, .asm_11b43b
cp $5
@ -15592,7 +15592,7 @@ Function11b444: ; 11b444
Function11b44b: ; 11b44b
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a
@ -15604,14 +15604,14 @@ Function11b45c: ; 11b45c
.asm_11b45c
call Function11b46a
call DelayFrame
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
cp $4
jr nz, .asm_11b45c
ret
; 11b46a
Function11b46a: ; 11b46a
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, Jumptable_11b479
@ -15813,7 +15813,7 @@ Function11b570: ; 11b570
.asm_11b57f
ld a, $4
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 11b585
@ -15913,14 +15913,14 @@ Function11b64c: ; 11b64c
.asm_11b64c
call Function11b65a
call DelayFrame
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
cp $1
jr nz, .asm_11b64c
ret
; 11b65a
Function11b65a: ; 11b65a
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, Jumptable_11b669
@ -16677,7 +16677,7 @@ Function11c08f: ; 11c08f
Function11c0c6: ; 11c0c6
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld l, a
ld a, [wcf64]
ld h, a
@ -16687,7 +16687,7 @@ Function11c0c6: ; 11c0c6
ld [hli], a
push de
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, $12
ld [wcf64], a
ld a, $6
@ -16720,9 +16720,9 @@ Function11c0c6: ; 11c0c6
.asm_11c102
cp e
jr nc, .asm_11c11c
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
inc a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [hl], $4e
rra
jr c, .asm_11c113
@ -16763,7 +16763,7 @@ Function11c0c6: ; 11c0c6
call PlaceWholeStringInBoxAtOnce
pop hl
ld a, l
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, h
ld [wcf64], a
ret
@ -16856,7 +16856,7 @@ Function11c1b9: ; 11c1b9
Function11c1ca: ; 11c1ca
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a
@ -16938,7 +16938,7 @@ Function11c283: ; 11c283
call JoyTextDelay
ld a, [hJoyPressed]
ld [hJoypadPressed], a
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .asm_11c2a2
call Function11c2ac
@ -16953,7 +16953,7 @@ Function11c283: ; 11c283
; 11c2ac
Function11c2ac: ; 11c2ac
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, Jumptable_11c2bb
@ -17219,7 +17219,7 @@ Function11c3ed: ; 11c3ed (47:43ed)
.asm_11c472
call Function11c4a5
.asm_11c475
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call PlayClickSFX
ret
.asm_11c47c
@ -17383,7 +17383,7 @@ Function11c53d: ; 11c53d (47:453d)
.asm_11c59f
ld hl, wcd24
set 1, [hl]
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call PlayClickSFX
ret
@ -17599,7 +17599,7 @@ Function11c675: ; 11c675 (47:4675)
.asm_11c6fa
ld a, $15
.asm_11c6fc
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld hl, wcd24
set 3, [hl]
call PlayClickSFX
@ -18119,7 +18119,7 @@ Function11c9c3: ; 11c9c3 (47:49c3)
ld hl, wcd24
set 4, [hl]
ld a, $4
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call PlayClickSFX
ret
.asm_11c9f7
@ -18271,7 +18271,7 @@ Function11cab3: ; 11cab3 (47:4ab3)
ld [wcd2a], a
ret
.asm_11caf3
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ret
.asm_11caf9
@ -18280,7 +18280,7 @@ Function11cab3: ; 11cab3 (47:4ab3)
ld hl, wcd24
set 4, [hl]
ld a, $4
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld a, [wcd35]
cp $ff
ret nz
@ -18389,7 +18389,7 @@ endr
ld d, a
hlcoord 1, 14
call PlaceString
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
inc hl
ld a, $10
@ -18404,7 +18404,7 @@ endr
ld hl, wcd24
set 4, [hl]
ld a, $4
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
.asm_11cbeb
ld a, [hl]
@ -18490,7 +18490,7 @@ Function11cd04: ; 11cd04 (47:4d04)
and a
ret z
ld a, $4
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
; 11cd10 (47:4d10)
@ -18551,7 +18551,7 @@ Function11cd54: ; 11cd54 (47:4d54)
.asm_11cd7d
ld a, $15
.asm_11cd7f
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld hl, wcd24
set 5, [hl]
call PlayClickSFX
@ -18692,7 +18692,7 @@ Function11ce2b: ; 11ce2b (47:4e2b)
.asm_11ce96
ld a, $13
.asm_11ce98
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld hl, wcd24
set 2, [hl]
call PlayClickSFX
@ -18778,7 +18778,7 @@ String_11cf79: ; 11cf79
; 11cfb5
Function11cfb5: ; 11cfb5 (47:4fb5)
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
; 11cfba (47:4fba)
@ -21327,7 +21327,7 @@ Function16c000: ; 16c000
Function16c031: ; 16c031
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [DefaultFlypoint], a
ld [wd003], a
@ -22784,7 +22784,7 @@ Function17020c: ; 17020c
Function170215: ; 170215
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
call Function17022c
ret
; 17021d
@ -22795,7 +22795,7 @@ Function17021d: ; 17021d
Function17021e: ; 17021e
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a
@ -22806,14 +22806,14 @@ Function17022c: ; 17022c
.asm_17022c
call Jumpto_BattleTowerBattleFunction
call DelayFrame
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
cp $1
jr nz, .asm_17022c
ret
; 17023a
Jumpto_BattleTowerBattleFunction: ; 17023a
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, Jumptable_BattleTowerBattleFunctions
@ -22871,7 +22871,7 @@ RunBattleTowerBattle: ; 17024d
pop af
ld [Options], a
ld a, $1
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ret
@ -23229,7 +23229,7 @@ Function1704f1: ; 1704f1
call ClearScreen
.asm_1704fa
call JoyTextDelay
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
bit 7, a
jr nz, .asm_17050f
call Function170510
@ -23241,7 +23241,7 @@ Function1704f1: ; 1704f1
; 170510
Function170510: ; 170510
ld a, [wJumptableEntryIndexBuffer]
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, Jumptable_17051f
@ -23332,12 +23332,12 @@ Function170577:
ret
.asm_1705ac
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
set 7, [hl]
ret
Function1705b2:
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
inc [hl]
ret
; 1705b7

View File

@ -521,7 +521,7 @@ Function17d2b6: ; 17d2b6
Function17d2c0: ; 17d2c0
xor a
ld [wJumptableEntryIndexBuffer], a
ld [wJumptableIndex], a
ld [wcf64], a
ld [wcf65], a
ld [wcf66], a

View File

@ -9,7 +9,7 @@ UnusedTitleScreen: ; 10c000
xor a
ld [hBGMapMode], a
ld hl, wJumptableEntryIndexBuffer
ld hl, wJumptableIndex
rept 3
ld [hli], a
endr

View File

@ -1186,7 +1186,7 @@ CurSpecies:: ; cf60
wNamedObjectTypeBuffer:: ds 1
ds 1
wJumptableEntryIndexBuffer:: ds 1
wJumptableIndex:: ds 1
wNrOfBeatenBattleTowerTrainers::
wMomBankDigitCursorPosition::
wIntroSceneFrameCounter::
@ -1235,7 +1235,7 @@ wMenuBorderRightCoord:: ds 1
wcf86:: ds 1
wcf87:: ds 1
wPocketPointerLocationBuffer:: ds 2
wPocketCursorBuffer:: ds 2
wcf8a:: ds 7 ; menu data 2 bank?
wcf91:: ds 1
@ -1500,10 +1500,10 @@ CurMoveNum:: ; d0d5
wd0d6:: ds 1
wd0d7:: ds 1
wd0d8:: ds 1
wItemsPocketPointerLocation:: ds 1
wKeyItemsPocketPointerLocation:: ds 1
wBallsPocketPointerLocation:: ds 1
wTMHMPocketPointerLocation:: ds 1
wItemsPocketCursor:: ds 1
wKeyItemsPocketCursor:: ds 1
wBallsPocketCursor:: ds 1
wTMHMPocketCursor:: ds 1
wd0dd:: ds 2
wd0df:: ds 1
wd0e0:: ds 1
@ -2365,11 +2365,11 @@ wCurrentMapTriggerPointer:: ; dbf7
ds 2
wCurrentCaller:: ds 2
wdbfb:: ds 1
wdbfc:: ds 1
wCurrMapWarpCount:: ds 1
wCurrMapWarpHeaderPointer:: ds 1
wdbfd:: ds 1
wCurrentMapXYTriggerCount:: ds 1
wdbff:: ds 1
wCurrentMapXYTriggerHeaderPointer:: ds 1
wdc00:: ds 1
wCurrentMapSignpostCount:: ds 1
wdc02:: ds 1
@ -2377,11 +2377,11 @@ wdc03:: ds 1
wdc04:: ds 1
wdc05:: ds 1
wdc06:: ds 1
wdc07:: ds 1
wdc08:: ds 1
wCurrMapTriggerCount:: ds 1
wCurrMapTriggerHeaderPointer:: ds 1
wdc09:: ds 1
wdc0a:: ds 1
wdc0b:: ds 2
wCurrMapCallbackCount:: ds 1
wCurrMapCallbackHeaderPointer:: ds 2
wdc0d:: ds 1
wdc0e:: ds 1