You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Handle the repositioning in the new map of a mocked player object after going through a map connection (#29)
This commit is contained in:
@ -27,6 +27,23 @@ endc
|
||||
jp hl
|
||||
ENDM
|
||||
|
||||
MACRO jumptable_bc
|
||||
if STRIN("\2", "h") == 1
|
||||
ldh a, [\2]
|
||||
else
|
||||
ld a, [\2]
|
||||
endc
|
||||
ld c, a
|
||||
ld b, 0
|
||||
ld hl, \1
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
ENDM
|
||||
|
||||
MACRO maskbits
|
||||
; masks just enough bits to cover values 0 to \1 - 1
|
||||
; \2 is an optional shift amount
|
||||
|
Reference in New Issue
Block a user