You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Level selection menu: function to compute valid directions and directional arrows OAM (#12)
This commit is contained in:
@@ -42,3 +42,16 @@ AddNTimes::
|
||||
dec a
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
; advance c [b]-terminated table entries in hl
|
||||
AdvanceNEntries::
|
||||
ld a, c
|
||||
and a
|
||||
ret z
|
||||
.loop
|
||||
ld a, [hli]
|
||||
cp b
|
||||
jr nz, .loop
|
||||
dec c
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
Reference in New Issue
Block a user