Skip to navigation

Elite on the BBC Micro and NES

Text: print_wrch

[Elite-A, I/O processor]

Name: print_wrch [Show more] Type: Subroutine Category: Text Summary: Send a character to the printer
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * print_esc calls print_wrch * printer calls print_wrch

Arguments: A The ASCII character to send to the printer
.print_wrch PHA \ Store A on the stack so we can retrieve it below LDA #1 \ Print ASCII 1 using the VDU routine in the MOS, which JSR print_safe \ means "send the next character to the printer only" PLA \ Retrieve the value of A from the stack \ Fall through into print_safe to print the character \ in A, which will send it to the printer