shithub: pokered

Download patch

ref: 10289bf7ddac46d0188da06f2714dbce0dece59c
parent: 77c3e22a4ecd3dc81918f00c548cef7c634f3419
author: YamaArashi <shadow962@live.com>
date: Wed Nov 2 17:02:29 EDT 2016

use hardware constants in pic.asm

--- a/home/pic.asm
+++ b/home/pic.asm
@@ -7,10 +7,10 @@
 	ld a, b
 	ld [H_LOADEDROMBANK], a
 	ld [MBC1RomBank], a
-	ld a, $a
-	ld [$0], a
+	ld a, SRAM_ENABLE
+	ld [MBC1SRamEnable], a
 	xor a
-	ld [$4000], a
+	ld [MBC1SRamBank], a
 	call _UncompressSpriteData
 	pop af
 	ld [H_LOADEDROMBANK], a