We're looking for your comments on how to best organize the wiki's content.
Generic clock
From 0x10c Wiki
(Redirected from Generic Clock)
[edit] Hardware details
| Name | Generic Clock |
| ID | 0x12d0b402 |
| Version | 1 |
| Manufacturer | Unknown |
[edit] Interrupts
The Generic Clock can perform three interrupts depending on the value of the A register:
| A | Behavior |
|---|---|
| 0 | The B register is read, and the clock will tick 60/B times per second. If B is 0, the clock is turned off. |
| 1 | Store number of ticks elapsed since last call to 0 in C register. |
| 2 | If register B is non-zero, turn on interrupts with message B. If B is zero, disable interrupts. |
When interrupts are enabled, the clock will trigger an interrupt whenever it ticks.
[edit] External Links and References
- Official specification document: http://dcpu.com/clock/
| ||||||||

