ORG &0E00 .WP SKIP 0 \ The start of the WP workspace .LSX SKIP 0 \ LSX is an alias that points to the first byte of the \ sun line heap at LSO \ \ * &FF indicates the sun line heap is empty \ \ * Otherwise the LSO heap contains the line data for \ the sun .LSO SKIP 1 \ The ship line heap for the space station (see NWSPS) \ and the sun line heap (see SUN) \ \ The spaces can be shared as our local bubble of \ universe can support either the sun or a space \ station, but not both .BUF SKIP 191 \ The line buffer used by DASC to print justified text \ \ This buffer shares space with the LSO buffer, which \ works because neither the sun or space station are \ shown at the same time as printing justified text .LSX2 SKIP 78 \ The ball line heap for storing x-coordinates (see the \ deep dive on "The ball line heap" for details) .LSY2 SKIP 78 \ The ball line heap for storing y-coordinates (see the \ deep dive on "The ball line heap" for details) .SX SKIP NOST + 1 \ This is where we store the x_hi coordinates for all \ the stardust particles .SXL SKIP NOST + 1 \ This is where we store the x_lo coordinates for all \ the stardust particles .SY SKIP NOST + 1 \ This is where we store the y_hi coordinates for all \ the stardust particles .SYL SKIP NOST + 1 \ This is where we store the y_lo coordinates for all \ the stardust particles .SZ SKIP NOST + 1 \ This is where we store the z_hi coordinates for all \ the stardust particles .SZL SKIP NOST + 1 \ This is where we store the z_lo coordinates for all \ the stardust particles .LASX SKIP 1 \ The x-coordinate of the tip of the laser line .LASY SKIP 1 \ The y-coordinate of the tip of the laser line .XX24 SKIP 1 \ This byte appears to be unused .ALTIT SKIP 1 \ Our altitude above the surface of the planet or sun \ \ * 255 = we are a long way above the surface \ \ * 1-254 = our altitude as the square root of: \ \ x_hi^2 + y_hi^2 + z_hi^2 - 6^2 \ \ where our ship is at the origin, the centre of the \ planet/sun is at (x_hi, y_hi, z_hi), and the \ radius of the planet/sun is 6 \ \ * 0 = we have crashed into the surface .CPIR SKIP 1 \ A counter used when spawning pirates, to work our way \ through the list of pirate ship blueprints until we \ find one that has been loaded PRINT "WP workspace from ", ~WP," to ", ~P%Name: WP [Show more] Type: Workspace Address: &0E00 to &0E3B Category: Workspaces Summary: VariablesContext: See this workspace in context in the source code Variations: See code variations for this workspace in the different versions References: No direct references to this workspace in this source file
[X]
Configuration variable: NOST = 18
The number of stardust particles in normal space (this goes down to 3 in witchspace)