Skip to navigation

Elite on the BBC Micro and NES

Dashboard: ABORT

[Acorn Electron 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 Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * FRMIS calls ABORT * KILLSHP calls via ABORT-2 * Main flight loop (Part 3 of 16) calls via ABORT-2

Arguments: Y The new status of the leftmost missile indicator
Other entry points: ABORT-2 Set the indicator to disarmed (white square)
LDY #&09 \ Set Y = &09 so we set the missile to a white square \ (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