Skip to navigation

Elite on the BBC Micro

Text: MT8 [Elite-A, Encyclopedia]

Name: MT8 [Show more] Type: Subroutine Category: Text Summary: Tab to column 6 and start a new word when printing extended tokens Deep dive: Extended text tokens
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * JMTB calls MT8 * JMTB calls entry point set_token

This routine sets the following: * XC = 6 (tab to column 6) * DTW2 = %11111111 (we are not currently printing a word) Other entry points: set_token Start a new word when printing extended tokens
.MT8 LDA #6 \ Move the text cursor to column 6 STA XC \ --- Mod: Code added for Elite-A: --------------------> .set_token \ --- End of added code -------------------------------> LDA #%11111111 \ Set all the bits in DTW2 STA DTW2 RTS \ Return from the subroutine