mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 00:14:25 +00:00
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/***************************************************************************
|
||
*
|
||
* _ l s t o u t F u n c t i o n
|
||
* -------------------------------
|
||
*
|
||
* Function "_lstout" is called to perform "write" operations to the
|
||
* list device.
|
||
*
|
||
* Calling Sequence:
|
||
* ret = _lstout(buffer,count,func);
|
||
*
|
||
* Where:
|
||
* buffer -> the output buffer (byte 0 is count)
|
||
* ret = count on return
|
||
*
|
||
****************************************************************************/
|
||
|
||
#include "portab.h"
|
||
#include "osif.h"
|
||
|
||
WORD _lstout(buffer) /***************************/
|
||
REG BYTE *buffer; /* -> 1st char output */
|
||
{ /***************************/
|
||
REG WORD count; /* = # bytes to xfer */
|
||
WORD xcount; /* save area for count */
|
||
/* */
|
||
xcount = count = (0xFF & *buffer++); /* Copy for later */
|
||
/* */
|
||
while(count-- > 0) /* Until all written */
|
||
__OSIF(LSTOUT,*buffer++); /* Output next character */
|
||
return(xcount); /* return original count */
|
||
} /***************************/
|
||
al count */
|
||
} /***************************/
|
||
al count */
|
||
} /***************************/
|