benilla-re systems structs docs

s_noticeCaseIndexF

global · objectlayer

Address
0x5e4e20 · 67 bytes, up to 0x5e4e62
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.

rangebytescasesbound
0x1b to 0x1130x5e4b100x5e4af8value − 0x1b, cmp 0xf8
0x155 to 0x16e0x5e4c240x5e4c0cvalue − 0x155, cmp 0x19
0x178 to 0x1c90x5e4c6c0x5e4c40value − 0x178, cmp 0x51
0x1d5 to 0x2190x5e4ce80x5e4cc0value − 0x1d5, cmp 0x44
0x21e to 0x2a90x5e4d5c0x5e4d44value − 0x21e, cmp 0x8b
0x2eb to 0x32d0x5e4e200x5e4e0cvalue − 0x2eb, cmp 0x42

The derivation is in the doc.