Prev: 9724 Up: Map Next: 97DF
97BD: Find a record for a falling rocket part
Used by the routine at drop_part.
The first free of the nine at object_records; if none, the first not drawn this pass; if all are drawn, the ninth.
Output
IX The record
find_record_for_part 97BD LD B,$09 A free one
97BF LD IX,object_records
97C3 LD DE,$0018
find_record_for_part_0 97C6 LD A,(IX+$00)
97C9 INC A
97CA RET Z
97CB ADD IX,DE
97CD DJNZ find_record_for_part_0
97CF LD IX,object_records One not on the screen
97D3 LD B,$08
find_record_for_part_1 97D5 BIT 7,(IX+$10)
97D9 RET Z
97DA ADD IX,DE
97DC DJNZ find_record_for_part_1
97DE RET
Prev: 9724 Up: Map Next: 97DF