.objc11 CPY #30 \ If the object ID <> 30, jump to objc12 to return from BNE objc12 \ the subroutine LDA alienSlot \ Increment alienSlot to iterate through values 0 to 7 CLC \ and round again ADC #1 AND #7 STA alienSlot DEC objCount \ Decrement the loop counter to move on to the next \ alien in the group BEQ objc12 \ If we have processed all 8 items in the group, jump \ to objc12 to return from the subroutine JMP objc4 \ Otherwise loop back to objc4 to process the next item \ in the groupName: SetObjectCoords (Part 10 of 11) [Show more] Type: Subroutine Category: 3D geometry Summary: Process the next dormant alien (object group 30) Deep dive: 3D objectsContext: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
[X]
Variable alienSlot (category: The Theme)
Slots for up to three aliens that are ready to start moving towards the town
[X]
Variable objCount in workspace Main variable workspace
Temporary storage, used as a loop counter in the object group visibility checks (shares a memory location with the alien variable)
[X]
Label objc12 in subroutine SetObjectCoords (Part 11 of 11)
[X]
Label objc4 in subroutine SetObjectCoords (Part 6 of 11)