Appendix C Sample Programs
© National Instruments Corporation C-11 GPIB-1014 User Manual
|
RCV4: btst #COC,CSR0 | Calculate number of bytes transferred
bne RCV5 |
movw MTC0,d1 |
subw d1,d0 |
btst #ECC,CFG1 | If carry cycle, MTC0 was initialized to (d0)-1
beq RCV6 |
subw #1,d0 |
bra RCV6 |
|
RCV5: btst #ECC, CFG1 | If no carry cyle, leave d0 as is
bne RCV6 |
movw MTC1,d1 |
subw d1,d0 |
addw #1,d0 |
|
RCV6: movb #0,IMR2 | Disable DMAs and stop DMA channels
movb #STOP,CCR1 |
movb #STOP,CCR0 |
|
rts |
|