Prev: 8D8F Up: Map Next: 8E29
8DF9: Seems to setup a transition
Input
A ?
setup_transition 8DF9 AND A Set flags from A
8DFA LD C,A BC = A
8DFB LD B,$00
8DFD LD DE,$EC00 Points to some data TBD
8E00 JP P,dunno_jump Jump over if A was +ve
8E03 DEC B B = $FF
8E04 LD DE,$EC0C Points to some data TBD
dunno_jump 8E07 LD ($8DB1),BC Self modify
8E0B CALL rng Call random
8E0E AND $03 Mask 0..3
8E10 LD L,A HL = A * 3 + DE
8E11 RLCA
8E12 ADD A,L
8E13 LD L,A
8E14 LD H,$00
8E16 ADD HL,DE
8E17 LD A,(HL)
8E18 LD ($8DA1),A Self modify
8E1B INC HL Load DE from HL
8E1C LD E,(HL)
8E1D INC HL
8E1E LD D,(HL)
8E1F LD ($8DBB),DE Set transition animation start address
8E23 LD A,$04 4 frames of animation? 4 states?
8E25 LD ($A231),A transition_control = A
8E28 RET Return
Prev: 8D8F Up: Map Next: 8E29