.cmn LDY #0 ; Set up a counter in Y, starting from 0 .QUL4 LDA NAME,Y ; The commander's name is stored at NAME, so load the ; Y-th character from NAME CMP #' ' ; If we have found a space, then we have reached the end BEQ ypl-1 ; of the name, return from the subroutine (ypl-1 points ; to the RTS below) JSR DASC_b2 ; Print the character we just loaded INY ; Increment the loop counter CPY #7 ; Loop back for the next character until we have either BNE QUL4 ; found a carriage return or have printed seven ; characters 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: * PrintCtrlCode calls cmn
Print control code 4 (the commander's name).
Other entry points: cmn-1 Contains an RTS
[X]
Subroutine DASC_b2 (category: Text)
Call the DASC routine in ROM bank 2
[X]
Label QUL4 is local to this routine