xref: /csrg-svn/lib/libplot/hp2648/move.c (revision 19975)
1*19975Sdist /*
2*19975Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19975Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19975Sdist  * specifies the terms and conditions for redistribution.
5*19975Sdist  */
6*19975Sdist 
715455Sralph #ifndef lint
8*19975Sdist static char sccsid[] = "@(#)move.c	5.1 (Berkeley) 05/07/85";
9*19975Sdist #endif not lint
1015455Sralph 
1115455Sralph #include "hp2648.h"
1215455Sralph 
1315455Sralph move(xi,yi)
1415455Sralph int xi,yi;
1515455Sralph {
1615455Sralph 	char xb1,xb2,yb1,yb2;
1715455Sralph 	itoa(xsc(xi),&xb1,&xb2);
1815455Sralph 	itoa(ysc(yi),&yb1,&yb2);
1915455Sralph 	buffready(5);
2015455Sralph 	putchar(PENUP);
2115455Sralph 	putchar(xb2);
2215455Sralph 	putchar(xb1);
2315455Sralph 	putchar(yb2);
2415455Sralph 	putchar(yb1);
2515455Sralph 	currentx = xsc(xi);
2615455Sralph 	currenty = ysc(yi);
2715455Sralph }
28