callba/callab → farcall/callfar

This commit is contained in:
Remy Oukaour
2017-12-24 12:47:30 -05:00
parent d787c66374
commit c66d195089
170 changed files with 1751 additions and 1751 deletions

View File

@@ -130,8 +130,8 @@ RefreshBattleHuds:: ; 39c9
; 39d4
UpdateBattleHuds:: ; 39d4
callba UpdatePlayerHUD
callba UpdateEnemyHUD
farcall UpdatePlayerHUD
farcall UpdateEnemyHUD
ret
; 39e1

View File

@@ -101,32 +101,32 @@ OldDMATransfer:: ; dfd
ReplaceKrisSprite:: ; e4a
callba _ReplaceKrisSprite
farcall _ReplaceKrisSprite
ret
; e51
LoadStandardFont:: ; e51
callba _LoadStandardFont
farcall _LoadStandardFont
ret
; e58
LoadFontsBattleExtra:: ; e58
callba _LoadFontsBattleExtra
farcall _LoadFontsBattleExtra
ret
; e5f
LoadFontsExtra:: ; e5f
callba _LoadFontsExtra1
callba _LoadFontsExtra2
farcall _LoadFontsExtra1
farcall _LoadFontsExtra2
ret
; e6c
LoadFontsExtra2:: ; e6c
callba _LoadFontsExtra2
farcall _LoadFontsExtra2
ret
; e73

View File

@@ -105,7 +105,7 @@ FlagAction:: ; 0x2e76
CheckReceivedDex:: ; 2ead
ld de, ENGINE_POKEDEX
ld b, CHECK_FLAG
callba EngineFlagAction
farcall EngineFlagAction
ld a, c
and a
ret

View File

@@ -139,14 +139,14 @@ Init:: ; 17d
ld a, -1
ld [hLinkPlayerNumber], a
callba InitCGBPals
farcall InitCGBPals
ld a, VBGMap1 / $100
ld [hBGMapAddress + 1], a
xor a ; VBGMap1 % $100
ld [hBGMapAddress], a
callba StartClock
farcall StartClock
xor a
ld [MBC3LatchClock], a

View File

@@ -1,5 +1,5 @@
DoItemEffect:: ; 2f3f
callba _DoItemEffect
farcall _DoItemEffect
ret
; 2f46
@@ -7,7 +7,7 @@ CheckTossableItem:: ; 2f46
push hl
push de
push bc
callba _CheckTossableItem
farcall _CheckTossableItem
pop bc
pop de
pop hl

View File

@@ -414,7 +414,7 @@ ButtonSound:: ; aaf
ld a, [InputType]
or a
jr z, .input_wait_loop
callba _DudeAutoInput_A
farcall _DudeAutoInput_A
.input_wait_loop
call .blink_cursor

View File

