Skip to navigation


Dashboard: ABORT

[Commodore 64 version]

Name: ABORT [Show more] Type: Subroutine Category: Dashboard Summary: Disarm missiles and update the dashboard indicators
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * FRMIS calls ABORT * KILLSHP calls ABORT * Main flight loop (Part 3 of 16) calls ABORT

Arguments: Y The new colour of the missile indicator: * $00 = black (no missile) * #RED2 = red (armed and locked) * #YELLOW2 = yellow/white (armed) * #GREEN2 = green (disarmed)
.ABORT LDX #$FF ; Set X to $FF, which is the value of MSTG when we have ; no target lock for our missile ; Fall through into ABORT2 to set the missile lock to ; the value in X, which effectively disarms the missile