ORG $0600 .K% CLEAR K%, $0800 ; The ship data blocks share memory with the X1TB, Y1TB ; and X2TB variables (for use in the scroll text), so we ; need to clear this block of memory to prevent BeebAsm ; from complaining ; ; [Show more]Name: K% [Show more] Type: Workspace Address: $0600 to $074F Category: Workspaces Summary: Ship data blocks Deep dive: Ship data blocks The local bubble of universeContext: See this workspace in context in the source code References: This workspace is used as follows: * ANGRY uses K% * BEGIN uses K% * CheckJumpSafety uses K% * ChooseLanguage uses K% * DCS1 uses K% * DOEXP uses K% * DrawExplosionBurst uses K% * DrawTitleScreen uses K% * Main flight loop (Part 1 of 16) uses K% * Main flight loop (Part 9 of 16) uses K% * Main flight loop (Part 14 of 16) uses K% * Main game loop (Part 2 of 6) uses K% * Main game loop (Part 4 of 6) uses K% * MAS2 uses K% * MAS3 uses K% * PlayDemo uses K% * SetupDemoUniverse uses K% * SPS3 uses K% * SPS4 uses K% * TAS4 uses K% * UNIV uses K% * VCSU1 uses K%
Contains ship data for all the ships, planets, suns and space stations in our local bubble of universe. The blocks are pointed to by the lookup table at location UNIV. The first 336 bytes of the K% workspace hold ship data on up to 8 ships, with 42 (NIK%) bytes per ship.; ; This variable is used by the following: ; ; * ANGRY ; * BEGIN ; * CheckJumpSafety ; * ChooseLanguage ; * DCS1 ; * DOEXP ; * DrawExplosionBurst ; * DrawTitleScreen ; * Main flight loop (Part 1 of 16) ; * Main flight loop (Part 9 of 16) ; * Main flight loop (Part 14 of 16) ; * Main game loop (Part 2 of 6) ; * Main game loop (Part 4 of 6) ; * MAS2 ; * MAS3 ; * PlayDemo ; * SetupDemoUniverse ; * SPS3 ; * SPS4 ; * TAS4 ; * UNIV ; * VCSU1 ; ; 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 aboveSKIP NOSH * NIK% ; Ship data blocks PRINT "K% workspace from ", ~K%, "to ", ~P%-1, "inclusive"
[X]
Configuration variable NIK% = 42
The number of bytes in each block in K% (as each block contains four extra bytes)
[X]
Configuration variable NOSH = 8
The maximum number of ships in our local bubble of universe