Skip to navigation

Elite on the BBC Micro

Text: me2

[BBC Master version]

Name: me2 [Show more] Type: Subroutine Category: Text Summary: Remove an in-flight message from the space view
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: * Main game loop (Part 2 of 6) calls me2
.me2 LDA QQ11 \ If this is not the space view, jump down to clynsneed BNE clynsneed \ to skip displaying the in-flight message LDA MCH \ Fetch the token number of the current message into A JSR MESS \ Call MESS to print the token, which will remove it \ from the screen as printing uses EOR logic LDA #0 \ Set the delay in DLY to 0, so any new in-flight STA DLY \ messages will be shown instantly JMP me3 \ Jump back into the main spawning loop at me3 .clynsneed JSR CLYNS \ Clear the bottom three text rows of the upper screen, \ and move the text cursor to column 1 on row 21, i.e. \ the start of the top row of the three bottom rows JMP me3 \ Jump back into the main spawning loop at me3