Skip to navigation

Elite on the BBC Micro

Start and end: BR1 [Elite-A, Encyclopedia]

Name: BR1 [Show more] Type: Subroutine Category: Start and end Summary: Start or restart the game
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * BRBR calls BR1

.BR1 \ --- Mod: Original Acornsoft code removed: -----------> \ LDX #3 \ Set XC = 3 (set text cursor to column 3) \ STX XC \ JSR FX200 \ Disable the ESCAPE key and clear memory if the BREAK \ \ key is pressed (*FX 200,3) \ LDX #CYL \ Call TITLE to show a rotating Cobra Mk III (#CYL) and \ LDA #6 \ token 6 ("LOAD NEW {single cap}COMMANDER {all caps} \ JSR TITLE \ (Y/N)?{sentence case}{cr}{cr}"), returning with the \ \ internal number of the key pressed in A \ CMP #&44 \ Did we press "Y"? If not, jump to QU5, otherwise \ BNE QU5 \ continue on to load a new commander \ JSR DFAULT \ Call DFAULT to reset the current commander data block \ \ to the last saved commander \ JSR SVE \ Call SVE to load a new commander into the last saved \ \ commander data block \.QU5 \ JSR DFAULT \ Call DFAULT to reset the current commander data block \ \ to the last saved commander \ --- And replaced by: --------------------------------> JMP escape \ Jump to escape to load the main docked code so that it \ shows the docking tunnel and ship hanger \ --- End of replacement ------------------------------>