Skip to navigation

Elite on the BBC Micro and NES

Save and load: COLD

[BBC Master version]

Name: COLD [Show more] Type: Subroutine Category: Save and load Summary: Set the standard BRKV handler for the game
Context: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * S% calls COLD
.COLD LDA #LO(NEWBRK) \ Set BRKV to point to the NEWBRK routine STA BRKV LDA #HI(NEWBRK) STA BRKV+1 LDA #LO(CHPR) \ Set WRCHV to point to the CHPR routine STA WRCHV LDA #HI(CHPR) STA WRCHV+1 JSR setzp \ Call setzp to copy the top part of zero page into \ the buffer at &3000 JSR SETINTS \ Call SETINTS to set various vectors, interrupts and \ timers JMP SOFLUSH \ Call SOFLUSH to reset the sound buffers and return \ from the subroutine using a tail call IF _SNG47 .NMIpissoff CLI \ These instructions are never reached and have no RTI \ effect ENDIF