Skip to navigation

Elite on the BBC Micro

Maths (Arithmetic): MULT12 [Elite-A, Encyclopedia]

Name: MULT12 [Show more] Type: Subroutine Category: Maths (Arithmetic) Summary: Calculate (S R) = Q * A
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TIDY calls MULT12 * TIS3 calls MULT12

Calculate: (S R) = Q * A
.MULT12 JSR MULT1 \ Set (A P) = Q * A STA S \ Set (S R) = (A P) LDA P STA R RTS \ Return from the subroutine