view level1/modules/dwwrmess.asm @ 2786:e333ec1907ef lwtools-port

Updated makefile(s) so correct coco1 dw boot and dwio.sb files are used. Updated level1/coco1/modules/makefile so that boot_dw_coco1 and dwio_coco1.sb get created. Updated level1/coco1/bootfiles/makefile added detection of PORT status so if coco1 is detected then dwio_coco1.sb and boot_dw_coco1 are used in place of dwio.sb and boot_dw.
author drencor-xeen
date Sun, 27 Jan 2013 00:14:03 -0600
parents c92a6c65bbd9
children c505ae3120c4
line wrap: on
line source

*******************************************************
*
* DWWriteMESS
*  
*  4/27/10 AAW - Based on John Linville's example
*
* Entry:
*    X  = starting address of data to send
*    Y  = number of bytes to send
*
* Exit:
*    X  = address of last byte sent + 1
*    Y  = 0
*    All others preserved
*


DWWrite   pshs      u,d,cc              ; preserve registers
          orcc      #$50                ; mask interrupts

txByte   ldb       ,x+                 ; get a byte to transmit
         stb       $ffe0               ; write it to the FIFO
         leay      ,-y                ; decrement byte counter
         bne       txByte              ; loop if more to send          
          
          puls      cc,d,u,pc           ; restore registers and return