Read Timer (.Tm_Rd) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

.TM_RD
5.2.20 Read Timer
SYSCALL
TRAP CODE: $0042
Use this routine to read the timer value (the timer value is the number of interrupt pulses
generated). Initialize (.TM_INI) and start (.TM_STR0) the timer before using the .TM_RD
function.
Entry Conditions:
SP ==>
Exit Conditions Different From Entry:.
SP ==>
EXAMPLE
SUBQ.L
#4,A7
SYSCALL
.TM_RD
MOVE.L
(A7)+,D0
M68CPU32BUG/D REV 1
Read Timer
.TM_RD
Space for result <long>
Time (number of interrupt pulses) <long>. The timer keeps
running after the read.
Allocate space for result
Read timer
Load interrupt pulse count
5-24
SYSTEM CALLS
.TM_RD

Advertisement

Table of Contents
loading

Table of Contents