* Copyright (c) 1991 The Regents of the University of California.
* This module is believed to contain source code proprietary to AT&T.
* Use and redistribution is subject to the Berkeley Software License
* Agreement and your Software Agreement with AT&T (Western Electric).
static char sccsid
[] = "@(#)move.c 4.4 (Berkeley) 4/17/91";
move(dir
, amt
, p
) int dir
, amt
, p
; {
a
= VERT( (EFFPS(ps
) * 6 * amt
) / 100);
a
= VERT( (amt
+49)/50 ); /* nearest number of half-lines */
printf(".ds %d ", yyval
);
if( dir
== FWD
|| dir
== BACK
) /* fwd, back */
printf("\\h'%s%du'\\*(%d\n", (dir
==BACK
) ? "-" : "", a
, p
);
printf("\\v'-%du'\\*(%d\\v'%du'\n", a
, p
, a
);
printf("\\v'%du'\\*(%d\\v'-%du'\n", a
, p
, a
);
if(dbg
)printf(".\tmove %d dir %d amt %d; h=%d b=%d\n",
p
, dir
, a
, eht
[yyval
], ebase
[yyval
]);