Skip to navigation

Elite on the BBC Micro

Save and load: BRKBK (Master version)

Name: BRKBK [View in context] Type: Subroutine [Compare versions] Category: Save and load Summary: Set the standard BRKV handler for the game
.BRKBK LDA #LO(BRBR) \ Set BRKV to point to the BRBR routine STA BRKV LDA #HI(BRBR) STA BRKV+1 LDA #LO(CHPR) \ Set WRCHV to point to the CHPR routine STA WRCHV LDA #HI(CHPR) STA WRCHV+1 JSR SAVEZP \ Call SAVEZP to backup the top part of zero page JSR STARTUP \ Call STARTUP to set various vectors, interrupts and \ timers JMP SRESET \ Call SRESET to reset the sound buffers and return from \ the subroutine using a tail call IF _SNG47 CLI \ These instructions are never reached and have no RTI \ effect ENDIF