Re: Pokemon Blue plays itself (TPP)
Posted by: luckytyphlosion
Date: 2015-01-02 11:28:34
EDIT: Oops made an error need to fix it.
EDIT2: fixed the new code.
You'll need to modify the HRAM code to jump to DA48 after completing the OAM DMA.
ld a,(ff00+D4)
bit 0,a
ld a,(ff00+D3)
jr z,DA52
res 3,a
res 2,a ; no select button
push af
ld a,(D35E)
cp a,48
jr nz,DA60 ; jumps to second pop af
pop af
res 6,a ; can't press up in daycare
push af
pop af
ld (ff00+f8),a
ret
EDIT3: Maybe I need to modify the code even more, start is still being pressed way too much.
EDIT4: New code that presses start less:
ld a,(ff00+D4)
bit 0,a
jr z,02
bit 1,a
ld a,(ff00+D3)
jr nz,02
res 3,a
res 2,a ; no select button
push af
ld a,(D35E)
cp a,48
jr nz,04 ; jumps to second pop af
pop af
res 6,a ; can't press up in daycare
push af
pop af
ld (ff00+f8),a
ret