Skip to navigation

Elite on the BBC Micro and NES

Text: prilf

[6502 Second Processor version, I/O processor]

Name: prilf [Show more] Type: Subroutine Category: Text Summary: Implement the #prilf command (print a blank line on the printer)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * JMPTAB calls prilf

This routine is run when the parasite sends a #prilf command. It prints a blank line on the printer by printing two line feeds.
.prilf LDA #2 \ Print ASCII 2 using the non-vectored OSWRCH, which JSR NVOSWRCH \ means "start sending characters to the printer" LDA #10 \ Send ASCII 10 to the printer twice using the POSWRCH JSR POSWRCH \ routine, which prints a blank line below the current JSR POSWRCH \ line as ASCII 10 is the line feed character LDA #3 \ Print ASCII 3 using the non-vectored OSWRCH, which JSR NVOSWRCH \ means "stop sending characters to the printer" JMP PUTBACK \ Jump to PUTBACK to restore the USOSWRCH handler and \ return from the subroutine using a tail call