Skip to navigation

Elite on the BBC Micro

Maths (Arithmetic): MU6 [Elite-A, Parasite]

Name: MU6 [Show more] Type: Subroutine Category: Maths (Arithmetic) Summary: Set P(1 0) = (A A)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MLS1 calls MU6

In practice this is only called via a BEQ following an AND instruction, in which case A = 0, so this routine effectively does this: P(1 0) = 0
.MU6 STA P+1 \ Set P(1 0) = (A A) STA P RTS \ Return from the subroutine