benilla-re systems structs docs

s_netSquareBase

global · net

Address
0x80906c · 4 bytes, up to 0x80906f
Type
const float
Meaning
Holds 10.0, the operand the net layout file squares at start-up
Confidence
verified, proof one
Finding
net/layout#static-initializers

Finding: Static initializers in net: layout

The 276 initializers are each a thunk, a jmp or a call five bytes long, and a body at the next 16-byte boundary. 266 bodies store one value in a global: most a float computed from constants (a square, a quotient, a doubling), the rest a copied dword or a counter. 300 of the 319 globals they write are read nowhere else. The others build the command tables of ClientLink (0x5b87b0) and ServerLink (0x5b88a0), list heads, the network globals, and the random pool (login). The 13 counters add 1 to 0xc2a3c4, calling the empty 0x5b71c0 at 1; the exit functions their thunks register subtract 1, calling the empty 0x5b71d0 at 0. 0x5aa2b0, registered alike, sets bit 0 of 0xc27d50.

The derivation is in the doc.