s_switchIndex61d784
global · objectlayer
- Address
0x61d784· 11 bytes, up to0x61d78e- Type
uint8_t[11]- Meaning
- Maps the switch value of 0x61d720 to its case in 0x61d76c
- Confidence
- verified, proof one
- Finding
- objectlayer/overview#indexed-switch-tables
Finding: Indexed switch tables in objectlayer: overview
Seven switches read a byte table first, which maps the switch value to a case of the dword table just before it. The byte table's length is the bounds check plus one; the dword table has as many entries as the byte table's largest value plus one, which is also the gap between the two.
The derivation is in the doc.