This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
.SFRMIS LDX #MSL \ Set X to the ship type of a missile, and call SFS1-2 JSR SFS1-2 \ to add the missile to our universe with an AI flag \ of %11111110 (AI enabled, hostile, no E.C.M.)Name: SFRMIS Type: Subroutine Category: Tactics Summary: Add an enemy missile to our local bubble of universe
An enemy has fired a missile, so add the missile to our universe if there is room, and if there is, make the appropriate warnings and noises.
This variation is blank in the Master version.
Tap on a block to expand it, and tap it again to revert.
If speech is enabled on the Executive version, it will say "Incoming missile" every time the "INCOMING MISSILE,SIR" message flashes on-screen.
This variation is blank in the Cassette, Disc (flight), Master and Electron versions.
IF _EXECUTIVE LDX #1 \ Call TALK with X = 1 to say "Incoming missile" using JSR TALK \ the Watford Electronics Beeb Speech Synthesiser (if \ one is fitted and speech has been enabled) ENDIF
LDA #120 \ Print recursive token 120 ("INCOMING MISSILE") as an JSR MESS \ in-flight message