aboutsummaryrefslogtreecommitdiff
path: root/init.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-08-15 22:46:34 +0900
committerAstatin <astatin@redacted>2024-08-15 22:46:34 +0900
commitc5ee7cfdd9ecb83bc1547a66ab1895685e49aaa4 (patch)
tree648bd418cb427c6f88a471bd46349aba8361f26c /init.gbasm
parent16e0ec4460954b65f3b972fab00f3ad7527062ff (diff)
Generate a single tunnel in dungeon generation
Diffstat (limited to 'init.gbasm')
-rw-r--r--init.gbasm8
1 files changed, 4 insertions, 4 deletions
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