.SetCurrentSystem LDX #5 ; Set up a counter in X to copy six bytes (for three ; 16-bit numbers) .ssys1 LDA selectedSystem,X ; Copy the X-th byte in selectedSystem to the X-th byte STA QQ15,X ; in QQ15, to set the selected system to the previous ; system that we snapped the crosshairs to DEX ; Decrement the counter BPL ssys1 ; Loop back until we have copied all six seeds .RTS6 RTS ; Return from the subroutineName: SetCurrentSystem [Show more] Type: Subroutine Category: Universe Summary: Set the seeds for the selected system to the system that we last snapped the crosshairs toContext: See this subroutine in context in the source code References: This subroutine is called as follows: * SetSelectedSystem calls SetCurrentSystem * SetSelectionFlags calls via RTS6
Other entry points: RTS6 Contains an RTS
[X]
Variable selectedSystem in workspace WP
The three 16-bit seeds for the selected system, i.e. the one we most recently snapped the crosshairs to in a chart view
[X]
Label ssys1 is local to this routine