Prev: CEB5 Up: Map Next: CEDB
CEC8: Record Right Contact
Used by the routine at NextStep.
Used when the ship is in the same column as a step of a segment. When the horizontal speed is not negative it sets bit 2 of the contact flags at ContactFlags and carries on at NextStep_Flags. Otherwise the next step is drawn.
FlagRightContact CEC8 LD A,($CCBB) The horizontal scroll speed.
CECB BIT 7,A Jump to FinishStep_Next if bit 7 of A is set.
CECD JP NZ,FinishStep_Next
CED0 LD A,($5C31) The contact flags.
CED3 OR %00000100 Set the bits of A that are set in 04.
CED5 LD ($5C31),A Update the contact flags.
CED8 JP NextStep_Flags Jump to NextStep_Flags.
Prev: CEB5 Up: Map Next: CEDB