ack/mach/6809/as/mach1.c

52 lines
881 B
C
Raw Permalink Normal View History

1987-03-09 16:02:32 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1994-06-24 14:02:31 +00:00
#define RCSID1 "$Id$"
1985-06-10 15:32:18 +00:00
/*
* Motorola 6809 C declarations
*/
extern int dpvalue INIT(-1); /* for setdp pseudo-op */
#ifndef extern
extern int regbit[];
#else
int regbit[] = { /* push-pull coding */
6, /* D */
0x10, /* X */
0x20, /* Y */
0x40, /* U */
0x40, /* S */
0x80, /* PC */
-1, -1,
2, /* A */
4, /* B */
1, /* CC */
8, /* DP */
};
#endif
/*
* Motorola 6809 register names
*/
#define D 0
#define X 1
#define Y 2
#define U 3
#define S 4
#define PC 5
#define A 8
#define B 9
#define CC 10
#define DP 11
2019-03-24 16:10:45 +00:00
/* Motorola 6809 specific routines */
void branch(register int opc, expr_t exp);
int regno(register int r);
void emit1or2(int n);
void offset(register int reg, expr_t exp, register int ind);