.DEBRIEF LSR TP \ Clear bit 0 of TP to indicate that mission 1 is no ASL TP \ longer in progress, as we have completed it \INC TALLY+1 \ This instruction is commented out in the original \ source LDX #LO(50000) \ Increase our cash reserves by the generous mission LDY #HI(50000) \ reward of 5,000 CR JSR MCASH LDA #15 \ Set A = 15 so the call to BRP prints extended token 15 \ (the thank you message at the end of mission 1) .BRPS 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)Name: DEBRIEF [Show more] Type: Subroutine Category: Missions Summary: Finish mission 1 Deep dive: The Constrictor missionContext: 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: * DOENTRY calls DEBRIEF * BRIEF calls via BRPS
Other entry points: BRPS Print the extended token in A, show the Status Mode screen and return from the subroutine
[X]
Subroutine BRP (category: Missions)
Print an extended token and show the Status Mode screen
[X]
Subroutine MCASH (category: Maths (Arithmetic))
Add an amount of cash to the cash pot