mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-08-09 11:47:38 -05:00
14 lines
243 B
NASM
14 lines
243 B
NASM
;\1 = event index
|
|
MACRO CheckEvent
|
|
DEF event_byte = ((\1) / 8)
|
|
ld hl, wEventFlags + event_byte
|
|
bit (\1) % 8, [hl]
|
|
ENDM
|
|
|
|
;\1 = event index
|
|
MACRO SetEvent
|
|
DEF event_byte = ((\1) / 8)
|
|
ld hl, wEventFlags + event_byte
|
|
set (\1) % 8, [hl]
|
|
ENDM
|