Skip to navigation

Elite on the BBC Micro

Text: INCYC [6502SP version]

Name: INCYC [Show more] Type: Subroutine Category: Text Summary: Move the text cursor to the next 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: * EQSHP calls INCYC * NLIN calls INCYC * TT102 calls INCYC * TT146 calls INCYC * TT167 calls INCYC * TTX69 calls INCYC * qv calls INCYC
.INCYC PHA \ Store A on the stack so we can preserve it LDA YC \ Set A = YC + 1, so A is the number of the next row INA JSR DOYC \ Call DOYC to move the text cursor to the new row in A PLA \ Retrieve the original value of A from the stack RTS \ Return from the subroutine