.PrintSaveHeader LDY #0 ; Set an index in Y so we can work through the text .stxt1 LDA (V),Y ; Fetch the Y-th character from V(1 0) BEQ stxt2 ; If A = 0 then we have reached the null terminator, so ; jump to stxt2 to return from the subroutine JSR TT27_b2 ; Print the character in A INY ; Increment the character counter BNE stxt1 ; Loop back to print the next character (this BNE is ; effectively a JMP as we will reach a null terminator ; well before Y wraps around to zero) .stxt2 RTS ; Return from the subroutineName: PrintSaveHeader [Show more] Type: Subroutine Category: Save and load Summary: Print header text for the Save and Load screenContext: See this subroutine in context in the source code References: This subroutine is called as follows: * SVE calls PrintSaveHeader
Arguments: V(1 0) The address of a null-terminated string to print
[X]
Subroutine TT27_b2 (category: Text)
Call the TT27 routine in ROM bank 2
[X]
Label stxt1 is local to this routine
[X]
Label stxt2 is local to this routine