From 75732632a373d8ac21f8f4ecf813b447f02ba8e4 Mon Sep 17 00:00:00 2001 From: Astatin Date: Sun, 24 Aug 2025 19:12:43 +0200 Subject: Reset game with A+B+Start+Select --- init.gbasm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'init.gbasm') diff --git a/init.gbasm b/init.gbasm index 075eed6..9495df7 100644 --- a/init.gbasm +++ b/init.gbasm @@ -41,6 +41,12 @@ Header: .Global_checksum: .DB $00, $00 ; Will be set after assembly by build scripts Initialize_RAM: +LD SP, $fffe + +; LCDC +XOR A +LD $reg_lcd_controller, A + ; Disable Interrupts LD A, $00 LD $reg_interrupt_enable, A @@ -55,10 +61,6 @@ Empty_WRAM: CALL =VBlank_Wait - ; LCDC - XOR A - LD $reg_lcd_controller, A - Empty_VRAM: ; (Clear screen) LD HL, $VRAM_start ; We set the HL register to the start of VRAM Empty_VRAM.loop: -- cgit v1.2.3-70-g09d2