Skip to content

Commit

Permalink
Fix section linking
Browse files Browse the repository at this point in the history
  • Loading branch information
PikalaxALT committed Jun 17, 2017
1 parent e1c2876 commit 25d8e25
Show file tree
Hide file tree
Showing 62 changed files with 159 additions and 159 deletions.
10 changes: 5 additions & 5 deletions audio.asm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ INCLUDE "audio/sfx_pointers.asm"



SECTION "Songs 1", ROMX, BANK[SONGS_1]
SECTION "Songs 1", ROMX [$54e9], BANK[SONGS_1]

INCLUDE "audio/music/route36.asm"
INCLUDE "audio/music/rivalbattle.asm"
Expand Down Expand Up @@ -76,7 +76,7 @@ INCLUDE "audio/music/contestresults.asm"
INCLUDE "audio/music/route30.asm"


SECTION "Songs 3", ROMX, BANK[SONGS_3]
SECTION "Songs 3", ROMX [$4000], BANK[SONGS_3]

INCLUDE "audio/music/violetcity.asm"
INCLUDE "audio/music/route29.asm"
Expand Down Expand Up @@ -127,7 +127,7 @@ INCLUDE "audio/music/pokeflutechannel.asm"
INCLUDE "audio/music/bugcatchingcontest.asm"


SECTION "Songs 5", ROMX, BANK[SONGS_5]
SECTION "Songs 5", ROMX [$401f], BANK[SONGS_5]

INCLUDE "audio/music/mobileadaptermenu.asm"
INCLUDE "audio/music/buenaspassword.asm"
Expand All @@ -140,7 +140,7 @@ INCLUDE "audio/music/mobilecenter.asm"



SECTION "Extra Songs 1", ROMX, BANK[EXTRA_SONGS_1]
SECTION "Extra Songs 1", ROMX [$731c], BANK[EXTRA_SONGS_1]

INCLUDE "audio/music/credits.asm"
INCLUDE "audio/music/clair.asm"
Expand All @@ -158,7 +158,7 @@ SECTION "Sound Effects", ROMX, BANK[SOUND_EFFECTS]
INCLUDE "audio/sfx.asm"


SECTION "Crystal Sound Effects", ROMX, BANK[CRYSTAL_SOUND_EFFECTS]
SECTION "Crystal Sound Effects", ROMX [$582d], BANK[CRYSTAL_SOUND_EFFECTS]

INCLUDE "audio/sfx_crystal.asm"

Expand Down
4 changes: 2 additions & 2 deletions audio/engine.asm
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ UpdateChannels: ; e8125
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

.ChannelFnPtrs:
dw .Channel1
Expand Down Expand Up @@ -1389,7 +1389,7 @@ ParseMusicCommand: ; e870f
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

; e8720

Expand Down
2 changes: 1 addition & 1 deletion battle/ai/items.asm
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ AI_TryItem: ; 38105
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
.callback
pop de
pop hl
Expand Down
2 changes: 1 addition & 1 deletion battle/ai/redundant.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AI_Redundant: ; 2c41a
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

.Moves: ; 2c42c
dbw EFFECT_DREAM_EATER, .DreamEater
Expand Down
2 changes: 1 addition & 1 deletion battle/anim_commands.asm
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ RunBattleAnimCommand: ; cc25f
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; cc2a4


Expand Down
10 changes: 5 additions & 5 deletions battle/bg_effects.asm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ DoBattleBGEffectFunction: ; c804a (32:404a)
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

BattleBGEffects: ; c805a (32:405a)
dw BattleBGEffect_End
Expand Down Expand Up @@ -161,7 +161,7 @@ BattleBGEffects_AnonJumptable: ; c80d7 (32:40d7)
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

BattleBGEffects_IncrementJumptable: ; c80e5 (32:40e5)
ld hl, BG_EFFECT_STRUCT_JT_INDEX
Expand Down Expand Up @@ -2059,7 +2059,7 @@ BattleBGEffect_1c: ; c8b00 (32:4b00)
.cgb
ld de, .Jumptable
call BatttleBGEffects_GetNamedJumptablePointer
jp [hl]
jp hl

.Jumptable:
dw .cgb_zero
Expand Down Expand Up @@ -2421,7 +2421,7 @@ BGEffect_RapidCyclePals: ; c8d77 (32:4d77)
ld de, .Jumptable_DMG
call BatttleBGEffects_GetNamedJumptablePointer
pop de
jp [hl]
jp hl

.Jumptable_DMG:
dw .zero_dmg
Expand Down Expand Up @@ -2484,7 +2484,7 @@ BGEffect_RapidCyclePals: ; c8d77 (32:4d77)
ld de, .Jumptable_CGB
call BatttleBGEffects_GetNamedJumptablePointer
pop de
jp [hl]
jp hl

.Jumptable_CGB: ; c8ddd (32:4ddd)
dw .zero_cgb
Expand Down
2 changes: 1 addition & 1 deletion battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4331,7 +4331,7 @@ SpikesDamage: ; 3dc23
jp WaitBGMap

.hl
jp [hl]
jp hl
; 3dc5b

PursuitSwitch: ; 3dc5b
Expand Down
2 changes: 1 addition & 1 deletion battle/effect_commands.asm
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ DoMove: ; 3402c
jr .ReadMoveEffectCommand

.DoMoveEffectCommand:
jp [hl]
jp hl

