diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-30 19:41:05 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-30 19:41:05 -0500 |
commit | 82d74cf1dfddd0abca6f6ca8fafcf86fa5941072 (patch) | |
tree | 947f2c631154fc153f1bdade26663610ab792381 | |
parent | 802c7780ac23d60c8071009e80ab933594e2885a (diff) |
copy in DisableLCD from pokered
-rw-r--r-- | main.asm | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -23,7 +23,30 @@ IncGradGBPalTable_01: ; 0x52f 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@" |