1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1994-06-24 14:02:31 +00:00
|
|
|
#define RCSID1 "$Id$"
|
1987-02-26 19:46:35 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
/*
|
|
|
|
* PDP 11 Machine dependent C declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Addressing modes */
|
|
|
|
#define RMODE 00
|
|
|
|
#define AIMODE 020
|
|
|
|
#define ADMODE 040
|
|
|
|
#define INDMODE 060
|
|
|
|
#define RDEFMODE 010
|
|
|
|
#define AIDEFMODE 030
|
|
|
|
#define ADDEFMODE 050
|
|
|
|
#define INDDEFMODE 070
|
|
|
|
|
|
|
|
#define OPLDF 0172400
|
|
|
|
#define OPSTF 0174000
|
|
|
|
#define OPSOB 077000
|
|
|
|
#define OPBRA 0400
|
|
|
|
|
|
|
|
#define low3(z) (((short) z) & 07)
|
|
|
|
#define low6(z) (((short) z) & 077)
|
|
|
|
#define low7(z) (((short) z) & 0177)
|
|
|
|
|
|
|
|
#define fit3(z) (low3(z) == (z))
|
|
|
|
#define fit6(z) (low6(z) == (z))
|
|
|
|
#define fit8(z) (lowb(z) == (z))
|
|
|
|
|
|
|
|
extern expr_t exp_1, exp_2;
|
|
|
|
extern int rel_1, rel_2;
|
|
|
|
extern int im1flag INIT(0);
|
|
|
|
extern int im2flag INIT(0);
|
2019-03-24 16:12:21 +00:00
|
|
|
|
|
|
|
void op1(int mode);
|
|
|
|
void op2(int mode);
|
|
|
|
void branch(int opc,expr_t exp);
|
|
|
|
void ejump(int opc, expr_t exp);
|
|
|
|
void sob(int reg, expr_t exp);
|
|
|
|
int jump(int opc,int opr);
|
|
|
|
valu_t adjust(expr_t exp);
|