A89: linkport rom calls


[Prev][Next][Index][Thread]

A89: linkport rom calls



can anyone explain the attached code? i copied it out of tetris for the
ti92plus. i want to use the ti rom calls to control the linkport

thanks for your help
nick
exerpt from tetris.asm


SendByte:
 movem.l d0-d1/a0-a1,-(a7)
 move.b  d0,linkbuf
 move.w  #1,-(a7)
 pea	 linkbuf(PC)
 jsr tios::transmit
 addq	 #6,a7
 movem.l (a7)+,d0-d1/a0-a1
 rts

ReceiveByte:
 movem.l d1/a0-a1,-(a7)
 clr.b	 linkbuf
 move.w  #1,-(a7)
 pea	 linkbuf(PC)
 jsr tios::receive
 addq	 #6,a7
 clr.l	 d0
 move.b  linkbuf(PC),d0
 movem.l (a7)+,d1/a0-a1
 rts