Skip to navigation

Elite on the BBC Micro and NES

Missions: DEBRIEF2

[BBC Micro disc version, Docked]

Name: DEBRIEF2 [Show more] Type: Subroutine Category: Missions Summary: Finish mission 2 Deep dive: The Thargoid Plans mission
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * DOENTRY calls DEBRIEF2
.DEBRIEF2 LDA TP \ Set bit 2 of TP to indicate mission 2 is complete (so ORA #%00000100 \ both bits 2 and 3 are now set) STA TP LDA #2 \ Set ENGY to 2 so our energy banks recharge at a faster STA ENGY \ rate, as our mission reward is a special navy energy \ unit that recharges at a rate of 3 units of energy on \ each iteration of the main loop, compared to a rate of \ 2 units of energy for the standard energy unit INC TALLY+1 \ Award 256 kill points for completing the mission LDA #223 \ Set A = 223 so the call to BRP prints extended token \ 223 (the thank you message at the end of mission 2) BNE BRP \ Jump to BRP to print the extended token in A and show \ the Status Mode screen), returning from the subroutine \ using a tail call (this BNE is effectively a JMP as A \ is never zero)