Skip to navigation

Elite on the BBC Micro and NES

Universe: UNIV

[NES version, Bank 7]

Name: UNIV [Show more] Type: Variable Category: Universe Summary: Table of pointers to the local universe's ship data blocks Deep dive: The local bubble of universe
Context: See this variable in context in the source code References: This variable is used as follows: * GINF uses UNIV * KILLSHP uses UNIV * KS2 uses UNIV * TACTICS (Part 1 of 7) uses UNIV

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. Note that in the NES version, there are four extra bytes at the end of each K% block that don't form part of the core ship block, so each ship in K% contains NIK% = NI% + 4 bytes, rather than NI%.
.UNIV FOR I%, 0, NOSH EQUW K% + I% * NIK% ; Address of block no. I%, of size NIK%, in workspace K% NEXT