Prev: B82E Up: Map Next: B9EF
B99C: Update a moving object's data
Used by the routine at B82E.
Input
IX Pointer to current moving object data
HL New screen position for object
C Flags
B99C SET 1,C
B99E RES 4,C
B9A0 RES 6,C
B9A2 LD (IX+$06),C
B9A5 BIT 0,C
B9A7 JR Z,$B9B1
B9A9 LD L,(IX+$04)
B9AC LD A,(IX+$05)
B9AF JR $B9B7
B9B1 LD L,(IX+$02)
B9B4 LD A,(IX+$03)
B9B7 RLA
B9B8 RLA
B9B9 RLA
B9BA AND $18
B9BC ADD A,$80
B9BE LD (IX+$00),L
B9C1 LD (IX+$01),A
B9C4 LD A,(IX+$0A)
B9C7 LD (IX+$0C),A
B9CA LD A,(IX+$0B)
B9CD LD (IX+$0D),A
B9D0 LD A,(IX+$0E)
B9D3 LD (IX+$0F),A
B9D6 LD (IX+$10),$00
B9DA LD (IX+$11),$00
B9DE LD (IX+$13),$FF
B9E2 LD A,(IX+$18)
B9E5 LD (IX+$19),A
B9E8 LD A,(IX+$1A)
B9EB LD (IX+$1B),A
B9EE RET
Prev: B82E Up: Map Next: B9EF