benilla-re systems structs docs

s_historyHead

global · console

Address
0xc518a0 · 4 bytes, up to 0xc518a3
Type
uint32_t
Meaning
Holds the index of the next history slot to write
Confidence
verified, proof one
Finding
console/commands#history

Finding: History in console: commands

The history is a ring of 32 lines of 0x50 bytes at 0xc4ee48 and a write index 0xc518a0. Adding a line copies at most 0x50 bytes into the slot at the index and advances it. Entry i counts back from the newest: ring + 0x50·((index − i − 1) & 0x1f). The input line walks it with Up and Down (screen#input-line).

The derivation is in the doc.