.TBRIEF JSR ClearScreen_b3 ; Clear the screen by zeroing patterns 66 to 255 in ; both pattern buffer, and clearing both nametable ; buffers to the background tile LDA #$95 ; Clear the screen and set the view type in QQ11 to $95 JSR TT66 ; (Text-based mission briefing) LDA TP ; Set bit 4 of TP to indicate that mission 3 has been ORA #%00010000 ; triggered STA TP LDA #199 ; Print extended token 199, which is the briefing for JSR DETOK_b2 ; the Trumbles mission JSR UpdateView ; Update the view JSR YESNO ; Call YESNO to wait until either "Y" or "N" is pressed CMP #1 ; If "N" was pressed, then the mission was not accepted, BNE BAYSTEP ; jump to BAYSTEP to go to the docking bay (i.e. show ; the Status Mode screen) LDY #HI(50000) ; Otherwise the mission was accepted, so subtract LDX #LO(50000) ; 50,000 CR from the cash pot to pay for the Trumble JSR LCASH INC TRIBBLE ; Increment the number of Trumbles from 0 to 1, so they ; start breeding JMP BAY ; Go to the docking bay (i.e. show the Status Mode ; screen)Name: TBRIEF [Show more] Type: Subroutine Category: Missions Summary: Start mission 3 Deep dive: The Trumbles missionContext: See this subroutine in context in the source code References: This subroutine is called as follows: * DOENTRY calls TBRIEF
[X]
Subroutine BAY (category: Status)
Go to the docking bay (i.e. show the Status Mode screen)
[X]
Subroutine ClearScreen_b3 (category: Drawing the screen)
Call the ClearScreen routine in ROM bank 3
[X]
Subroutine DETOK_b2 (category: Text)
Call the DETOK routine in ROM bank 2
[X]
Subroutine LCASH (category: Maths (Arithmetic))
Subtract an amount of cash from the cash pot
[X]
Subroutine TT66 (category: Drawing the screen)
Clear the screen and set the new view type
[X]
Subroutine UpdateView (category: Drawing the screen)
Update the view
[X]
Subroutine YESNO (category: Controllers)
Display "YES" or "NO" and wait until one is chosen