.CopyTempToPoint LDA xTemp1Lo \ Set point X's x-coordinate to (xTemp1Hi xTemp1Lo) STA xPointLo,X LDA xTemp1Hi STA xPointHi,X LDA yTemp1Lo \ Set point X's y-coordinate to (yTemp1Hi yTemp1Lo) STA yPointLo,X LDA yTemp1Hi STA yPointHi,X LDA zTemp1Lo \ Set point X's z-coordinate to (zTemp1Hi zTemp1Lo) STA zPointLo,X LDA zTemp1Hi STA zPointHi,X RTS \ Return from the subroutine EQUB &00, &49, &60 \ These bytes appear to be unused, and simply repeat the \ last three bytes from above (i.e. the last two bytes \ of STA zPointHi,X and the RTS instruction)Name: CopyTempToPoint [Show more] Type: Subroutine Category: Utility routines Summary: Set a specified point to (xTemp1, yTemp1, zTemp1)Context: See this subroutine in context in the source code References: This subroutine is called as follows: * FireGuns calls CopyTempToPoint
Arguments: X The ID of the point to set to (xTemp1, yTemp1, zTemp1)
[X]
Variable xPointHi (category: 3D geometry)
High byte of the x-coordinate for a point
[X]
Variable xPointLo in workspace Main variable workspace
The low byte of the x-coordinate for the point with ID X is at xPointLo,X
[X]
Variable xTemp1Hi in workspace Main variable workspace
The high byte of the xTemp1 temporary variable
[X]
Variable xTemp1Lo in workspace Main variable workspace
The low byte of the xTemp1 temporary variable
[X]
Variable yPointHi in workspace Main variable workspace
The high byte of the y-coordinate for the point with ID X is at yPointHi,X
[X]
Variable yPointLo in workspace Main variable workspace
The low byte of the y-coordinate for the point with ID X is at yPointLo,X
[X]
Variable yTemp1Hi in workspace Main variable workspace
The high byte of the yTemp1 temporary variable
[X]
Variable yTemp1Lo in workspace Main variable workspace
The low byte of the yTemp1 temporary variable
[X]
Variable zPointHi (category: 3D geometry)
High byte of the z-coordinate for a point
[X]
Variable zPointLo in workspace Main variable workspace
The low byte of the z-coordinate for the point with ID X is at zPointLo,X
[X]
Variable zTemp1Hi in workspace Main variable workspace
The high byte of the zTemp1 temporary variable
[X]
Variable zTemp1Lo in workspace Main variable workspace
The low byte of the zTemp1 temporary variable