s_sysMsgSelected
global · sysmsg
- Address
0x835930· 4 bytes, up to0x835933- Type
int32_t- Meaning
- Holds the selector, -1 at start-up
- Confidence
- verified, proof one
- Finding
- sysmsg#display-switch-and-window
Finding: Display switch and window in sysmsg
Four globals hold the console's choices: the switch 0x835928, the window low 0xb05d30 and
high 0x83592c, and the selector 0x835930. 0x44cd10, called once from 0x402ad0, sets
them to 1, 0, 3 and −1. Setting the low bound raises the high to it when below; setting the high
lowers the low to it when above (0x44cc20, 0x44cc40). 0x44cd40 clears the switch and
tail-calls 0x44cd60, a ret; it is the tail jump of DestroyClientSystems (0x4036c0). The
console handlers 0x402f60 and 0x4030b0 call the window setters only for values 0 to 3
(0x402f6e, 0x402f73, 0x4030be, 0x4030c3). The getters 0x44cc60, 0x44cc70 and
0x44cc90 have one caller each; 0x44cc10 and 0x44cd50 have none.
The derivation is in the doc.