Skip to navigation

Workspaces: Main variable workspace (Part 4 of 4)

Name: Main variable workspace (Part 4 of 4) [Show more] Type: Workspace Address: &08D0 to &0AFF Category: Workspaces Summary: The main block of game variables
Context: See this workspace in context in the source code References: No direct references to this workspace in this source file
ORG &08D0 \ Set the assembly address to &08D0 .objectSegmentLo SKIP 24 \ Low byte of each object's segment, i.e. its position \ around on the track \ \ Segment 0 is on the starting line, and segment numbers \ go from 0 to trackLength as we move along the track, \ before wrapping back to zero again at the end of the \ lap \ \ Set to the value of trackStartLine in ResetVariables \ \ The Silverstone track has a total of 1024 segments \ \ Stored as a 16-bit value objectSegment(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * CompareSegments \ * MoveObjectBack \ * MoveObjectForward \ * PlaceCarsOnTrack \ * ResetVariables \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.objectSegmentHi SKIP 24 \ High byte of each object's segment, i.e. its position \ around on the track \ \ Segment 0 is on the starting line, and segment numbers \ go from 0 to trackLength as we move along the track, \ before wrapping back to zero again at the end of the \ lap \ \ Set to the value of trackStartLine in ResetVariables \ \ The Silverstone track has a total of 1024 segments \ \ Stored as a 16-bit value objectSegment(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * CompareSegments \ * MoveObjectBack \ * MoveObjectForward \ * PlaceCarsOnTrack \ * ResetVariables \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.xSegmentCoordILo SKIP 1 \ The low byte of the 3D x-coordinate for an inner track \ segment in the track segment buffer \ \ Stored as a 16-bit value xSegmentCoordI(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * AddVectors \ * BuildCarObjects (Part 1 of 3) \ * GetObjYawAngle (Part 1 of 4) \ * GetSectionCoord \ * GetSegmentAngles (Part 2 of 3) \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.ySegmentCoordILo SKIP 1 \ The low byte of the 3D y-coordinate for an inner track \ segment in the track segment buffer \ \ Stored as a 16-bit value ySegmentCoordI(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * AddVectors \ * ApplyElevation (Part 5 of 5) \ * CopySectionData \ * GetObjPitchAngle \ * GetSectionCoord \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.zSegmentCoordILo SKIP 1 \ The low byte of the 3D z-coordinate for an inner track \ segment in the track segment buffer \ \ Stored as a 16-bit value zSegmentCoordI(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * AddVectors \ * GetObjYawAngle (Part 1 of 4) \ * GetSectionCoord \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
SKIP 39 * 3 \ The track segment buffer contains data for 40 track \ segments, with three bytes per segment, so this \ reserves space for the other 39 .xSegmentCoordOLo SKIP 1 \ The low byte of the 3D x-coordinate for an outer track \ segment in the track segment buffer \ \ Stored as a 16-bit value xSegmentCoordO(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetSectionCoords \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.ySegmentCoordOLo SKIP 1 \ The low byte of the 3D y-coordinate for an outer track \ segment in the track segment buffer \ \ Stored as a 16-bit value ySegmentCoordO(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * CopySectionData \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.zSegmentCoordOLo SKIP 1 \ The low byte of the 3D z-coordinate for an outer track \ segment in the track segment buffer \ \ Stored as a 16-bit value zSegmentCoordO(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetSectionCoords \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
SKIP 39 * 3 \ The track segment buffer contains data for 40 track \ segments, with three bytes per segment, so this \ reserves space for the other 39 SKIP 4 \ These bytes appear to be unused .xHelmetCoordLo SKIP 1 \ Low byte of the x-coordinate of the body/helmet object \ in the four-object car \ \ Stored as a 16-bit value xHelmetCoord(Hi Lo) .yHelmetCoordLo SKIP 1 \ Low byte of the y-coordinate of the body/helmet object \ in the four-object car \ \ Stored as a 16-bit value yHelmetCoord(Hi Lo) .zHelmetCoordLo SKIP 1 \ Low byte of the z-coordinate of the body/helmet object \ in the four-object car \ \ Stored as a 16-bit value zHelmetCoord(Hi Lo) SKIP 3 \ These bytes appear to be unused .xCoord1Lo SKIP 1 \ The low byte of the x-coordinate of the temporary \ coordinate variable (xCoord1, yCoord1, zCoord1) \ \ Stored as a 16-bit value xCoord1(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetSegmentAngles (Part 2 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.yCoord1Lo SKIP 1 \ The low byte of the y-coordinate of the temporary \ coordinate variable (xCoord1, yCoord1, zCoord1) \ \ Stored as a 16-bit value yCoord1(Hi Lo) .zCoord1Lo SKIP 1 \ The low byte of the z-coordinate of the temporary \ coordinate variable (xCoord1, yCoord1, zCoord1) \ \ Stored as a 16-bit value zCoord1(Hi Lo) .xCoord2Lo SKIP 1 \ The low byte of the x-coordinate of the temporary \ coordinate variable (xCoord2, yCoord2, zCoord2) \ \ Stored as a 16-bit value xCoord2(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * BuildCarObjects (Part 1 of 3) \ * BuildCarObjects (Part 2 of 3) \ * BuildPlayerCar \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.yCoord2Lo SKIP 1 \ The low byte of the y-coordinate of the temporary \ coordinate variable (xCoord2, yCoord2, zCoord2) \ \ Stored as a 16-bit value yCoord2(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * BuildCarObjects (Part 2 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.zCoord2Lo SKIP 1 \ The low byte of the z-coordinate of the temporary \ coordinate variable (xCoord2, yCoord2, zCoord2) \ \ Stored as a 16-bit value zCoord2(Hi Lo) .xSegmentCoordIHi SKIP 1 \ The high byte of the 3D x-coordinate for an inner \ track segment in the track segment buffer \ \ Stored as a 16-bit value xSegmentCoordI(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * AddVectors \ * BuildCarObjects (Part 1 of 3) \ * GetObjYawAngle (Part 1 of 4) \ * GetSectionCoord \ * GetSegmentAngles (Part 2 of 3) \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.ySegmentCoordIHi SKIP 1 \ The high byte of the 3D y-coordinate for an inner \ track segment in the track segment buffer \ \ Stored as a 16-bit value ySegmentCoordI(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * AddVectors \ * ApplyElevation (Part 5 of 5) \ * CopySectionData \ * GetObjPitchAngle \ * GetSectionCoord \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.zSegmentCoordIHi SKIP 1 \ The high byte of the 3D z-coordinate for an inner \ track segment in the track segment buffer \ \ Stored as a 16-bit value zSegmentCoordI(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * AddVectors \ * GetObjYawAngle (Part 1 of 4) \ * GetSectionCoord \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
SKIP 39 * 3 \ The track segment buffer contains data for 40 track \ segments, with three bytes per segment, so this \ reserves space for the other 39 .xSegmentCoordOHi SKIP 1 \ The high byte of the 3D x-coordinate for an outer \ track segment in the track segment buffer \ \ Stored as a 16-bit value xSegmentCoordO(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetSectionCoords \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.ySegmentCoordOHi SKIP 1 \ The high byte of the 3D y-coordinate for an outer \ track segment in the track segment buffer \ \ Stored as a 16-bit value ySegmentCoordO(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * CopySectionData \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.zSegmentCoordOHi SKIP 1 \ The high byte of the 3D z-coordinate for an outer \ track segment in the track segment buffer \ \ Stored as a 16-bit value zSegmentCoordO(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetSectionCoords \ * GetTrackSegment (Part 3 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
SKIP 39 * 3 \ The track segment buffer contains data for 40 track \ segments, with three bytes per segment, so this \ reserves space for the other 39 SKIP 4 \ These bytes appear to be unused .xHelmetCoordHi SKIP 1 \ High byte of the x-coordinate of the body/helmet \ object in the four-object car \ \ Stored as a 16-bit value xHelmetCoord(Hi Lo) .yHelmetCoordHi SKIP 1 \ High byte of the y-coordinate of the body/helmet \ object in the four-object car \ \ Stored as a 16-bit value yHelmetCoord(Hi Lo) .zHelmetCoordHi SKIP 1 \ High byte of the z-coordinate of the body/helmet \ object in the four-object car \ \ Stored as a 16-bit value yHelmetCoord(Hi Lo) SKIP 3 \ These bytes appear to be unused .xCoord1Hi SKIP 1 \ The high byte of the x-coordinate of the temporary \ coordinate variable (xCoord1, yCoord1, zCoord1) \ \ Stored as a 16-bit value xCoord1(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetSegmentAngles (Part 2 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.yCoord1Hi SKIP 1 \ The high byte of the y-coordinate of the temporary \ coordinate variable (xCoord1, yCoord1, zCoord1) \ \ Stored as a 16-bit value yCoord1(Hi Lo) .zCoord1Hi SKIP 1 \ The high byte of the z-coordinate of the temporary \ coordinate variable (xCoord1, yCoord1, zCoord1) \ \ Stored as a 16-bit value zCoord1(Hi Lo) .xCoord2Hi SKIP 1 \ The high byte of the x-coordinate of the temporary \ coordinate variable (xCoord2, yCoord2, zCoord2) \ \ Stored as a 16-bit value xCoord2(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * BuildCarObjects (Part 1 of 3) \ * BuildCarObjects (Part 2 of 3) \ * BuildPlayerCar \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.yCoord2Hi SKIP 1 \ The high byte of the y-coordinate of the temporary \ coordinate variable (xCoord2, yCoord2, zCoord2) \ \ Stored as a 16-bit value yCoord2(Hi Lo) \ \ [Show more]
\ \ This variable is used by the following: \ \ * BuildCarObjects (Part 2 of 3) \ \ This list only includes code that refers to the \ variable by name; there may be other references to \ this memory location that don't use this label, and \ these will not be mentioned above
.zCoord2Hi SKIP 1 \ The high byte of the z-coordinate of the temporary \ coordinate variable (xCoord2, yCoord2, zCoord2) \ \ Stored as a 16-bit value zCoord2(Hi Lo)