Skip to navigation

Elite on the BBC Micro

Text: DOYC [6502SP version]

Name: DOYC [Show more] Type: Subroutine Category: Text Summary: Move the text cursor to a specified row by sending a #SETYC command to the I/O processor
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: * DEATH calls DOYC * INCYC calls DOYC * MESS calls DOYC * MT29 calls DOYC * TITLE calls DOYC * TT167 calls DOYC * TT219 calls DOYC * TT23 calls DOYC * TTX66 calls DOYC * ee3 calls DOYC * hyp calls DOYC * qv calls DOYC

Arguments: A The new row number
.DOYC STA YC \ Store A in YC, which sets the text cursor row number PHA \ Store the new row number on the stack LDA #SETYC \ Set A to #SETYC, ready to send to the I/O processor \ Fall through into label to send a #SETYC command \ to the I/O processor