dmgtris/src/level.asm

30 lines
437 B
NASM
Raw Normal View History

2023-10-13 09:20:28 +00:00
IF !DEF(LEVEL_ASM)
DEF LEVEL_ASM EQU 1
2023-10-16 05:47:11 +00:00
INCLUDE "globals.asm"
2023-10-13 09:20:28 +00:00
SECTION "Level Variables", WRAM0
2023-10-16 05:47:11 +00:00
wCLevel:: ds 4
wNLevel:: ds 6 ; The extra 2 bytes will be clobbered by the sprite drawing functions.
2023-10-13 09:20:28 +00:00
SECTION "Level Functions", ROM0
LevelInit::
xor a, a
ld hl, wCLevel
ld [hl+], a
ld [hl+], a
ld [hl+], a
ld [hl], a
ld hl, wNLevel
ld [hl+], a
ld [hl+], a
ld [hl+], a
ld [hl], a
ret
ENDC