Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
system_routines:interrupt_scheduler [2016/06/11 22:16] ex_writer [ACTINT] |
system_routines:interrupt_scheduler [2016/06/11 22:23] (current) ex_writer [CTIMER] |
||
---|---|---|---|
Line 30: | Line 30: | ||
ACTINT also calls TIMEX and TIMEY which decrement counters/timers. | ACTINT also calls TIMEX and TIMEY which decrement counters/timers. | ||
- | <wrap alert>Appears to call TIMEZ rather than TIMEX? STIMER calls TIMEX.</wrap> | + | <wrap alert>Appears to call TIMEZ rather than TIMEX? CTIMER calls TIMEX.</wrap> |
==== CTIMER ==== | ==== CTIMER ==== | ||
Line 37: | Line 37: | ||
| Calling Sequence: | <code z80>CALL CTIMER</code>| | | Calling Sequence: | <code z80>CALL CTIMER</code>| | ||
| Input: | HL = address of custom time base\\ B = value to load into time base 1 to 0 transition\\ C = counter mask as in [[interrupt scheduler#deccts|DECCTS]] | | | Input: | HL = address of custom time base\\ B = value to load into time base 1 to 0 transition\\ C = counter mask as in [[interrupt scheduler#deccts|DECCTS]] | | ||
- | | Description: | HL is loaded and decremented. If HL != 0, then a return is executed, otherwise, HL is loaded with B and [[interrupt scheduler#deccts|DECCTS]] is called.\\ \\ Registers HL, DE, BC, and AF are undefined upon exit. | | + | | Description: | Calls TIMEX, which decrements a time base in RAM (HL). If HL != 0, then a return is executed, otherwise, HL is loaded with B and [[interrupt scheduler#deccts|DECCTS]] is called.\\ \\ Registers HL, DE, BC, and AF are undefined upon exit. | |
==== BMUSIC ==== | ==== BMUSIC ==== |