Skip to navigation

Revs on the BBC Micro

Extra tracks: Multiply80Percent

Name: Multiply80Percent [Show more] Type: Subroutine Category: Extra tracks Summary: Calculate (A T) = 0.80 * A
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * Hook80Percent calls Multiply80Percent
.Multiply80Percent STA U \ Set U = A LDA #205 \ Set A = 205 JMP Multiply8x8 \ Set (A T) = A * U \ = 205 * A \ \ returning from the subroutine using a tail call \ \ This calculates the following in A: \ \ A = (A T) / 256 \ = 205 * A / 256 \ = 0.80 * A