Add function prototypes.
This commit is contained in:
parent
f161a5867d
commit
82cdc096b0
|
@ -66,3 +66,9 @@ extern struct operand opnd[6]; /* maximum number of operands of a VAX
|
||||||
instruction is 6
|
instruction is 6
|
||||||
*/
|
*/
|
||||||
extern int op_ind; /* index in opng array */
|
extern int op_ind; /* index in opng array */
|
||||||
|
|
||||||
|
/* VAX4 Specific instructions */
|
||||||
|
void branch(int opc, expr_t exp);
|
||||||
|
void ext_branch(int opc, expr_t exp);
|
||||||
|
void operands(void);
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,7 @@
|
||||||
#define rev_cond_branch(opc) ((opc) ^ 1)
|
#define rev_cond_branch(opc) ((opc) ^ 1)
|
||||||
|
|
||||||
/* Process one operand. */
|
/* Process one operand. */
|
||||||
static
|
static void oprnd(register struct operand *p)
|
||||||
oprnd(p)
|
|
||||||
register struct operand *p;
|
|
||||||
{
|
{
|
||||||
int sm;
|
int sm;
|
||||||
|
|
||||||
|
@ -203,8 +201,7 @@ oprnd(p)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Give an upper bound on the size of the operands */
|
/* Give an upper bound on the size of the operands */
|
||||||
static int
|
static int size_ops(void)
|
||||||
size_ops()
|
|
||||||
{
|
{
|
||||||
register struct operand *p = &opnd[0];
|
register struct operand *p = &opnd[0];
|
||||||
register int i;
|
register int i;
|
||||||
|
@ -241,8 +238,7 @@ size_ops()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Branch with byte or word offset */
|
/* Branch with byte or word offset */
|
||||||
branch(opc, exp)
|
void branch(int opc, expr_t exp)
|
||||||
expr_t exp;
|
|
||||||
{
|
{
|
||||||
exp.val -= (DOTVAL + 2);
|
exp.val -= (DOTVAL + 2);
|
||||||
if ((pass == PASS_2) &&
|
if ((pass == PASS_2) &&
|
||||||
|
@ -272,8 +268,7 @@ branch(opc, exp)
|
||||||
they are replaced by a reversed conditional branch over a word-branch or
|
they are replaced by a reversed conditional branch over a word-branch or
|
||||||
jump.
|
jump.
|
||||||
*/
|
*/
|
||||||
ext_branch(opc, exp)
|
void ext_branch(int opc, expr_t exp)
|
||||||
expr_t exp;
|
|
||||||
{
|
{
|
||||||
int sm;
|
int sm;
|
||||||
int gain = opc == BRB ? 1 : 3;
|
int gain = opc == BRB ? 1 : 3;
|
||||||
|
@ -340,7 +335,7 @@ ext_branch(opc, exp)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate code for the operands */
|
/* Generate code for the operands */
|
||||||
operands()
|
void operands(void)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue