332
K
A
DAK
AMX 86 Procedures
ajtmrd ajtmrd
Purpose Read the Current Value of an Interval Ti mer
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID timerid;
long tval;
.
.
tval = ajtmrd(timerid);
DX:CX DX
Where timerid is the timer id identifying the timer whose value is required.
tval is the timer value in system ticks.
Results Interrupts are disabled and then restored to their state at the time of the
call.
tval >= 0 Call successful
tval is the current timer value measured in AMX
system ticks. tval is the time remaining before the
timer expires.
tval < 0 Call not successful (tval is an error code)
tval = AERNSTM Invalid timer id
See Also ajtmcre, ajtmdel, ajtmwr