mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Remove most static wram addresses. Use labels instead.
For unknown addresses, use "w<address>". Label overleads are still an issue.
This commit is contained in:
parent
52ba96f5f4
commit
40c17c906b
290 changed files with 8262 additions and 7759 deletions
|
|
@ -8,7 +8,7 @@ HiddenItemNear: ; 7481f (1d:481f)
|
|||
ret nc ; return if current map has no hidden items
|
||||
push bc
|
||||
push hl
|
||||
ld hl, $d6f0
|
||||
ld hl, wd6f0
|
||||
ld c, b
|
||||
ld b, $2
|
||||
ld a, $10 ; FlagActionPredef
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,5 @@
|
|||
GetMachinePrice: ; 7bf86 (1e:7f86)
|
||||
ld a, [$cf91]
|
||||
ld a, [wcf91]
|
||||
sub TM_01
|
||||
ret c
|
||||
ld d, a
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
; checks if the mon in wWhichPokemon already knows the move in $d0e0
|
||||
; checks if the mon in wWhichPokemon already knows the move in wd0e0
|
||||
CheckIfMoveIsKnown: ; 2fe18 (b:7e18)
|
||||
ld a, [wWhichPokemon]
|
||||
ld hl, W_PARTYMON1_MOVE1
|
||||
ld bc, $2c
|
||||
call AddNTimes
|
||||
ld a, [$d0e0]
|
||||
ld a, [wd0e0]
|
||||
ld b, a
|
||||
ld c, $4 ; nubmer of moves
|
||||
.loop
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
; tests if mon [$cf91] can learn move [$d0e0]
|
||||
; tests if mon [wcf91] can learn move [wd0e0]
|
||||
TestMonMoveCompatibility: ; 1373e (4:773e)
|
||||
ld a, [$cf91]
|
||||
ld [$d0b5], a
|
||||
ld a, [wcf91]
|
||||
ld [wd0b5], a
|
||||
call GetMonHeader
|
||||
ld hl, W_MONHLEARNSET
|
||||
push hl
|
||||
ld a, [$d0e0]
|
||||
ld a, [wd0e0]
|
||||
ld b, a
|
||||
ld c, $0
|
||||
ld hl, TechnicalMachines
|
||||
|
|
@ -21,17 +21,17 @@ TestMonMoveCompatibility: ; 1373e (4:773e)
|
|||
ld a, $10 ; FlagActionPredef
|
||||
jp Predef
|
||||
|
||||
; converts TM/HM number in $d11e into move number
|
||||
; converts TM/HM number in wd11e into move number
|
||||
; HMs start at 51
|
||||
TMToMove: ; 13763 (4:7763)
|
||||
ld a, [$d11e]
|
||||
ld a, [wd11e]
|
||||
dec a
|
||||
ld hl, TechnicalMachines
|
||||
ld b, $0
|
||||
ld c, a
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
ld [$d11e], a
|
||||
ld [wd11e], a
|
||||
ret
|
||||
|
||||
INCLUDE "data/tms.asm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue