Skip to navigation

Elite on the BBC Micro

Utility routines: SCALEY2

[BBC Master version]

Name: SCALEY2 [Show more] Type: Subroutine Category: Utility routines Summary: Scale the y-coordinate in A
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TT105 calls SCALEY2 * TT14 calls SCALEY2 * TT23 calls SCALEY2

This routine (and the related SCALEY and SCALEX routines) are called from various places in the code to scale the value in A. This scaling can be changed by changing these routines (for example, by changing an RTS to an LSR A). This code is left over from the conversion to other platforms, where the scale factor might need to be different.
.SCALEY2 RTS \ Return from the subroutine