s_noticeCaseIndexF
global · objectlayer
- Address
0x5e4e20· 67 bytes, up to0x5e4e62- Type
uint8_t[67]- Meaning
- Maps a notice opcode minus 0x2eb to a case of 0x5e4e0c
- Confidence
- verified, proof one
- Finding
- objectlayer/playermessages#the-notice-handler
Finding: The notice handler in objectlayer: player messages
0x5e38c0 handles 43 opcodes in a tree of comparisons and six indexed switch tables. Each case
returns 1 and an unknown opcode returns 0. One case, for 0x32d, is dead: no code registers 0x32d.
| range | bytes | cases | bound |
|---|---|---|---|
| 0x1b to 0x113 | 0x5e4b10 | 0x5e4af8 | value − 0x1b, cmp 0xf8 |
| 0x155 to 0x16e | 0x5e4c24 | 0x5e4c0c | value − 0x155, cmp 0x19 |
| 0x178 to 0x1c9 | 0x5e4c6c | 0x5e4c40 | value − 0x178, cmp 0x51 |
| 0x1d5 to 0x219 | 0x5e4ce8 | 0x5e4cc0 | value − 0x1d5, cmp 0x44 |
| 0x21e to 0x2a9 | 0x5e4d5c | 0x5e4d44 | value − 0x21e, cmp 0x8b |
| 0x2eb to 0x32d | 0x5e4e20 | 0x5e4e0c | value − 0x2eb, cmp 0x42 |
The derivation is in the doc.