Skip to navigation

Elite on the BBC Micro

Maths (Arithmetic): MU6

[BBC Micro disc version, Docked]

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: No direct references to this subroutine in this source file

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