Skip to navigation

Workspaces: Stack variables

Name: Stack variables [Show more] Type: Workspace Address: &0100 to &01BF Category: Workspaces Summary: Variables that share page 1 with the stack
Context: See this workspace in context in the source code References: No direct references to this workspace in this source file
ORG &0100 \ Set the assembly address to &0100 .objectFlags SKIP 64 \ Object flags for up to 64 objects \ \ * Bits 0-5 = the number of the object beneath this \ one, if bit 6 is set (0 to 63) \ \ * Bit 6 = is this object stacked on top of another \ object? \ \ * Clear = no \ \ * Set = this object is on top of another object \ and the number of the object beneath \ this one is in bits 0-5 \ \ * Bit 7 = has this object number been allocated to \ an object or is it unused? \ \ * Clear = this object number has been allocated \ to an object \ \ * Set = this object number is unused \ \ [Show more]
\ \ This variable is used by the following: \ \ * ApplyEnemyTactics \ * ApplyTactics (Part 2 of 8) \ * CheckEnemyGaze (Part 1 of 2) \ * CheckSecretCode (Part 1 of 2) \ * CheckSecretCode (Part 2 of 2) \ * DeleteObject \ * DrawObjectStack \ * FindObjectToDrain \ * GetPlayerDrain \ * GetTileAltitude \ * GetTileViewAngles (Part 3 of 4) \ * PlaceObjectOnTile \ * ProcessActionKeys (Part 2 of 2) \ * ResetTilesObjects \ * ScanForMeanieTree \ * SetPlayerIsOnTower \ * SpawnObject \ \ 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
.objectPitchAngle SKIP 64 \ The pitch angle for each object (i.e. the vertical \ direction in which they are facing) \ \ [Show more]
\ \ This variable is used by the following: \ \ * DrawTitleView \ * GetPitchAngleDelta \ * GetSightsVector \ * MoveSightsUpDown \ * PanLandscapeView \ * PlaceObjectOnTile \ * SpawnTitleObject \ \ 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
.tileViewData SKIP 0 \ The tile data for tiles in the current landscape view \ \ This variable shares the same memory location as \ oddVisibility and evenVisibility \ \ [Show more]
\ \ This variable is used by the following: \ \ * DrawTileAndObjects \ * GetTileViewAngles (Part 2 of 4) \ * GetTileViewAngles (Part 3 of 4) \ \ 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
.oddVisibility SKIP 32 \ The visibility of tiles corners in odd rows as they \ are processed by the GetRowVisibility routine \ \ * 0 = tile corner is not visible \ \ * &FF = tile corner is visible \ \ This variable shares the same memory location as \ tileViewData \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetRowVisibility (Part 2 of 2) \ * GetTileVisibility \ \ 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
.evenVisibility SKIP 32 \ The visibility of tiles corners in even rows as they \ are processed by the GetRowVisibility routine \ \ * 0 = tile corner is not visible \ \ * &FF = tile corner is visible \ \ This variable shares the same memory location as \ tileViewData \ \ [Show more]
\ \ This variable is used by the following: \ \ * GetTileVisibility \ \ 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