#include "vid.h"

VIDMEM
vputn(scr_ofs, c, times, retrace)
VIDMEM   scr_ofs;
register int      c;
int      times, retrace;
{
   int  i;

   for ( i = 0; i < times; i++)
   {
      if (retrace)
      {
         while ( (inp(CGASTAT) & 1) != 0);
         while ( (inp(CGASTAT) & 1) == 0);
      }

      *scr_ofs++ = c;
   }
   return scr_ofs;
}
