Skip to navigation

Elite on the BBC Micro

Utility routines: DOCOL (6502SP version)

Name: DOCOL [View in context] Type: Subroutine Category: Utility routines Summary: Implement the #SETCOL <colour> command (set the current colour)
This routine is run when the parasite sends a #SETCOL <colour> command. It updates the current colour in COL. Arguments: A The new colour
.DOCOL STA COL \ Store the new colour in COL JMP PUTBACK \ Jump to PUTBACK to restore the USOSWRCH handler and \ return from the subroutine using a tail call