Add function prototypes.
This commit is contained in:
parent
a6120c220e
commit
f161a5867d
|
@ -22,3 +22,9 @@
|
|||
extern expr_t par_exp;
|
||||
extern unsigned p_indirect;
|
||||
extern int p_indexed;
|
||||
|
||||
void page(void);
|
||||
void pag2(void);
|
||||
void rela(expr_t exp,int ind);
|
||||
void absoa(expr_t exp, int ix, unsigned int ind);
|
||||
void absob(expr_t exp, unsigned int ind);
|
||||
|
|
|
@ -12,21 +12,19 @@
|
|||
#define MASK1 0x1FFF
|
||||
#define MASK2 0x1FFE
|
||||
|
||||
page()
|
||||
void page(void)
|
||||
{
|
||||
if(((DOTVAL - 1) & MASK1) == MASK1)
|
||||
serror("page violation");
|
||||
}
|
||||
|
||||
pag2()
|
||||
void pag2(void)
|
||||
{
|
||||
if(((DOTVAL - 1) & MASK1) >= MASK2)
|
||||
serror("page violation");
|
||||
}
|
||||
|
||||
rela(exp,ind)
|
||||
expr_t exp;
|
||||
int ind;
|
||||
void rela(expr_t exp,int ind)
|
||||
{
|
||||
int c, d;
|
||||
page();
|
||||
|
@ -58,10 +56,7 @@ int ind;
|
|||
emit1(low7(c) | ind);
|
||||
}
|
||||
|
||||
absoa(exp, ix, ind)
|
||||
expr_t exp;
|
||||
int ix;
|
||||
unsigned ind;
|
||||
void absoa(expr_t exp, int ix, unsigned int ind)
|
||||
{
|
||||
pag2();
|
||||
#ifdef ASLD
|
||||
|
@ -74,9 +69,7 @@ unsigned ind;
|
|||
emit2(low13(exp.val) | ind | ix);
|
||||
}
|
||||
|
||||
absob(exp, ind)
|
||||
expr_t exp;
|
||||
unsigned ind;
|
||||
void absob(expr_t exp, unsigned int ind)
|
||||
{
|
||||
pag2();
|
||||
#ifdef ASLD
|
||||
|
|
Loading…
Reference in a new issue