benilla-re systems structs docs

AddToHistory

function · console · primitive

Address
0x641af0 · 42 bytes, up to 0x641b19
Signature
void __fastcall (const char *text)
Meaning
Copies a line into the history ring at the write index and advances the index
Confidence
verified, proof one
Name from
the community database (idb)
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.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.