From 7494644c9a7b49fca0d79ead23013bbddf181bbb Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Fri, 6 Jul 2012 22:01:34 -0600 Subject: [PATCH] Add the Trainer House flag check special (0x67). --- main.asm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/main.asm b/main.asm index 49b04798e..6fa765210 100644 --- a/main.asm +++ b/main.asm @@ -661,7 +661,7 @@ SpecialsPointers: ; 0xc029 dbw $03,$4472 dbw $09,$65ee dbw BANK(SpecialGameboyCheck),SpecialGameboyCheck - dbw $03,$44b9 + dbw BANK(SpecialTrainerHouse),SpecialTrainerHouse dbw $05,$6dc7 dbw $0a,$62a0 dbw $03,$448f @@ -800,7 +800,16 @@ SpecialGameboyCheck: ; 0xc478 ld [$c2dd], a ret -INCBIN "baserom.gbc",$c48f,$c5d2 - $c48f +INCBIN "baserom.gbc",$c48f,$c4b9 - $c48f + +SpecialTrainerHouse: ; 0xc4b9 + ld a, 0 + call Function2fcb + ld a, [$abfd] ; XXX what is this memory location? + ld [$c2dd], a + jp Function2fe1 + +INCBIN "baserom.gbc",$c4c7,$c5d2 - $c4c7 PrintNumber_PrintDigit: ; c5d2 INCBIN "baserom.gbc",$c5d2,$c644 - $c5d2