benilla-re systems structs docs

MinimapTileOffsets

function · ui · primitive

Address
0x4ead90 · 113 bytes, up to 0x4eae00
Meaning
Writes the difference of a value and a table's pair to a float, doubling it, for the minimap
Confidence
verified, proof one
Finding
ui/minimap#two-small-helpers
Test
ui::geo_4ead90, ui::geo_4eb910

Finding: Two small helpers in ui: Minimap, the widget

0x4ef370 stores its four float arguments in order in a 16-byte record and returns it. 0x4ead90(out, i, a, b, c, d) takes the pair of floats t0 and t1 of record i of a table of 24-byte records and writes out[0] = 2·(a − t1), out[1] = 2·(b − t0), out[2] = 2·(c − t1) and out[3] = 2·(d − t0). The rounding is uneven: outputs 0 and 3 are doubled from a difference rounded to float, outputs 1 and 2 from one held in a register.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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