4 * Copyright (C) 2010 Alan R. Baldwin
5 * Copyright (C) 2022 Philipp K. Krause
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
52 #define OPCODE_SWAPOP 0x9c
53 #define OPCODE_ALTACC1 0x9d
54 #define OPCODE_ALTACC2 0x9e
55 #define OPCODE_ALTACC3 0x9f
56 #define OPCODE_ALTACC4 0x94
57 #define OPCODE_ALTACC5 0xd8
133 char a_str
[4]; /* addressing string */
134 int a_val
; /* addressing mode value */
137 extern struct adsym REG
[];
141 /* machine dependent functions */
144 extern int addr(struct expr
*esp
);
145 extern int addr1(struct expr
*esp
);
146 extern int addrsl(struct expr
*esp
);
147 extern int admode(struct adsym
*sp
);
148 extern int any(int c
, char *str
);
149 extern int srch(char *str
);
152 extern VOID
machine(struct mne
*mp
);
153 extern int mchpcr(struct expr
*esp
);
154 extern VOID
minit(void);
155 extern VOID
opcy_aerr(void);
156 extern VOID
valu_aerr(struct expr
*e
, int n
);
157 extern int ls_mode(struct expr
*e
);
158 extern int d_mode(struct expr
*e
);
159 extern int setbit(int b
);
160 extern int getbit(void);
161 extern void altacc(int reg
);
162 extern void altaccw(int reg
);
163 extern void altaccw2(int reg0
, int reg1
);