This commit is contained in:
ceriel 1986-12-05 16:36:40 +00:00
parent 947461e31f
commit 13a63ae5fe
3 changed files with 4 additions and 5 deletions

View file

@ -1,4 +1,3 @@
#define DUK
#define RCSID0 "$Header$" #define RCSID0 "$Header$"
/* /*
@ -9,4 +8,3 @@
#define THREE_PASS #define THREE_PASS
#define LISTING #define LISTING
#define RELOCATION #define RELOCATION
#define NOLD

View file

@ -129,9 +129,9 @@ operation
{ emit1or2($1); { emit1or2($1);
emit1(0x9F); emit1(0x9F);
#ifdef RELOCATION #ifdef RELOCATION
newrelo($3.typ, RELO1); newrelo($3.typ, RELO2|RELBR);
#endif #endif
emit1($3.val); emit2($3.val);
} }
| |
XOP xmode XOP xmode

View file

@ -71,11 +71,12 @@ expr_t exp;
sm = fitb(dist); sm = fitb(dist);
if ((exp.typ & S_TYP) != DOTTYP) if ((exp.typ & S_TYP) != DOTTYP)
sm = 0; sm = 0;
if (small(sm,0)) { if (small(sm,1)) {
emit1(0x8C + ind); emit1(0x8C + ind);
emit1(dist); emit1(dist);
} else { } else {
emit1(0x8D + ind); emit1(0x8D + ind);
emit1((dist-1)>>8);
emit1(dist - 1); emit1(dist - 1);
} }
} else if ((reg = regno(reg)) < 0) } else if ((reg = regno(reg)) < 0)