Skip to navigation

Elite on the BBC Micro

Maths (Arithmetic): GCASH [Disc version, Docked]

Name: GCASH [Show more] Type: Subroutine Category: Maths (Arithmetic) Summary: Calculate (Y X) = P * Q * 4
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TT210 calls GCASH * TT219 calls GCASH

Calculate the following multiplication of unsigned 8-bit numbers: (Y X) = P * Q * 4
.GCASH JSR MULTU \ Call MULTU to calculate (A P) = P * Q