Prev: BABD Up: Map Next: BB17
BAE5: Set colour for moving objects
Used by the routine at AF5D.
BAE5 LD A,(IX+$09)
BAE8 EX AF,AF'
BAE9 LD C,$20
BAEB LD A,(IX+$13)
BAEE CP (IX+$1C)
BAF1 LD A,($A401)
BAF4 ADC A,$00
BAF6 LD B,A
BAF7 LD A,(IX+$01)
BAFA AND $07
BAFC LD HL,$A400
BAFF ADD A,(HL)
BB00 DEC A
BB01 RRA
BB02 RRA
BB03 RRA
BB04 AND $1F
BB06 INC A
BB07 EX DE,HL
BB08 LD E,B
BB09 LD B,E
BB0A LD D,L
BB0B EX AF,AF'
BB0C LD (HL),A
BB0D INC L
BB0E DJNZ $BB0C
BB10 LD L,D
BB11 ADD HL,BC
BB12 EX AF,AF'
BB13 DEC A
BB14 JR NZ,$BB09
BB16 RET
Prev: BABD Up: Map Next: BB17