Use macros for bit arrays

This commit is contained in:
Rangi 2021-05-23 22:09:02 -04:00
parent 715496bf35
commit 346ce9454a
4 changed files with 124 additions and 107 deletions

View file

@ -2614,9 +2614,10 @@ IsKeyItem_::
jr nc, .checkIfItemIsHM
; if the item is not an HM or TM
push af
ld hl, KeyItemBitfield
ld hl, KeyItemFlags
ld de, wBuffer
ld bc, 15 ; only 11 bytes are actually used
assert 15 >= (NUM_ITEMS + 7) / 8
call CopyData
pop af
dec a