Typewriter User Manual

MOTOROLA MC68340 USER’S MANUAL 8- 31
MOVE.W #$8A10,CR1(A0)
* If SR TG bit=0, continue looping TGATE is asserted,
* else TG=1 indicating TGATE was negated. When TG=1, counting is stopped.
LOOP3 BTST.B #$5,SR1(A0)
BEQ.B LOOP3
* Counting is complete. To determine the number of cycles counted, the value
* in CNTR1 must be read, inverted, and incremented by 1.
MOVE.W CNTR1(A0),D0
NOT.W D0
ADDQ.W #$1,DO
* D0 contains the number of cycles counted.
***************************************************************************
END
***************************************************************************
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...