mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Redfining predefs using macros: PREDEF and PREDEF_JUMP.
hg-commit-id: 80a61a3816bc
This commit is contained in:
parent
3cddafc519
commit
158d46dd66
|
@ -87,6 +87,17 @@ TX_RAM: MACRO
|
||||||
dw \1
|
dw \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
; Predef macro.
|
||||||
|
PREDEF: MACRO
|
||||||
|
ld a, (\1 - PredefPointers) / 3
|
||||||
|
call Predef
|
||||||
|
ENDM
|
||||||
|
|
||||||
|
PREDEF_JUMP: MACRO
|
||||||
|
ld a, (\1 - PredefPointers) / 3
|
||||||
|
jp Predef
|
||||||
|
ENDM
|
||||||
|
|
||||||
; wram locations
|
; wram locations
|
||||||
|
|
||||||
; the tiles of the row or column to be redrawn by RedrawExposedScreenEdge
|
; the tiles of the row or column to be redrawn by RedrawExposedScreenEdge
|
||||||
|
|
19
main.asm
19
main.asm
|
@ -9549,8 +9549,7 @@ DisplayPokemonCenterDialogue_: ; 0x6fe6
|
||||||
ld a, $18
|
ld a, $18
|
||||||
ld [$c112], a ; make the nurse turn to face the machine
|
ld [$c112], a ; make the nurse turn to face the machine
|
||||||
call Delay3
|
call Delay3
|
||||||
ld a, $7
|
PREDEF HealPartyPredef
|
||||||
call Predef ; HealParty
|
|
||||||
ld b, $1c
|
ld b, $1c
|
||||||
ld hl, $4433
|
ld hl, $4433
|
||||||
call Bankswitch ; do the healing machine animation
|
call Bankswitch ; do the healing machine animation
|
||||||
|
@ -18506,8 +18505,7 @@ StatusScreen: ; 0x12953
|
||||||
call PlaceString ; "TYPE1/"
|
call PlaceString ; "TYPE1/"
|
||||||
FuncCoord 11,3
|
FuncCoord 11,3
|
||||||
ld hl, Coord
|
ld hl, Coord
|
||||||
ld a, $5f
|
PREDEF DrawHPBarPredef ; predef $5f
|
||||||
call Predef ; Draws HP bar
|
|
||||||
ld hl, $cf25
|
ld hl, $cf25
|
||||||
call $3df9
|
call $3df9
|
||||||
ld b, $3
|
ld b, $3
|
||||||
|
@ -40588,8 +40586,7 @@ INCBIN "baserom.gbc",$3e88c,$67b
|
||||||
PlayMoveAnimation: ; 6F07
|
PlayMoveAnimation: ; 6F07
|
||||||
ld [$D07C],a
|
ld [$D07C],a
|
||||||
call Delay3
|
call Delay3
|
||||||
ld a,8
|
PREDEF_JUMP MoveAnimationPredef ; predef 8
|
||||||
jp Predef
|
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$3ef12,$3f245 - $3ef12
|
INCBIN "baserom.gbc",$3ef12,$3f245 - $3ef12
|
||||||
|
|
||||||
|
@ -46183,8 +46180,7 @@ MomHealPokemon: ; 0x4818a
|
||||||
call PrintText
|
call PrintText
|
||||||
call GBFadeOut2
|
call GBFadeOut2
|
||||||
call ReloadMapData
|
call ReloadMapData
|
||||||
ld a, 7
|
PREDEF HealPartyPredef
|
||||||
call Predef
|
|
||||||
ld a, $E8
|
ld a, $E8
|
||||||
ld [$C0EE], a
|
ld [$C0EE], a
|
||||||
call $23B1 ; play sound?
|
call $23B1 ; play sound?
|
||||||
|
@ -49942,7 +49938,9 @@ PredefPointers: ; 7E79
|
||||||
dbw $0F,$7103
|
dbw $0F,$7103
|
||||||
dbw $1E,$5ABA
|
dbw $1E,$5ABA
|
||||||
dbw $03,$7132
|
dbw $03,$7132
|
||||||
|
HealPartyPredef:
|
||||||
dbw BANK(HealParty),HealParty
|
dbw BANK(HealParty),HealParty
|
||||||
|
MoveAnimationPredef:
|
||||||
dbw BANK(MoveAnimation),MoveAnimation; 08 play move animation
|
dbw BANK(MoveAnimation),MoveAnimation; 08 play move animation
|
||||||
dbw $03,$771E
|
dbw $03,$771E
|
||||||
dbw $03,$771E
|
dbw $03,$771E
|
||||||
|
@ -49989,11 +49987,14 @@ PredefPointers: ; 7E79
|
||||||
dbw $1E,$5869
|
dbw $1E,$5869
|
||||||
dbw $1C,$4B5D
|
dbw $1C,$4B5D
|
||||||
dbw $03,$4586
|
dbw $03,$4586
|
||||||
|
StatusScreenPredef:
|
||||||
dbw BANK(StatusScreen),StatusScreen ; 37 0x12953
|
dbw BANK(StatusScreen),StatusScreen ; 37 0x12953
|
||||||
|
StatusSceren2Predef:
|
||||||
dbw BANK(StatusScreen2),StatusScreen2 ; 38
|
dbw BANK(StatusScreen2),StatusScreen2 ; 38
|
||||||
dbw $10,$50E2
|
dbw $10,$50E2
|
||||||
dbw $15,$690F
|
dbw $15,$690F
|
||||||
dbw $10,$5010
|
dbw $10,$5010
|
||||||
|
Predef3BPredef:
|
||||||
dbw BANK(Predef3B),Predef3B; 3B display pic?
|
dbw BANK(Predef3B),Predef3B; 3B display pic?
|
||||||
dbw $03,$6F54
|
dbw $03,$6F54
|
||||||
dbw $10,$42D1
|
dbw $10,$42D1
|
||||||
|
@ -50019,6 +50020,7 @@ PredefPointers: ; 7E79
|
||||||
dbw $1C,$76BD
|
dbw $1C,$76BD
|
||||||
dbw $1C,$75E8
|
dbw $1C,$75E8
|
||||||
dbw $1C,$77E2
|
dbw $1C,$77E2
|
||||||
|
Predef54Predef:
|
||||||
dbw BANK(Predef54),Predef54 ; 54 initiate trade
|
dbw BANK(Predef54),Predef54 ; 54 initiate trade
|
||||||
dbw $1D,$405C
|
dbw $1D,$405C
|
||||||
dbw $11,$4169
|
dbw $11,$4169
|
||||||
|
@ -50030,6 +50032,7 @@ PredefPointers: ; 7E79
|
||||||
dbw $01,$4DE1
|
dbw $01,$4DE1
|
||||||
dbw $09,$7D98
|
dbw $09,$7D98
|
||||||
dbw $03,$7473
|
dbw $03,$7473
|
||||||
|
DrawHPBarPredef:
|
||||||
dbw $04,$68EF ; 5F draw HP bar
|
dbw $04,$68EF ; 5F draw HP bar
|
||||||
dbw $04,$68F6
|
dbw $04,$68F6
|
||||||
dbw $07,$49C6
|
dbw $07,$49C6
|
||||||
|
|
Loading…
Reference in a new issue