aboutsummaryrefslogtreecommitdiff
path: root/doc/clock.txt
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-04-25 23:15:02 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-04-25 23:15:02 +0000
commit4e946e3c1783e48133b861ee5542c88647d1eb6d (patch)
tree9d43acd11ae5981395f5c8abc86e0166a0527f8e /doc/clock.txt
parentbb6cb77863e2b6d0e84c698b5b0530d86b6f985c (diff)
move docs to doc/
Diffstat (limited to 'doc/clock.txt')
-rw-r--r--doc/clock.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/clock.txt b/doc/clock.txt
new file mode 100644
index 0000000..71bbc8b
--- /dev/null
+++ b/doc/clock.txt
@@ -0,0 +1,17 @@
+Name: Generic Clock (compatible)
+ID: 0x12d0b402
+Version: 1
+
+Interrupts do different things depending on contents 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.