benilla-re systems structs docs

s_heapNodeVtable

global · core

Address
0x801368 · 4 bytes, up to 0x80136b
Type
void *[1]
Meaning
Holds the heap node vtable: the comparator 0x422970
Confidence
verified, proof two
Finding
core/loop#scheduler-heap

Finding: Scheduler heap in core: the frame loop

Each slot keeps its contexts in a binary min-heap ordered by due time, compared as (int32)(a − b) ≤ 0, so due times may wrap. Taking the root moves the last element down, choosing the right child when it is not later than the left. Timers use the same heap code and comparator.

The derivation is in the doc.