API docs / Open libraries / timer.device
API · Devicestimer.device jump table
Our open timer.device: 5 calls with the same LVOs and registers as AmigaOS 3.2's, checked against the NDK 3.2 .fd file.
timer.device's jump table, as OpenTimer builds it: LVO, call, registers, and after the # the call's core class (OPEN_LIBRARIES.md section 5). build-amiga.sh (with ../../libraries/common/check_fd.py) checks this against the NDK 3.2 timer_lib.fd (##bias 42) in the stove and stops on any difference; opentimer_dev.c's dev_vectors[] follows it line for line. Before them, the device vectors every device has (not in the .fd): -6 Open (a1 ioRequest, d0 unit, d1 flags) -12 Close (a1) -18 Expunge -24 Null -30 BeginIO (a1) -36 AbortIO (a1) BeginIO and AbortIO are anchored: the queues are the device's.
| LVO | Call | Registers | Notes |
|---|---|---|---|
| -42 | AddTime | a0, a1 | pure |
| -48 | SubTime | a0, a1 | pure |
| -54 | CmpTime | a0, a1 | pure |
| -60 | ReadEClock | a0 | anchored: the E-clock counter |
| -66 | GetSysTime | a0 | anchored: the system time and its last answer |