Level selection menu: function to compute valid directions and directional arrows OAM (#12)

This commit is contained in:
xCrystal
2023-08-22 12:42:53 +02:00
parent c6601a79d3
commit e866cdab48
7 changed files with 197 additions and 1 deletions

View File

@@ -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