.CopySectionData LDA ySegmentCoordILo,X \ Copy the following 16-bit coordinate: STA ySegmentCoordOLo,X \ \ * The X-th ySegmentCoordI to the X-th ySegmentCoordO \ \ starting with the low byte LDA ySegmentCoordIHi,X \ And then the high byte STA ySegmentCoordOHi,X RTS \ Return from the subroutineName: CopySectionData [Show more] Type: Subroutine Category: Track geometry Summary: Copy a 16-bit y-coordinate from the track section data Deep dive: Building a 3D track from sections and segmentsContext: See this subroutine in context in the source code References: This subroutine is called as follows: * GetTrackSegment (Part 3 of 3) calls CopySectionData
Arguments: X Copy X-th (ySegmentCoordIHi ySegmentCoordILo) to (ySegmentCoordOHi ySegmentCoordOLo)
[X]
Variable ySegmentCoordIHi in workspace Main variable workspace
The high byte of the 3D y-coordinate for an inner track segment in the track segment buffer
[X]
Variable ySegmentCoordILo in workspace Main variable workspace
The low byte of the 3D y-coordinate for an inner track segment in the track segment buffer
[X]
Variable ySegmentCoordOHi in workspace Main variable workspace
The high byte of the 3D y-coordinate for an outer track segment in the track segment buffer
[X]
Variable ySegmentCoordOLo in workspace Main variable workspace
The low byte of the 3D y-coordinate for an outer track segment in the track segment buffer