Skip to navigation

Elite on the BBC Micro and NES

Version analysis of ou2

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: ou2 Type: Subroutine Category: Flight Summary: Display "E.C.M.SYSTEM DESTROYED" as an in-flight message
.ou2 LDA #108 \ Set A to recursive token 108 ("E.C.M.SYSTEM")

Code variation 1 of 1Specific to an individual platform

Tap on a block to expand it, and tap it again to revert.

EQUB &2C \ Fall through into ou3 to print the new message, but \ skip the first instruction by turning it into \ &2C &A9 &6F, or BIT &6FA9, which does nothing apart \ from affect the flags
JMP MESS \ Print recursive token A as an in-flight message, \ followed by " DESTROYED", and return from the \ subroutine using a tail call