; 34084

Expand Down
4 changes: 2 additions & 2 deletions battle/objects/functions.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DoBattleAnimFrame: ; ccfbe
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; ccfce

.Jumptable:
Expand Down Expand Up @@ -4085,7 +4085,7 @@ BattleAnim_AnonJumptable: ; ce71e (33:671e)
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

BattleAnim_IncAnonJumptableIndex: ; ce72c (33:672c)
ld hl, BATTLEANIMSTRUCT_ANON_JT_INDEX
Expand Down
14 changes: 7 additions & 7 deletions engine/billspc.asm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ _DepositPKMN: ; e2391 (38:6391)
ld a, [wJumptableIndex]
ld hl, .Jumptable
call BillsPC_Jumptable
jp [hl]
jp hl

.Jumptable: ; e23df (38:63df)

Expand Down Expand Up @@ -147,7 +147,7 @@ _DepositPKMN: ; e2391 (38:6391)
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

BillsPCDepositJumptable: ; e24a1 (38:64a1)

Expand Down Expand Up @@ -306,7 +306,7 @@ _WithdrawPKMN: ; e2583 (38:6583)
ld a, [wJumptableIndex]
ld hl, .Jumptable
call BillsPC_Jumptable
jp [hl]
jp hl

.Jumptable: ; e25d2 (38:65d2)

Expand Down Expand Up @@ -415,7 +415,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

.dw ; e2699 (38:6699) #mark
dw .withdraw ; Withdraw
Expand Down Expand Up @@ -556,7 +556,7 @@ _MovePKMNWithoutMail: ; e2759
ld a, [wJumptableIndex]
ld hl, .Jumptable
call BillsPC_Jumptable
jp [hl]
jp hl
; e27ac

.Jumptable: ; e27ac
Expand Down Expand Up @@ -678,7 +678,7 @@ _MovePKMNWithoutMail: ; e2759
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; e2881

.Jumptable2: ; e2881
Expand Down Expand Up @@ -2014,7 +2014,7 @@ MovePKMNWitoutMail_InsertMon: ; e31e7
ld l, a
ld de, .dw_return
push de
jp [hl]
jp hl
; e322a

.dw_return ; e322a
Expand Down
6 changes: 3 additions & 3 deletions engine/card_flip.asm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ _CardFlip: ; e00ee (38:40ee)
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; e01a0 (38:41a0)

.Jumptable: ; e01a0
Expand Down Expand Up @@ -652,7 +652,7 @@ CardFlip_BlankDiscardedCardSlot: ; e0534
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; e0553

.Jumptable: ; e0553
Expand Down Expand Up @@ -829,7 +829,7 @@ CardFlip_CheckWinCondition: ; e0637
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; e0643

.Jumptable: ; e0643
Expand Down
2 changes: 1 addition & 1 deletion engine/credits.asm
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Credits_Jumptable: ; 109926
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; 109937


Expand Down
6 changes: 3 additions & 3 deletions engine/crystal_intro.asm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ PlaceGameFreakPresents: ; e4670
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; e467f

.dw ; e467f
Expand Down Expand Up @@ -222,7 +222,7 @@ GameFreakLogoJumper: ; e46ed (39:46ed)
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

GameFreakLogoScenes: ; e46fd (39:46fd)
dw GameFreakLogoScene1
Expand Down Expand Up @@ -438,7 +438,7 @@ IntroSceneJumper: ; e490f
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; e491e

IntroScenes: ; e491e (39:491e)
Expand Down
6 changes: 3 additions & 3 deletions engine/debug.asm
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Function81a74: ; 81a74
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

.asm_81a9a
call Function81eca
Expand Down Expand Up @@ -611,7 +611,7 @@ Function81cc2: ; 81cc2
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

.asm_81cdf
ld a, $4
Expand Down Expand Up @@ -1353,7 +1353,7 @@ Function822f0: ; 822f0
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; 82301

.dw ; 82301
Expand Down
2 changes: 1 addition & 1 deletion engine/events.asm
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ TryObjectEvent: ; 969b5
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

.nope_bugged
; pop bc
Expand Down
4 changes: 2 additions & 2 deletions engine/intro_menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ StartTitleScreen: ; 6219
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; 626a

.dw
Expand Down Expand Up @@ -1117,7 +1117,7 @@ TitleScreenScene: ; 62a3
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; 62af

.scenes
Expand Down
2 changes: 1 addition & 1 deletion engine/map_objects.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ JumpMovementPointer: ; 505e
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; 5065

ContinueReadingMovement: ; 5065
Expand Down
2 changes: 1 addition & 1 deletion engine/mon_icons.asm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ LoadMenuMonIcon: ; 8e83f
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl
; 8e854


Expand Down
6 changes: 3 additions & 3 deletions engine/namingscreen.asm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ NamingScreen: ; 116c1
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

; 1172e

Expand Down Expand Up @@ -405,7 +405,7 @@ NamingScreenJoypadLoop: ; 11915
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

; 11977

Expand Down Expand Up @@ -1166,7 +1166,7 @@ INCBIN "gfx/icon/mail2.2bpp"
ld a, [hli]
ld h, [hl]
ld l, a
jp [hl]
jp hl

.Jumptable: ; 12017 (4:6017)
dw .init_blinking_cursor
Expand Down
Loading

0 comments on commit 25d8e25

Please sign in to comment.