Skip to content

Commit

Permalink
no direct distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
0xabad1dea committed May 2, 2012
1 parent 7cd54fb commit c8c1a4a
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions MOJANG/clock.txt
@@ -1,17 +1 @@
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.
http://dcpu.com/highnerd/rc_1/clock.txt

0 comments on commit c8c1a4a

Please sign in to comment.