Skip to navigation

Elite on the BBC Micro

Text: SETYC [6502SP version, I/O processor]

Name: SETYC [Show more] Type: Subroutine Category: Text Summary: Implement the #SETYC <row> command (move the text cursor to a specific row)
Context: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * JMPTAB calls SETYC

This routine is run when the parasite sends a #SETYC <row> command. It updates the text cursor y-coordinate (i.e. the text row) in YC. Arguments: A The text row
.SETYC STA YC \ Store the new text row in YC JMP PUTBACK \ Jump to PUTBACK to restore the USOSWRCH handler and \ return from the subroutine using a tail call