Motorola M68CPU32BUG Manuel d'utilisateur Page 138

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 196
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 195 196

Commentaires sur ces manuels

Pas de commentaire