/* XY2ADDR converts xy coordinates to screen address offset */
/* the input file should have the coordinates entered like */
/* this: X,Y<space>X,Y<space>X,Y and so on. */
#include <stdio.h>
FILE* infile;
FILE* outfile;
main(int argc,char **argv)
{
int cntr = 0;
unsigned int xval,yval,adr,buf_off;
int ch;
unsigned char inbuf[10];