Skip to navigation

Elite on the BBC Micro

Market: stay_here [Elite-A, Docked]

Name: stay_here [Show more] Type: Subroutine Category: Market Summary: Pay a docking fee and refresh the system's market prices
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TT102 calls stay_here
\ --- Mod: Whole section added for Elite-A: -----------> .stay_here LDX #&F4 \ It costs 50.0 Cr to refresh the station's market LDY #&01 \ prices, which is represented as a value of 500, so \ this sets (Y X) = &1F4 = 500 JSR LCASH \ Subtract (Y X) cash from the cash pot, but only if \ we have enough cash BCC stay_quit \ If the C flag is clear then we did not have enough \ cash for the transaction, so jump to stay_quit to \ return from the subroutine without refreshing the \ market prices JSR cour_dock \ Update the current special cargo delivery mission \ --- End of added section ---------------------------->