Skip to navigation


Missions: TBRIEF

[Commodore 64 version]

Name: TBRIEF [Show more] Type: Subroutine Category: Missions Summary: Start mission 3 Deep dive: The Trumbles mission
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * DOENTRY calls TBRIEF
.TBRIEF 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 ; the Trumbles mission JSR YESNO ; Call YESNO to wait until either "Y" or "N" is pressed BCC BAYSTEP ; If "N" was pressed, then the mission was not accepted, ; 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)