/*************************************************************************** * * _ t t y o u t F u n c t i o n * ------------------------------- * * Function "_ttyout" is called to perform "write" operations to the * console device. * * Calling Sequence: * ret = _ttyout(buffer); * * Where: * buffer -> the output buffer (byte 0 is count) * ret = count on return ****************************************************************************/ #include "portab.h" #include "osif.h" WORD _ttyout(buf) /***************************/ /* */ REG BYTE *buf; /* -> 1st char output */ { /***************************/ REG WORD ii; /* counter for '$' check */ WORD count; /* = # bytes to xfer */ BYTE *cp; /* ptr for '$' check */ /* */ count = *buf++; /* Get num bytes to output */ buf[count] = '$'; /* Terminate string */ for(ii=0, cp=buf; ii