ORG &0900 .K% SKIP NOSH * NI% \ Ship data blocks and ship line heap \ \ [Show more]Name: K% [Show more] Type: Workspace Address: &0900 to &0ABB Category: Workspaces Summary: Ship data blocks and ship line heaps Deep dive: Ship data blocks The local bubble of universeContext: See this workspace in context in the source code Variations: See code variations for this workspace in the different versions References: This workspace is used as follows: * SPS3 uses K% * UNIV uses K%
Contains ship data for all the ships, planets, suns and space stations in our local bubble of universe, along with their corresponding ship line heaps. The blocks are pointed to by the lookup table at location UNIV. The first 444 bytes of the K% workspace hold ship data on up to 12 ships, with 37 (NI%) bytes per ship, and the ship line heap grows downwards from WP at the end of the K% workspace. See the deep dive on "Ship data blocks" for details on ship data blocks, and the deep dive on "The local bubble of universe" for details of how Elite stores the local universe in K%, FRIN and UNIV.
[X]
Configuration variable NI% = 37
The number of bytes in each ship's data block (as stored in INWK and K%)
[X]
Configuration variable NOSH = 12
The maximum number of ships in our local bubble of universe