@@ -215,7 +215,7 @@ endr
ReturnToMapFromSubmenu:: ; 222a
ld a, MAPSETUP_SUBMENU
ld [hMapEntryMethod], a
callba RunMapSetupScript
farcall RunMapSetupScript
xor a
ld [hMapEntryMethod], a
ret
@@ -226,7 +226,7 @@ CheckWarpTile:: ; 2238
ret nc
push bc
callba CheckDirectionalWarp
farcall CheckDirectionalWarp
pop bc
ret nc
@@ -243,7 +243,7 @@ WarpCheck:: ; 224a
; 2252
GetDestinationWarpNumber:: ; 2252
callba CheckWarpCollision
farcall CheckWarpCollision
ret nc
ld a, [hROMBank]
@@ -717,7 +717,7 @@ RestoreFacingAfterWarp:: ; 248a
call .backup
.skip
callba GetCoordOfUpperLeftCorner
farcall GetCoordOfUpperLeftCorner
ret
; 24ba
@@ -1050,15 +1050,15 @@ RunMapCallback:: ; 263b
ExecuteCallbackScript:: ; 2674
; Do map callback de and return to script bank b.
callba CallCallback
farcall CallCallback
ld a, [ScriptMode]
push af
ld hl, ScriptFlags
ld a, [hl]
push af
set 1, [hl]
callba EnableScriptMode
callba ScriptEvents
farcall EnableScriptMode
farcall ScriptEvents
pop af
ld [ScriptFlags], a
pop af
@@ -1439,7 +1439,7 @@ LoadTileset:: ; 2821
jr .skip_roof
.load_roof
callba LoadMapGroupRoof
farcall LoadMapGroupRoof
.skip_roof
xor a
@@ -1983,7 +1983,7 @@ FadeToMenu:: ; 2b29
xor a
ld [hBGMapMode], a
call LoadStandardMenuDataHeader
callba FadeOutPalettes
farcall FadeOutPalettes
call ClearSprites
call DisableSpriteUpdates
ret
@@ -2007,9 +2007,9 @@ ExitAllMenus:: ; 2b4d
FinishExitMenu:: ; 2b5c
ld b, SCGB_MAPPALS
call GetSGBLayout
callba LoadOW_BGPal7
farcall LoadOW_BGPal7
call WaitBGMap2
callba FadeInPalettes
farcall FadeInPalettes
call EnableSpriteUpdates
ret
; 2b74
@@ -2030,7 +2030,7 @@ ReturnToMapWithSpeechTextbox:: ; 0x2b74
call WaitBGMap2
ld b, SCGB_MAPPALS
call GetSGBLayout
callba LoadOW_BGPal7
farcall LoadOW_BGPal7
call UpdateTimePals
call DelayFrame
ld a, $1
@@ -2042,7 +2042,7 @@ ReturnToMapWithSpeechTextbox:: ; 0x2b74
ReloadTilesetAndPalettes:: ; 2bae
call DisableLCD
call ClearSprites
callba RefreshSprites
farcall RefreshSprites
call LoadStandardFont
call LoadFontsExtra
ld a, [hROMBank]
@@ -2052,7 +2052,7 @@ ReloadTilesetAndPalettes:: ; 2bae
ld a, [MapNumber]
ld c, a
call SwitchToAnyMapBank
callba UpdateTimeOfDayPal
farcall UpdateTimeOfDayPal
call OverworldTextModeSwitch
call LoadTileset
ld a, 9
@@ -2296,7 +2296,7 @@ GetMapHeaderMusic:: ; 2cbd
jr z, .mahoganymart
bit RADIO_TOWER_MUSIC_F, c
jr nz, .radiotower
callba Function8b342
farcall Function8b342
ld e, c
ld d, 0
.done

View File

@@ -6,7 +6,7 @@ GetSpritePalette:: ; 17ff
push bc
ld c, a
callba _GetSpritePalette
farcall _GetSpritePalette
ld a, c
pop bc
@@ -328,7 +328,7 @@ _CopyObjectStruct:: ; 1956
call UnmaskObject
ld a, [hMapObjectIndexBuffer]
call GetMapObject
callba CopyObjectStruct
farcall CopyObjectStruct
ret
; 1967
@@ -345,7 +345,7 @@ ApplyDeletionToMapObject:: ; 1967
call .CheckStopFollow
pop af
call GetObjectStruct
callba DeleteMapObject
farcall DeleteMapObject
ret
.CheckStopFollow:
@@ -356,7 +356,7 @@ ApplyDeletionToMapObject:: ; 1967
cp [hl]
ret nz
.ok
callba StopFollow
farcall StopFollow
ld a, -1
ld [wObjectFollow_Leader], a
ld [wObjectFollow_Follower], a
@@ -409,7 +409,7 @@ CopyPlayerObjectTemplate:: ; 19a6
.ok
ld a, b
call GetObjectStruct
callba DeleteMapObject
farcall DeleteMapObject
ret
; 19e9
@@ -620,8 +620,8 @@ UpdateSprites:: ; 1ad2
bit 0, a
ret z
callba Function55e0
callba _UpdateSprites
farcall Function55e0
farcall _UpdateSprites
ret
; 1ae5

View File

@@ -45,7 +45,7 @@ Multiply:: ; 3119
push hl
push bc
callab _Multiply
callfar _Multiply
pop bc
pop hl

View File

