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:55:23 ceriel Exp $"
8 * Motorola 6800 special routines
11 branch(opc,exp) register opc; expr_t exp; {
15 dist = exp.val - (DOTVAL + 2);
16 if (pass == PASS_2 && dist > 0 && !(exp.typ & S_DOT))
19 if ((exp.typ & ~S_DOT) != DOTTYP)
21 if (opc == 0x8D || opc == 0x20)
25 if (small(sm,saving)) {
29 if (opc == 0x8D) /* bsr */
30 emit1(0xBD); /* jsr */
32 if (opc != 0x20) { /* bra */
34 /* reverse condition : */
39 emit1(0x7E); /* jmp */
42 newrelo(exp.typ, RELO2 | RELBR);