shithub: pokecrystal

Download patch

ref: 82d74cf1dfddd0abca6f6ca8fafcf86fa5941072
parent: 802c7780ac23d60c8071009e80ab933594e2885a
author: Bryan Bishop <[email protected]>
date: Wed May 30 15:41:05 EDT 2012

copy in DisableLCD from pokered

--- a/main.asm
+++ b/main.asm
@@ -23,7 +23,30 @@
     db %11100100
     db %11100100
 
-INCBIN "baserom.gbc",$538,$1273 - $538
+INCBIN "baserom.gbc",$538,$56d - $538
+
+DisabeLCD: ; 56d
+	xor a
+	ld [$ff00+$f], a
+	ld a, [$ff00+$ff]
+	ld b, a
+	res 0, a
+	ld [$ff00+$ff], a
+.asm_577
+	ld a, [$ff00+$44]
+	cp $91
+	jr nz, .asm_577 ; 0x57b $fa
+	ld a, [$ff00+$40]
+	and $7f
+	ld [$ff00+$40], a
+	xor a
+	ld [$ff00+$f], a
+	ld a, b
+	ld [$ff00+$ff], a
+	ret
+; 0x58a
+
+INCBIN "baserom.gbc",$58a,$1273 - $58a
 
 Char5CText: ; 0x1273
 	db "TM@"