Motorola M68CPU32BUG User Manual Page 138

  • Download
  • Add to my manuals
  • Print
  • Page
    / 196
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 137
SYSTEM CALLS
M68CPU32BUG/D REV 1 5-24
.TM_RD Read Timer .TM_RD
5.2.20 Read Timer
SYSCALL .TM_RD
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 ==> Space for result <long>
Exit Conditions Different From Entry:.
SP ==> Time (number of interrupt pulses) <long>. The timer keeps
running after the read.
EXAMPLE
SUBQ.L #4,A7
Allocate space for result
SYSCALL .TM_RD
Read timer
MOVE.L (A7)+,D0
Load interrupt pulse count
Page view 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 195 196

Comments to this Manuals

No comments