Skip to navigation

Text: PrintLandscapeNum

Name: PrintLandscapeNum [Show more] Type: Subroutine Category: Text Summary: Print the four-digit landscape number (0000 to 9999)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * FinishLandscape calls PrintLandscapeNum * PreviewLandscape calls PrintLandscapeNum
.PrintLandscapeNum LDA landscapeNumberHi \ Print the high byte of the binary coded decimal (BCD) JSR Print2DigitBCD \ landscape number as a two-digit number LDA landscapeNumberLo \ Print the low byte of the binary coded decimal (BCD) JMP Print2DigitBCD \ landscape number as a two-digit number and return from \ the subroutine using a tail call