.cmn JSR MT19 \ Call MT19 to capitalise the next letter (i.e. set \ Sentence Case for this word only) LDY #0 \ Set up a counter in Y, starting from 0 .QUL4 LDA NA%,Y \ The commander's name is stored at NA%, so load the \ Y-th character from NA% CMP #13 \ If we have reached the end of the name, return from BEQ ypl-1 \ the subroutine (ypl-1 points to the RTS below) JSR TT26 \ Print the character we just loaded INY \ Increment the loop counter BNE QUL4 \ Loop back for the next character RTS \ Return from the subroutineName: cmn [Show more] Type: Subroutine Category: Status Summary: Print the commander's nameContext: See this subroutine in context in the source code References: This subroutine is called as follows: * TT27 calls cmn
Print control code 4 (the commander's name).
Other entry points: cmn-1 Contains an RTS
[X]
Subroutine MT19 (category: Text)
Capitalise the next letter
[X]
Configuration variable NA% = &1181
The address of the data block for the last saved commander, as set in elite-loader.asm
[X]
Label QUL4 is local to this routine
[X]
Subroutine TT26 (category: Text)
Print a character at the text cursor, with support for verified text in extended tokens