From c5ee7cfdd9ecb83bc1547a66ab1895685e49aaa4 Mon Sep 17 00:00:00 2001 From: Astatin Date: Thu, 15 Aug 2024 22:46:34 +0900 Subject: Generate a single tunnel in dungeon generation --- init.gbasm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.gbasm') diff --git a/init.gbasm b/init.gbasm index 8483d4a..ac9b67b 100644 --- a/init.gbasm +++ b/init.gbasm @@ -41,12 +41,12 @@ Wait_VBlank: LD $reg_lcd_controller, A Empty_VRAM: ; (Clear screen) - LD hl, $VRAM_start ; We set the HL register to the start of VRAM + LD HL, $VRAM_start ; We set the HL register to the start of VRAM Empty_VRAM.loop: XOR A - LD (HL+), a ; We set the memory pointed to by HL to 0 and increase HL - LD a, $a0 - CP h ; Until h has reached $a0 ($a0000 is the end of VRAM) + LD (HL+), A ; We set the memory pointed to by HL to 0 and increase HL + LD A, $a0 + CP H ; Until h has reached $a0 ($a0000 is the end of VRAM) JR NZ, =Empty_VRAM.loop ; BG Palette -- cgit v1.2.3-70-g09d2