@@ -569,7 +569,7 @@ Place2DMenuItemName:: ; 201c
_2DMenu:: ; 202a
ld a, [hROMBank]
ld [wMenuData2_2DMenuItemStringsBank], a
callba _2DMenu_
farcall _2DMenu_
ld a, [wMenuCursorBuffer]
ret
; 2039
@@ -577,7 +577,7 @@ _2DMenu:: ; 202a
InterpretBattleMenu:: ; 2039
ld a, [hROMBank]
ld [wMenuData2_2DMenuItemStringsBank], a
callba _InterpretBattleMenu
farcall _InterpretBattleMenu
ld a, [wMenuCursorBuffer]
ret
; 2048
@@ -585,7 +585,7 @@ InterpretBattleMenu:: ; 2039
InterpretMobileMenu:: ; 2048
ld a, [hROMBank]
ld [wMenuData2_2DMenuItemStringsBank], a
callba _InterpretMobileMenu
farcall _InterpretMobileMenu
ld a, [wMenuCursorBuffer]
ret
; 2057

View File

@@ -159,13 +159,13 @@ SetMenuAttributes:: ; 1bb1
; 1bc9
StaticMenuJoypad:: ; 1bc9
callab _StaticMenuJoypad
callfar _StaticMenuJoypad
call GetMenuJoypad
ret
; 1bd3
ScrollingMenuJoypad:: ; 1bd3
callab _ScrollingMenuJoypad
callfar _ScrollingMenuJoypad
call GetMenuJoypad
ret
; 1bdd

View File

@@ -206,7 +206,7 @@ GetTMHMName:: ; 3487
push de
ld a, [wd265]
ld c, a
callab GetTMHMNumber
callfar GetTMHMNumber
pop de
; HM numbers start from 51, not 1

View File

@@ -14,11 +14,11 @@ RTC:: ; 46f
ret z
TimeOfDayPals:: ; 47e
callab _TimeOfDayPals
callfar _TimeOfDayPals
ret
; 485
UpdateTimePals:: ; 485
callab _UpdateTimePals
callfar _UpdateTimePals
ret
; 48c

View File

@@ -277,7 +277,7 @@ Function83b:: ; 83b
Function862:: ; 862
call LoadTileMapToTempTileMap
callab PlaceWaitingText
callfar PlaceWaitingText
call WaitLinkTransfer
jp Call_LoadTempTileMapToTileMap
; 871
@@ -285,7 +285,7 @@ Function862:: ; 862
Function871:: ; 871
call LoadTileMapToTempTileMap
callab PlaceWaitingText
callfar PlaceWaitingText
jp WaitLinkTransfer
; 87d

View File

@@ -315,7 +315,7 @@ endm
Char15:: ; 117b
ld c, l
ld b, h
callba Function17f036
farcall Function17f036
jp PlaceNextChar
; 1186
@@ -391,7 +391,7 @@ PlaceEnemysName:: ; 121b
ld de, String12a2
call PlaceString
push bc
callab Battle_GetTrainerName
callfar Battle_GetTrainerName
pop hl
ld de, StringBuffer1
jr PlaceCommandCharacter

View File

@@ -1,16 +1,16 @@
PushWindow:: ; 1c00
callab _PushWindow
callfar _PushWindow
ret
; 1c07
ExitMenu:: ; 0x1c07
push af
callab _ExitMenu
callfar _ExitMenu
pop af
ret
InitVerticalMenuCursor:: ; 0x1c10
callab _InitVerticalMenuCursor
callfar _InitVerticalMenuCursor
ret
CloseWindow:: ; 0x1c17

View File

@@ -28,7 +28,7 @@ UpdateTime:: ; 5a7
call GetClock
call FixDays
call FixTime
callba GetTimeOfDay
farcall GetTimeOfDay
ret
; 5b7
@@ -205,7 +205,7 @@ SetDayOfWeek:: ; 663
jr InitTime ; useless
InitTime:: ; 677
callba _InitTime
farcall _InitTime
ret
; 67e

View File

@@ -43,8 +43,8 @@ CloseText:: ; 2dcf
ld a, $90
ld [hWY], a
call ReplaceKrisSprite
callba ReturnFromMapSetupScript
callba LoadOverworldFont
farcall ReturnFromMapSetupScript
farcall LoadOverworldFont
ret
; 2e08
@@ -71,7 +71,7 @@ _OpenAndCloseMenu_HDMATransferTileMapAndAttrMap:: ; 2e20
ld a, $1
ld [hOAMUpdate], a
callba OpenAndCloseMenu_HDMATransferTileMapAndAttrMap
farcall OpenAndCloseMenu_HDMATransferTileMapAndAttrMap
pop af
ld [hOAMUpdate], a