2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
5 #define RCSID5 "$Id: mach5.c,v 3.3 1994/06/24 12:54:11 ceriel Exp $"
8 * Mostek 6500 special routines.
17 dist = exp.val - (DOTVAL + 2);
18 if (pass == PASS_2 && dist > 0 && !(exp.typ & S_DOT))
20 if (small(fitb(dist) && (exp.typ & ~S_DOT) == DOTTYP, 3)) {
21 emit1(opc); emit1(dist);
23 emit1(opc^0x20); emit1(0x03); /* Skip over ... */
24 emit1(0x4C); /* ... far jump. */
26 newrelo(exp.typ, RELO2);
34 register int opc1, opc2;
36 if (small((exp.typ & S_TYP) == S_ABS && fits_zeropage(exp.val), 1)) {
37 emit1(opc1); emit1(exp.val);
41 newrelo(exp.typ, RELO2);