Skip to navigation

Elite on the BBC Micro and NES

Maths (Arithmetic): MLU2, Removed

[Elite-A, Docked]

Name: MLU2, Removed [Show more] Type: Subroutine Category: Maths (Arithmetic) Summary: Calculate (A P) = |A| * Q
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file

Do the following multiplication of a sign-magnitude 8-bit number P with an unsigned number Q: (A P) = |A| * Q
\ --- Mod: Code removed for Elite-A: ------------------> \.MLU2 \ \ AND #%01111111 \ Clear the sign bit in P, so P = |A| \ STA P \ \ \ Fall through into MULTU to calculate: \ \ \ \ (A P) = P * Q \ \ = |A| * Q \ --- End of removed code ----------------------------->