Skip to navigation

Elite on the BBC Micro

Loader: SCRAM [Elite-A, Docked]

Name: SCRAM [Show more] Type: Subroutine Category: Loader Summary: Set the save_lock variable and break handler
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * DOBEGIN calls SCRAM * DOENTRY calls SCRAM * INBAY calls SCRAM

Arguments: A Set the save_lock flag as follows: * 0 = this is a new game, so there are no unsaved changes in the commander file * &FF = we just docked, so there are unsaved changes in the commander file
.SCRAM \ --- Mod: Original Acornsoft code removed: -----------> \ JSR scramble \ Decrypt the main docked code between &1300 and &5FFF \ JSR RES2 \ Reset a number of flight variables and workspaces \ JMP TT170 \ Jump to TT170 to start the game \ --- And replaced by: --------------------------------> STA save_lock \ Set the save_lock variable to the value in A (which \ will be either 0 or &FF) \ Fall through into BRKBK to set the standard BRKV \ handler for the game and return from the subroutine \ --- End of replacement ------------------------------>