Skip to navigation

Elite on the BBC Micro

Maths (Arithmetic): MU5, Removed [Elite-A, Docked]

Name: MU5, Removed [Show more] Type: Subroutine Category: Maths (Arithmetic) Summary: Set K(3 2 1 0) = (A A A A) and clear the C flGag
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: K(3 2 1 0) = 0
\ --- Mod: Original Acornsoft code removed: -----------> \.MU5 \ STA K \ Set K(3 2 1 0) to (A A A A) \ STA K+1 \ STA K+2 \ STA K+3 \ CLC \ Clear the C flag \ RTS \ Return from the subroutine \ --- End of removed code ----------------------------->