s_playTimeDialogShown
global · ui
- Address
0xb4e368· 4 bytes, up to0xb4e36b- Type
uint32_t- Meaning
- Holds 1 once the poll has signalled the play-time dialog, 0 after an arm
- Confidence
- verified, proof one
- Finding
- ui/billing#the-play-time-poll
Finding: The play-time poll in ui: play time and the billing rest time
Each tick, while the deadline D is nonzero, the poll reads left and the minutes m above, and the flag byte's bit 3 (IGR). The steps run in this order:
| step | when | effect |
|---|---|---|
| first poll | line clock N is 0 | IGR: event 0x206 if m <= 600; else event 0x205 with m if m <= 30; either sets the latch L (L is not tested); N = now |
| line | N not 0, now - N >= 0 (signed), not IGR | a line if m <= 30; then D = 0 if now - D >= 0 (signed), else N = now + left % step, step 60000 when m <= 5, else 300000 |
| dialog | after the step above, every poll | IGR: event 0x206 if m <= 600 and L = 0; else event 0x205 with m if m <= 30 and L = 0; either sets L |
After its first poll an IGR plan never takes the line step, so its D and N stay as they are. The first poll never tests D.
The derivation is in the doc.