diff options
author | Astatin <[email protected]> | 2024-08-15 22:46:34 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-08-15 22:46:34 +0900 |
commit | c5ee7cfdd9ecb83bc1547a66ab1895685e49aaa4 (patch) | |
tree | 648bd418cb427c6f88a471bd46349aba8361f26c /init.gbasm | |
parent | 16e0ec4460954b65f3b972fab00f3ad7527062ff (diff) |
Generate a single tunnel in dungeon generation
Diffstat (limited to 'init.gbasm')
-rw-r--r-- | init.gbasm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |