Sample Programs
Appendix C
GPIB-1014 User Manual
C-16
© National Instruments Corporation
DSEND4:
btst
#COC,CSR0
| Calculate number of bytes transferred
bne
DSEND5
|
movw
MTC0,d1
|
subw
d1,d0
|
btst
#ECC,CFG1
|
beq
DSEND6
|
subw
#1,d0
|
bra
DSEND6
|
|
DSEND5:
btst
#ECC,CFG1
|
bne
DSEND6
|
movw
MTC1,d1
|
subw
d1,d0
|
addw
#1,d0
|
|
DSEND6:
movb
#0,IMR2
| Disable DMAs
|
movb
#STOP,CCR1
| Stop DMA channels
movb
#STOP,CCR0
|
|
rts
|
|