Skip to navigation

Elite on the BBC Micro and NES

Encyclopedia: trading

[Elite-A, Parasite]

Name: trading [Show more] Type: Subroutine Category: Encyclopedia Summary: Wait until a key is pressed and show the Encyclopedia screen
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * encyclopedia calls trading * controls calls via l_restart * equip_data calls via l_restart

Other entry points: l_restart Does exactly the same as a call to trading
.trading .l_restart JSR check_keys \ Call check_keys to wait until a key is pressed, \ quitting the game if the game if COPY (pause) and \ ESCAPE are pressed TXA \ Copy the number of the key pressed into A BEQ l_restart \ If check_keys returned with X = 0, then we paused the \ game with COPY and then unpaused it with DELETE, in \ which case loop back to l_restart to keep checking for \ key presses JMP BAY \ Jump to BAY to go to the docking bay (i.e. show the \ Encyclopedia screen)