Skip to navigation

Elite on the BBC Micro and NES

Flight: mes9

[NES version, Bank 0]

Name: mes9 [Show more] Type: Subroutine Category: Flight Summary: Print a text token, possibly followed by " DESTROYED"
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MESS calls via mes9+3

Print a text token, followed by " DESTROYED" if the destruction flag is set (for when a piece of equipment is destroyed).
Other entry points: mes9+3 Don't print the text token, just print " DESTROYED" where applicable
.mes9 JSR TT27_b2 ; Call TT27 to print the text token in A LDA de ; If de is zero, then jump to StoreMessage to skip the BEQ StoreMessage ; following, as we don't need to print " DESTROYED" LDA #253 ; Print recursive token 93 (" DESTROYED") JSR TT27_b2 ; Fall through into StoreMessage to copy the message ; from the justified text buffer in BUF into the ; message buffer at messageBuffer