From 1ee4cc49ed71f3a6dbcfd42f5864877b9afa2f3e Mon Sep 17 00:00:00 2001 From: xCrystal Date: Thu, 10 Aug 2023 18:23:22 +0200 Subject: [PATCH] Fix InitCGBPals being called after LCD enabled causing innaccessible VRAM access (#8) --- home/init.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/init.asm b/home/init.asm index c01a036ca..05b86316e 100644 --- a/home/init.asm +++ b/home/init.asm @@ -119,6 +119,8 @@ Init:: ldh [hWX], a ldh [rWX], a + farcall InitCGBPals + ld a, LCDC_DEFAULT ; %11100011 ; LCD on ; Win tilemap 1 @@ -133,8 +135,6 @@ Init:: ld a, CONNECTION_NOT_ESTABLISHED ldh [hSerialConnectionStatus], a - farcall InitCGBPals - ld a, HIGH(vBGMap1) ldh [hBGMapAddress + 1], a xor a ; LOW(vBGMap1)