Skip to navigation

Aviator on the BBC Micro

Workspaces: Zero page

Name: Zero page [Show more] Type: Workspace Address: &0070 to &008F Category: Workspaces Summary: Mainly temporary variables that are used a lot
Context: See this workspace in context in the source code References: No direct references to this workspace in this source file
ORG &0070 .P SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .Q SKIP 1 \ Temporary storage, used in a number of places \ \ This is called DTIP in the original source code \ \ [Show more] .R SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * Add16x16Bit0 \ * AdjustRotation \ * AdjustVelocity \ * ApplyAerodynamics (Part 3 of 3) \ * ApplyFlightControl \ * ApplyFlightModel (Part 7 of 7) \ * ApplyTurnAndThrust (Part 2 of 2) \ * CheckIfAlienIsHit (Part 2 of 2) \ * ClearRows \ * ClipStartOfLine (Part 2 of 5) \ * ClipStartOfLine (Part 3 of 5) \ * ClipStartOfLine (Part 5 of 5) \ * DrawCanopy \ * DrawCanopyCorners \ * DrawCanopyLine (Part 1 of 9) \ * DrawCanopyLine (Part 3 of 9) \ * DrawCanopyLine (Part 8 of 9) \ * DrawCanopyLine (Part 9 of 9) \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 2 of 6) \ * DrawClippedLine (Part 4 of 6) \ * DrawClippedLine (Part 6 of 6) \ * DrawGunSights \ * DrawIndicatorLine \ * EraseCanopyLines \ * ExplodeAlien \ * FillCanopy \ * FillCanopyRows \ * GetHandVector \ * GetMoments \ * GetTrailVectorStep \ * Multiply16x16 \ * Multiply16x16Bit0 \ * Multiply16x16Mix \ * Multiply4x16 \ * Multiply8x16 \ * ProcessLanding (Part 6 of 7) \ * ProcessLanding (Part 7 of 7) \ * ProcessRunwayLine (Part 4 of 5) \ * ProjectAxisAngle \ * ProjectPoint (Part 1 of 3) \ * RemoveScore \ * ScaleByAltitude \ * ScaleFlightForces \ * ScaleUp \ * SetMatrices \ * SetMatrixEntry \ * SetObjPointCoords (Part 1 of 2) \ * SetObjPointCoords (Part 2 of 2) \ * SetPointCoords \ * SwapLinePoints \ * UpdateIndicator (Part 4 of 15) \ * UpdateIndicator (Part 11 of 15) \ * UpdateIndicator (Part 15 of 15) \ * UpdateRadarBlip \ \ 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
.S SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .T SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .U SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * ArtificialHorizon \ * ClipStartOfLine (Part 2 of 5) \ * ClipStartOfLine (Part 3 of 5) \ * Delay \ * DivideScaled \ * DrawCanopyLine (Part 1 of 9) \ * DrawCanopyLine (Part 3 of 9) \ * DrawCanopyLine (Part 4 of 9) \ * DrawCanopyLine (Part 8 of 9) \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 5 of 6) \ * DrawClippedLine (Part 6 of 6) \ * DrawFuelPixel \ * DrawIndicatorBar \ * DrawIndicatorLine \ * DrawJoystickCross \ * DrawVectorLine (Part 1 of 3) \ * DrawVectorLine (Part 2 of 3) \ * EraseCanopyLines \ * ExplodeAlien \ * GetRadarVector \ * Multiply4x16 \ * Multiply8x8 \ * UpdateAliens (Part 2 of 5) \ * UpdateIndicator (Part 4 of 15) \ \ 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
.V SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .W SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .G SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .H SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * Add16x16Bit0 \ * ApplyAerodynamics (Part 3 of 3) \ * ApplyTurnAndThrust (Part 2 of 2) \ * ClipBestEndOfLine \ * ClipStartOfLine (Part 4 of 5) \ * DrawCanopyLine (Part 8 of 9) \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 3 of 6) \ * DrawIndicatorBar \ * DrawIndicatorHand \ * DrawIndicatorLine \ * DrawJoystickCross \ * DrawOrthoLine \ * Multiply16x16 \ * Multiply16x16Bit0 \ * Multiply16x16Mix \ * SetMatrices \ * SetMatrixEntry \ * SetPointCoords \ * Sine16Bit \ * SwapLinePoints \ * UpdateIndicator (Part 11 of 15) \ * UpdateIndicator (Part 13 of 15) \ * UpdateIndicator (Part 15 of 15) \ \ 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
.I SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .J SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * Add16x16Bit0 \ * ApplyAerodynamics (Part 1 of 3) \ * ApplyAerodynamics (Part 2 of 3) \ * ApplyAerodynamics (Part 3 of 3) \ * ClipStartOfLine (Part 2 of 5) \ * ClipStartOfLine (Part 3 of 5) \ * DivideScaled \ * DrawCanopyLine (Part 2 of 9) \ * DrawCanopyLine (Part 6 of 9) \ * DrawCanopyLine (Part 7 of 9) \ * DrawCanopyLine (Part 8 of 9) \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 5 of 6) \ * DrawFuelPixel \ * DrawIndicatorLine \ * DrawOrthoLine \ * DrawRadarBlip \ * DrawVectorLine (Part 2 of 3) \ * DrawVectorLine (Part 3 of 3) \ * Multiply16x16 \ * Multiply16x16Mix \ * SetMatrices \ * SetMatrixEntry \ * SetPointCoords \ \ 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
.K SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * Add16x16Bit0 \ * ApplyAerodynamics (Part 3 of 3) \ * ArtificialHorizon \ * CheckObjDistance \ * ClipStartOfLine (Part 3 of 5) \ * ClipStartOfLine (Part 4 of 5) \ * DivideScaled \ * GetHandVector \ * MakeEngineSound \ * Multiply16x16Bit0 \ * Multiply16x16Mix \ * Multiply4x16 \ * ProjectAxisAngle \ * ProjectPoint (Part 2 of 3) \ * ResizeFeedingAlien \ * SetObjectCoords (Part 1 of 11) \ * SetObjectCoords (Part 2 of 11) \ * SetObjPointCoords (Part 1 of 2) \ * SetPointCoords \ * UpdateIndicator (Part 11 of 15) \ \ 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
.L SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * ApplyAerodynamics (Part 2 of 3) \ * ApplyFlightControl \ * ApplyFlightModel (Part 1 of 7) \ * ApplyFlightModel (Part 5 of 7) \ * ApplyTurnAndThrust (Part 2 of 2) \ * DrawCanopyView \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 4 of 6) \ * DrawHalfHorizon \ * ProcessHorizonLine \ * ProcessLanding (Part 1 of 7) \ * ProcessLanding (Part 3 of 7) \ * ProcessLine (Part 1 of 7) \ * ProcessLine (Part 7 of 7) \ * ProcessLinesToShow \ \ 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
.M SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * DrawCanopyView \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 4 of 6) \ * DrawHalfHorizon \ * ProcessHorizonLine \ * ProcessLine (Part 1 of 7) \ * ProcessLine (Part 7 of 7) \ * ProcessLinesToShow \ \ 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
.N SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * ClipStartOfLine (Part 3 of 5) \ * ClipStartOfLine (Part 4 of 5) \ * DrawFuelPixel \ * DrawIndicatorBar \ * DrawIndicatorLine \ * DrawJoystickCross \ * DrawOrthoLine \ * DrawRadarBlip \ * DrawVectorLine (Part 3 of 3) \ * ProcessLinesToShow \ * ProjectPoint (Part 1 of 3) \ * ProjectPoint (Part 3 of 3) \ * SetMatrixEntry \ * SetObjectCoords (Part 1 of 11) \ * SetObjectCoords (Part 3 of 11) \ \ 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
.PP SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * CheckAlienWeakSpot \ * CheckIfAlienIsHit (Part 1 of 2) \ * ClipStartOfLine (Part 3 of 5) \ * ClipStartOfLine (Part 4 of 5) \ * DrawVectorLine (Part 1 of 3) \ * DrawVectorLine (Part 2 of 3) \ * ProjectPoint (Part 1 of 3) \ * ProjectPoint (Part 2 of 3) \ * ScaleDown (Part 3 of 4) \ * SetObjPointCoords (Part 1 of 2) \ * SetPointCoords \ \ 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
.QQ SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * CheckIfAlienIsHit (Part 1 of 2) \ * ClipBestEndOfLine \ * ClipStartOfLine (Part 4 of 5) \ * ClipStartOfLine (Part 5 of 5) \ * DrawCanopyLine (Part 3 of 9) \ * DrawCanopyLine (Part 4 of 9) \ * DrawCanopyLine (Part 5 of 9) \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 3 of 6) \ * DrawVectorLine (Part 1 of 3) \ * DrawVectorLine (Part 2 of 3) \ * ProjectPoint (Part 1 of 3) \ * ProjectPoint (Part 2 of 3) \ * ProjectPoint (Part 3 of 3) \ * ScaleDown (Part 1 of 4) \ * ScaleDown (Part 3 of 4) \ * SetObjPointCoords (Part 1 of 2) \ * SetPointCoords \ * SwapLinePoints \ \ 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
.RR SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .SS SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more] .TT SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * ClipBestEndOfLine \ * ClipStartOfLine (Part 1 of 5) \ * ClipStartOfLine (Part 2 of 5) \ * ClipStartOfLine (Part 4 of 5) \ * DivideScaled \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 2 of 6) \ * DrawClippedLine (Part 4 of 6) \ * ProjectPoint (Part 2 of 3) \ * SetPointCoords \ * SwapLinePoints \ \ 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
.UU SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * ClipBestEndOfLine \ * ClipStartOfLine (Part 2 of 5) \ * ClipStartOfLine (Part 4 of 5) \ * DrawClippedLine (Part 1 of 6) \ * DrawClippedLine (Part 3 of 6) \ * DrawClippedLine (Part 4 of 6) \ * ProjectPoint (Part 2 of 3) \ * ScaleDown (Part 1 of 4) \ * ScaleUp \ * SetObjPointCoords (Part 1 of 2) \ * SetObjPointCoords (Part 2 of 2) \ * SetPointCoords \ * SwapLinePoints \ \ 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
.VV SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * ApplyAerodynamics (Part 3 of 3) \ * ApplyFlightControl \ * CheckIfAlienIsHit (Part 2 of 2) \ * ClipStartOfLine (Part 4 of 5) \ * DrawVectorLine (Part 1 of 3) \ * DrawVectorLine (Part 3 of 3) \ * GetMoments \ * Multiply8x16 \ * ProjectPoint (Part 2 of 3) \ * ScaleDown (Part 1 of 4) \ * ScaleFlightForces \ * SetObjPointCoords (Part 1 of 2) \ * SetPointCoords \ \ 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
.WW SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * CheckIfAlienIsHit (Part 2 of 2) \ * ClipStartOfLine (Part 2 of 5) \ * ClipStartOfLine (Part 3 of 5) \ * ClipStartOfLine (Part 5 of 5) \ * DrawIndicatorLine \ * ProjectPoint (Part 2 of 3) \ * ScaleDown (Part 1 of 4) \ * ScaleUp \ * UpdateIndicator (Part 1 of 15) \ \ 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
.GG SKIP 1 \ Temporary storage, used in a number of places \ \ This is called PP in the original source code \ \ [Show more]
\ \ This variable is used by the following: \ \ * ApplyFlightModel (Part 1 of 7) \ * ApplyFlightModel (Part 2 of 7) \ * ApplyFlightModel (Part 6 of 7) \ * FireGuns \ * ProcessHorizonLine \ * ProcessLine (Part 4 of 7) \ * ProcessLine (Part 6 of 7) \ * ProcessLine (Part 7 of 7) \ * ProcessLinesToShow \ * ProcessRunwayLine (Part 2 of 5) \ * ProjectPoint (Part 1 of 3) \ * ProjectPoint (Part 3 of 3) \ * SetObjectCoords (Part 3 of 11) \ * SetObjectCoords (Part 8 of 11) \ * SetObjPointCoords (Part 1 of 2) \ * SetObjPointCoords (Part 2 of 2) \ * SetPointCoords \ * UpdateBullets \ * UpdateRadarBlip \ \ 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
.HH SKIP 1 \ Temporary storage, used in a number of places \ \ [Show more]
\ \ This variable is used by the following: \ \ * ClipStartOfLine (Part 3 of 5) \ * ClipStartOfLine (Part 5 of 5) \ * ProcessLine (Part 7 of 7) \ * ShowOrHideLine \ * UpdateLinesToShow \ \ 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
.linesToShowEnd SKIP 1 \ The index of the first empty entry in the linesToShow \ list \ \ Set to 0 in ResetLineLists \ \ [Show more]
\ \ This variable is used by the following: \ \ * DrawCanopyView \ * MainLoop (Part 1 of 15) \ * ProcessLinesToShow \ * ResetLineLists \ * ShowOrHideLine \ * UpdateLinesToShow \ \ 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
.lineId SKIP 1 \ The line ID, used to pass lines to routines \ \ Line 0 is the horizon \ Lines 1-11 are the runway \ Lines 12-15 are bullets \ \ [Show more]
\ \ This variable is used by the following: \ \ * DrawCanopyView \ * ProcessLine (Part 1 of 7) \ * ProcessLine (Part 7 of 7) \ * ProcessLinesToHide \ * ProcessLinesToShow \ * ProcessRunwayLine (Part 1 of 5) \ * ProcessRunwayLine (Part 3 of 5) \ * ResetLineLists \ * ShowOrHideLine \ * UpdateLinesToShow \ \ 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
.lineCounter SKIP 1 \ Temporary storage, typically used to loop through \ lines \ \ [Show more]
\ \ This variable is used by the following: \ \ * DrawCanopyView \ * ProcessLinesToShow \ * UpdateLinesToShow \ \ 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
.linesToShowPointer SKIP 1 \ A pointer into the linesToShow list to keep track of \ where we have processed up to \ \ Set to 255 in ResetLineLists \ \ [Show more]
\ \ This variable is used by the following: \ \ * ProcessLinesToShow \ * ResetLineLists \ * ShowOrHideLine \ * UpdateLinesToShow \ \ 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
.linesToHidePointer SKIP 1 \ A pointer into the linesToHide list to keep track of \ where we have processed up to \ \ Set to 255 in ResetLineLists \ \ [Show more]
\ \ This variable is used by the following: \ \ * ProcessLinesToHide \ * ResetLineLists \ \ 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
.linesToHideEnd SKIP 1 \ The index of the last entry in the linesToHide list \ \ Set to 255 in ResetLineLists \ \ [Show more]
\ \ This variable is used by the following: \ \ * MainLoop (Part 1 of 15) \ * MainLoop (Part 15 of 15) \ * ProcessLinesToHide \ * ProcessLinesToShow \ * ResetLineLists \ * ShowOrHideLine \ * UpdateLinesToShow \ \ 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