* Copyright (c) 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)kdb_command.c 7.3 (Berkeley) 12/15/86
char eqformat
[512] = "z";
char stformat
[512] = "X\"= \"^i";
register itype
, ptype
, modifier
, regptr
;
cntflg
= (rdc() == ',' && expr(0));
ptype
= (DSYM
+ISYM
)-ptype
;
longpr
=0; eqcom
=lastcom
=='=';
dotinc
=(longpr
?4:2); savdot
=dot
;
(void) expr(1); locval
=expv
;
wformat
[0]=lastc
; (void) expr(1);
psymoff(dot
,ptype
,":%16t");
(void) exform(1,wformat
,itype
,ptype
);
itol(expv
,get(dot
,itype
)));
(void) exform(1,wformat
,itype
,ptype
);
} while (expr(0) && errflg
==0);
getformat(eqcom
? eqformat
: stformat
);
psymoff(dot
,ptype
,":%16t");
(eqcom
?eqformat
:stformat
),itype
,ptype
);
if ((regptr
=getreg(savc
)) != -1)
else if ((modifier
=varchk(savc
)) != -1)
executing
=1; subpcs(nextchar()); executing
=0;
return (adrflg
&& dot
!=0);