Skip to navigation

Elite on the BBC Micro

Text: sell_yn [Elite-A, Docked]

Name: sell_yn [Show more] Type: Subroutine Category: Text Summary: Print a "Sell(Y/N)?" prompt and get a number from the keyboard
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TT210 calls sell_yn * status_equip calls sell_yn

The arguments and results for this routine are the same as for gnum. Arguments: QQ25 The maximum number allowed Returns: A The number entered R Also contains the number entered C flag Set if the number is too large (> QQ25), clear otherwise
\ --- Mod: Whole section added for Elite-A: -----------> .sell_yn LDA #205 \ Print recursive token 45 ("SELL") JSR TT27 LDA #206 \ Print extended token 206 ("{all caps}(Y/N)?") JSR DETOK \ Fall through into gnum to get a number from the \ keyboard \ --- End of added section ---------------------------->