Skip to navigation

Elite on the BBC Micro and NES

Drawing the screen: DET1

[6502 Second Processor version]

Name: DET1 [Show more] Type: Subroutine Category: Drawing the screen Summary: Show or hide the dashboard (for when we die) by sending a #DODIALS command to the I/O processor
Context: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * DEATH calls DET1

Arguments: X The number of text rows to display on the screen (24 will hide the dashboard, 31 will make it reappear)
.DET1 LDA #DODIALS \ Send the first part of a #DODIALS command to the I/O JSR OSWRCH \ processor TXA \ Send the new number of rows to the I/O processor, so JMP OSWRCH \ we've now sent a #DODIALS command