1 #include "cpudefs.h"
2 #include "cpuextra.h"
3 #include "inlines.h"
4 #include "cputbl.h"
5 #define CPUFUNC(x) x##_ff
6 #ifdef NOFLAGS
7 #include "noflags.h"
8 #endif
9 
10 const int areg_byteinc[] = { 1, 1, 1, 1, 1, 1, 1, 2 };
11 const int imm8_table[]   = { 8, 1, 2, 3, 4, 5, 6, 7 };
12 
13 const int movem_index1[256] = {
14 0x08, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
15 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
16 0x05, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
17 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
18 0x06, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
19 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
20 0x05, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
21 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
22 0x07, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
23 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
24 0x05, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
25 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
26 0x06, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
27 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
28 0x05, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
29 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
30 };
31 
32 const int movem_index2[256] = {
33 0xFFFFFFFF, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
34 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
35 0x02, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
36 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
37 0x01, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
38 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
39 0x02, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
40 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
41 0x00, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
42 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
43 0x02, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
44 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
45 0x01, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
46 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
47 0x02, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
48 0x03, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07, 0x04, 0x07, 0x06, 0x07, 0x05, 0x07, 0x06, 0x07,
49 };
50 
51 const int movem_next[256] = {
52 0x00, 0x00, 0x00, 0x02, 0x00, 0x04, 0x04, 0x06, 0x00, 0x08, 0x08, 0x0A, 0x08, 0x0C, 0x0C, 0x0E,
53 0x00, 0x10, 0x10, 0x12, 0x10, 0x14, 0x14, 0x16, 0x10, 0x18, 0x18, 0x1A, 0x18, 0x1C, 0x1C, 0x1E,
54 0x00, 0x20, 0x20, 0x22, 0x20, 0x24, 0x24, 0x26, 0x20, 0x28, 0x28, 0x2A, 0x28, 0x2C, 0x2C, 0x2E,
55 0x20, 0x30, 0x30, 0x32, 0x30, 0x34, 0x34, 0x36, 0x30, 0x38, 0x38, 0x3A, 0x38, 0x3C, 0x3C, 0x3E,
56 0x00, 0x40, 0x40, 0x42, 0x40, 0x44, 0x44, 0x46, 0x40, 0x48, 0x48, 0x4A, 0x48, 0x4C, 0x4C, 0x4E,
57 0x40, 0x50, 0x50, 0x52, 0x50, 0x54, 0x54, 0x56, 0x50, 0x58, 0x58, 0x5A, 0x58, 0x5C, 0x5C, 0x5E,
58 0x40, 0x60, 0x60, 0x62, 0x60, 0x64, 0x64, 0x66, 0x60, 0x68, 0x68, 0x6A, 0x68, 0x6C, 0x6C, 0x6E,
59 0x60, 0x70, 0x70, 0x72, 0x70, 0x74, 0x74, 0x76, 0x70, 0x78, 0x78, 0x7A, 0x78, 0x7C, 0x7C, 0x7E,
60 0x00, 0x80, 0x80, 0x82, 0x80, 0x84, 0x84, 0x86, 0x80, 0x88, 0x88, 0x8A, 0x88, 0x8C, 0x8C, 0x8E,
61 0x80, 0x90, 0x90, 0x92, 0x90, 0x94, 0x94, 0x96, 0x90, 0x98, 0x98, 0x9A, 0x98, 0x9C, 0x9C, 0x9E,
62 0x80, 0xA0, 0xA0, 0xA2, 0xA0, 0xA4, 0xA4, 0xA6, 0xA0, 0xA8, 0xA8, 0xAA, 0xA8, 0xAC, 0xAC, 0xAE,
63 0xA0, 0xB0, 0xB0, 0xB2, 0xB0, 0xB4, 0xB4, 0xB6, 0xB0, 0xB8, 0xB8, 0xBA, 0xB8, 0xBC, 0xBC, 0xBE,
64 0x80, 0xC0, 0xC0, 0xC2, 0xC0, 0xC4, 0xC4, 0xC6, 0xC0, 0xC8, 0xC8, 0xCA, 0xC8, 0xCC, 0xCC, 0xCE,
65 0xC0, 0xD0, 0xD0, 0xD2, 0xD0, 0xD4, 0xD4, 0xD6, 0xD0, 0xD8, 0xD8, 0xDA, 0xD8, 0xDC, 0xDC, 0xDE,
66 0xC0, 0xE0, 0xE0, 0xE2, 0xE0, 0xE4, 0xE4, 0xE6, 0xE0, 0xE8, 0xE8, 0xEA, 0xE8, 0xEC, 0xEC, 0xEE,
67 0xE0, 0xF0, 0xF0, 0xF2, 0xF0, 0xF4, 0xF4, 0xF6, 0xF0, 0xF8, 0xF8, 0xFA, 0xF8, 0xFC, 0xFC, 0xFE,
68 };
69 
70 
71 #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8)
72 #define PART_1 1
73 #define PART_2 1
74 #define PART_3 1
75 #define PART_4 1
76 #define PART_5 1
77 #define PART_6 1
78 #define PART_7 1
79 #define PART_8 1
80 #endif
81 
82 #ifdef PART_1
CPUFUNC(op_0_4)83 unsigned long CPUFUNC(op_0_4)(uint32_t opcode) /* OR */
84 {
85 	uint32_t dstreg = opcode & 7;
86 	OpcodeFamily = 1; CurrentInstrCycles = 8;
87 {{	int8_t src = get_ibyte(2);
88 {	int8_t dst = m68k_dreg(regs, dstreg);
89 	src |= dst;
90 	CLEAR_CZNV;
91 	SET_ZFLG (((int8_t)(src)) == 0);
92 	SET_NFLG (((int8_t)(src)) < 0);
93 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
94 }}}m68k_incpc(4);
95 return 8;
96 }
CPUFUNC(op_10_4)97 unsigned long CPUFUNC(op_10_4)(uint32_t opcode) /* OR */
98 {
99 	uint32_t dstreg = opcode & 7;
100 	OpcodeFamily = 1; CurrentInstrCycles = 16;
101 {{	int8_t src = get_ibyte(2);
102 {	uint32_t dsta = m68k_areg(regs, dstreg);
103 {	int8_t dst = m68k_read_memory_8(dsta);
104 	src |= dst;
105 	CLEAR_CZNV;
106 	SET_ZFLG (((int8_t)(src)) == 0);
107 	SET_NFLG (((int8_t)(src)) < 0);
108 	m68k_write_memory_8(dsta,src);
109 }}}}m68k_incpc(4);
110 return 16;
111 }
CPUFUNC(op_18_4)112 unsigned long CPUFUNC(op_18_4)(uint32_t opcode) /* OR */
113 {
114 	uint32_t dstreg = opcode & 7;
115 	OpcodeFamily = 1; CurrentInstrCycles = 16;
116 {{	int8_t src = get_ibyte(2);
117 {	uint32_t dsta = m68k_areg(regs, dstreg);
118 {	int8_t dst = m68k_read_memory_8(dsta);
119 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
120 	src |= dst;
121 	CLEAR_CZNV;
122 	SET_ZFLG (((int8_t)(src)) == 0);
123 	SET_NFLG (((int8_t)(src)) < 0);
124 	m68k_write_memory_8(dsta,src);
125 }}}}m68k_incpc(4);
126 return 16;
127 }
CPUFUNC(op_20_4)128 unsigned long CPUFUNC(op_20_4)(uint32_t opcode) /* OR */
129 {
130 	uint32_t dstreg = opcode & 7;
131 	OpcodeFamily = 1; CurrentInstrCycles = 18;
132 {{	int8_t src = get_ibyte(2);
133 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
134 {	int8_t dst = m68k_read_memory_8(dsta);
135 	m68k_areg (regs, dstreg) = dsta;
136 	src |= dst;
137 	CLEAR_CZNV;
138 	SET_ZFLG (((int8_t)(src)) == 0);
139 	SET_NFLG (((int8_t)(src)) < 0);
140 	m68k_write_memory_8(dsta,src);
141 }}}}m68k_incpc(4);
142 return 18;
143 }
CPUFUNC(op_28_4)144 unsigned long CPUFUNC(op_28_4)(uint32_t opcode) /* OR */
145 {
146 	uint32_t dstreg = opcode & 7;
147 	OpcodeFamily = 1; CurrentInstrCycles = 20;
148 {{	int8_t src = get_ibyte(2);
149 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
150 {	int8_t dst = m68k_read_memory_8(dsta);
151 	src |= dst;
152 	CLEAR_CZNV;
153 	SET_ZFLG (((int8_t)(src)) == 0);
154 	SET_NFLG (((int8_t)(src)) < 0);
155 	m68k_write_memory_8(dsta,src);
156 }}}}m68k_incpc(6);
157 return 20;
158 }
CPUFUNC(op_30_4)159 unsigned long CPUFUNC(op_30_4)(uint32_t opcode) /* OR */
160 {
161 	uint32_t dstreg = opcode & 7;
162 	OpcodeFamily = 1; CurrentInstrCycles = 22;
163 {{	int8_t src = get_ibyte(2);
164 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
165 	BusCyclePenalty += 2;
166 {	int8_t dst = m68k_read_memory_8(dsta);
167 	src |= dst;
168 	CLEAR_CZNV;
169 	SET_ZFLG (((int8_t)(src)) == 0);
170 	SET_NFLG (((int8_t)(src)) < 0);
171 	m68k_write_memory_8(dsta,src);
172 }}}}m68k_incpc(6);
173 return 22;
174 }
CPUFUNC(op_38_4)175 unsigned long CPUFUNC(op_38_4)(uint32_t opcode) /* OR */
176 {
177 	OpcodeFamily = 1; CurrentInstrCycles = 20;
178 {{	int8_t src = get_ibyte(2);
179 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
180 {	int8_t dst = m68k_read_memory_8(dsta);
181 	src |= dst;
182 	CLEAR_CZNV;
183 	SET_ZFLG (((int8_t)(src)) == 0);
184 	SET_NFLG (((int8_t)(src)) < 0);
185 	m68k_write_memory_8(dsta,src);
186 }}}}m68k_incpc(6);
187 return 20;
188 }
CPUFUNC(op_39_4)189 unsigned long CPUFUNC(op_39_4)(uint32_t opcode) /* OR */
190 {
191 	OpcodeFamily = 1; CurrentInstrCycles = 24;
192 {{	int8_t src = get_ibyte(2);
193 {	uint32_t dsta = get_ilong(4);
194 {	int8_t dst = m68k_read_memory_8(dsta);
195 	src |= dst;
196 	CLEAR_CZNV;
197 	SET_ZFLG (((int8_t)(src)) == 0);
198 	SET_NFLG (((int8_t)(src)) < 0);
199 	m68k_write_memory_8(dsta,src);
200 }}}}m68k_incpc(8);
201 return 24;
202 }
CPUFUNC(op_3c_4)203 unsigned long CPUFUNC(op_3c_4)(uint32_t opcode) /* ORSR */
204 {
205 	OpcodeFamily = 4; CurrentInstrCycles = 20;
206 {	MakeSR();
207 {	int16_t src = get_iword(2);
208 	src &= 0xFF;
209 	regs.sr |= src;
210 	MakeFromSR();
211 }}m68k_incpc(4);
212 return 20;
213 }
CPUFUNC(op_40_4)214 unsigned long CPUFUNC(op_40_4)(uint32_t opcode) /* OR */
215 {
216 	uint32_t dstreg = opcode & 7;
217 	OpcodeFamily = 1; CurrentInstrCycles = 8;
218 {{	int16_t src = get_iword(2);
219 {	int16_t dst = m68k_dreg(regs, dstreg);
220 	src |= dst;
221 	CLEAR_CZNV;
222 	SET_ZFLG (((int16_t)(src)) == 0);
223 	SET_NFLG (((int16_t)(src)) < 0);
224 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
225 }}}m68k_incpc(4);
226 return 8;
227 }
CPUFUNC(op_50_4)228 unsigned long CPUFUNC(op_50_4)(uint32_t opcode) /* OR */
229 {
230 	uint32_t dstreg = opcode & 7;
231 	OpcodeFamily = 1; CurrentInstrCycles = 16;
232 {{	int16_t src = get_iword(2);
233 {	uint32_t dsta = m68k_areg(regs, dstreg);
234 {	int16_t dst = m68k_read_memory_16(dsta);
235 	src |= dst;
236 	CLEAR_CZNV;
237 	SET_ZFLG (((int16_t)(src)) == 0);
238 	SET_NFLG (((int16_t)(src)) < 0);
239 	m68k_write_memory_16(dsta,src);
240 }}}}m68k_incpc(4);
241 return 16;
242 }
CPUFUNC(op_58_4)243 unsigned long CPUFUNC(op_58_4)(uint32_t opcode) /* OR */
244 {
245 	uint32_t dstreg = opcode & 7;
246 	OpcodeFamily = 1; CurrentInstrCycles = 16;
247 {{	int16_t src = get_iword(2);
248 {	uint32_t dsta = m68k_areg(regs, dstreg);
249 {	int16_t dst = m68k_read_memory_16(dsta);
250 	m68k_areg(regs, dstreg) += 2;
251 	src |= dst;
252 	CLEAR_CZNV;
253 	SET_ZFLG (((int16_t)(src)) == 0);
254 	SET_NFLG (((int16_t)(src)) < 0);
255 	m68k_write_memory_16(dsta,src);
256 }}}}m68k_incpc(4);
257 return 16;
258 }
CPUFUNC(op_60_4)259 unsigned long CPUFUNC(op_60_4)(uint32_t opcode) /* OR */
260 {
261 	uint32_t dstreg = opcode & 7;
262 	OpcodeFamily = 1; CurrentInstrCycles = 18;
263 {{	int16_t src = get_iword(2);
264 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
265 {	int16_t dst = m68k_read_memory_16(dsta);
266 	m68k_areg (regs, dstreg) = dsta;
267 	src |= dst;
268 	CLEAR_CZNV;
269 	SET_ZFLG (((int16_t)(src)) == 0);
270 	SET_NFLG (((int16_t)(src)) < 0);
271 	m68k_write_memory_16(dsta,src);
272 }}}}m68k_incpc(4);
273 return 18;
274 }
CPUFUNC(op_68_4)275 unsigned long CPUFUNC(op_68_4)(uint32_t opcode) /* OR */
276 {
277 	uint32_t dstreg = opcode & 7;
278 	OpcodeFamily = 1; CurrentInstrCycles = 20;
279 {{	int16_t src = get_iword(2);
280 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
281 {	int16_t dst = m68k_read_memory_16(dsta);
282 	src |= dst;
283 	CLEAR_CZNV;
284 	SET_ZFLG (((int16_t)(src)) == 0);
285 	SET_NFLG (((int16_t)(src)) < 0);
286 	m68k_write_memory_16(dsta,src);
287 }}}}m68k_incpc(6);
288 return 20;
289 }
CPUFUNC(op_70_4)290 unsigned long CPUFUNC(op_70_4)(uint32_t opcode) /* OR */
291 {
292 	uint32_t dstreg = opcode & 7;
293 	OpcodeFamily = 1; CurrentInstrCycles = 22;
294 {{	int16_t src = get_iword(2);
295 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
296 	BusCyclePenalty += 2;
297 {	int16_t dst = m68k_read_memory_16(dsta);
298 	src |= dst;
299 	CLEAR_CZNV;
300 	SET_ZFLG (((int16_t)(src)) == 0);
301 	SET_NFLG (((int16_t)(src)) < 0);
302 	m68k_write_memory_16(dsta,src);
303 }}}}m68k_incpc(6);
304 return 22;
305 }
CPUFUNC(op_78_4)306 unsigned long CPUFUNC(op_78_4)(uint32_t opcode) /* OR */
307 {
308 	OpcodeFamily = 1; CurrentInstrCycles = 20;
309 {{	int16_t src = get_iword(2);
310 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
311 {	int16_t dst = m68k_read_memory_16(dsta);
312 	src |= dst;
313 	CLEAR_CZNV;
314 	SET_ZFLG (((int16_t)(src)) == 0);
315 	SET_NFLG (((int16_t)(src)) < 0);
316 	m68k_write_memory_16(dsta,src);
317 }}}}m68k_incpc(6);
318 return 20;
319 }
CPUFUNC(op_79_4)320 unsigned long CPUFUNC(op_79_4)(uint32_t opcode) /* OR */
321 {
322 	OpcodeFamily = 1; CurrentInstrCycles = 24;
323 {{	int16_t src = get_iword(2);
324 {	uint32_t dsta = get_ilong(4);
325 {	int16_t dst = m68k_read_memory_16(dsta);
326 	src |= dst;
327 	CLEAR_CZNV;
328 	SET_ZFLG (((int16_t)(src)) == 0);
329 	SET_NFLG (((int16_t)(src)) < 0);
330 	m68k_write_memory_16(dsta,src);
331 }}}}m68k_incpc(8);
332 return 24;
333 }
CPUFUNC(op_7c_4)334 unsigned long CPUFUNC(op_7c_4)(uint32_t opcode) /* ORSR */
335 {
336 	OpcodeFamily = 4; CurrentInstrCycles = 20;
337 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel18; }
338 {	MakeSR();
339 {	int16_t src = get_iword(2);
340 	regs.sr |= src;
341 	MakeFromSR();
342 }}}m68k_incpc(4);
343 endlabel18: ;
344 return 20;
345 }
CPUFUNC(op_80_4)346 unsigned long CPUFUNC(op_80_4)(uint32_t opcode) /* OR */
347 {
348 	uint32_t dstreg = opcode & 7;
349 	OpcodeFamily = 1; CurrentInstrCycles = 16;
350 {{	int32_t src = get_ilong(2);
351 {	int32_t dst = m68k_dreg(regs, dstreg);
352 	src |= dst;
353 	CLEAR_CZNV;
354 	SET_ZFLG (((int32_t)(src)) == 0);
355 	SET_NFLG (((int32_t)(src)) < 0);
356 	m68k_dreg(regs, dstreg) = (src);
357 }}}m68k_incpc(6);
358 return 16;
359 }
CPUFUNC(op_90_4)360 unsigned long CPUFUNC(op_90_4)(uint32_t opcode) /* OR */
361 {
362 	uint32_t dstreg = opcode & 7;
363 	OpcodeFamily = 1; CurrentInstrCycles = 28;
364 {{	int32_t src = get_ilong(2);
365 {	uint32_t dsta = m68k_areg(regs, dstreg);
366 {	int32_t dst = m68k_read_memory_32(dsta);
367 	src |= dst;
368 	CLEAR_CZNV;
369 	SET_ZFLG (((int32_t)(src)) == 0);
370 	SET_NFLG (((int32_t)(src)) < 0);
371 	m68k_write_memory_32(dsta,src);
372 }}}}m68k_incpc(6);
373 return 28;
374 }
CPUFUNC(op_98_4)375 unsigned long CPUFUNC(op_98_4)(uint32_t opcode) /* OR */
376 {
377 	uint32_t dstreg = opcode & 7;
378 	OpcodeFamily = 1; CurrentInstrCycles = 28;
379 {{	int32_t src = get_ilong(2);
380 {	uint32_t dsta = m68k_areg(regs, dstreg);
381 {	int32_t dst = m68k_read_memory_32(dsta);
382 	m68k_areg(regs, dstreg) += 4;
383 	src |= dst;
384 	CLEAR_CZNV;
385 	SET_ZFLG (((int32_t)(src)) == 0);
386 	SET_NFLG (((int32_t)(src)) < 0);
387 	m68k_write_memory_32(dsta,src);
388 }}}}m68k_incpc(6);
389 return 28;
390 }
CPUFUNC(op_a0_4)391 unsigned long CPUFUNC(op_a0_4)(uint32_t opcode) /* OR */
392 {
393 	uint32_t dstreg = opcode & 7;
394 	OpcodeFamily = 1; CurrentInstrCycles = 30;
395 {{	int32_t src = get_ilong(2);
396 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
397 {	int32_t dst = m68k_read_memory_32(dsta);
398 	m68k_areg (regs, dstreg) = dsta;
399 	src |= dst;
400 	CLEAR_CZNV;
401 	SET_ZFLG (((int32_t)(src)) == 0);
402 	SET_NFLG (((int32_t)(src)) < 0);
403 	m68k_write_memory_32(dsta,src);
404 }}}}m68k_incpc(6);
405 return 30;
406 }
CPUFUNC(op_a8_4)407 unsigned long CPUFUNC(op_a8_4)(uint32_t opcode) /* OR */
408 {
409 	uint32_t dstreg = opcode & 7;
410 	OpcodeFamily = 1; CurrentInstrCycles = 32;
411 {{	int32_t src = get_ilong(2);
412 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
413 {	int32_t dst = m68k_read_memory_32(dsta);
414 	src |= dst;
415 	CLEAR_CZNV;
416 	SET_ZFLG (((int32_t)(src)) == 0);
417 	SET_NFLG (((int32_t)(src)) < 0);
418 	m68k_write_memory_32(dsta,src);
419 }}}}m68k_incpc(8);
420 return 32;
421 }
CPUFUNC(op_b0_4)422 unsigned long CPUFUNC(op_b0_4)(uint32_t opcode) /* OR */
423 {
424 	uint32_t dstreg = opcode & 7;
425 	OpcodeFamily = 1; CurrentInstrCycles = 34;
426 {{	int32_t src = get_ilong(2);
427 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
428 	BusCyclePenalty += 2;
429 {	int32_t dst = m68k_read_memory_32(dsta);
430 	src |= dst;
431 	CLEAR_CZNV;
432 	SET_ZFLG (((int32_t)(src)) == 0);
433 	SET_NFLG (((int32_t)(src)) < 0);
434 	m68k_write_memory_32(dsta,src);
435 }}}}m68k_incpc(8);
436 return 34;
437 }
CPUFUNC(op_b8_4)438 unsigned long CPUFUNC(op_b8_4)(uint32_t opcode) /* OR */
439 {
440 	OpcodeFamily = 1; CurrentInstrCycles = 32;
441 {{	int32_t src = get_ilong(2);
442 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
443 {	int32_t dst = m68k_read_memory_32(dsta);
444 	src |= dst;
445 	CLEAR_CZNV;
446 	SET_ZFLG (((int32_t)(src)) == 0);
447 	SET_NFLG (((int32_t)(src)) < 0);
448 	m68k_write_memory_32(dsta,src);
449 }}}}m68k_incpc(8);
450 return 32;
451 }
CPUFUNC(op_b9_4)452 unsigned long CPUFUNC(op_b9_4)(uint32_t opcode) /* OR */
453 {
454 	OpcodeFamily = 1; CurrentInstrCycles = 36;
455 {{	int32_t src = get_ilong(2);
456 {	uint32_t dsta = get_ilong(6);
457 {	int32_t dst = m68k_read_memory_32(dsta);
458 	src |= dst;
459 	CLEAR_CZNV;
460 	SET_ZFLG (((int32_t)(src)) == 0);
461 	SET_NFLG (((int32_t)(src)) < 0);
462 	m68k_write_memory_32(dsta,src);
463 }}}}m68k_incpc(10);
464 return 36;
465 }
CPUFUNC(op_100_4)466 unsigned long CPUFUNC(op_100_4)(uint32_t opcode) /* BTST */
467 {
468 	uint32_t srcreg = ((opcode >> 9) & 7);
469 	uint32_t dstreg = opcode & 7;
470 	OpcodeFamily = 21; CurrentInstrCycles = 6;
471 {{	int32_t src = m68k_dreg(regs, srcreg);
472 {	int32_t dst = m68k_dreg(regs, dstreg);
473 	src &= 31;
474 	SET_ZFLG (1 ^ ((dst >> src) & 1));
475 }}}m68k_incpc(2);
476 return 6;
477 }
CPUFUNC(op_108_4)478 unsigned long CPUFUNC(op_108_4)(uint32_t opcode) /* MVPMR */
479 {
480 	uint32_t srcreg = (opcode & 7);
481 	uint32_t dstreg = (opcode >> 9) & 7;
482 	OpcodeFamily = 29; CurrentInstrCycles = 16;
483 {	uint32_t memp = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
484 {	uint16_t val = (m68k_read_memory_8(memp) << 8) + m68k_read_memory_8(memp + 2);
485 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
486 }}m68k_incpc(4);
487 return 16;
488 }
CPUFUNC(op_110_4)489 unsigned long CPUFUNC(op_110_4)(uint32_t opcode) /* BTST */
490 {
491 	uint32_t srcreg = ((opcode >> 9) & 7);
492 	uint32_t dstreg = opcode & 7;
493 	OpcodeFamily = 21; CurrentInstrCycles = 8;
494 {{	int8_t src = m68k_dreg(regs, srcreg);
495 {	uint32_t dsta = m68k_areg(regs, dstreg);
496 {	int8_t dst = m68k_read_memory_8(dsta);
497 	src &= 7;
498 	SET_ZFLG (1 ^ ((dst >> src) & 1));
499 }}}}m68k_incpc(2);
500 return 8;
501 }
CPUFUNC(op_118_4)502 unsigned long CPUFUNC(op_118_4)(uint32_t opcode) /* BTST */
503 {
504 	uint32_t srcreg = ((opcode >> 9) & 7);
505 	uint32_t dstreg = opcode & 7;
506 	OpcodeFamily = 21; CurrentInstrCycles = 8;
507 {{	int8_t src = m68k_dreg(regs, srcreg);
508 {	uint32_t dsta = m68k_areg(regs, dstreg);
509 {	int8_t dst = m68k_read_memory_8(dsta);
510 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
511 	src &= 7;
512 	SET_ZFLG (1 ^ ((dst >> src) & 1));
513 }}}}m68k_incpc(2);
514 return 8;
515 }
CPUFUNC(op_120_4)516 unsigned long CPUFUNC(op_120_4)(uint32_t opcode) /* BTST */
517 {
518 	uint32_t srcreg = ((opcode >> 9) & 7);
519 	uint32_t dstreg = opcode & 7;
520 	OpcodeFamily = 21; CurrentInstrCycles = 10;
521 {{	int8_t src = m68k_dreg(regs, srcreg);
522 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
523 {	int8_t dst = m68k_read_memory_8(dsta);
524 	m68k_areg (regs, dstreg) = dsta;
525 	src &= 7;
526 	SET_ZFLG (1 ^ ((dst >> src) & 1));
527 }}}}m68k_incpc(2);
528 return 10;
529 }
CPUFUNC(op_128_4)530 unsigned long CPUFUNC(op_128_4)(uint32_t opcode) /* BTST */
531 {
532 	uint32_t srcreg = ((opcode >> 9) & 7);
533 	uint32_t dstreg = opcode & 7;
534 	OpcodeFamily = 21; CurrentInstrCycles = 12;
535 {{	int8_t src = m68k_dreg(regs, srcreg);
536 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
537 {	int8_t dst = m68k_read_memory_8(dsta);
538 	src &= 7;
539 	SET_ZFLG (1 ^ ((dst >> src) & 1));
540 }}}}m68k_incpc(4);
541 return 12;
542 }
CPUFUNC(op_130_4)543 unsigned long CPUFUNC(op_130_4)(uint32_t opcode) /* BTST */
544 {
545 	uint32_t srcreg = ((opcode >> 9) & 7);
546 	uint32_t dstreg = opcode & 7;
547 	OpcodeFamily = 21; CurrentInstrCycles = 14;
548 {{	int8_t src = m68k_dreg(regs, srcreg);
549 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
550 	BusCyclePenalty += 2;
551 {	int8_t dst = m68k_read_memory_8(dsta);
552 	src &= 7;
553 	SET_ZFLG (1 ^ ((dst >> src) & 1));
554 }}}}m68k_incpc(4);
555 return 14;
556 }
CPUFUNC(op_138_4)557 unsigned long CPUFUNC(op_138_4)(uint32_t opcode) /* BTST */
558 {
559 	uint32_t srcreg = ((opcode >> 9) & 7);
560 	OpcodeFamily = 21; CurrentInstrCycles = 12;
561 {{	int8_t src = m68k_dreg(regs, srcreg);
562 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
563 {	int8_t dst = m68k_read_memory_8(dsta);
564 	src &= 7;
565 	SET_ZFLG (1 ^ ((dst >> src) & 1));
566 }}}}m68k_incpc(4);
567 return 12;
568 }
CPUFUNC(op_139_4)569 unsigned long CPUFUNC(op_139_4)(uint32_t opcode) /* BTST */
570 {
571 	uint32_t srcreg = ((opcode >> 9) & 7);
572 	OpcodeFamily = 21; CurrentInstrCycles = 16;
573 {{	int8_t src = m68k_dreg(regs, srcreg);
574 {	uint32_t dsta = get_ilong(2);
575 {	int8_t dst = m68k_read_memory_8(dsta);
576 	src &= 7;
577 	SET_ZFLG (1 ^ ((dst >> src) & 1));
578 }}}}m68k_incpc(6);
579 return 16;
580 }
CPUFUNC(op_13a_4)581 unsigned long CPUFUNC(op_13a_4)(uint32_t opcode) /* BTST */
582 {
583 	uint32_t srcreg = ((opcode >> 9) & 7);
584 	uint32_t dstreg = 2;
585 	OpcodeFamily = 21; CurrentInstrCycles = 12;
586 {{	int8_t src = m68k_dreg(regs, srcreg);
587 {	uint32_t dsta = m68k_getpc () + 2;
588 	dsta += (int32_t)(int16_t)get_iword(2);
589 {	int8_t dst = m68k_read_memory_8(dsta);
590 	src &= 7;
591 	SET_ZFLG (1 ^ ((dst >> src) & 1));
592 }}}}m68k_incpc(4);
593 return 12;
594 }
CPUFUNC(op_13b_4)595 unsigned long CPUFUNC(op_13b_4)(uint32_t opcode) /* BTST */
596 {
597 	uint32_t srcreg = ((opcode >> 9) & 7);
598 	uint32_t dstreg = 3;
599 	OpcodeFamily = 21; CurrentInstrCycles = 14;
600 {{	int8_t src = m68k_dreg(regs, srcreg);
601 {	uint32_t tmppc = m68k_getpc() + 2;
602 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(2));
603 	BusCyclePenalty += 2;
604 {	int8_t dst = m68k_read_memory_8(dsta);
605 	src &= 7;
606 	SET_ZFLG (1 ^ ((dst >> src) & 1));
607 }}}}m68k_incpc(4);
608 return 14;
609 }
CPUFUNC(op_13c_4)610 unsigned long CPUFUNC(op_13c_4)(uint32_t opcode) /* BTST */
611 {
612 	uint32_t srcreg = ((opcode >> 9) & 7);
613 	OpcodeFamily = 21; CurrentInstrCycles = 8;
614 {{	int8_t src = m68k_dreg(regs, srcreg);
615 {	int8_t dst = get_ibyte(2);
616 	src &= 7;
617 	SET_ZFLG (1 ^ ((dst >> src) & 1));
618 }}}m68k_incpc(4);
619 return 8;
620 }
CPUFUNC(op_140_4)621 unsigned long CPUFUNC(op_140_4)(uint32_t opcode) /* BCHG */
622 {
623 	uint32_t srcreg = ((opcode >> 9) & 7);
624 	uint32_t dstreg = opcode & 7;
625 	OpcodeFamily = 22; CurrentInstrCycles = 8;
626 {{	int32_t src = m68k_dreg(regs, srcreg);
627 {	int32_t dst = m68k_dreg(regs, dstreg);
628 	src &= 31;
629 	dst ^= (1 << src);
630 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
631 	m68k_dreg(regs, dstreg) = (dst);
632 }}}m68k_incpc(2);
633 return 8;
634 }
CPUFUNC(op_148_4)635 unsigned long CPUFUNC(op_148_4)(uint32_t opcode) /* MVPMR */
636 {
637 	uint32_t srcreg = (opcode & 7);
638 	uint32_t dstreg = (opcode >> 9) & 7;
639 	OpcodeFamily = 29; CurrentInstrCycles = 24;
640 {	uint32_t memp = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
641 {	uint32_t val = (m68k_read_memory_8(memp) << 24) + (m68k_read_memory_8(memp + 2) << 16)
642               + (m68k_read_memory_8(memp + 4) << 8) + m68k_read_memory_8(memp + 6);
643 	m68k_dreg(regs, dstreg) = (val);
644 }}m68k_incpc(4);
645 return 24;
646 }
CPUFUNC(op_150_4)647 unsigned long CPUFUNC(op_150_4)(uint32_t opcode) /* BCHG */
648 {
649 	uint32_t srcreg = ((opcode >> 9) & 7);
650 	uint32_t dstreg = opcode & 7;
651 	OpcodeFamily = 22; CurrentInstrCycles = 12;
652 {{	int8_t src = m68k_dreg(regs, srcreg);
653 {	uint32_t dsta = m68k_areg(regs, dstreg);
654 {	int8_t dst = m68k_read_memory_8(dsta);
655 	src &= 7;
656 	dst ^= (1 << src);
657 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
658 	m68k_write_memory_8(dsta,dst);
659 }}}}m68k_incpc(2);
660 return 12;
661 }
CPUFUNC(op_158_4)662 unsigned long CPUFUNC(op_158_4)(uint32_t opcode) /* BCHG */
663 {
664 	uint32_t srcreg = ((opcode >> 9) & 7);
665 	uint32_t dstreg = opcode & 7;
666 	OpcodeFamily = 22; CurrentInstrCycles = 12;
667 {{	int8_t src = m68k_dreg(regs, srcreg);
668 {	uint32_t dsta = m68k_areg(regs, dstreg);
669 {	int8_t dst = m68k_read_memory_8(dsta);
670 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
671 	src &= 7;
672 	dst ^= (1 << src);
673 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
674 	m68k_write_memory_8(dsta,dst);
675 }}}}m68k_incpc(2);
676 return 12;
677 }
CPUFUNC(op_160_4)678 unsigned long CPUFUNC(op_160_4)(uint32_t opcode) /* BCHG */
679 {
680 	uint32_t srcreg = ((opcode >> 9) & 7);
681 	uint32_t dstreg = opcode & 7;
682 	OpcodeFamily = 22; CurrentInstrCycles = 14;
683 {{	int8_t src = m68k_dreg(regs, srcreg);
684 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
685 {	int8_t dst = m68k_read_memory_8(dsta);
686 	m68k_areg (regs, dstreg) = dsta;
687 	src &= 7;
688 	dst ^= (1 << src);
689 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
690 	m68k_write_memory_8(dsta,dst);
691 }}}}m68k_incpc(2);
692 return 14;
693 }
CPUFUNC(op_168_4)694 unsigned long CPUFUNC(op_168_4)(uint32_t opcode) /* BCHG */
695 {
696 	uint32_t srcreg = ((opcode >> 9) & 7);
697 	uint32_t dstreg = opcode & 7;
698 	OpcodeFamily = 22; CurrentInstrCycles = 16;
699 {{	int8_t src = m68k_dreg(regs, srcreg);
700 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
701 {	int8_t dst = m68k_read_memory_8(dsta);
702 	src &= 7;
703 	dst ^= (1 << src);
704 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
705 	m68k_write_memory_8(dsta,dst);
706 }}}}m68k_incpc(4);
707 return 16;
708 }
CPUFUNC(op_170_4)709 unsigned long CPUFUNC(op_170_4)(uint32_t opcode) /* BCHG */
710 {
711 	uint32_t srcreg = ((opcode >> 9) & 7);
712 	uint32_t dstreg = opcode & 7;
713 	OpcodeFamily = 22; CurrentInstrCycles = 18;
714 {{	int8_t src = m68k_dreg(regs, srcreg);
715 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
716 	BusCyclePenalty += 2;
717 {	int8_t dst = m68k_read_memory_8(dsta);
718 	src &= 7;
719 	dst ^= (1 << src);
720 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
721 	m68k_write_memory_8(dsta,dst);
722 }}}}m68k_incpc(4);
723 return 18;
724 }
CPUFUNC(op_178_4)725 unsigned long CPUFUNC(op_178_4)(uint32_t opcode) /* BCHG */
726 {
727 	uint32_t srcreg = ((opcode >> 9) & 7);
728 	OpcodeFamily = 22; CurrentInstrCycles = 16;
729 {{	int8_t src = m68k_dreg(regs, srcreg);
730 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
731 {	int8_t dst = m68k_read_memory_8(dsta);
732 	src &= 7;
733 	dst ^= (1 << src);
734 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
735 	m68k_write_memory_8(dsta,dst);
736 }}}}m68k_incpc(4);
737 return 16;
738 }
CPUFUNC(op_179_4)739 unsigned long CPUFUNC(op_179_4)(uint32_t opcode) /* BCHG */
740 {
741 	uint32_t srcreg = ((opcode >> 9) & 7);
742 	OpcodeFamily = 22; CurrentInstrCycles = 20;
743 {{	int8_t src = m68k_dreg(regs, srcreg);
744 {	uint32_t dsta = get_ilong(2);
745 {	int8_t dst = m68k_read_memory_8(dsta);
746 	src &= 7;
747 	dst ^= (1 << src);
748 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
749 	m68k_write_memory_8(dsta,dst);
750 }}}}m68k_incpc(6);
751 return 20;
752 }
CPUFUNC(op_17a_4)753 unsigned long CPUFUNC(op_17a_4)(uint32_t opcode) /* BCHG */
754 {
755 	uint32_t srcreg = ((opcode >> 9) & 7);
756 	uint32_t dstreg = 2;
757 	OpcodeFamily = 22; CurrentInstrCycles = 16;
758 {{	int8_t src = m68k_dreg(regs, srcreg);
759 {	uint32_t dsta = m68k_getpc () + 2;
760 	dsta += (int32_t)(int16_t)get_iword(2);
761 {	int8_t dst = m68k_read_memory_8(dsta);
762 	src &= 7;
763 	dst ^= (1 << src);
764 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
765 	m68k_write_memory_8(dsta,dst);
766 }}}}m68k_incpc(4);
767 return 16;
768 }
CPUFUNC(op_17b_4)769 unsigned long CPUFUNC(op_17b_4)(uint32_t opcode) /* BCHG */
770 {
771 	uint32_t srcreg = ((opcode >> 9) & 7);
772 	uint32_t dstreg = 3;
773 	OpcodeFamily = 22; CurrentInstrCycles = 18;
774 {{	int8_t src = m68k_dreg(regs, srcreg);
775 {	uint32_t tmppc = m68k_getpc() + 2;
776 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(2));
777 	BusCyclePenalty += 2;
778 {	int8_t dst = m68k_read_memory_8(dsta);
779 	src &= 7;
780 	dst ^= (1 << src);
781 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
782 	m68k_write_memory_8(dsta,dst);
783 }}}}m68k_incpc(4);
784 return 18;
785 }
CPUFUNC(op_180_4)786 unsigned long CPUFUNC(op_180_4)(uint32_t opcode) /* BCLR */
787 {
788 	uint32_t srcreg = ((opcode >> 9) & 7);
789 	uint32_t dstreg = opcode & 7;
790 	OpcodeFamily = 23; CurrentInstrCycles = 10;
791 {{	int32_t src = m68k_dreg(regs, srcreg);
792 {	int32_t dst = m68k_dreg(regs, dstreg);
793 	src &= 31;
794 	SET_ZFLG (1 ^ ((dst >> src) & 1));
795 	dst &= ~(1 << src);
796 	m68k_dreg(regs, dstreg) = (dst);
797 	if ( src < 16 ) { m68k_incpc(2); return 8; }
798 }}}m68k_incpc(2);
799 return 10;
800 }
CPUFUNC(op_188_4)801 unsigned long CPUFUNC(op_188_4)(uint32_t opcode) /* MVPRM */
802 {
803 	uint32_t srcreg = ((opcode >> 9) & 7);
804 	uint32_t dstreg = opcode & 7;
805 	OpcodeFamily = 28; CurrentInstrCycles = 16;
806 {{	int16_t src = m68k_dreg(regs, srcreg);
807 	uint32_t memp = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
808 	m68k_write_memory_8(memp, src >> 8); m68k_write_memory_8(memp + 2, src);
809 }}m68k_incpc(4);
810 return 16;
811 }
CPUFUNC(op_190_4)812 unsigned long CPUFUNC(op_190_4)(uint32_t opcode) /* BCLR */
813 {
814 	uint32_t srcreg = ((opcode >> 9) & 7);
815 	uint32_t dstreg = opcode & 7;
816 	OpcodeFamily = 23; CurrentInstrCycles = 12;
817 {{	int8_t src = m68k_dreg(regs, srcreg);
818 {	uint32_t dsta = m68k_areg(regs, dstreg);
819 {	int8_t dst = m68k_read_memory_8(dsta);
820 	src &= 7;
821 	SET_ZFLG (1 ^ ((dst >> src) & 1));
822 	dst &= ~(1 << src);
823 	m68k_write_memory_8(dsta,dst);
824 }}}}m68k_incpc(2);
825 return 12;
826 }
CPUFUNC(op_198_4)827 unsigned long CPUFUNC(op_198_4)(uint32_t opcode) /* BCLR */
828 {
829 	uint32_t srcreg = ((opcode >> 9) & 7);
830 	uint32_t dstreg = opcode & 7;
831 	OpcodeFamily = 23; CurrentInstrCycles = 12;
832 {{	int8_t src = m68k_dreg(regs, srcreg);
833 {	uint32_t dsta = m68k_areg(regs, dstreg);
834 {	int8_t dst = m68k_read_memory_8(dsta);
835 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
836 	src &= 7;
837 	SET_ZFLG (1 ^ ((dst >> src) & 1));
838 	dst &= ~(1 << src);
839 	m68k_write_memory_8(dsta,dst);
840 }}}}m68k_incpc(2);
841 return 12;
842 }
CPUFUNC(op_1a0_4)843 unsigned long CPUFUNC(op_1a0_4)(uint32_t opcode) /* BCLR */
844 {
845 	uint32_t srcreg = ((opcode >> 9) & 7);
846 	uint32_t dstreg = opcode & 7;
847 	OpcodeFamily = 23; CurrentInstrCycles = 14;
848 {{	int8_t src = m68k_dreg(regs, srcreg);
849 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
850 {	int8_t dst = m68k_read_memory_8(dsta);
851 	m68k_areg (regs, dstreg) = dsta;
852 	src &= 7;
853 	SET_ZFLG (1 ^ ((dst >> src) & 1));
854 	dst &= ~(1 << src);
855 	m68k_write_memory_8(dsta,dst);
856 }}}}m68k_incpc(2);
857 return 14;
858 }
CPUFUNC(op_1a8_4)859 unsigned long CPUFUNC(op_1a8_4)(uint32_t opcode) /* BCLR */
860 {
861 	uint32_t srcreg = ((opcode >> 9) & 7);
862 	uint32_t dstreg = opcode & 7;
863 	OpcodeFamily = 23; CurrentInstrCycles = 16;
864 {{	int8_t src = m68k_dreg(regs, srcreg);
865 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
866 {	int8_t dst = m68k_read_memory_8(dsta);
867 	src &= 7;
868 	SET_ZFLG (1 ^ ((dst >> src) & 1));
869 	dst &= ~(1 << src);
870 	m68k_write_memory_8(dsta,dst);
871 }}}}m68k_incpc(4);
872 return 16;
873 }
CPUFUNC(op_1b0_4)874 unsigned long CPUFUNC(op_1b0_4)(uint32_t opcode) /* BCLR */
875 {
876 	uint32_t srcreg = ((opcode >> 9) & 7);
877 	uint32_t dstreg = opcode & 7;
878 	OpcodeFamily = 23; CurrentInstrCycles = 18;
879 {{	int8_t src = m68k_dreg(regs, srcreg);
880 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
881 	BusCyclePenalty += 2;
882 {	int8_t dst = m68k_read_memory_8(dsta);
883 	src &= 7;
884 	SET_ZFLG (1 ^ ((dst >> src) & 1));
885 	dst &= ~(1 << src);
886 	m68k_write_memory_8(dsta,dst);
887 }}}}m68k_incpc(4);
888 return 18;
889 }
CPUFUNC(op_1b8_4)890 unsigned long CPUFUNC(op_1b8_4)(uint32_t opcode) /* BCLR */
891 {
892 	uint32_t srcreg = ((opcode >> 9) & 7);
893 	OpcodeFamily = 23; CurrentInstrCycles = 16;
894 {{	int8_t src = m68k_dreg(regs, srcreg);
895 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
896 {	int8_t dst = m68k_read_memory_8(dsta);
897 	src &= 7;
898 	SET_ZFLG (1 ^ ((dst >> src) & 1));
899 	dst &= ~(1 << src);
900 	m68k_write_memory_8(dsta,dst);
901 }}}}m68k_incpc(4);
902 return 16;
903 }
CPUFUNC(op_1b9_4)904 unsigned long CPUFUNC(op_1b9_4)(uint32_t opcode) /* BCLR */
905 {
906 	uint32_t srcreg = ((opcode >> 9) & 7);
907 	OpcodeFamily = 23; CurrentInstrCycles = 20;
908 {{	int8_t src = m68k_dreg(regs, srcreg);
909 {	uint32_t dsta = get_ilong(2);
910 {	int8_t dst = m68k_read_memory_8(dsta);
911 	src &= 7;
912 	SET_ZFLG (1 ^ ((dst >> src) & 1));
913 	dst &= ~(1 << src);
914 	m68k_write_memory_8(dsta,dst);
915 }}}}m68k_incpc(6);
916 return 20;
917 }
CPUFUNC(op_1ba_4)918 unsigned long CPUFUNC(op_1ba_4)(uint32_t opcode) /* BCLR */
919 {
920 	uint32_t srcreg = ((opcode >> 9) & 7);
921 	uint32_t dstreg = 2;
922 	OpcodeFamily = 23; CurrentInstrCycles = 16;
923 {{	int8_t src = m68k_dreg(regs, srcreg);
924 {	uint32_t dsta = m68k_getpc () + 2;
925 	dsta += (int32_t)(int16_t)get_iword(2);
926 {	int8_t dst = m68k_read_memory_8(dsta);
927 	src &= 7;
928 	SET_ZFLG (1 ^ ((dst >> src) & 1));
929 	dst &= ~(1 << src);
930 	m68k_write_memory_8(dsta,dst);
931 }}}}m68k_incpc(4);
932 return 16;
933 }
CPUFUNC(op_1bb_4)934 unsigned long CPUFUNC(op_1bb_4)(uint32_t opcode) /* BCLR */
935 {
936 	uint32_t srcreg = ((opcode >> 9) & 7);
937 	uint32_t dstreg = 3;
938 	OpcodeFamily = 23; CurrentInstrCycles = 18;
939 {{	int8_t src = m68k_dreg(regs, srcreg);
940 {	uint32_t tmppc = m68k_getpc() + 2;
941 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(2));
942 	BusCyclePenalty += 2;
943 {	int8_t dst = m68k_read_memory_8(dsta);
944 	src &= 7;
945 	SET_ZFLG (1 ^ ((dst >> src) & 1));
946 	dst &= ~(1 << src);
947 	m68k_write_memory_8(dsta,dst);
948 }}}}m68k_incpc(4);
949 return 18;
950 }
CPUFUNC(op_1c0_4)951 unsigned long CPUFUNC(op_1c0_4)(uint32_t opcode) /* BSET */
952 {
953 	uint32_t srcreg = ((opcode >> 9) & 7);
954 	uint32_t dstreg = opcode & 7;
955 	OpcodeFamily = 24; CurrentInstrCycles = 8;
956 {{	int32_t src = m68k_dreg(regs, srcreg);
957 {	int32_t dst = m68k_dreg(regs, dstreg);
958 	src &= 31;
959 	SET_ZFLG (1 ^ ((dst >> src) & 1));
960 	dst |= (1 << src);
961 	m68k_dreg(regs, dstreg) = (dst);
962 }}}m68k_incpc(2);
963 return 8;
964 }
CPUFUNC(op_1c8_4)965 unsigned long CPUFUNC(op_1c8_4)(uint32_t opcode) /* MVPRM */
966 {
967 	uint32_t srcreg = ((opcode >> 9) & 7);
968 	uint32_t dstreg = opcode & 7;
969 	OpcodeFamily = 28; CurrentInstrCycles = 24;
970 {{	int32_t src = m68k_dreg(regs, srcreg);
971 	uint32_t memp = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
972 	m68k_write_memory_8(memp, src >> 24); m68k_write_memory_8(memp + 2, src >> 16);
973 	m68k_write_memory_8(memp + 4, src >> 8); m68k_write_memory_8(memp + 6, src);
974 }}m68k_incpc(4);
975 return 24;
976 }
CPUFUNC(op_1d0_4)977 unsigned long CPUFUNC(op_1d0_4)(uint32_t opcode) /* BSET */
978 {
979 	uint32_t srcreg = ((opcode >> 9) & 7);
980 	uint32_t dstreg = opcode & 7;
981 	OpcodeFamily = 24; CurrentInstrCycles = 12;
982 {{	int8_t src = m68k_dreg(regs, srcreg);
983 {	uint32_t dsta = m68k_areg(regs, dstreg);
984 {	int8_t dst = m68k_read_memory_8(dsta);
985 	src &= 7;
986 	SET_ZFLG (1 ^ ((dst >> src) & 1));
987 	dst |= (1 << src);
988 	m68k_write_memory_8(dsta,dst);
989 }}}}m68k_incpc(2);
990 return 12;
991 }
CPUFUNC(op_1d8_4)992 unsigned long CPUFUNC(op_1d8_4)(uint32_t opcode) /* BSET */
993 {
994 	uint32_t srcreg = ((opcode >> 9) & 7);
995 	uint32_t dstreg = opcode & 7;
996 	OpcodeFamily = 24; CurrentInstrCycles = 12;
997 {{	int8_t src = m68k_dreg(regs, srcreg);
998 {	uint32_t dsta = m68k_areg(regs, dstreg);
999 {	int8_t dst = m68k_read_memory_8(dsta);
1000 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
1001 	src &= 7;
1002 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1003 	dst |= (1 << src);
1004 	m68k_write_memory_8(dsta,dst);
1005 }}}}m68k_incpc(2);
1006 return 12;
1007 }
CPUFUNC(op_1e0_4)1008 unsigned long CPUFUNC(op_1e0_4)(uint32_t opcode) /* BSET */
1009 {
1010 	uint32_t srcreg = ((opcode >> 9) & 7);
1011 	uint32_t dstreg = opcode & 7;
1012 	OpcodeFamily = 24; CurrentInstrCycles = 14;
1013 {{	int8_t src = m68k_dreg(regs, srcreg);
1014 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
1015 {	int8_t dst = m68k_read_memory_8(dsta);
1016 	m68k_areg (regs, dstreg) = dsta;
1017 	src &= 7;
1018 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1019 	dst |= (1 << src);
1020 	m68k_write_memory_8(dsta,dst);
1021 }}}}m68k_incpc(2);
1022 return 14;
1023 }
CPUFUNC(op_1e8_4)1024 unsigned long CPUFUNC(op_1e8_4)(uint32_t opcode) /* BSET */
1025 {
1026 	uint32_t srcreg = ((opcode >> 9) & 7);
1027 	uint32_t dstreg = opcode & 7;
1028 	OpcodeFamily = 24; CurrentInstrCycles = 16;
1029 {{	int8_t src = m68k_dreg(regs, srcreg);
1030 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
1031 {	int8_t dst = m68k_read_memory_8(dsta);
1032 	src &= 7;
1033 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1034 	dst |= (1 << src);
1035 	m68k_write_memory_8(dsta,dst);
1036 }}}}m68k_incpc(4);
1037 return 16;
1038 }
CPUFUNC(op_1f0_4)1039 unsigned long CPUFUNC(op_1f0_4)(uint32_t opcode) /* BSET */
1040 {
1041 	uint32_t srcreg = ((opcode >> 9) & 7);
1042 	uint32_t dstreg = opcode & 7;
1043 	OpcodeFamily = 24; CurrentInstrCycles = 18;
1044 {{	int8_t src = m68k_dreg(regs, srcreg);
1045 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
1046 	BusCyclePenalty += 2;
1047 {	int8_t dst = m68k_read_memory_8(dsta);
1048 	src &= 7;
1049 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1050 	dst |= (1 << src);
1051 	m68k_write_memory_8(dsta,dst);
1052 }}}}m68k_incpc(4);
1053 return 18;
1054 }
CPUFUNC(op_1f8_4)1055 unsigned long CPUFUNC(op_1f8_4)(uint32_t opcode) /* BSET */
1056 {
1057 	uint32_t srcreg = ((opcode >> 9) & 7);
1058 	OpcodeFamily = 24; CurrentInstrCycles = 16;
1059 {{	int8_t src = m68k_dreg(regs, srcreg);
1060 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
1061 {	int8_t dst = m68k_read_memory_8(dsta);
1062 	src &= 7;
1063 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1064 	dst |= (1 << src);
1065 	m68k_write_memory_8(dsta,dst);
1066 }}}}m68k_incpc(4);
1067 return 16;
1068 }
CPUFUNC(op_1f9_4)1069 unsigned long CPUFUNC(op_1f9_4)(uint32_t opcode) /* BSET */
1070 {
1071 	uint32_t srcreg = ((opcode >> 9) & 7);
1072 	OpcodeFamily = 24; CurrentInstrCycles = 20;
1073 {{	int8_t src = m68k_dreg(regs, srcreg);
1074 {	uint32_t dsta = get_ilong(2);
1075 {	int8_t dst = m68k_read_memory_8(dsta);
1076 	src &= 7;
1077 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1078 	dst |= (1 << src);
1079 	m68k_write_memory_8(dsta,dst);
1080 }}}}m68k_incpc(6);
1081 return 20;
1082 }
CPUFUNC(op_1fa_4)1083 unsigned long CPUFUNC(op_1fa_4)(uint32_t opcode) /* BSET */
1084 {
1085 	uint32_t srcreg = ((opcode >> 9) & 7);
1086 	uint32_t dstreg = 2;
1087 	OpcodeFamily = 24; CurrentInstrCycles = 16;
1088 {{	int8_t src = m68k_dreg(regs, srcreg);
1089 {	uint32_t dsta = m68k_getpc () + 2;
1090 	dsta += (int32_t)(int16_t)get_iword(2);
1091 {	int8_t dst = m68k_read_memory_8(dsta);
1092 	src &= 7;
1093 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1094 	dst |= (1 << src);
1095 	m68k_write_memory_8(dsta,dst);
1096 }}}}m68k_incpc(4);
1097 return 16;
1098 }
CPUFUNC(op_1fb_4)1099 unsigned long CPUFUNC(op_1fb_4)(uint32_t opcode) /* BSET */
1100 {
1101 	uint32_t srcreg = ((opcode >> 9) & 7);
1102 	uint32_t dstreg = 3;
1103 	OpcodeFamily = 24; CurrentInstrCycles = 18;
1104 {{	int8_t src = m68k_dreg(regs, srcreg);
1105 {	uint32_t tmppc = m68k_getpc() + 2;
1106 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(2));
1107 	BusCyclePenalty += 2;
1108 {	int8_t dst = m68k_read_memory_8(dsta);
1109 	src &= 7;
1110 	SET_ZFLG (1 ^ ((dst >> src) & 1));
1111 	dst |= (1 << src);
1112 	m68k_write_memory_8(dsta,dst);
1113 }}}}m68k_incpc(4);
1114 return 18;
1115 }
CPUFUNC(op_200_4)1116 unsigned long CPUFUNC(op_200_4)(uint32_t opcode) /* AND */
1117 {
1118 	uint32_t dstreg = opcode & 7;
1119 	OpcodeFamily = 2; CurrentInstrCycles = 8;
1120 {{	int8_t src = get_ibyte(2);
1121 {	int8_t dst = m68k_dreg(regs, dstreg);
1122 	src &= dst;
1123 	CLEAR_CZNV;
1124 	SET_ZFLG (((int8_t)(src)) == 0);
1125 	SET_NFLG (((int8_t)(src)) < 0);
1126 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
1127 }}}m68k_incpc(4);
1128 return 8;
1129 }
CPUFUNC(op_210_4)1130 unsigned long CPUFUNC(op_210_4)(uint32_t opcode) /* AND */
1131 {
1132 	uint32_t dstreg = opcode & 7;
1133 	OpcodeFamily = 2; CurrentInstrCycles = 16;
1134 {{	int8_t src = get_ibyte(2);
1135 {	uint32_t dsta = m68k_areg(regs, dstreg);
1136 {	int8_t dst = m68k_read_memory_8(dsta);
1137 	src &= dst;
1138 	CLEAR_CZNV;
1139 	SET_ZFLG (((int8_t)(src)) == 0);
1140 	SET_NFLG (((int8_t)(src)) < 0);
1141 	m68k_write_memory_8(dsta,src);
1142 }}}}m68k_incpc(4);
1143 return 16;
1144 }
CPUFUNC(op_218_4)1145 unsigned long CPUFUNC(op_218_4)(uint32_t opcode) /* AND */
1146 {
1147 	uint32_t dstreg = opcode & 7;
1148 	OpcodeFamily = 2; CurrentInstrCycles = 16;
1149 {{	int8_t src = get_ibyte(2);
1150 {	uint32_t dsta = m68k_areg(regs, dstreg);
1151 {	int8_t dst = m68k_read_memory_8(dsta);
1152 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
1153 	src &= dst;
1154 	CLEAR_CZNV;
1155 	SET_ZFLG (((int8_t)(src)) == 0);
1156 	SET_NFLG (((int8_t)(src)) < 0);
1157 	m68k_write_memory_8(dsta,src);
1158 }}}}m68k_incpc(4);
1159 return 16;
1160 }
CPUFUNC(op_220_4)1161 unsigned long CPUFUNC(op_220_4)(uint32_t opcode) /* AND */
1162 {
1163 	uint32_t dstreg = opcode & 7;
1164 	OpcodeFamily = 2; CurrentInstrCycles = 18;
1165 {{	int8_t src = get_ibyte(2);
1166 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
1167 {	int8_t dst = m68k_read_memory_8(dsta);
1168 	m68k_areg (regs, dstreg) = dsta;
1169 	src &= dst;
1170 	CLEAR_CZNV;
1171 	SET_ZFLG (((int8_t)(src)) == 0);
1172 	SET_NFLG (((int8_t)(src)) < 0);
1173 	m68k_write_memory_8(dsta,src);
1174 }}}}m68k_incpc(4);
1175 return 18;
1176 }
CPUFUNC(op_228_4)1177 unsigned long CPUFUNC(op_228_4)(uint32_t opcode) /* AND */
1178 {
1179 	uint32_t dstreg = opcode & 7;
1180 	OpcodeFamily = 2; CurrentInstrCycles = 20;
1181 {{	int8_t src = get_ibyte(2);
1182 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
1183 {	int8_t dst = m68k_read_memory_8(dsta);
1184 	src &= dst;
1185 	CLEAR_CZNV;
1186 	SET_ZFLG (((int8_t)(src)) == 0);
1187 	SET_NFLG (((int8_t)(src)) < 0);
1188 	m68k_write_memory_8(dsta,src);
1189 }}}}m68k_incpc(6);
1190 return 20;
1191 }
CPUFUNC(op_230_4)1192 unsigned long CPUFUNC(op_230_4)(uint32_t opcode) /* AND */
1193 {
1194 	uint32_t dstreg = opcode & 7;
1195 	OpcodeFamily = 2; CurrentInstrCycles = 22;
1196 {{	int8_t src = get_ibyte(2);
1197 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
1198 	BusCyclePenalty += 2;
1199 {	int8_t dst = m68k_read_memory_8(dsta);
1200 	src &= dst;
1201 	CLEAR_CZNV;
1202 	SET_ZFLG (((int8_t)(src)) == 0);
1203 	SET_NFLG (((int8_t)(src)) < 0);
1204 	m68k_write_memory_8(dsta,src);
1205 }}}}m68k_incpc(6);
1206 return 22;
1207 }
CPUFUNC(op_238_4)1208 unsigned long CPUFUNC(op_238_4)(uint32_t opcode) /* AND */
1209 {
1210 	OpcodeFamily = 2; CurrentInstrCycles = 20;
1211 {{	int8_t src = get_ibyte(2);
1212 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
1213 {	int8_t dst = m68k_read_memory_8(dsta);
1214 	src &= dst;
1215 	CLEAR_CZNV;
1216 	SET_ZFLG (((int8_t)(src)) == 0);
1217 	SET_NFLG (((int8_t)(src)) < 0);
1218 	m68k_write_memory_8(dsta,src);
1219 }}}}m68k_incpc(6);
1220 return 20;
1221 }
CPUFUNC(op_239_4)1222 unsigned long CPUFUNC(op_239_4)(uint32_t opcode) /* AND */
1223 {
1224 	OpcodeFamily = 2; CurrentInstrCycles = 24;
1225 {{	int8_t src = get_ibyte(2);
1226 {	uint32_t dsta = get_ilong(4);
1227 {	int8_t dst = m68k_read_memory_8(dsta);
1228 	src &= dst;
1229 	CLEAR_CZNV;
1230 	SET_ZFLG (((int8_t)(src)) == 0);
1231 	SET_NFLG (((int8_t)(src)) < 0);
1232 	m68k_write_memory_8(dsta,src);
1233 }}}}m68k_incpc(8);
1234 return 24;
1235 }
CPUFUNC(op_23c_4)1236 unsigned long CPUFUNC(op_23c_4)(uint32_t opcode) /* ANDSR */
1237 {
1238 	OpcodeFamily = 5; CurrentInstrCycles = 20;
1239 {	MakeSR();
1240 {	int16_t src = get_iword(2);
1241 	src |= 0xFF00;
1242 	regs.sr &= src;
1243 	MakeFromSR();
1244 }}m68k_incpc(4);
1245 return 20;
1246 }
CPUFUNC(op_240_4)1247 unsigned long CPUFUNC(op_240_4)(uint32_t opcode) /* AND */
1248 {
1249 	uint32_t dstreg = opcode & 7;
1250 	OpcodeFamily = 2; CurrentInstrCycles = 8;
1251 {{	int16_t src = get_iword(2);
1252 {	int16_t dst = m68k_dreg(regs, dstreg);
1253 	src &= dst;
1254 	CLEAR_CZNV;
1255 	SET_ZFLG (((int16_t)(src)) == 0);
1256 	SET_NFLG (((int16_t)(src)) < 0);
1257 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
1258 }}}m68k_incpc(4);
1259 return 8;
1260 }
CPUFUNC(op_250_4)1261 unsigned long CPUFUNC(op_250_4)(uint32_t opcode) /* AND */
1262 {
1263 	uint32_t dstreg = opcode & 7;
1264 	OpcodeFamily = 2; CurrentInstrCycles = 16;
1265 {{	int16_t src = get_iword(2);
1266 {	uint32_t dsta = m68k_areg(regs, dstreg);
1267 {	int16_t dst = m68k_read_memory_16(dsta);
1268 	src &= dst;
1269 	CLEAR_CZNV;
1270 	SET_ZFLG (((int16_t)(src)) == 0);
1271 	SET_NFLG (((int16_t)(src)) < 0);
1272 	m68k_write_memory_16(dsta,src);
1273 }}}}m68k_incpc(4);
1274 return 16;
1275 }
CPUFUNC(op_258_4)1276 unsigned long CPUFUNC(op_258_4)(uint32_t opcode) /* AND */
1277 {
1278 	uint32_t dstreg = opcode & 7;
1279 	OpcodeFamily = 2; CurrentInstrCycles = 16;
1280 {{	int16_t src = get_iword(2);
1281 {	uint32_t dsta = m68k_areg(regs, dstreg);
1282 {	int16_t dst = m68k_read_memory_16(dsta);
1283 	m68k_areg(regs, dstreg) += 2;
1284 	src &= dst;
1285 	CLEAR_CZNV;
1286 	SET_ZFLG (((int16_t)(src)) == 0);
1287 	SET_NFLG (((int16_t)(src)) < 0);
1288 	m68k_write_memory_16(dsta,src);
1289 }}}}m68k_incpc(4);
1290 return 16;
1291 }
CPUFUNC(op_260_4)1292 unsigned long CPUFUNC(op_260_4)(uint32_t opcode) /* AND */
1293 {
1294 	uint32_t dstreg = opcode & 7;
1295 	OpcodeFamily = 2; CurrentInstrCycles = 18;
1296 {{	int16_t src = get_iword(2);
1297 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
1298 {	int16_t dst = m68k_read_memory_16(dsta);
1299 	m68k_areg (regs, dstreg) = dsta;
1300 	src &= dst;
1301 	CLEAR_CZNV;
1302 	SET_ZFLG (((int16_t)(src)) == 0);
1303 	SET_NFLG (((int16_t)(src)) < 0);
1304 	m68k_write_memory_16(dsta,src);
1305 }}}}m68k_incpc(4);
1306 return 18;
1307 }
CPUFUNC(op_268_4)1308 unsigned long CPUFUNC(op_268_4)(uint32_t opcode) /* AND */
1309 {
1310 	uint32_t dstreg = opcode & 7;
1311 	OpcodeFamily = 2; CurrentInstrCycles = 20;
1312 {{	int16_t src = get_iword(2);
1313 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
1314 {	int16_t dst = m68k_read_memory_16(dsta);
1315 	src &= dst;
1316 	CLEAR_CZNV;
1317 	SET_ZFLG (((int16_t)(src)) == 0);
1318 	SET_NFLG (((int16_t)(src)) < 0);
1319 	m68k_write_memory_16(dsta,src);
1320 }}}}m68k_incpc(6);
1321 return 20;
1322 }
CPUFUNC(op_270_4)1323 unsigned long CPUFUNC(op_270_4)(uint32_t opcode) /* AND */
1324 {
1325 	uint32_t dstreg = opcode & 7;
1326 	OpcodeFamily = 2; CurrentInstrCycles = 22;
1327 {{	int16_t src = get_iword(2);
1328 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
1329 	BusCyclePenalty += 2;
1330 {	int16_t dst = m68k_read_memory_16(dsta);
1331 	src &= dst;
1332 	CLEAR_CZNV;
1333 	SET_ZFLG (((int16_t)(src)) == 0);
1334 	SET_NFLG (((int16_t)(src)) < 0);
1335 	m68k_write_memory_16(dsta,src);
1336 }}}}m68k_incpc(6);
1337 return 22;
1338 }
CPUFUNC(op_278_4)1339 unsigned long CPUFUNC(op_278_4)(uint32_t opcode) /* AND */
1340 {
1341 	OpcodeFamily = 2; CurrentInstrCycles = 20;
1342 {{	int16_t src = get_iword(2);
1343 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
1344 {	int16_t dst = m68k_read_memory_16(dsta);
1345 	src &= dst;
1346 	CLEAR_CZNV;
1347 	SET_ZFLG (((int16_t)(src)) == 0);
1348 	SET_NFLG (((int16_t)(src)) < 0);
1349 	m68k_write_memory_16(dsta,src);
1350 }}}}m68k_incpc(6);
1351 return 20;
1352 }
CPUFUNC(op_279_4)1353 unsigned long CPUFUNC(op_279_4)(uint32_t opcode) /* AND */
1354 {
1355 	OpcodeFamily = 2; CurrentInstrCycles = 24;
1356 {{	int16_t src = get_iword(2);
1357 {	uint32_t dsta = get_ilong(4);
1358 {	int16_t dst = m68k_read_memory_16(dsta);
1359 	src &= dst;
1360 	CLEAR_CZNV;
1361 	SET_ZFLG (((int16_t)(src)) == 0);
1362 	SET_NFLG (((int16_t)(src)) < 0);
1363 	m68k_write_memory_16(dsta,src);
1364 }}}}m68k_incpc(8);
1365 return 24;
1366 }
CPUFUNC(op_27c_4)1367 unsigned long CPUFUNC(op_27c_4)(uint32_t opcode) /* ANDSR */
1368 {
1369 	OpcodeFamily = 5; CurrentInstrCycles = 20;
1370 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel89; }
1371 {	MakeSR();
1372 {	int16_t src = get_iword(2);
1373 	regs.sr &= src;
1374 	MakeFromSR();
1375 }}}m68k_incpc(4);
1376 endlabel89: ;
1377 return 20;
1378 }
CPUFUNC(op_280_4)1379 unsigned long CPUFUNC(op_280_4)(uint32_t opcode) /* AND */
1380 {
1381 	uint32_t dstreg = opcode & 7;
1382 	OpcodeFamily = 2; CurrentInstrCycles = 16;
1383 {{	int32_t src = get_ilong(2);
1384 {	int32_t dst = m68k_dreg(regs, dstreg);
1385 	src &= dst;
1386 	CLEAR_CZNV;
1387 	SET_ZFLG (((int32_t)(src)) == 0);
1388 	SET_NFLG (((int32_t)(src)) < 0);
1389 	m68k_dreg(regs, dstreg) = (src);
1390 }}}m68k_incpc(6);
1391 return 16;
1392 }
CPUFUNC(op_290_4)1393 unsigned long CPUFUNC(op_290_4)(uint32_t opcode) /* AND */
1394 {
1395 	uint32_t dstreg = opcode & 7;
1396 	OpcodeFamily = 2; CurrentInstrCycles = 28;
1397 {{	int32_t src = get_ilong(2);
1398 {	uint32_t dsta = m68k_areg(regs, dstreg);
1399 {	int32_t dst = m68k_read_memory_32(dsta);
1400 	src &= dst;
1401 	CLEAR_CZNV;
1402 	SET_ZFLG (((int32_t)(src)) == 0);
1403 	SET_NFLG (((int32_t)(src)) < 0);
1404 	m68k_write_memory_32(dsta,src);
1405 }}}}m68k_incpc(6);
1406 return 28;
1407 }
CPUFUNC(op_298_4)1408 unsigned long CPUFUNC(op_298_4)(uint32_t opcode) /* AND */
1409 {
1410 	uint32_t dstreg = opcode & 7;
1411 	OpcodeFamily = 2; CurrentInstrCycles = 28;
1412 {{	int32_t src = get_ilong(2);
1413 {	uint32_t dsta = m68k_areg(regs, dstreg);
1414 {	int32_t dst = m68k_read_memory_32(dsta);
1415 	m68k_areg(regs, dstreg) += 4;
1416 	src &= dst;
1417 	CLEAR_CZNV;
1418 	SET_ZFLG (((int32_t)(src)) == 0);
1419 	SET_NFLG (((int32_t)(src)) < 0);
1420 	m68k_write_memory_32(dsta,src);
1421 }}}}m68k_incpc(6);
1422 return 28;
1423 }
CPUFUNC(op_2a0_4)1424 unsigned long CPUFUNC(op_2a0_4)(uint32_t opcode) /* AND */
1425 {
1426 	uint32_t dstreg = opcode & 7;
1427 	OpcodeFamily = 2; CurrentInstrCycles = 30;
1428 {{	int32_t src = get_ilong(2);
1429 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
1430 {	int32_t dst = m68k_read_memory_32(dsta);
1431 	m68k_areg (regs, dstreg) = dsta;
1432 	src &= dst;
1433 	CLEAR_CZNV;
1434 	SET_ZFLG (((int32_t)(src)) == 0);
1435 	SET_NFLG (((int32_t)(src)) < 0);
1436 	m68k_write_memory_32(dsta,src);
1437 }}}}m68k_incpc(6);
1438 return 30;
1439 }
CPUFUNC(op_2a8_4)1440 unsigned long CPUFUNC(op_2a8_4)(uint32_t opcode) /* AND */
1441 {
1442 	uint32_t dstreg = opcode & 7;
1443 	OpcodeFamily = 2; CurrentInstrCycles = 32;
1444 {{	int32_t src = get_ilong(2);
1445 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
1446 {	int32_t dst = m68k_read_memory_32(dsta);
1447 	src &= dst;
1448 	CLEAR_CZNV;
1449 	SET_ZFLG (((int32_t)(src)) == 0);
1450 	SET_NFLG (((int32_t)(src)) < 0);
1451 	m68k_write_memory_32(dsta,src);
1452 }}}}m68k_incpc(8);
1453 return 32;
1454 }
CPUFUNC(op_2b0_4)1455 unsigned long CPUFUNC(op_2b0_4)(uint32_t opcode) /* AND */
1456 {
1457 	uint32_t dstreg = opcode & 7;
1458 	OpcodeFamily = 2; CurrentInstrCycles = 34;
1459 {{	int32_t src = get_ilong(2);
1460 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
1461 	BusCyclePenalty += 2;
1462 {	int32_t dst = m68k_read_memory_32(dsta);
1463 	src &= dst;
1464 	CLEAR_CZNV;
1465 	SET_ZFLG (((int32_t)(src)) == 0);
1466 	SET_NFLG (((int32_t)(src)) < 0);
1467 	m68k_write_memory_32(dsta,src);
1468 }}}}m68k_incpc(8);
1469 return 34;
1470 }
CPUFUNC(op_2b8_4)1471 unsigned long CPUFUNC(op_2b8_4)(uint32_t opcode) /* AND */
1472 {
1473 	OpcodeFamily = 2; CurrentInstrCycles = 32;
1474 {{	int32_t src = get_ilong(2);
1475 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
1476 {	int32_t dst = m68k_read_memory_32(dsta);
1477 	src &= dst;
1478 	CLEAR_CZNV;
1479 	SET_ZFLG (((int32_t)(src)) == 0);
1480 	SET_NFLG (((int32_t)(src)) < 0);
1481 	m68k_write_memory_32(dsta,src);
1482 }}}}m68k_incpc(8);
1483 return 32;
1484 }
CPUFUNC(op_2b9_4)1485 unsigned long CPUFUNC(op_2b9_4)(uint32_t opcode) /* AND */
1486 {
1487 	OpcodeFamily = 2; CurrentInstrCycles = 36;
1488 {{	int32_t src = get_ilong(2);
1489 {	uint32_t dsta = get_ilong(6);
1490 {	int32_t dst = m68k_read_memory_32(dsta);
1491 	src &= dst;
1492 	CLEAR_CZNV;
1493 	SET_ZFLG (((int32_t)(src)) == 0);
1494 	SET_NFLG (((int32_t)(src)) < 0);
1495 	m68k_write_memory_32(dsta,src);
1496 }}}}m68k_incpc(10);
1497 return 36;
1498 }
CPUFUNC(op_400_4)1499 unsigned long CPUFUNC(op_400_4)(uint32_t opcode) /* SUB */
1500 {
1501 	uint32_t dstreg = opcode & 7;
1502 	OpcodeFamily = 7; CurrentInstrCycles = 8;
1503 {{	int8_t src = get_ibyte(2);
1504 {	int8_t dst = m68k_dreg(regs, dstreg);
1505 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1506 {	int flgs = ((int8_t)(src)) < 0;
1507 	int flgo = ((int8_t)(dst)) < 0;
1508 	int flgn = ((int8_t)(newv)) < 0;
1509 	SET_ZFLG (((int8_t)(newv)) == 0);
1510 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1511 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1512 	COPY_CARRY;
1513 	SET_NFLG (flgn != 0);
1514 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
1515 }}}}}}m68k_incpc(4);
1516 return 8;
1517 }
CPUFUNC(op_410_4)1518 unsigned long CPUFUNC(op_410_4)(uint32_t opcode) /* SUB */
1519 {
1520 	uint32_t dstreg = opcode & 7;
1521 	OpcodeFamily = 7; CurrentInstrCycles = 16;
1522 {{	int8_t src = get_ibyte(2);
1523 {	uint32_t dsta = m68k_areg(regs, dstreg);
1524 {	int8_t dst = m68k_read_memory_8(dsta);
1525 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1526 {	int flgs = ((int8_t)(src)) < 0;
1527 	int flgo = ((int8_t)(dst)) < 0;
1528 	int flgn = ((int8_t)(newv)) < 0;
1529 	SET_ZFLG (((int8_t)(newv)) == 0);
1530 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1531 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1532 	COPY_CARRY;
1533 	SET_NFLG (flgn != 0);
1534 	m68k_write_memory_8(dsta,newv);
1535 }}}}}}}m68k_incpc(4);
1536 return 16;
1537 }
CPUFUNC(op_418_4)1538 unsigned long CPUFUNC(op_418_4)(uint32_t opcode) /* SUB */
1539 {
1540 	uint32_t dstreg = opcode & 7;
1541 	OpcodeFamily = 7; CurrentInstrCycles = 16;
1542 {{	int8_t src = get_ibyte(2);
1543 {	uint32_t dsta = m68k_areg(regs, dstreg);
1544 {	int8_t dst = m68k_read_memory_8(dsta);
1545 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
1546 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1547 {	int flgs = ((int8_t)(src)) < 0;
1548 	int flgo = ((int8_t)(dst)) < 0;
1549 	int flgn = ((int8_t)(newv)) < 0;
1550 	SET_ZFLG (((int8_t)(newv)) == 0);
1551 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1552 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1553 	COPY_CARRY;
1554 	SET_NFLG (flgn != 0);
1555 	m68k_write_memory_8(dsta,newv);
1556 }}}}}}}m68k_incpc(4);
1557 return 16;
1558 }
CPUFUNC(op_420_4)1559 unsigned long CPUFUNC(op_420_4)(uint32_t opcode) /* SUB */
1560 {
1561 	uint32_t dstreg = opcode & 7;
1562 	OpcodeFamily = 7; CurrentInstrCycles = 18;
1563 {{	int8_t src = get_ibyte(2);
1564 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
1565 {	int8_t dst = m68k_read_memory_8(dsta);
1566 	m68k_areg (regs, dstreg) = dsta;
1567 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1568 {	int flgs = ((int8_t)(src)) < 0;
1569 	int flgo = ((int8_t)(dst)) < 0;
1570 	int flgn = ((int8_t)(newv)) < 0;
1571 	SET_ZFLG (((int8_t)(newv)) == 0);
1572 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1573 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1574 	COPY_CARRY;
1575 	SET_NFLG (flgn != 0);
1576 	m68k_write_memory_8(dsta,newv);
1577 }}}}}}}m68k_incpc(4);
1578 return 18;
1579 }
CPUFUNC(op_428_4)1580 unsigned long CPUFUNC(op_428_4)(uint32_t opcode) /* SUB */
1581 {
1582 	uint32_t dstreg = opcode & 7;
1583 	OpcodeFamily = 7; CurrentInstrCycles = 20;
1584 {{	int8_t src = get_ibyte(2);
1585 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
1586 {	int8_t dst = m68k_read_memory_8(dsta);
1587 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1588 {	int flgs = ((int8_t)(src)) < 0;
1589 	int flgo = ((int8_t)(dst)) < 0;
1590 	int flgn = ((int8_t)(newv)) < 0;
1591 	SET_ZFLG (((int8_t)(newv)) == 0);
1592 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1593 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1594 	COPY_CARRY;
1595 	SET_NFLG (flgn != 0);
1596 	m68k_write_memory_8(dsta,newv);
1597 }}}}}}}m68k_incpc(6);
1598 return 20;
1599 }
CPUFUNC(op_430_4)1600 unsigned long CPUFUNC(op_430_4)(uint32_t opcode) /* SUB */
1601 {
1602 	uint32_t dstreg = opcode & 7;
1603 	OpcodeFamily = 7; CurrentInstrCycles = 22;
1604 {{	int8_t src = get_ibyte(2);
1605 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
1606 	BusCyclePenalty += 2;
1607 {	int8_t dst = m68k_read_memory_8(dsta);
1608 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1609 {	int flgs = ((int8_t)(src)) < 0;
1610 	int flgo = ((int8_t)(dst)) < 0;
1611 	int flgn = ((int8_t)(newv)) < 0;
1612 	SET_ZFLG (((int8_t)(newv)) == 0);
1613 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1614 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1615 	COPY_CARRY;
1616 	SET_NFLG (flgn != 0);
1617 	m68k_write_memory_8(dsta,newv);
1618 }}}}}}}m68k_incpc(6);
1619 return 22;
1620 }
CPUFUNC(op_438_4)1621 unsigned long CPUFUNC(op_438_4)(uint32_t opcode) /* SUB */
1622 {
1623 	OpcodeFamily = 7; CurrentInstrCycles = 20;
1624 {{	int8_t src = get_ibyte(2);
1625 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
1626 {	int8_t dst = m68k_read_memory_8(dsta);
1627 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1628 {	int flgs = ((int8_t)(src)) < 0;
1629 	int flgo = ((int8_t)(dst)) < 0;
1630 	int flgn = ((int8_t)(newv)) < 0;
1631 	SET_ZFLG (((int8_t)(newv)) == 0);
1632 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1633 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1634 	COPY_CARRY;
1635 	SET_NFLG (flgn != 0);
1636 	m68k_write_memory_8(dsta,newv);
1637 }}}}}}}m68k_incpc(6);
1638 return 20;
1639 }
CPUFUNC(op_439_4)1640 unsigned long CPUFUNC(op_439_4)(uint32_t opcode) /* SUB */
1641 {
1642 	OpcodeFamily = 7; CurrentInstrCycles = 24;
1643 {{	int8_t src = get_ibyte(2);
1644 {	uint32_t dsta = get_ilong(4);
1645 {	int8_t dst = m68k_read_memory_8(dsta);
1646 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
1647 {	int flgs = ((int8_t)(src)) < 0;
1648 	int flgo = ((int8_t)(dst)) < 0;
1649 	int flgn = ((int8_t)(newv)) < 0;
1650 	SET_ZFLG (((int8_t)(newv)) == 0);
1651 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1652 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
1653 	COPY_CARRY;
1654 	SET_NFLG (flgn != 0);
1655 	m68k_write_memory_8(dsta,newv);
1656 }}}}}}}m68k_incpc(8);
1657 return 24;
1658 }
CPUFUNC(op_440_4)1659 unsigned long CPUFUNC(op_440_4)(uint32_t opcode) /* SUB */
1660 {
1661 	uint32_t dstreg = opcode & 7;
1662 	OpcodeFamily = 7; CurrentInstrCycles = 8;
1663 {{	int16_t src = get_iword(2);
1664 {	int16_t dst = m68k_dreg(regs, dstreg);
1665 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1666 {	int flgs = ((int16_t)(src)) < 0;
1667 	int flgo = ((int16_t)(dst)) < 0;
1668 	int flgn = ((int16_t)(newv)) < 0;
1669 	SET_ZFLG (((int16_t)(newv)) == 0);
1670 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1671 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1672 	COPY_CARRY;
1673 	SET_NFLG (flgn != 0);
1674 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
1675 }}}}}}m68k_incpc(4);
1676 return 8;
1677 }
CPUFUNC(op_450_4)1678 unsigned long CPUFUNC(op_450_4)(uint32_t opcode) /* SUB */
1679 {
1680 	uint32_t dstreg = opcode & 7;
1681 	OpcodeFamily = 7; CurrentInstrCycles = 16;
1682 {{	int16_t src = get_iword(2);
1683 {	uint32_t dsta = m68k_areg(regs, dstreg);
1684 {	int16_t dst = m68k_read_memory_16(dsta);
1685 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1686 {	int flgs = ((int16_t)(src)) < 0;
1687 	int flgo = ((int16_t)(dst)) < 0;
1688 	int flgn = ((int16_t)(newv)) < 0;
1689 	SET_ZFLG (((int16_t)(newv)) == 0);
1690 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1691 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1692 	COPY_CARRY;
1693 	SET_NFLG (flgn != 0);
1694 	m68k_write_memory_16(dsta,newv);
1695 }}}}}}}m68k_incpc(4);
1696 return 16;
1697 }
CPUFUNC(op_458_4)1698 unsigned long CPUFUNC(op_458_4)(uint32_t opcode) /* SUB */
1699 {
1700 	uint32_t dstreg = opcode & 7;
1701 	OpcodeFamily = 7; CurrentInstrCycles = 16;
1702 {{	int16_t src = get_iword(2);
1703 {	uint32_t dsta = m68k_areg(regs, dstreg);
1704 {	int16_t dst = m68k_read_memory_16(dsta);
1705 	m68k_areg(regs, dstreg) += 2;
1706 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1707 {	int flgs = ((int16_t)(src)) < 0;
1708 	int flgo = ((int16_t)(dst)) < 0;
1709 	int flgn = ((int16_t)(newv)) < 0;
1710 	SET_ZFLG (((int16_t)(newv)) == 0);
1711 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1712 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1713 	COPY_CARRY;
1714 	SET_NFLG (flgn != 0);
1715 	m68k_write_memory_16(dsta,newv);
1716 }}}}}}}m68k_incpc(4);
1717 return 16;
1718 }
CPUFUNC(op_460_4)1719 unsigned long CPUFUNC(op_460_4)(uint32_t opcode) /* SUB */
1720 {
1721 	uint32_t dstreg = opcode & 7;
1722 	OpcodeFamily = 7; CurrentInstrCycles = 18;
1723 {{	int16_t src = get_iword(2);
1724 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
1725 {	int16_t dst = m68k_read_memory_16(dsta);
1726 	m68k_areg (regs, dstreg) = dsta;
1727 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1728 {	int flgs = ((int16_t)(src)) < 0;
1729 	int flgo = ((int16_t)(dst)) < 0;
1730 	int flgn = ((int16_t)(newv)) < 0;
1731 	SET_ZFLG (((int16_t)(newv)) == 0);
1732 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1733 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1734 	COPY_CARRY;
1735 	SET_NFLG (flgn != 0);
1736 	m68k_write_memory_16(dsta,newv);
1737 }}}}}}}m68k_incpc(4);
1738 return 18;
1739 }
CPUFUNC(op_468_4)1740 unsigned long CPUFUNC(op_468_4)(uint32_t opcode) /* SUB */
1741 {
1742 	uint32_t dstreg = opcode & 7;
1743 	OpcodeFamily = 7; CurrentInstrCycles = 20;
1744 {{	int16_t src = get_iword(2);
1745 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
1746 {	int16_t dst = m68k_read_memory_16(dsta);
1747 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1748 {	int flgs = ((int16_t)(src)) < 0;
1749 	int flgo = ((int16_t)(dst)) < 0;
1750 	int flgn = ((int16_t)(newv)) < 0;
1751 	SET_ZFLG (((int16_t)(newv)) == 0);
1752 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1753 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1754 	COPY_CARRY;
1755 	SET_NFLG (flgn != 0);
1756 	m68k_write_memory_16(dsta,newv);
1757 }}}}}}}m68k_incpc(6);
1758 return 20;
1759 }
CPUFUNC(op_470_4)1760 unsigned long CPUFUNC(op_470_4)(uint32_t opcode) /* SUB */
1761 {
1762 	uint32_t dstreg = opcode & 7;
1763 	OpcodeFamily = 7; CurrentInstrCycles = 22;
1764 {{	int16_t src = get_iword(2);
1765 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
1766 	BusCyclePenalty += 2;
1767 {	int16_t dst = m68k_read_memory_16(dsta);
1768 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1769 {	int flgs = ((int16_t)(src)) < 0;
1770 	int flgo = ((int16_t)(dst)) < 0;
1771 	int flgn = ((int16_t)(newv)) < 0;
1772 	SET_ZFLG (((int16_t)(newv)) == 0);
1773 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1774 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1775 	COPY_CARRY;
1776 	SET_NFLG (flgn != 0);
1777 	m68k_write_memory_16(dsta,newv);
1778 }}}}}}}m68k_incpc(6);
1779 return 22;
1780 }
CPUFUNC(op_478_4)1781 unsigned long CPUFUNC(op_478_4)(uint32_t opcode) /* SUB */
1782 {
1783 	OpcodeFamily = 7; CurrentInstrCycles = 20;
1784 {{	int16_t src = get_iword(2);
1785 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
1786 {	int16_t dst = m68k_read_memory_16(dsta);
1787 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1788 {	int flgs = ((int16_t)(src)) < 0;
1789 	int flgo = ((int16_t)(dst)) < 0;
1790 	int flgn = ((int16_t)(newv)) < 0;
1791 	SET_ZFLG (((int16_t)(newv)) == 0);
1792 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1793 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1794 	COPY_CARRY;
1795 	SET_NFLG (flgn != 0);
1796 	m68k_write_memory_16(dsta,newv);
1797 }}}}}}}m68k_incpc(6);
1798 return 20;
1799 }
CPUFUNC(op_479_4)1800 unsigned long CPUFUNC(op_479_4)(uint32_t opcode) /* SUB */
1801 {
1802 	OpcodeFamily = 7; CurrentInstrCycles = 24;
1803 {{	int16_t src = get_iword(2);
1804 {	uint32_t dsta = get_ilong(4);
1805 {	int16_t dst = m68k_read_memory_16(dsta);
1806 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
1807 {	int flgs = ((int16_t)(src)) < 0;
1808 	int flgo = ((int16_t)(dst)) < 0;
1809 	int flgn = ((int16_t)(newv)) < 0;
1810 	SET_ZFLG (((int16_t)(newv)) == 0);
1811 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1812 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
1813 	COPY_CARRY;
1814 	SET_NFLG (flgn != 0);
1815 	m68k_write_memory_16(dsta,newv);
1816 }}}}}}}m68k_incpc(8);
1817 return 24;
1818 }
CPUFUNC(op_480_4)1819 unsigned long CPUFUNC(op_480_4)(uint32_t opcode) /* SUB */
1820 {
1821 	uint32_t dstreg = opcode & 7;
1822 	OpcodeFamily = 7; CurrentInstrCycles = 16;
1823 {{	int32_t src = get_ilong(2);
1824 {	int32_t dst = m68k_dreg(regs, dstreg);
1825 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1826 {	int flgs = ((int32_t)(src)) < 0;
1827 	int flgo = ((int32_t)(dst)) < 0;
1828 	int flgn = ((int32_t)(newv)) < 0;
1829 	SET_ZFLG (((int32_t)(newv)) == 0);
1830 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1831 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1832 	COPY_CARRY;
1833 	SET_NFLG (flgn != 0);
1834 	m68k_dreg(regs, dstreg) = (newv);
1835 }}}}}}m68k_incpc(6);
1836 return 16;
1837 }
CPUFUNC(op_490_4)1838 unsigned long CPUFUNC(op_490_4)(uint32_t opcode) /* SUB */
1839 {
1840 	uint32_t dstreg = opcode & 7;
1841 	OpcodeFamily = 7; CurrentInstrCycles = 28;
1842 {{	int32_t src = get_ilong(2);
1843 {	uint32_t dsta = m68k_areg(regs, dstreg);
1844 {	int32_t dst = m68k_read_memory_32(dsta);
1845 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1846 {	int flgs = ((int32_t)(src)) < 0;
1847 	int flgo = ((int32_t)(dst)) < 0;
1848 	int flgn = ((int32_t)(newv)) < 0;
1849 	SET_ZFLG (((int32_t)(newv)) == 0);
1850 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1851 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1852 	COPY_CARRY;
1853 	SET_NFLG (flgn != 0);
1854 	m68k_write_memory_32(dsta,newv);
1855 }}}}}}}m68k_incpc(6);
1856 return 28;
1857 }
CPUFUNC(op_498_4)1858 unsigned long CPUFUNC(op_498_4)(uint32_t opcode) /* SUB */
1859 {
1860 	uint32_t dstreg = opcode & 7;
1861 	OpcodeFamily = 7; CurrentInstrCycles = 28;
1862 {{	int32_t src = get_ilong(2);
1863 {	uint32_t dsta = m68k_areg(regs, dstreg);
1864 {	int32_t dst = m68k_read_memory_32(dsta);
1865 	m68k_areg(regs, dstreg) += 4;
1866 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1867 {	int flgs = ((int32_t)(src)) < 0;
1868 	int flgo = ((int32_t)(dst)) < 0;
1869 	int flgn = ((int32_t)(newv)) < 0;
1870 	SET_ZFLG (((int32_t)(newv)) == 0);
1871 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1872 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1873 	COPY_CARRY;
1874 	SET_NFLG (flgn != 0);
1875 	m68k_write_memory_32(dsta,newv);
1876 }}}}}}}m68k_incpc(6);
1877 return 28;
1878 }
CPUFUNC(op_4a0_4)1879 unsigned long CPUFUNC(op_4a0_4)(uint32_t opcode) /* SUB */
1880 {
1881 	uint32_t dstreg = opcode & 7;
1882 	OpcodeFamily = 7; CurrentInstrCycles = 30;
1883 {{	int32_t src = get_ilong(2);
1884 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
1885 {	int32_t dst = m68k_read_memory_32(dsta);
1886 	m68k_areg (regs, dstreg) = dsta;
1887 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1888 {	int flgs = ((int32_t)(src)) < 0;
1889 	int flgo = ((int32_t)(dst)) < 0;
1890 	int flgn = ((int32_t)(newv)) < 0;
1891 	SET_ZFLG (((int32_t)(newv)) == 0);
1892 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1893 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1894 	COPY_CARRY;
1895 	SET_NFLG (flgn != 0);
1896 	m68k_write_memory_32(dsta,newv);
1897 }}}}}}}m68k_incpc(6);
1898 return 30;
1899 }
CPUFUNC(op_4a8_4)1900 unsigned long CPUFUNC(op_4a8_4)(uint32_t opcode) /* SUB */
1901 {
1902 	uint32_t dstreg = opcode & 7;
1903 	OpcodeFamily = 7; CurrentInstrCycles = 32;
1904 {{	int32_t src = get_ilong(2);
1905 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
1906 {	int32_t dst = m68k_read_memory_32(dsta);
1907 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1908 {	int flgs = ((int32_t)(src)) < 0;
1909 	int flgo = ((int32_t)(dst)) < 0;
1910 	int flgn = ((int32_t)(newv)) < 0;
1911 	SET_ZFLG (((int32_t)(newv)) == 0);
1912 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1913 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1914 	COPY_CARRY;
1915 	SET_NFLG (flgn != 0);
1916 	m68k_write_memory_32(dsta,newv);
1917 }}}}}}}m68k_incpc(8);
1918 return 32;
1919 }
CPUFUNC(op_4b0_4)1920 unsigned long CPUFUNC(op_4b0_4)(uint32_t opcode) /* SUB */
1921 {
1922 	uint32_t dstreg = opcode & 7;
1923 	OpcodeFamily = 7; CurrentInstrCycles = 34;
1924 {{	int32_t src = get_ilong(2);
1925 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
1926 	BusCyclePenalty += 2;
1927 {	int32_t dst = m68k_read_memory_32(dsta);
1928 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1929 {	int flgs = ((int32_t)(src)) < 0;
1930 	int flgo = ((int32_t)(dst)) < 0;
1931 	int flgn = ((int32_t)(newv)) < 0;
1932 	SET_ZFLG (((int32_t)(newv)) == 0);
1933 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1934 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1935 	COPY_CARRY;
1936 	SET_NFLG (flgn != 0);
1937 	m68k_write_memory_32(dsta,newv);
1938 }}}}}}}m68k_incpc(8);
1939 return 34;
1940 }
CPUFUNC(op_4b8_4)1941 unsigned long CPUFUNC(op_4b8_4)(uint32_t opcode) /* SUB */
1942 {
1943 	OpcodeFamily = 7; CurrentInstrCycles = 32;
1944 {{	int32_t src = get_ilong(2);
1945 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
1946 {	int32_t dst = m68k_read_memory_32(dsta);
1947 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1948 {	int flgs = ((int32_t)(src)) < 0;
1949 	int flgo = ((int32_t)(dst)) < 0;
1950 	int flgn = ((int32_t)(newv)) < 0;
1951 	SET_ZFLG (((int32_t)(newv)) == 0);
1952 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1953 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1954 	COPY_CARRY;
1955 	SET_NFLG (flgn != 0);
1956 	m68k_write_memory_32(dsta,newv);
1957 }}}}}}}m68k_incpc(8);
1958 return 32;
1959 }
CPUFUNC(op_4b9_4)1960 unsigned long CPUFUNC(op_4b9_4)(uint32_t opcode) /* SUB */
1961 {
1962 	OpcodeFamily = 7; CurrentInstrCycles = 36;
1963 {{	int32_t src = get_ilong(2);
1964 {	uint32_t dsta = get_ilong(6);
1965 {	int32_t dst = m68k_read_memory_32(dsta);
1966 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
1967 {	int flgs = ((int32_t)(src)) < 0;
1968 	int flgo = ((int32_t)(dst)) < 0;
1969 	int flgn = ((int32_t)(newv)) < 0;
1970 	SET_ZFLG (((int32_t)(newv)) == 0);
1971 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
1972 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
1973 	COPY_CARRY;
1974 	SET_NFLG (flgn != 0);
1975 	m68k_write_memory_32(dsta,newv);
1976 }}}}}}}m68k_incpc(10);
1977 return 36;
1978 }
CPUFUNC(op_600_4)1979 unsigned long CPUFUNC(op_600_4)(uint32_t opcode) /* ADD */
1980 {
1981 	uint32_t dstreg = opcode & 7;
1982 	OpcodeFamily = 11; CurrentInstrCycles = 8;
1983 {{	int8_t src = get_ibyte(2);
1984 {	int8_t dst = m68k_dreg(regs, dstreg);
1985 {	refill_prefetch (m68k_getpc(), 2);
1986 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
1987 {	int flgs = ((int8_t)(src)) < 0;
1988 	int flgo = ((int8_t)(dst)) < 0;
1989 	int flgn = ((int8_t)(newv)) < 0;
1990 	SET_ZFLG (((int8_t)(newv)) == 0);
1991 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
1992 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
1993 	COPY_CARRY;
1994 	SET_NFLG (flgn != 0);
1995 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
1996 }}}}}}m68k_incpc(4);
1997 return 8;
1998 }
CPUFUNC(op_610_4)1999 unsigned long CPUFUNC(op_610_4)(uint32_t opcode) /* ADD */
2000 {
2001 	uint32_t dstreg = opcode & 7;
2002 	OpcodeFamily = 11; CurrentInstrCycles = 16;
2003 {{	int8_t src = get_ibyte(2);
2004 {	uint32_t dsta = m68k_areg(regs, dstreg);
2005 {	int8_t dst = m68k_read_memory_8(dsta);
2006 {	refill_prefetch (m68k_getpc(), 2);
2007 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
2008 {	int flgs = ((int8_t)(src)) < 0;
2009 	int flgo = ((int8_t)(dst)) < 0;
2010 	int flgn = ((int8_t)(newv)) < 0;
2011 	SET_ZFLG (((int8_t)(newv)) == 0);
2012 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2013 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
2014 	COPY_CARRY;
2015 	SET_NFLG (flgn != 0);
2016 	m68k_write_memory_8(dsta,newv);
2017 }}}}}}}m68k_incpc(4);
2018 return 16;
2019 }
CPUFUNC(op_618_4)2020 unsigned long CPUFUNC(op_618_4)(uint32_t opcode) /* ADD */
2021 {
2022 	uint32_t dstreg = opcode & 7;
2023 	OpcodeFamily = 11; CurrentInstrCycles = 16;
2024 {{	int8_t src = get_ibyte(2);
2025 {	uint32_t dsta = m68k_areg(regs, dstreg);
2026 {	int8_t dst = m68k_read_memory_8(dsta);
2027 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
2028 {	refill_prefetch (m68k_getpc(), 2);
2029 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
2030 {	int flgs = ((int8_t)(src)) < 0;
2031 	int flgo = ((int8_t)(dst)) < 0;
2032 	int flgn = ((int8_t)(newv)) < 0;
2033 	SET_ZFLG (((int8_t)(newv)) == 0);
2034 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2035 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
2036 	COPY_CARRY;
2037 	SET_NFLG (flgn != 0);
2038 	m68k_write_memory_8(dsta,newv);
2039 }}}}}}}m68k_incpc(4);
2040 return 16;
2041 }
CPUFUNC(op_620_4)2042 unsigned long CPUFUNC(op_620_4)(uint32_t opcode) /* ADD */
2043 {
2044 	uint32_t dstreg = opcode & 7;
2045 	OpcodeFamily = 11; CurrentInstrCycles = 18;
2046 {{	int8_t src = get_ibyte(2);
2047 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
2048 {	int8_t dst = m68k_read_memory_8(dsta);
2049 	m68k_areg (regs, dstreg) = dsta;
2050 {	refill_prefetch (m68k_getpc(), 2);
2051 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
2052 {	int flgs = ((int8_t)(src)) < 0;
2053 	int flgo = ((int8_t)(dst)) < 0;
2054 	int flgn = ((int8_t)(newv)) < 0;
2055 	SET_ZFLG (((int8_t)(newv)) == 0);
2056 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2057 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
2058 	COPY_CARRY;
2059 	SET_NFLG (flgn != 0);
2060 	m68k_write_memory_8(dsta,newv);
2061 }}}}}}}m68k_incpc(4);
2062 return 18;
2063 }
CPUFUNC(op_628_4)2064 unsigned long CPUFUNC(op_628_4)(uint32_t opcode) /* ADD */
2065 {
2066 	uint32_t dstreg = opcode & 7;
2067 	OpcodeFamily = 11; CurrentInstrCycles = 20;
2068 {{	int8_t src = get_ibyte(2);
2069 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
2070 {	int8_t dst = m68k_read_memory_8(dsta);
2071 {	refill_prefetch (m68k_getpc(), 2);
2072 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
2073 {	int flgs = ((int8_t)(src)) < 0;
2074 	int flgo = ((int8_t)(dst)) < 0;
2075 	int flgn = ((int8_t)(newv)) < 0;
2076 	SET_ZFLG (((int8_t)(newv)) == 0);
2077 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2078 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
2079 	COPY_CARRY;
2080 	SET_NFLG (flgn != 0);
2081 	m68k_write_memory_8(dsta,newv);
2082 }}}}}}}m68k_incpc(6);
2083 return 20;
2084 }
CPUFUNC(op_630_4)2085 unsigned long CPUFUNC(op_630_4)(uint32_t opcode) /* ADD */
2086 {
2087 	uint32_t dstreg = opcode & 7;
2088 	OpcodeFamily = 11; CurrentInstrCycles = 22;
2089 {{	int8_t src = get_ibyte(2);
2090 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
2091 	BusCyclePenalty += 2;
2092 {	int8_t dst = m68k_read_memory_8(dsta);
2093 {	refill_prefetch (m68k_getpc(), 2);
2094 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
2095 {	int flgs = ((int8_t)(src)) < 0;
2096 	int flgo = ((int8_t)(dst)) < 0;
2097 	int flgn = ((int8_t)(newv)) < 0;
2098 	SET_ZFLG (((int8_t)(newv)) == 0);
2099 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2100 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
2101 	COPY_CARRY;
2102 	SET_NFLG (flgn != 0);
2103 	m68k_write_memory_8(dsta,newv);
2104 }}}}}}}m68k_incpc(6);
2105 return 22;
2106 }
CPUFUNC(op_638_4)2107 unsigned long CPUFUNC(op_638_4)(uint32_t opcode) /* ADD */
2108 {
2109 	OpcodeFamily = 11; CurrentInstrCycles = 20;
2110 {{	int8_t src = get_ibyte(2);
2111 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
2112 {	int8_t dst = m68k_read_memory_8(dsta);
2113 {	refill_prefetch (m68k_getpc(), 2);
2114 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
2115 {	int flgs = ((int8_t)(src)) < 0;
2116 	int flgo = ((int8_t)(dst)) < 0;
2117 	int flgn = ((int8_t)(newv)) < 0;
2118 	SET_ZFLG (((int8_t)(newv)) == 0);
2119 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2120 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
2121 	COPY_CARRY;
2122 	SET_NFLG (flgn != 0);
2123 	m68k_write_memory_8(dsta,newv);
2124 }}}}}}}m68k_incpc(6);
2125 return 20;
2126 }
CPUFUNC(op_639_4)2127 unsigned long CPUFUNC(op_639_4)(uint32_t opcode) /* ADD */
2128 {
2129 	OpcodeFamily = 11; CurrentInstrCycles = 24;
2130 {{	int8_t src = get_ibyte(2);
2131 {	uint32_t dsta = get_ilong(4);
2132 {	int8_t dst = m68k_read_memory_8(dsta);
2133 {	refill_prefetch (m68k_getpc(), 2);
2134 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
2135 {	int flgs = ((int8_t)(src)) < 0;
2136 	int flgo = ((int8_t)(dst)) < 0;
2137 	int flgn = ((int8_t)(newv)) < 0;
2138 	SET_ZFLG (((int8_t)(newv)) == 0);
2139 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2140 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
2141 	COPY_CARRY;
2142 	SET_NFLG (flgn != 0);
2143 	m68k_write_memory_8(dsta,newv);
2144 }}}}}}}m68k_incpc(8);
2145 return 24;
2146 }
CPUFUNC(op_640_4)2147 unsigned long CPUFUNC(op_640_4)(uint32_t opcode) /* ADD */
2148 {
2149 	uint32_t dstreg = opcode & 7;
2150 	OpcodeFamily = 11; CurrentInstrCycles = 8;
2151 {{	int16_t src = get_iword(2);
2152 {	int16_t dst = m68k_dreg(regs, dstreg);
2153 {	refill_prefetch (m68k_getpc(), 2);
2154 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2155 {	int flgs = ((int16_t)(src)) < 0;
2156 	int flgo = ((int16_t)(dst)) < 0;
2157 	int flgn = ((int16_t)(newv)) < 0;
2158 	SET_ZFLG (((int16_t)(newv)) == 0);
2159 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2160 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2161 	COPY_CARRY;
2162 	SET_NFLG (flgn != 0);
2163 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
2164 }}}}}}m68k_incpc(4);
2165 return 8;
2166 }
CPUFUNC(op_650_4)2167 unsigned long CPUFUNC(op_650_4)(uint32_t opcode) /* ADD */
2168 {
2169 	uint32_t dstreg = opcode & 7;
2170 	OpcodeFamily = 11; CurrentInstrCycles = 16;
2171 {{	int16_t src = get_iword(2);
2172 {	uint32_t dsta = m68k_areg(regs, dstreg);
2173 {	int16_t dst = m68k_read_memory_16(dsta);
2174 {	refill_prefetch (m68k_getpc(), 2);
2175 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2176 {	int flgs = ((int16_t)(src)) < 0;
2177 	int flgo = ((int16_t)(dst)) < 0;
2178 	int flgn = ((int16_t)(newv)) < 0;
2179 	SET_ZFLG (((int16_t)(newv)) == 0);
2180 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2181 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2182 	COPY_CARRY;
2183 	SET_NFLG (flgn != 0);
2184 	m68k_write_memory_16(dsta,newv);
2185 }}}}}}}m68k_incpc(4);
2186 return 16;
2187 }
CPUFUNC(op_658_4)2188 unsigned long CPUFUNC(op_658_4)(uint32_t opcode) /* ADD */
2189 {
2190 	uint32_t dstreg = opcode & 7;
2191 	OpcodeFamily = 11; CurrentInstrCycles = 16;
2192 {{	int16_t src = get_iword(2);
2193 {	uint32_t dsta = m68k_areg(regs, dstreg);
2194 {	int16_t dst = m68k_read_memory_16(dsta);
2195 	m68k_areg(regs, dstreg) += 2;
2196 {	refill_prefetch (m68k_getpc(), 2);
2197 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2198 {	int flgs = ((int16_t)(src)) < 0;
2199 	int flgo = ((int16_t)(dst)) < 0;
2200 	int flgn = ((int16_t)(newv)) < 0;
2201 	SET_ZFLG (((int16_t)(newv)) == 0);
2202 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2203 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2204 	COPY_CARRY;
2205 	SET_NFLG (flgn != 0);
2206 	m68k_write_memory_16(dsta,newv);
2207 }}}}}}}m68k_incpc(4);
2208 return 16;
2209 }
CPUFUNC(op_660_4)2210 unsigned long CPUFUNC(op_660_4)(uint32_t opcode) /* ADD */
2211 {
2212 	uint32_t dstreg = opcode & 7;
2213 	OpcodeFamily = 11; CurrentInstrCycles = 18;
2214 {{	int16_t src = get_iword(2);
2215 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
2216 {	int16_t dst = m68k_read_memory_16(dsta);
2217 	m68k_areg (regs, dstreg) = dsta;
2218 {	refill_prefetch (m68k_getpc(), 2);
2219 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2220 {	int flgs = ((int16_t)(src)) < 0;
2221 	int flgo = ((int16_t)(dst)) < 0;
2222 	int flgn = ((int16_t)(newv)) < 0;
2223 	SET_ZFLG (((int16_t)(newv)) == 0);
2224 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2225 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2226 	COPY_CARRY;
2227 	SET_NFLG (flgn != 0);
2228 	m68k_write_memory_16(dsta,newv);
2229 }}}}}}}m68k_incpc(4);
2230 return 18;
2231 }
CPUFUNC(op_668_4)2232 unsigned long CPUFUNC(op_668_4)(uint32_t opcode) /* ADD */
2233 {
2234 	uint32_t dstreg = opcode & 7;
2235 	OpcodeFamily = 11; CurrentInstrCycles = 20;
2236 {{	int16_t src = get_iword(2);
2237 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
2238 {	int16_t dst = m68k_read_memory_16(dsta);
2239 {	refill_prefetch (m68k_getpc(), 2);
2240 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2241 {	int flgs = ((int16_t)(src)) < 0;
2242 	int flgo = ((int16_t)(dst)) < 0;
2243 	int flgn = ((int16_t)(newv)) < 0;
2244 	SET_ZFLG (((int16_t)(newv)) == 0);
2245 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2246 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2247 	COPY_CARRY;
2248 	SET_NFLG (flgn != 0);
2249 	m68k_write_memory_16(dsta,newv);
2250 }}}}}}}m68k_incpc(6);
2251 return 20;
2252 }
CPUFUNC(op_670_4)2253 unsigned long CPUFUNC(op_670_4)(uint32_t opcode) /* ADD */
2254 {
2255 	uint32_t dstreg = opcode & 7;
2256 	OpcodeFamily = 11; CurrentInstrCycles = 22;
2257 {{	int16_t src = get_iword(2);
2258 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
2259 	BusCyclePenalty += 2;
2260 {	int16_t dst = m68k_read_memory_16(dsta);
2261 {	refill_prefetch (m68k_getpc(), 2);
2262 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2263 {	int flgs = ((int16_t)(src)) < 0;
2264 	int flgo = ((int16_t)(dst)) < 0;
2265 	int flgn = ((int16_t)(newv)) < 0;
2266 	SET_ZFLG (((int16_t)(newv)) == 0);
2267 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2268 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2269 	COPY_CARRY;
2270 	SET_NFLG (flgn != 0);
2271 	m68k_write_memory_16(dsta,newv);
2272 }}}}}}}m68k_incpc(6);
2273 return 22;
2274 }
CPUFUNC(op_678_4)2275 unsigned long CPUFUNC(op_678_4)(uint32_t opcode) /* ADD */
2276 {
2277 	OpcodeFamily = 11; CurrentInstrCycles = 20;
2278 {{	int16_t src = get_iword(2);
2279 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
2280 {	int16_t dst = m68k_read_memory_16(dsta);
2281 {	refill_prefetch (m68k_getpc(), 2);
2282 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2283 {	int flgs = ((int16_t)(src)) < 0;
2284 	int flgo = ((int16_t)(dst)) < 0;
2285 	int flgn = ((int16_t)(newv)) < 0;
2286 	SET_ZFLG (((int16_t)(newv)) == 0);
2287 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2288 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2289 	COPY_CARRY;
2290 	SET_NFLG (flgn != 0);
2291 	m68k_write_memory_16(dsta,newv);
2292 }}}}}}}m68k_incpc(6);
2293 return 20;
2294 }
CPUFUNC(op_679_4)2295 unsigned long CPUFUNC(op_679_4)(uint32_t opcode) /* ADD */
2296 {
2297 	OpcodeFamily = 11; CurrentInstrCycles = 24;
2298 {{	int16_t src = get_iword(2);
2299 {	uint32_t dsta = get_ilong(4);
2300 {	int16_t dst = m68k_read_memory_16(dsta);
2301 {	refill_prefetch (m68k_getpc(), 2);
2302 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
2303 {	int flgs = ((int16_t)(src)) < 0;
2304 	int flgo = ((int16_t)(dst)) < 0;
2305 	int flgn = ((int16_t)(newv)) < 0;
2306 	SET_ZFLG (((int16_t)(newv)) == 0);
2307 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2308 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
2309 	COPY_CARRY;
2310 	SET_NFLG (flgn != 0);
2311 	m68k_write_memory_16(dsta,newv);
2312 }}}}}}}m68k_incpc(8);
2313 return 24;
2314 }
CPUFUNC(op_680_4)2315 unsigned long CPUFUNC(op_680_4)(uint32_t opcode) /* ADD */
2316 {
2317 	uint32_t dstreg = opcode & 7;
2318 	OpcodeFamily = 11; CurrentInstrCycles = 16;
2319 {{	int32_t src = get_ilong(2);
2320 {	int32_t dst = m68k_dreg(regs, dstreg);
2321 {	refill_prefetch (m68k_getpc(), 2);
2322 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2323 {	int flgs = ((int32_t)(src)) < 0;
2324 	int flgo = ((int32_t)(dst)) < 0;
2325 	int flgn = ((int32_t)(newv)) < 0;
2326 	SET_ZFLG (((int32_t)(newv)) == 0);
2327 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2328 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2329 	COPY_CARRY;
2330 	SET_NFLG (flgn != 0);
2331 	m68k_dreg(regs, dstreg) = (newv);
2332 }}}}}}m68k_incpc(6);
2333 return 16;
2334 }
CPUFUNC(op_690_4)2335 unsigned long CPUFUNC(op_690_4)(uint32_t opcode) /* ADD */
2336 {
2337 	uint32_t dstreg = opcode & 7;
2338 	OpcodeFamily = 11; CurrentInstrCycles = 28;
2339 {{	int32_t src = get_ilong(2);
2340 {	uint32_t dsta = m68k_areg(regs, dstreg);
2341 {	int32_t dst = m68k_read_memory_32(dsta);
2342 {	refill_prefetch (m68k_getpc(), 2);
2343 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2344 {	int flgs = ((int32_t)(src)) < 0;
2345 	int flgo = ((int32_t)(dst)) < 0;
2346 	int flgn = ((int32_t)(newv)) < 0;
2347 	SET_ZFLG (((int32_t)(newv)) == 0);
2348 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2349 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2350 	COPY_CARRY;
2351 	SET_NFLG (flgn != 0);
2352 	m68k_write_memory_32(dsta,newv);
2353 }}}}}}}m68k_incpc(6);
2354 return 28;
2355 }
CPUFUNC(op_698_4)2356 unsigned long CPUFUNC(op_698_4)(uint32_t opcode) /* ADD */
2357 {
2358 	uint32_t dstreg = opcode & 7;
2359 	OpcodeFamily = 11; CurrentInstrCycles = 28;
2360 {{	int32_t src = get_ilong(2);
2361 {	uint32_t dsta = m68k_areg(regs, dstreg);
2362 {	int32_t dst = m68k_read_memory_32(dsta);
2363 	m68k_areg(regs, dstreg) += 4;
2364 {	refill_prefetch (m68k_getpc(), 2);
2365 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2366 {	int flgs = ((int32_t)(src)) < 0;
2367 	int flgo = ((int32_t)(dst)) < 0;
2368 	int flgn = ((int32_t)(newv)) < 0;
2369 	SET_ZFLG (((int32_t)(newv)) == 0);
2370 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2371 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2372 	COPY_CARRY;
2373 	SET_NFLG (flgn != 0);
2374 	m68k_write_memory_32(dsta,newv);
2375 }}}}}}}m68k_incpc(6);
2376 return 28;
2377 }
CPUFUNC(op_6a0_4)2378 unsigned long CPUFUNC(op_6a0_4)(uint32_t opcode) /* ADD */
2379 {
2380 	uint32_t dstreg = opcode & 7;
2381 	OpcodeFamily = 11; CurrentInstrCycles = 30;
2382 {{	int32_t src = get_ilong(2);
2383 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
2384 {	int32_t dst = m68k_read_memory_32(dsta);
2385 	m68k_areg (regs, dstreg) = dsta;
2386 {	refill_prefetch (m68k_getpc(), 2);
2387 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2388 {	int flgs = ((int32_t)(src)) < 0;
2389 	int flgo = ((int32_t)(dst)) < 0;
2390 	int flgn = ((int32_t)(newv)) < 0;
2391 	SET_ZFLG (((int32_t)(newv)) == 0);
2392 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2393 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2394 	COPY_CARRY;
2395 	SET_NFLG (flgn != 0);
2396 	m68k_write_memory_32(dsta,newv);
2397 }}}}}}}m68k_incpc(6);
2398 return 30;
2399 }
CPUFUNC(op_6a8_4)2400 unsigned long CPUFUNC(op_6a8_4)(uint32_t opcode) /* ADD */
2401 {
2402 	uint32_t dstreg = opcode & 7;
2403 	OpcodeFamily = 11; CurrentInstrCycles = 32;
2404 {{	int32_t src = get_ilong(2);
2405 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
2406 {	int32_t dst = m68k_read_memory_32(dsta);
2407 {	refill_prefetch (m68k_getpc(), 2);
2408 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2409 {	int flgs = ((int32_t)(src)) < 0;
2410 	int flgo = ((int32_t)(dst)) < 0;
2411 	int flgn = ((int32_t)(newv)) < 0;
2412 	SET_ZFLG (((int32_t)(newv)) == 0);
2413 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2414 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2415 	COPY_CARRY;
2416 	SET_NFLG (flgn != 0);
2417 	m68k_write_memory_32(dsta,newv);
2418 }}}}}}}m68k_incpc(8);
2419 return 32;
2420 }
CPUFUNC(op_6b0_4)2421 unsigned long CPUFUNC(op_6b0_4)(uint32_t opcode) /* ADD */
2422 {
2423 	uint32_t dstreg = opcode & 7;
2424 	OpcodeFamily = 11; CurrentInstrCycles = 34;
2425 {{	int32_t src = get_ilong(2);
2426 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
2427 	BusCyclePenalty += 2;
2428 {	int32_t dst = m68k_read_memory_32(dsta);
2429 {	refill_prefetch (m68k_getpc(), 2);
2430 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2431 {	int flgs = ((int32_t)(src)) < 0;
2432 	int flgo = ((int32_t)(dst)) < 0;
2433 	int flgn = ((int32_t)(newv)) < 0;
2434 	SET_ZFLG (((int32_t)(newv)) == 0);
2435 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2436 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2437 	COPY_CARRY;
2438 	SET_NFLG (flgn != 0);
2439 	m68k_write_memory_32(dsta,newv);
2440 }}}}}}}m68k_incpc(8);
2441 return 34;
2442 }
CPUFUNC(op_6b8_4)2443 unsigned long CPUFUNC(op_6b8_4)(uint32_t opcode) /* ADD */
2444 {
2445 	OpcodeFamily = 11; CurrentInstrCycles = 32;
2446 {{	int32_t src = get_ilong(2);
2447 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
2448 {	int32_t dst = m68k_read_memory_32(dsta);
2449 {	refill_prefetch (m68k_getpc(), 2);
2450 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2451 {	int flgs = ((int32_t)(src)) < 0;
2452 	int flgo = ((int32_t)(dst)) < 0;
2453 	int flgn = ((int32_t)(newv)) < 0;
2454 	SET_ZFLG (((int32_t)(newv)) == 0);
2455 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2456 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2457 	COPY_CARRY;
2458 	SET_NFLG (flgn != 0);
2459 	m68k_write_memory_32(dsta,newv);
2460 }}}}}}}m68k_incpc(8);
2461 return 32;
2462 }
CPUFUNC(op_6b9_4)2463 unsigned long CPUFUNC(op_6b9_4)(uint32_t opcode) /* ADD */
2464 {
2465 	OpcodeFamily = 11; CurrentInstrCycles = 36;
2466 {{	int32_t src = get_ilong(2);
2467 {	uint32_t dsta = get_ilong(6);
2468 {	int32_t dst = m68k_read_memory_32(dsta);
2469 {	refill_prefetch (m68k_getpc(), 2);
2470 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
2471 {	int flgs = ((int32_t)(src)) < 0;
2472 	int flgo = ((int32_t)(dst)) < 0;
2473 	int flgn = ((int32_t)(newv)) < 0;
2474 	SET_ZFLG (((int32_t)(newv)) == 0);
2475 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
2476 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
2477 	COPY_CARRY;
2478 	SET_NFLG (flgn != 0);
2479 	m68k_write_memory_32(dsta,newv);
2480 }}}}}}}m68k_incpc(10);
2481 return 36;
2482 }
CPUFUNC(op_800_4)2483 unsigned long CPUFUNC(op_800_4)(uint32_t opcode) /* BTST */
2484 {
2485 	uint32_t dstreg = opcode & 7;
2486 	OpcodeFamily = 21; CurrentInstrCycles = 10;
2487 {{	int16_t src = get_iword(2);
2488 {	int32_t dst = m68k_dreg(regs, dstreg);
2489 	src &= 31;
2490 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2491 }}}m68k_incpc(4);
2492 return 10;
2493 }
CPUFUNC(op_810_4)2494 unsigned long CPUFUNC(op_810_4)(uint32_t opcode) /* BTST */
2495 {
2496 	uint32_t dstreg = opcode & 7;
2497 	OpcodeFamily = 21; CurrentInstrCycles = 12;
2498 {{	int16_t src = get_iword(2);
2499 {	uint32_t dsta = m68k_areg(regs, dstreg);
2500 {	int8_t dst = m68k_read_memory_8(dsta);
2501 	src &= 7;
2502 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2503 }}}}m68k_incpc(4);
2504 return 12;
2505 }
CPUFUNC(op_818_4)2506 unsigned long CPUFUNC(op_818_4)(uint32_t opcode) /* BTST */
2507 {
2508 	uint32_t dstreg = opcode & 7;
2509 	OpcodeFamily = 21; CurrentInstrCycles = 12;
2510 {{	int16_t src = get_iword(2);
2511 {	uint32_t dsta = m68k_areg(regs, dstreg);
2512 {	int8_t dst = m68k_read_memory_8(dsta);
2513 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
2514 	src &= 7;
2515 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2516 }}}}m68k_incpc(4);
2517 return 12;
2518 }
CPUFUNC(op_820_4)2519 unsigned long CPUFUNC(op_820_4)(uint32_t opcode) /* BTST */
2520 {
2521 	uint32_t dstreg = opcode & 7;
2522 	OpcodeFamily = 21; CurrentInstrCycles = 14;
2523 {{	int16_t src = get_iword(2);
2524 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
2525 {	int8_t dst = m68k_read_memory_8(dsta);
2526 	m68k_areg (regs, dstreg) = dsta;
2527 	src &= 7;
2528 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2529 }}}}m68k_incpc(4);
2530 return 14;
2531 }
CPUFUNC(op_828_4)2532 unsigned long CPUFUNC(op_828_4)(uint32_t opcode) /* BTST */
2533 {
2534 	uint32_t dstreg = opcode & 7;
2535 	OpcodeFamily = 21; CurrentInstrCycles = 16;
2536 {{	int16_t src = get_iword(2);
2537 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
2538 {	int8_t dst = m68k_read_memory_8(dsta);
2539 	src &= 7;
2540 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2541 }}}}m68k_incpc(6);
2542 return 16;
2543 }
CPUFUNC(op_830_4)2544 unsigned long CPUFUNC(op_830_4)(uint32_t opcode) /* BTST */
2545 {
2546 	uint32_t dstreg = opcode & 7;
2547 	OpcodeFamily = 21; CurrentInstrCycles = 18;
2548 {{	int16_t src = get_iword(2);
2549 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
2550 	BusCyclePenalty += 2;
2551 {	int8_t dst = m68k_read_memory_8(dsta);
2552 	src &= 7;
2553 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2554 }}}}m68k_incpc(6);
2555 return 18;
2556 }
CPUFUNC(op_838_4)2557 unsigned long CPUFUNC(op_838_4)(uint32_t opcode) /* BTST */
2558 {
2559 	OpcodeFamily = 21; CurrentInstrCycles = 16;
2560 {{	int16_t src = get_iword(2);
2561 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
2562 {	int8_t dst = m68k_read_memory_8(dsta);
2563 	src &= 7;
2564 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2565 }}}}m68k_incpc(6);
2566 return 16;
2567 }
CPUFUNC(op_839_4)2568 unsigned long CPUFUNC(op_839_4)(uint32_t opcode) /* BTST */
2569 {
2570 	OpcodeFamily = 21; CurrentInstrCycles = 20;
2571 {{	int16_t src = get_iword(2);
2572 {	uint32_t dsta = get_ilong(4);
2573 {	int8_t dst = m68k_read_memory_8(dsta);
2574 	src &= 7;
2575 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2576 }}}}m68k_incpc(8);
2577 return 20;
2578 }
CPUFUNC(op_83a_4)2579 unsigned long CPUFUNC(op_83a_4)(uint32_t opcode) /* BTST */
2580 {
2581 	uint32_t dstreg = 2;
2582 	OpcodeFamily = 21; CurrentInstrCycles = 16;
2583 {{	int16_t src = get_iword(2);
2584 {	uint32_t dsta = m68k_getpc () + 4;
2585 	dsta += (int32_t)(int16_t)get_iword(4);
2586 {	int8_t dst = m68k_read_memory_8(dsta);
2587 	src &= 7;
2588 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2589 }}}}m68k_incpc(6);
2590 return 16;
2591 }
CPUFUNC(op_83b_4)2592 unsigned long CPUFUNC(op_83b_4)(uint32_t opcode) /* BTST */
2593 {
2594 	uint32_t dstreg = 3;
2595 	OpcodeFamily = 21; CurrentInstrCycles = 18;
2596 {{	int16_t src = get_iword(2);
2597 {	uint32_t tmppc = m68k_getpc() + 4;
2598 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(4));
2599 	BusCyclePenalty += 2;
2600 {	int8_t dst = m68k_read_memory_8(dsta);
2601 	src &= 7;
2602 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2603 }}}}m68k_incpc(6);
2604 return 18;
2605 }
CPUFUNC(op_83c_4)2606 unsigned long CPUFUNC(op_83c_4)(uint32_t opcode) /* BTST */
2607 {
2608 	OpcodeFamily = 21; CurrentInstrCycles = 12;
2609 {{	int16_t src = get_iword(2);
2610 {	int8_t dst = get_ibyte(4);
2611 	src &= 7;
2612 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2613 }}}m68k_incpc(6);
2614 return 12;
2615 }
CPUFUNC(op_840_4)2616 unsigned long CPUFUNC(op_840_4)(uint32_t opcode) /* BCHG */
2617 {
2618 	uint32_t dstreg = opcode & 7;
2619 	OpcodeFamily = 22; CurrentInstrCycles = 12;
2620 {{	int16_t src = get_iword(2);
2621 {	int32_t dst = m68k_dreg(regs, dstreg);
2622 	src &= 31;
2623 	dst ^= (1 << src);
2624 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2625 	m68k_dreg(regs, dstreg) = (dst);
2626 }}}m68k_incpc(4);
2627 return 12;
2628 }
CPUFUNC(op_850_4)2629 unsigned long CPUFUNC(op_850_4)(uint32_t opcode) /* BCHG */
2630 {
2631 	uint32_t dstreg = opcode & 7;
2632 	OpcodeFamily = 22; CurrentInstrCycles = 16;
2633 {{	int16_t src = get_iword(2);
2634 {	uint32_t dsta = m68k_areg(regs, dstreg);
2635 {	int8_t dst = m68k_read_memory_8(dsta);
2636 	src &= 7;
2637 	dst ^= (1 << src);
2638 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2639 	m68k_write_memory_8(dsta,dst);
2640 }}}}m68k_incpc(4);
2641 return 16;
2642 }
CPUFUNC(op_858_4)2643 unsigned long CPUFUNC(op_858_4)(uint32_t opcode) /* BCHG */
2644 {
2645 	uint32_t dstreg = opcode & 7;
2646 	OpcodeFamily = 22; CurrentInstrCycles = 16;
2647 {{	int16_t src = get_iword(2);
2648 {	uint32_t dsta = m68k_areg(regs, dstreg);
2649 {	int8_t dst = m68k_read_memory_8(dsta);
2650 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
2651 	src &= 7;
2652 	dst ^= (1 << src);
2653 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2654 	m68k_write_memory_8(dsta,dst);
2655 }}}}m68k_incpc(4);
2656 return 16;
2657 }
CPUFUNC(op_860_4)2658 unsigned long CPUFUNC(op_860_4)(uint32_t opcode) /* BCHG */
2659 {
2660 	uint32_t dstreg = opcode & 7;
2661 	OpcodeFamily = 22; CurrentInstrCycles = 18;
2662 {{	int16_t src = get_iword(2);
2663 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
2664 {	int8_t dst = m68k_read_memory_8(dsta);
2665 	m68k_areg (regs, dstreg) = dsta;
2666 	src &= 7;
2667 	dst ^= (1 << src);
2668 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2669 	m68k_write_memory_8(dsta,dst);
2670 }}}}m68k_incpc(4);
2671 return 18;
2672 }
CPUFUNC(op_868_4)2673 unsigned long CPUFUNC(op_868_4)(uint32_t opcode) /* BCHG */
2674 {
2675 	uint32_t dstreg = opcode & 7;
2676 	OpcodeFamily = 22; CurrentInstrCycles = 20;
2677 {{	int16_t src = get_iword(2);
2678 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
2679 {	int8_t dst = m68k_read_memory_8(dsta);
2680 	src &= 7;
2681 	dst ^= (1 << src);
2682 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2683 	m68k_write_memory_8(dsta,dst);
2684 }}}}m68k_incpc(6);
2685 return 20;
2686 }
CPUFUNC(op_870_4)2687 unsigned long CPUFUNC(op_870_4)(uint32_t opcode) /* BCHG */
2688 {
2689 	uint32_t dstreg = opcode & 7;
2690 	OpcodeFamily = 22; CurrentInstrCycles = 22;
2691 {{	int16_t src = get_iword(2);
2692 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
2693 	BusCyclePenalty += 2;
2694 {	int8_t dst = m68k_read_memory_8(dsta);
2695 	src &= 7;
2696 	dst ^= (1 << src);
2697 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2698 	m68k_write_memory_8(dsta,dst);
2699 }}}}m68k_incpc(6);
2700 return 22;
2701 }
CPUFUNC(op_878_4)2702 unsigned long CPUFUNC(op_878_4)(uint32_t opcode) /* BCHG */
2703 {
2704 	OpcodeFamily = 22; CurrentInstrCycles = 20;
2705 {{	int16_t src = get_iword(2);
2706 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
2707 {	int8_t dst = m68k_read_memory_8(dsta);
2708 	src &= 7;
2709 	dst ^= (1 << src);
2710 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2711 	m68k_write_memory_8(dsta,dst);
2712 }}}}m68k_incpc(6);
2713 return 20;
2714 }
CPUFUNC(op_879_4)2715 unsigned long CPUFUNC(op_879_4)(uint32_t opcode) /* BCHG */
2716 {
2717 	OpcodeFamily = 22; CurrentInstrCycles = 24;
2718 {{	int16_t src = get_iword(2);
2719 {	uint32_t dsta = get_ilong(4);
2720 {	int8_t dst = m68k_read_memory_8(dsta);
2721 	src &= 7;
2722 	dst ^= (1 << src);
2723 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2724 	m68k_write_memory_8(dsta,dst);
2725 }}}}m68k_incpc(8);
2726 return 24;
2727 }
CPUFUNC(op_87a_4)2728 unsigned long CPUFUNC(op_87a_4)(uint32_t opcode) /* BCHG */
2729 {
2730 	uint32_t dstreg = 2;
2731 	OpcodeFamily = 22; CurrentInstrCycles = 20;
2732 {{	int16_t src = get_iword(2);
2733 {	uint32_t dsta = m68k_getpc () + 4;
2734 	dsta += (int32_t)(int16_t)get_iword(4);
2735 {	int8_t dst = m68k_read_memory_8(dsta);
2736 	src &= 7;
2737 	dst ^= (1 << src);
2738 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2739 	m68k_write_memory_8(dsta,dst);
2740 }}}}m68k_incpc(6);
2741 return 20;
2742 }
CPUFUNC(op_87b_4)2743 unsigned long CPUFUNC(op_87b_4)(uint32_t opcode) /* BCHG */
2744 {
2745 	uint32_t dstreg = 3;
2746 	OpcodeFamily = 22; CurrentInstrCycles = 22;
2747 {{	int16_t src = get_iword(2);
2748 {	uint32_t tmppc = m68k_getpc() + 4;
2749 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(4));
2750 	BusCyclePenalty += 2;
2751 {	int8_t dst = m68k_read_memory_8(dsta);
2752 	src &= 7;
2753 	dst ^= (1 << src);
2754 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
2755 	m68k_write_memory_8(dsta,dst);
2756 }}}}m68k_incpc(6);
2757 return 22;
2758 }
CPUFUNC(op_880_4)2759 unsigned long CPUFUNC(op_880_4)(uint32_t opcode) /* BCLR */
2760 {
2761 	uint32_t dstreg = opcode & 7;
2762 	OpcodeFamily = 23; CurrentInstrCycles = 14;
2763 {{	int16_t src = get_iword(2);
2764 {	int32_t dst = m68k_dreg(regs, dstreg);
2765 	src &= 31;
2766 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2767 	dst &= ~(1 << src);
2768 	m68k_dreg(regs, dstreg) = (dst);
2769 	if ( src < 16 ) { m68k_incpc(4); return 12; }
2770 }}}m68k_incpc(4);
2771 return 14;
2772 }
CPUFUNC(op_890_4)2773 unsigned long CPUFUNC(op_890_4)(uint32_t opcode) /* BCLR */
2774 {
2775 	uint32_t dstreg = opcode & 7;
2776 	OpcodeFamily = 23; CurrentInstrCycles = 16;
2777 {{	int16_t src = get_iword(2);
2778 {	uint32_t dsta = m68k_areg(regs, dstreg);
2779 {	int8_t dst = m68k_read_memory_8(dsta);
2780 	src &= 7;
2781 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2782 	dst &= ~(1 << src);
2783 	m68k_write_memory_8(dsta,dst);
2784 }}}}m68k_incpc(4);
2785 return 16;
2786 }
CPUFUNC(op_898_4)2787 unsigned long CPUFUNC(op_898_4)(uint32_t opcode) /* BCLR */
2788 {
2789 	uint32_t dstreg = opcode & 7;
2790 	OpcodeFamily = 23; CurrentInstrCycles = 16;
2791 {{	int16_t src = get_iword(2);
2792 {	uint32_t dsta = m68k_areg(regs, dstreg);
2793 {	int8_t dst = m68k_read_memory_8(dsta);
2794 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
2795 	src &= 7;
2796 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2797 	dst &= ~(1 << src);
2798 	m68k_write_memory_8(dsta,dst);
2799 }}}}m68k_incpc(4);
2800 return 16;
2801 }
CPUFUNC(op_8a0_4)2802 unsigned long CPUFUNC(op_8a0_4)(uint32_t opcode) /* BCLR */
2803 {
2804 	uint32_t dstreg = opcode & 7;
2805 	OpcodeFamily = 23; CurrentInstrCycles = 18;
2806 {{	int16_t src = get_iword(2);
2807 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
2808 {	int8_t dst = m68k_read_memory_8(dsta);
2809 	m68k_areg (regs, dstreg) = dsta;
2810 	src &= 7;
2811 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2812 	dst &= ~(1 << src);
2813 	m68k_write_memory_8(dsta,dst);
2814 }}}}m68k_incpc(4);
2815 return 18;
2816 }
CPUFUNC(op_8a8_4)2817 unsigned long CPUFUNC(op_8a8_4)(uint32_t opcode) /* BCLR */
2818 {
2819 	uint32_t dstreg = opcode & 7;
2820 	OpcodeFamily = 23; CurrentInstrCycles = 20;
2821 {{	int16_t src = get_iword(2);
2822 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
2823 {	int8_t dst = m68k_read_memory_8(dsta);
2824 	src &= 7;
2825 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2826 	dst &= ~(1 << src);
2827 	m68k_write_memory_8(dsta,dst);
2828 }}}}m68k_incpc(6);
2829 return 20;
2830 }
CPUFUNC(op_8b0_4)2831 unsigned long CPUFUNC(op_8b0_4)(uint32_t opcode) /* BCLR */
2832 {
2833 	uint32_t dstreg = opcode & 7;
2834 	OpcodeFamily = 23; CurrentInstrCycles = 22;
2835 {{	int16_t src = get_iword(2);
2836 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
2837 	BusCyclePenalty += 2;
2838 {	int8_t dst = m68k_read_memory_8(dsta);
2839 	src &= 7;
2840 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2841 	dst &= ~(1 << src);
2842 	m68k_write_memory_8(dsta,dst);
2843 }}}}m68k_incpc(6);
2844 return 22;
2845 }
CPUFUNC(op_8b8_4)2846 unsigned long CPUFUNC(op_8b8_4)(uint32_t opcode) /* BCLR */
2847 {
2848 	OpcodeFamily = 23; CurrentInstrCycles = 20;
2849 {{	int16_t src = get_iword(2);
2850 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
2851 {	int8_t dst = m68k_read_memory_8(dsta);
2852 	src &= 7;
2853 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2854 	dst &= ~(1 << src);
2855 	m68k_write_memory_8(dsta,dst);
2856 }}}}m68k_incpc(6);
2857 return 20;
2858 }
CPUFUNC(op_8b9_4)2859 unsigned long CPUFUNC(op_8b9_4)(uint32_t opcode) /* BCLR */
2860 {
2861 	OpcodeFamily = 23; CurrentInstrCycles = 24;
2862 {{	int16_t src = get_iword(2);
2863 {	uint32_t dsta = get_ilong(4);
2864 {	int8_t dst = m68k_read_memory_8(dsta);
2865 	src &= 7;
2866 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2867 	dst &= ~(1 << src);
2868 	m68k_write_memory_8(dsta,dst);
2869 }}}}m68k_incpc(8);
2870 return 24;
2871 }
CPUFUNC(op_8ba_4)2872 unsigned long CPUFUNC(op_8ba_4)(uint32_t opcode) /* BCLR */
2873 {
2874 	uint32_t dstreg = 2;
2875 	OpcodeFamily = 23; CurrentInstrCycles = 20;
2876 {{	int16_t src = get_iword(2);
2877 {	uint32_t dsta = m68k_getpc () + 4;
2878 	dsta += (int32_t)(int16_t)get_iword(4);
2879 {	int8_t dst = m68k_read_memory_8(dsta);
2880 	src &= 7;
2881 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2882 	dst &= ~(1 << src);
2883 	m68k_write_memory_8(dsta,dst);
2884 }}}}m68k_incpc(6);
2885 return 20;
2886 }
CPUFUNC(op_8bb_4)2887 unsigned long CPUFUNC(op_8bb_4)(uint32_t opcode) /* BCLR */
2888 {
2889 	uint32_t dstreg = 3;
2890 	OpcodeFamily = 23; CurrentInstrCycles = 22;
2891 {{	int16_t src = get_iword(2);
2892 {	uint32_t tmppc = m68k_getpc() + 4;
2893 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(4));
2894 	BusCyclePenalty += 2;
2895 {	int8_t dst = m68k_read_memory_8(dsta);
2896 	src &= 7;
2897 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2898 	dst &= ~(1 << src);
2899 	m68k_write_memory_8(dsta,dst);
2900 }}}}m68k_incpc(6);
2901 return 22;
2902 }
CPUFUNC(op_8c0_4)2903 unsigned long CPUFUNC(op_8c0_4)(uint32_t opcode) /* BSET */
2904 {
2905 	uint32_t dstreg = opcode & 7;
2906 	OpcodeFamily = 24; CurrentInstrCycles = 12;
2907 {{	int16_t src = get_iword(2);
2908 {	int32_t dst = m68k_dreg(regs, dstreg);
2909 	src &= 31;
2910 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2911 	dst |= (1 << src);
2912 	m68k_dreg(regs, dstreg) = (dst);
2913 }}}m68k_incpc(4);
2914 return 12;
2915 }
CPUFUNC(op_8d0_4)2916 unsigned long CPUFUNC(op_8d0_4)(uint32_t opcode) /* BSET */
2917 {
2918 	uint32_t dstreg = opcode & 7;
2919 	OpcodeFamily = 24; CurrentInstrCycles = 16;
2920 {{	int16_t src = get_iword(2);
2921 {	uint32_t dsta = m68k_areg(regs, dstreg);
2922 {	int8_t dst = m68k_read_memory_8(dsta);
2923 	src &= 7;
2924 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2925 	dst |= (1 << src);
2926 	m68k_write_memory_8(dsta,dst);
2927 }}}}m68k_incpc(4);
2928 return 16;
2929 }
CPUFUNC(op_8d8_4)2930 unsigned long CPUFUNC(op_8d8_4)(uint32_t opcode) /* BSET */
2931 {
2932 	uint32_t dstreg = opcode & 7;
2933 	OpcodeFamily = 24; CurrentInstrCycles = 16;
2934 {{	int16_t src = get_iword(2);
2935 {	uint32_t dsta = m68k_areg(regs, dstreg);
2936 {	int8_t dst = m68k_read_memory_8(dsta);
2937 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
2938 	src &= 7;
2939 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2940 	dst |= (1 << src);
2941 	m68k_write_memory_8(dsta,dst);
2942 }}}}m68k_incpc(4);
2943 return 16;
2944 }
CPUFUNC(op_8e0_4)2945 unsigned long CPUFUNC(op_8e0_4)(uint32_t opcode) /* BSET */
2946 {
2947 	uint32_t dstreg = opcode & 7;
2948 	OpcodeFamily = 24; CurrentInstrCycles = 18;
2949 {{	int16_t src = get_iword(2);
2950 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
2951 {	int8_t dst = m68k_read_memory_8(dsta);
2952 	m68k_areg (regs, dstreg) = dsta;
2953 	src &= 7;
2954 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2955 	dst |= (1 << src);
2956 	m68k_write_memory_8(dsta,dst);
2957 }}}}m68k_incpc(4);
2958 return 18;
2959 }
CPUFUNC(op_8e8_4)2960 unsigned long CPUFUNC(op_8e8_4)(uint32_t opcode) /* BSET */
2961 {
2962 	uint32_t dstreg = opcode & 7;
2963 	OpcodeFamily = 24; CurrentInstrCycles = 20;
2964 {{	int16_t src = get_iword(2);
2965 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
2966 {	int8_t dst = m68k_read_memory_8(dsta);
2967 	src &= 7;
2968 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2969 	dst |= (1 << src);
2970 	m68k_write_memory_8(dsta,dst);
2971 }}}}m68k_incpc(6);
2972 return 20;
2973 }
CPUFUNC(op_8f0_4)2974 unsigned long CPUFUNC(op_8f0_4)(uint32_t opcode) /* BSET */
2975 {
2976 	uint32_t dstreg = opcode & 7;
2977 	OpcodeFamily = 24; CurrentInstrCycles = 22;
2978 {{	int16_t src = get_iword(2);
2979 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
2980 	BusCyclePenalty += 2;
2981 {	int8_t dst = m68k_read_memory_8(dsta);
2982 	src &= 7;
2983 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2984 	dst |= (1 << src);
2985 	m68k_write_memory_8(dsta,dst);
2986 }}}}m68k_incpc(6);
2987 return 22;
2988 }
CPUFUNC(op_8f8_4)2989 unsigned long CPUFUNC(op_8f8_4)(uint32_t opcode) /* BSET */
2990 {
2991 	OpcodeFamily = 24; CurrentInstrCycles = 20;
2992 {{	int16_t src = get_iword(2);
2993 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
2994 {	int8_t dst = m68k_read_memory_8(dsta);
2995 	src &= 7;
2996 	SET_ZFLG (1 ^ ((dst >> src) & 1));
2997 	dst |= (1 << src);
2998 	m68k_write_memory_8(dsta,dst);
2999 }}}}m68k_incpc(6);
3000 return 20;
3001 }
CPUFUNC(op_8f9_4)3002 unsigned long CPUFUNC(op_8f9_4)(uint32_t opcode) /* BSET */
3003 {
3004 	OpcodeFamily = 24; CurrentInstrCycles = 24;
3005 {{	int16_t src = get_iword(2);
3006 {	uint32_t dsta = get_ilong(4);
3007 {	int8_t dst = m68k_read_memory_8(dsta);
3008 	src &= 7;
3009 	SET_ZFLG (1 ^ ((dst >> src) & 1));
3010 	dst |= (1 << src);
3011 	m68k_write_memory_8(dsta,dst);
3012 }}}}m68k_incpc(8);
3013 return 24;
3014 }
CPUFUNC(op_8fa_4)3015 unsigned long CPUFUNC(op_8fa_4)(uint32_t opcode) /* BSET */
3016 {
3017 	uint32_t dstreg = 2;
3018 	OpcodeFamily = 24; CurrentInstrCycles = 20;
3019 {{	int16_t src = get_iword(2);
3020 {	uint32_t dsta = m68k_getpc () + 4;
3021 	dsta += (int32_t)(int16_t)get_iword(4);
3022 {	int8_t dst = m68k_read_memory_8(dsta);
3023 	src &= 7;
3024 	SET_ZFLG (1 ^ ((dst >> src) & 1));
3025 	dst |= (1 << src);
3026 	m68k_write_memory_8(dsta,dst);
3027 }}}}m68k_incpc(6);
3028 return 20;
3029 }
CPUFUNC(op_8fb_4)3030 unsigned long CPUFUNC(op_8fb_4)(uint32_t opcode) /* BSET */
3031 {
3032 	uint32_t dstreg = 3;
3033 	OpcodeFamily = 24; CurrentInstrCycles = 22;
3034 {{	int16_t src = get_iword(2);
3035 {	uint32_t tmppc = m68k_getpc() + 4;
3036 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(4));
3037 	BusCyclePenalty += 2;
3038 {	int8_t dst = m68k_read_memory_8(dsta);
3039 	src &= 7;
3040 	SET_ZFLG (1 ^ ((dst >> src) & 1));
3041 	dst |= (1 << src);
3042 	m68k_write_memory_8(dsta,dst);
3043 }}}}m68k_incpc(6);
3044 return 22;
3045 }
CPUFUNC(op_a00_4)3046 unsigned long CPUFUNC(op_a00_4)(uint32_t opcode) /* EOR */
3047 {
3048 	uint32_t dstreg = opcode & 7;
3049 	OpcodeFamily = 3; CurrentInstrCycles = 8;
3050 {{	int8_t src = get_ibyte(2);
3051 {	int8_t dst = m68k_dreg(regs, dstreg);
3052 	src ^= dst;
3053 	CLEAR_CZNV;
3054 	SET_ZFLG (((int8_t)(src)) == 0);
3055 	SET_NFLG (((int8_t)(src)) < 0);
3056 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
3057 }}}m68k_incpc(4);
3058 return 8;
3059 }
CPUFUNC(op_a10_4)3060 unsigned long CPUFUNC(op_a10_4)(uint32_t opcode) /* EOR */
3061 {
3062 	uint32_t dstreg = opcode & 7;
3063 	OpcodeFamily = 3; CurrentInstrCycles = 16;
3064 {{	int8_t src = get_ibyte(2);
3065 {	uint32_t dsta = m68k_areg(regs, dstreg);
3066 {	int8_t dst = m68k_read_memory_8(dsta);
3067 	src ^= dst;
3068 	CLEAR_CZNV;
3069 	SET_ZFLG (((int8_t)(src)) == 0);
3070 	SET_NFLG (((int8_t)(src)) < 0);
3071 	m68k_write_memory_8(dsta,src);
3072 }}}}m68k_incpc(4);
3073 return 16;
3074 }
CPUFUNC(op_a18_4)3075 unsigned long CPUFUNC(op_a18_4)(uint32_t opcode) /* EOR */
3076 {
3077 	uint32_t dstreg = opcode & 7;
3078 	OpcodeFamily = 3; CurrentInstrCycles = 16;
3079 {{	int8_t src = get_ibyte(2);
3080 {	uint32_t dsta = m68k_areg(regs, dstreg);
3081 {	int8_t dst = m68k_read_memory_8(dsta);
3082 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
3083 	src ^= dst;
3084 	CLEAR_CZNV;
3085 	SET_ZFLG (((int8_t)(src)) == 0);
3086 	SET_NFLG (((int8_t)(src)) < 0);
3087 	m68k_write_memory_8(dsta,src);
3088 }}}}m68k_incpc(4);
3089 return 16;
3090 }
CPUFUNC(op_a20_4)3091 unsigned long CPUFUNC(op_a20_4)(uint32_t opcode) /* EOR */
3092 {
3093 	uint32_t dstreg = opcode & 7;
3094 	OpcodeFamily = 3; CurrentInstrCycles = 18;
3095 {{	int8_t src = get_ibyte(2);
3096 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
3097 {	int8_t dst = m68k_read_memory_8(dsta);
3098 	m68k_areg (regs, dstreg) = dsta;
3099 	src ^= dst;
3100 	CLEAR_CZNV;
3101 	SET_ZFLG (((int8_t)(src)) == 0);
3102 	SET_NFLG (((int8_t)(src)) < 0);
3103 	m68k_write_memory_8(dsta,src);
3104 }}}}m68k_incpc(4);
3105 return 18;
3106 }
CPUFUNC(op_a28_4)3107 unsigned long CPUFUNC(op_a28_4)(uint32_t opcode) /* EOR */
3108 {
3109 	uint32_t dstreg = opcode & 7;
3110 	OpcodeFamily = 3; CurrentInstrCycles = 20;
3111 {{	int8_t src = get_ibyte(2);
3112 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
3113 {	int8_t dst = m68k_read_memory_8(dsta);
3114 	src ^= dst;
3115 	CLEAR_CZNV;
3116 	SET_ZFLG (((int8_t)(src)) == 0);
3117 	SET_NFLG (((int8_t)(src)) < 0);
3118 	m68k_write_memory_8(dsta,src);
3119 }}}}m68k_incpc(6);
3120 return 20;
3121 }
CPUFUNC(op_a30_4)3122 unsigned long CPUFUNC(op_a30_4)(uint32_t opcode) /* EOR */
3123 {
3124 	uint32_t dstreg = opcode & 7;
3125 	OpcodeFamily = 3; CurrentInstrCycles = 22;
3126 {{	int8_t src = get_ibyte(2);
3127 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
3128 	BusCyclePenalty += 2;
3129 {	int8_t dst = m68k_read_memory_8(dsta);
3130 	src ^= dst;
3131 	CLEAR_CZNV;
3132 	SET_ZFLG (((int8_t)(src)) == 0);
3133 	SET_NFLG (((int8_t)(src)) < 0);
3134 	m68k_write_memory_8(dsta,src);
3135 }}}}m68k_incpc(6);
3136 return 22;
3137 }
CPUFUNC(op_a38_4)3138 unsigned long CPUFUNC(op_a38_4)(uint32_t opcode) /* EOR */
3139 {
3140 	OpcodeFamily = 3; CurrentInstrCycles = 20;
3141 {{	int8_t src = get_ibyte(2);
3142 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
3143 {	int8_t dst = m68k_read_memory_8(dsta);
3144 	src ^= dst;
3145 	CLEAR_CZNV;
3146 	SET_ZFLG (((int8_t)(src)) == 0);
3147 	SET_NFLG (((int8_t)(src)) < 0);
3148 	m68k_write_memory_8(dsta,src);
3149 }}}}m68k_incpc(6);
3150 return 20;
3151 }
CPUFUNC(op_a39_4)3152 unsigned long CPUFUNC(op_a39_4)(uint32_t opcode) /* EOR */
3153 {
3154 	OpcodeFamily = 3; CurrentInstrCycles = 24;
3155 {{	int8_t src = get_ibyte(2);
3156 {	uint32_t dsta = get_ilong(4);
3157 {	int8_t dst = m68k_read_memory_8(dsta);
3158 	src ^= dst;
3159 	CLEAR_CZNV;
3160 	SET_ZFLG (((int8_t)(src)) == 0);
3161 	SET_NFLG (((int8_t)(src)) < 0);
3162 	m68k_write_memory_8(dsta,src);
3163 }}}}m68k_incpc(8);
3164 return 24;
3165 }
CPUFUNC(op_a3c_4)3166 unsigned long CPUFUNC(op_a3c_4)(uint32_t opcode) /* EORSR */
3167 {
3168 	OpcodeFamily = 6; CurrentInstrCycles = 20;
3169 {	MakeSR();
3170 {	int16_t src = get_iword(2);
3171 	src &= 0xFF;
3172 	regs.sr ^= src;
3173 	MakeFromSR();
3174 }}m68k_incpc(4);
3175 return 20;
3176 }
CPUFUNC(op_a40_4)3177 unsigned long CPUFUNC(op_a40_4)(uint32_t opcode) /* EOR */
3178 {
3179 	uint32_t dstreg = opcode & 7;
3180 	OpcodeFamily = 3; CurrentInstrCycles = 8;
3181 {{	int16_t src = get_iword(2);
3182 {	int16_t dst = m68k_dreg(regs, dstreg);
3183 	src ^= dst;
3184 	CLEAR_CZNV;
3185 	SET_ZFLG (((int16_t)(src)) == 0);
3186 	SET_NFLG (((int16_t)(src)) < 0);
3187 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
3188 }}}m68k_incpc(4);
3189 return 8;
3190 }
CPUFUNC(op_a50_4)3191 unsigned long CPUFUNC(op_a50_4)(uint32_t opcode) /* EOR */
3192 {
3193 	uint32_t dstreg = opcode & 7;
3194 	OpcodeFamily = 3; CurrentInstrCycles = 16;
3195 {{	int16_t src = get_iword(2);
3196 {	uint32_t dsta = m68k_areg(regs, dstreg);
3197 {	int16_t dst = m68k_read_memory_16(dsta);
3198 	src ^= dst;
3199 	CLEAR_CZNV;
3200 	SET_ZFLG (((int16_t)(src)) == 0);
3201 	SET_NFLG (((int16_t)(src)) < 0);
3202 	m68k_write_memory_16(dsta,src);
3203 }}}}m68k_incpc(4);
3204 return 16;
3205 }
CPUFUNC(op_a58_4)3206 unsigned long CPUFUNC(op_a58_4)(uint32_t opcode) /* EOR */
3207 {
3208 	uint32_t dstreg = opcode & 7;
3209 	OpcodeFamily = 3; CurrentInstrCycles = 16;
3210 {{	int16_t src = get_iword(2);
3211 {	uint32_t dsta = m68k_areg(regs, dstreg);
3212 {	int16_t dst = m68k_read_memory_16(dsta);
3213 	m68k_areg(regs, dstreg) += 2;
3214 	src ^= dst;
3215 	CLEAR_CZNV;
3216 	SET_ZFLG (((int16_t)(src)) == 0);
3217 	SET_NFLG (((int16_t)(src)) < 0);
3218 	m68k_write_memory_16(dsta,src);
3219 }}}}m68k_incpc(4);
3220 return 16;
3221 }
CPUFUNC(op_a60_4)3222 unsigned long CPUFUNC(op_a60_4)(uint32_t opcode) /* EOR */
3223 {
3224 	uint32_t dstreg = opcode & 7;
3225 	OpcodeFamily = 3; CurrentInstrCycles = 18;
3226 {{	int16_t src = get_iword(2);
3227 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
3228 {	int16_t dst = m68k_read_memory_16(dsta);
3229 	m68k_areg (regs, dstreg) = dsta;
3230 	src ^= dst;
3231 	CLEAR_CZNV;
3232 	SET_ZFLG (((int16_t)(src)) == 0);
3233 	SET_NFLG (((int16_t)(src)) < 0);
3234 	m68k_write_memory_16(dsta,src);
3235 }}}}m68k_incpc(4);
3236 return 18;
3237 }
CPUFUNC(op_a68_4)3238 unsigned long CPUFUNC(op_a68_4)(uint32_t opcode) /* EOR */
3239 {
3240 	uint32_t dstreg = opcode & 7;
3241 	OpcodeFamily = 3; CurrentInstrCycles = 20;
3242 {{	int16_t src = get_iword(2);
3243 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
3244 {	int16_t dst = m68k_read_memory_16(dsta);
3245 	src ^= dst;
3246 	CLEAR_CZNV;
3247 	SET_ZFLG (((int16_t)(src)) == 0);
3248 	SET_NFLG (((int16_t)(src)) < 0);
3249 	m68k_write_memory_16(dsta,src);
3250 }}}}m68k_incpc(6);
3251 return 20;
3252 }
CPUFUNC(op_a70_4)3253 unsigned long CPUFUNC(op_a70_4)(uint32_t opcode) /* EOR */
3254 {
3255 	uint32_t dstreg = opcode & 7;
3256 	OpcodeFamily = 3; CurrentInstrCycles = 22;
3257 {{	int16_t src = get_iword(2);
3258 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
3259 	BusCyclePenalty += 2;
3260 {	int16_t dst = m68k_read_memory_16(dsta);
3261 	src ^= dst;
3262 	CLEAR_CZNV;
3263 	SET_ZFLG (((int16_t)(src)) == 0);
3264 	SET_NFLG (((int16_t)(src)) < 0);
3265 	m68k_write_memory_16(dsta,src);
3266 }}}}m68k_incpc(6);
3267 return 22;
3268 }
CPUFUNC(op_a78_4)3269 unsigned long CPUFUNC(op_a78_4)(uint32_t opcode) /* EOR */
3270 {
3271 	OpcodeFamily = 3; CurrentInstrCycles = 20;
3272 {{	int16_t src = get_iword(2);
3273 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
3274 {	int16_t dst = m68k_read_memory_16(dsta);
3275 	src ^= dst;
3276 	CLEAR_CZNV;
3277 	SET_ZFLG (((int16_t)(src)) == 0);
3278 	SET_NFLG (((int16_t)(src)) < 0);
3279 	m68k_write_memory_16(dsta,src);
3280 }}}}m68k_incpc(6);
3281 return 20;
3282 }
CPUFUNC(op_a79_4)3283 unsigned long CPUFUNC(op_a79_4)(uint32_t opcode) /* EOR */
3284 {
3285 	OpcodeFamily = 3; CurrentInstrCycles = 24;
3286 {{	int16_t src = get_iword(2);
3287 {	uint32_t dsta = get_ilong(4);
3288 {	int16_t dst = m68k_read_memory_16(dsta);
3289 	src ^= dst;
3290 	CLEAR_CZNV;
3291 	SET_ZFLG (((int16_t)(src)) == 0);
3292 	SET_NFLG (((int16_t)(src)) < 0);
3293 	m68k_write_memory_16(dsta,src);
3294 }}}}m68k_incpc(8);
3295 return 24;
3296 }
CPUFUNC(op_a7c_4)3297 unsigned long CPUFUNC(op_a7c_4)(uint32_t opcode) /* EORSR */
3298 {
3299 	OpcodeFamily = 6; CurrentInstrCycles = 20;
3300 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel204; }
3301 {	MakeSR();
3302 {	int16_t src = get_iword(2);
3303 	regs.sr ^= src;
3304 	MakeFromSR();
3305 }}}m68k_incpc(4);
3306 endlabel204: ;
3307 return 20;
3308 }
3309 #endif
3310 
3311 #ifdef PART_2
CPUFUNC(op_a80_4)3312 unsigned long CPUFUNC(op_a80_4)(uint32_t opcode) /* EOR */
3313 {
3314 	uint32_t dstreg = opcode & 7;
3315 	OpcodeFamily = 3; CurrentInstrCycles = 16;
3316 {{	int32_t src = get_ilong(2);
3317 {	int32_t dst = m68k_dreg(regs, dstreg);
3318 	src ^= dst;
3319 	CLEAR_CZNV;
3320 	SET_ZFLG (((int32_t)(src)) == 0);
3321 	SET_NFLG (((int32_t)(src)) < 0);
3322 	m68k_dreg(regs, dstreg) = (src);
3323 }}}m68k_incpc(6);
3324 return 16;
3325 }
CPUFUNC(op_a90_4)3326 unsigned long CPUFUNC(op_a90_4)(uint32_t opcode) /* EOR */
3327 {
3328 	uint32_t dstreg = opcode & 7;
3329 	OpcodeFamily = 3; CurrentInstrCycles = 28;
3330 {{	int32_t src = get_ilong(2);
3331 {	uint32_t dsta = m68k_areg(regs, dstreg);
3332 {	int32_t dst = m68k_read_memory_32(dsta);
3333 	src ^= dst;
3334 	CLEAR_CZNV;
3335 	SET_ZFLG (((int32_t)(src)) == 0);
3336 	SET_NFLG (((int32_t)(src)) < 0);
3337 	m68k_write_memory_32(dsta,src);
3338 }}}}m68k_incpc(6);
3339 return 28;
3340 }
CPUFUNC(op_a98_4)3341 unsigned long CPUFUNC(op_a98_4)(uint32_t opcode) /* EOR */
3342 {
3343 	uint32_t dstreg = opcode & 7;
3344 	OpcodeFamily = 3; CurrentInstrCycles = 28;
3345 {{	int32_t src = get_ilong(2);
3346 {	uint32_t dsta = m68k_areg(regs, dstreg);
3347 {	int32_t dst = m68k_read_memory_32(dsta);
3348 	m68k_areg(regs, dstreg) += 4;
3349 	src ^= dst;
3350 	CLEAR_CZNV;
3351 	SET_ZFLG (((int32_t)(src)) == 0);
3352 	SET_NFLG (((int32_t)(src)) < 0);
3353 	m68k_write_memory_32(dsta,src);
3354 }}}}m68k_incpc(6);
3355 return 28;
3356 }
CPUFUNC(op_aa0_4)3357 unsigned long CPUFUNC(op_aa0_4)(uint32_t opcode) /* EOR */
3358 {
3359 	uint32_t dstreg = opcode & 7;
3360 	OpcodeFamily = 3; CurrentInstrCycles = 30;
3361 {{	int32_t src = get_ilong(2);
3362 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
3363 {	int32_t dst = m68k_read_memory_32(dsta);
3364 	m68k_areg (regs, dstreg) = dsta;
3365 	src ^= dst;
3366 	CLEAR_CZNV;
3367 	SET_ZFLG (((int32_t)(src)) == 0);
3368 	SET_NFLG (((int32_t)(src)) < 0);
3369 	m68k_write_memory_32(dsta,src);
3370 }}}}m68k_incpc(6);
3371 return 30;
3372 }
CPUFUNC(op_aa8_4)3373 unsigned long CPUFUNC(op_aa8_4)(uint32_t opcode) /* EOR */
3374 {
3375 	uint32_t dstreg = opcode & 7;
3376 	OpcodeFamily = 3; CurrentInstrCycles = 32;
3377 {{	int32_t src = get_ilong(2);
3378 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
3379 {	int32_t dst = m68k_read_memory_32(dsta);
3380 	src ^= dst;
3381 	CLEAR_CZNV;
3382 	SET_ZFLG (((int32_t)(src)) == 0);
3383 	SET_NFLG (((int32_t)(src)) < 0);
3384 	m68k_write_memory_32(dsta,src);
3385 }}}}m68k_incpc(8);
3386 return 32;
3387 }
CPUFUNC(op_ab0_4)3388 unsigned long CPUFUNC(op_ab0_4)(uint32_t opcode) /* EOR */
3389 {
3390 	uint32_t dstreg = opcode & 7;
3391 	OpcodeFamily = 3; CurrentInstrCycles = 34;
3392 {{	int32_t src = get_ilong(2);
3393 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
3394 	BusCyclePenalty += 2;
3395 {	int32_t dst = m68k_read_memory_32(dsta);
3396 	src ^= dst;
3397 	CLEAR_CZNV;
3398 	SET_ZFLG (((int32_t)(src)) == 0);
3399 	SET_NFLG (((int32_t)(src)) < 0);
3400 	m68k_write_memory_32(dsta,src);
3401 }}}}m68k_incpc(8);
3402 return 34;
3403 }
CPUFUNC(op_ab8_4)3404 unsigned long CPUFUNC(op_ab8_4)(uint32_t opcode) /* EOR */
3405 {
3406 	OpcodeFamily = 3; CurrentInstrCycles = 32;
3407 {{	int32_t src = get_ilong(2);
3408 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
3409 {	int32_t dst = m68k_read_memory_32(dsta);
3410 	src ^= dst;
3411 	CLEAR_CZNV;
3412 	SET_ZFLG (((int32_t)(src)) == 0);
3413 	SET_NFLG (((int32_t)(src)) < 0);
3414 	m68k_write_memory_32(dsta,src);
3415 }}}}m68k_incpc(8);
3416 return 32;
3417 }
CPUFUNC(op_ab9_4)3418 unsigned long CPUFUNC(op_ab9_4)(uint32_t opcode) /* EOR */
3419 {
3420 	OpcodeFamily = 3; CurrentInstrCycles = 36;
3421 {{	int32_t src = get_ilong(2);
3422 {	uint32_t dsta = get_ilong(6);
3423 {	int32_t dst = m68k_read_memory_32(dsta);
3424 	src ^= dst;
3425 	CLEAR_CZNV;
3426 	SET_ZFLG (((int32_t)(src)) == 0);
3427 	SET_NFLG (((int32_t)(src)) < 0);
3428 	m68k_write_memory_32(dsta,src);
3429 }}}}m68k_incpc(10);
3430 return 36;
3431 }
CPUFUNC(op_c00_4)3432 unsigned long CPUFUNC(op_c00_4)(uint32_t opcode) /* CMP */
3433 {
3434 	uint32_t dstreg = opcode & 7;
3435 	OpcodeFamily = 25; CurrentInstrCycles = 8;
3436 {{	int8_t src = get_ibyte(2);
3437 {	int8_t dst = m68k_dreg(regs, dstreg);
3438 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3439 {	int flgs = ((int8_t)(src)) < 0;
3440 	int flgo = ((int8_t)(dst)) < 0;
3441 	int flgn = ((int8_t)(newv)) < 0;
3442 	SET_ZFLG (((int8_t)(newv)) == 0);
3443 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3444 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3445 	SET_NFLG (flgn != 0);
3446 }}}}}}m68k_incpc(4);
3447 return 8;
3448 }
CPUFUNC(op_c10_4)3449 unsigned long CPUFUNC(op_c10_4)(uint32_t opcode) /* CMP */
3450 {
3451 	uint32_t dstreg = opcode & 7;
3452 	OpcodeFamily = 25; CurrentInstrCycles = 12;
3453 {{	int8_t src = get_ibyte(2);
3454 {	uint32_t dsta = m68k_areg(regs, dstreg);
3455 {	int8_t dst = m68k_read_memory_8(dsta);
3456 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3457 {	int flgs = ((int8_t)(src)) < 0;
3458 	int flgo = ((int8_t)(dst)) < 0;
3459 	int flgn = ((int8_t)(newv)) < 0;
3460 	SET_ZFLG (((int8_t)(newv)) == 0);
3461 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3462 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3463 	SET_NFLG (flgn != 0);
3464 }}}}}}}m68k_incpc(4);
3465 return 12;
3466 }
CPUFUNC(op_c18_4)3467 unsigned long CPUFUNC(op_c18_4)(uint32_t opcode) /* CMP */
3468 {
3469 	uint32_t dstreg = opcode & 7;
3470 	OpcodeFamily = 25; CurrentInstrCycles = 12;
3471 {{	int8_t src = get_ibyte(2);
3472 {	uint32_t dsta = m68k_areg(regs, dstreg);
3473 {	int8_t dst = m68k_read_memory_8(dsta);
3474 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
3475 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3476 {	int flgs = ((int8_t)(src)) < 0;
3477 	int flgo = ((int8_t)(dst)) < 0;
3478 	int flgn = ((int8_t)(newv)) < 0;
3479 	SET_ZFLG (((int8_t)(newv)) == 0);
3480 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3481 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3482 	SET_NFLG (flgn != 0);
3483 }}}}}}}m68k_incpc(4);
3484 return 12;
3485 }
CPUFUNC(op_c20_4)3486 unsigned long CPUFUNC(op_c20_4)(uint32_t opcode) /* CMP */
3487 {
3488 	uint32_t dstreg = opcode & 7;
3489 	OpcodeFamily = 25; CurrentInstrCycles = 14;
3490 {{	int8_t src = get_ibyte(2);
3491 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
3492 {	int8_t dst = m68k_read_memory_8(dsta);
3493 	m68k_areg (regs, dstreg) = dsta;
3494 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3495 {	int flgs = ((int8_t)(src)) < 0;
3496 	int flgo = ((int8_t)(dst)) < 0;
3497 	int flgn = ((int8_t)(newv)) < 0;
3498 	SET_ZFLG (((int8_t)(newv)) == 0);
3499 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3500 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3501 	SET_NFLG (flgn != 0);
3502 }}}}}}}m68k_incpc(4);
3503 return 14;
3504 }
CPUFUNC(op_c28_4)3505 unsigned long CPUFUNC(op_c28_4)(uint32_t opcode) /* CMP */
3506 {
3507 	uint32_t dstreg = opcode & 7;
3508 	OpcodeFamily = 25; CurrentInstrCycles = 16;
3509 {{	int8_t src = get_ibyte(2);
3510 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
3511 {	int8_t dst = m68k_read_memory_8(dsta);
3512 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3513 {	int flgs = ((int8_t)(src)) < 0;
3514 	int flgo = ((int8_t)(dst)) < 0;
3515 	int flgn = ((int8_t)(newv)) < 0;
3516 	SET_ZFLG (((int8_t)(newv)) == 0);
3517 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3518 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3519 	SET_NFLG (flgn != 0);
3520 }}}}}}}m68k_incpc(6);
3521 return 16;
3522 }
CPUFUNC(op_c30_4)3523 unsigned long CPUFUNC(op_c30_4)(uint32_t opcode) /* CMP */
3524 {
3525 	uint32_t dstreg = opcode & 7;
3526 	OpcodeFamily = 25; CurrentInstrCycles = 18;
3527 {{	int8_t src = get_ibyte(2);
3528 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
3529 	BusCyclePenalty += 2;
3530 {	int8_t dst = m68k_read_memory_8(dsta);
3531 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3532 {	int flgs = ((int8_t)(src)) < 0;
3533 	int flgo = ((int8_t)(dst)) < 0;
3534 	int flgn = ((int8_t)(newv)) < 0;
3535 	SET_ZFLG (((int8_t)(newv)) == 0);
3536 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3537 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3538 	SET_NFLG (flgn != 0);
3539 }}}}}}}m68k_incpc(6);
3540 return 18;
3541 }
CPUFUNC(op_c38_4)3542 unsigned long CPUFUNC(op_c38_4)(uint32_t opcode) /* CMP */
3543 {
3544 	OpcodeFamily = 25; CurrentInstrCycles = 16;
3545 {{	int8_t src = get_ibyte(2);
3546 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
3547 {	int8_t dst = m68k_read_memory_8(dsta);
3548 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3549 {	int flgs = ((int8_t)(src)) < 0;
3550 	int flgo = ((int8_t)(dst)) < 0;
3551 	int flgn = ((int8_t)(newv)) < 0;
3552 	SET_ZFLG (((int8_t)(newv)) == 0);
3553 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3554 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3555 	SET_NFLG (flgn != 0);
3556 }}}}}}}m68k_incpc(6);
3557 return 16;
3558 }
CPUFUNC(op_c39_4)3559 unsigned long CPUFUNC(op_c39_4)(uint32_t opcode) /* CMP */
3560 {
3561 	OpcodeFamily = 25; CurrentInstrCycles = 20;
3562 {{	int8_t src = get_ibyte(2);
3563 {	uint32_t dsta = get_ilong(4);
3564 {	int8_t dst = m68k_read_memory_8(dsta);
3565 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3566 {	int flgs = ((int8_t)(src)) < 0;
3567 	int flgo = ((int8_t)(dst)) < 0;
3568 	int flgn = ((int8_t)(newv)) < 0;
3569 	SET_ZFLG (((int8_t)(newv)) == 0);
3570 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3571 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3572 	SET_NFLG (flgn != 0);
3573 }}}}}}}m68k_incpc(8);
3574 return 20;
3575 }
CPUFUNC(op_c3a_4)3576 unsigned long CPUFUNC(op_c3a_4)(uint32_t opcode) /* CMP */
3577 {
3578 	uint32_t dstreg = 2;
3579 	OpcodeFamily = 25; CurrentInstrCycles = 16;
3580 {{	int8_t src = get_ibyte(2);
3581 {	uint32_t dsta = m68k_getpc () + 4;
3582 	dsta += (int32_t)(int16_t)get_iword(4);
3583 {	int8_t dst = m68k_read_memory_8(dsta);
3584 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3585 {	int flgs = ((int8_t)(src)) < 0;
3586 	int flgo = ((int8_t)(dst)) < 0;
3587 	int flgn = ((int8_t)(newv)) < 0;
3588 	SET_ZFLG (((int8_t)(newv)) == 0);
3589 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3590 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3591 	SET_NFLG (flgn != 0);
3592 }}}}}}}m68k_incpc(6);
3593 return 16;
3594 }
CPUFUNC(op_c3b_4)3595 unsigned long CPUFUNC(op_c3b_4)(uint32_t opcode) /* CMP */
3596 {
3597 	uint32_t dstreg = 3;
3598 	OpcodeFamily = 25; CurrentInstrCycles = 18;
3599 {{	int8_t src = get_ibyte(2);
3600 {	uint32_t tmppc = m68k_getpc() + 4;
3601 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(4));
3602 	BusCyclePenalty += 2;
3603 {	int8_t dst = m68k_read_memory_8(dsta);
3604 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
3605 {	int flgs = ((int8_t)(src)) < 0;
3606 	int flgo = ((int8_t)(dst)) < 0;
3607 	int flgn = ((int8_t)(newv)) < 0;
3608 	SET_ZFLG (((int8_t)(newv)) == 0);
3609 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3610 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
3611 	SET_NFLG (flgn != 0);
3612 }}}}}}}m68k_incpc(6);
3613 return 18;
3614 }
CPUFUNC(op_c40_4)3615 unsigned long CPUFUNC(op_c40_4)(uint32_t opcode) /* CMP */
3616 {
3617 	uint32_t dstreg = opcode & 7;
3618 	OpcodeFamily = 25; CurrentInstrCycles = 8;
3619 {{	int16_t src = get_iword(2);
3620 {	int16_t dst = m68k_dreg(regs, dstreg);
3621 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3622 {	int flgs = ((int16_t)(src)) < 0;
3623 	int flgo = ((int16_t)(dst)) < 0;
3624 	int flgn = ((int16_t)(newv)) < 0;
3625 	SET_ZFLG (((int16_t)(newv)) == 0);
3626 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3627 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3628 	SET_NFLG (flgn != 0);
3629 }}}}}}m68k_incpc(4);
3630 return 8;
3631 }
CPUFUNC(op_c50_4)3632 unsigned long CPUFUNC(op_c50_4)(uint32_t opcode) /* CMP */
3633 {
3634 	uint32_t dstreg = opcode & 7;
3635 	OpcodeFamily = 25; CurrentInstrCycles = 12;
3636 {{	int16_t src = get_iword(2);
3637 {	uint32_t dsta = m68k_areg(regs, dstreg);
3638 {	int16_t dst = m68k_read_memory_16(dsta);
3639 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3640 {	int flgs = ((int16_t)(src)) < 0;
3641 	int flgo = ((int16_t)(dst)) < 0;
3642 	int flgn = ((int16_t)(newv)) < 0;
3643 	SET_ZFLG (((int16_t)(newv)) == 0);
3644 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3645 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3646 	SET_NFLG (flgn != 0);
3647 }}}}}}}m68k_incpc(4);
3648 return 12;
3649 }
CPUFUNC(op_c58_4)3650 unsigned long CPUFUNC(op_c58_4)(uint32_t opcode) /* CMP */
3651 {
3652 	uint32_t dstreg = opcode & 7;
3653 	OpcodeFamily = 25; CurrentInstrCycles = 12;
3654 {{	int16_t src = get_iword(2);
3655 {	uint32_t dsta = m68k_areg(regs, dstreg);
3656 {	int16_t dst = m68k_read_memory_16(dsta);
3657 	m68k_areg(regs, dstreg) += 2;
3658 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3659 {	int flgs = ((int16_t)(src)) < 0;
3660 	int flgo = ((int16_t)(dst)) < 0;
3661 	int flgn = ((int16_t)(newv)) < 0;
3662 	SET_ZFLG (((int16_t)(newv)) == 0);
3663 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3664 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3665 	SET_NFLG (flgn != 0);
3666 }}}}}}}m68k_incpc(4);
3667 return 12;
3668 }
CPUFUNC(op_c60_4)3669 unsigned long CPUFUNC(op_c60_4)(uint32_t opcode) /* CMP */
3670 {
3671 	uint32_t dstreg = opcode & 7;
3672 	OpcodeFamily = 25; CurrentInstrCycles = 14;
3673 {{	int16_t src = get_iword(2);
3674 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
3675 {	int16_t dst = m68k_read_memory_16(dsta);
3676 	m68k_areg (regs, dstreg) = dsta;
3677 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3678 {	int flgs = ((int16_t)(src)) < 0;
3679 	int flgo = ((int16_t)(dst)) < 0;
3680 	int flgn = ((int16_t)(newv)) < 0;
3681 	SET_ZFLG (((int16_t)(newv)) == 0);
3682 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3683 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3684 	SET_NFLG (flgn != 0);
3685 }}}}}}}m68k_incpc(4);
3686 return 14;
3687 }
CPUFUNC(op_c68_4)3688 unsigned long CPUFUNC(op_c68_4)(uint32_t opcode) /* CMP */
3689 {
3690 	uint32_t dstreg = opcode & 7;
3691 	OpcodeFamily = 25; CurrentInstrCycles = 16;
3692 {{	int16_t src = get_iword(2);
3693 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
3694 {	int16_t dst = m68k_read_memory_16(dsta);
3695 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3696 {	int flgs = ((int16_t)(src)) < 0;
3697 	int flgo = ((int16_t)(dst)) < 0;
3698 	int flgn = ((int16_t)(newv)) < 0;
3699 	SET_ZFLG (((int16_t)(newv)) == 0);
3700 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3701 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3702 	SET_NFLG (flgn != 0);
3703 }}}}}}}m68k_incpc(6);
3704 return 16;
3705 }
CPUFUNC(op_c70_4)3706 unsigned long CPUFUNC(op_c70_4)(uint32_t opcode) /* CMP */
3707 {
3708 	uint32_t dstreg = opcode & 7;
3709 	OpcodeFamily = 25; CurrentInstrCycles = 18;
3710 {{	int16_t src = get_iword(2);
3711 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
3712 	BusCyclePenalty += 2;
3713 {	int16_t dst = m68k_read_memory_16(dsta);
3714 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3715 {	int flgs = ((int16_t)(src)) < 0;
3716 	int flgo = ((int16_t)(dst)) < 0;
3717 	int flgn = ((int16_t)(newv)) < 0;
3718 	SET_ZFLG (((int16_t)(newv)) == 0);
3719 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3720 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3721 	SET_NFLG (flgn != 0);
3722 }}}}}}}m68k_incpc(6);
3723 return 18;
3724 }
CPUFUNC(op_c78_4)3725 unsigned long CPUFUNC(op_c78_4)(uint32_t opcode) /* CMP */
3726 {
3727 	OpcodeFamily = 25; CurrentInstrCycles = 16;
3728 {{	int16_t src = get_iword(2);
3729 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
3730 {	int16_t dst = m68k_read_memory_16(dsta);
3731 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3732 {	int flgs = ((int16_t)(src)) < 0;
3733 	int flgo = ((int16_t)(dst)) < 0;
3734 	int flgn = ((int16_t)(newv)) < 0;
3735 	SET_ZFLG (((int16_t)(newv)) == 0);
3736 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3737 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3738 	SET_NFLG (flgn != 0);
3739 }}}}}}}m68k_incpc(6);
3740 return 16;
3741 }
CPUFUNC(op_c79_4)3742 unsigned long CPUFUNC(op_c79_4)(uint32_t opcode) /* CMP */
3743 {
3744 	OpcodeFamily = 25; CurrentInstrCycles = 20;
3745 {{	int16_t src = get_iword(2);
3746 {	uint32_t dsta = get_ilong(4);
3747 {	int16_t dst = m68k_read_memory_16(dsta);
3748 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3749 {	int flgs = ((int16_t)(src)) < 0;
3750 	int flgo = ((int16_t)(dst)) < 0;
3751 	int flgn = ((int16_t)(newv)) < 0;
3752 	SET_ZFLG (((int16_t)(newv)) == 0);
3753 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3754 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3755 	SET_NFLG (flgn != 0);
3756 }}}}}}}m68k_incpc(8);
3757 return 20;
3758 }
CPUFUNC(op_c7a_4)3759 unsigned long CPUFUNC(op_c7a_4)(uint32_t opcode) /* CMP */
3760 {
3761 	uint32_t dstreg = 2;
3762 	OpcodeFamily = 25; CurrentInstrCycles = 16;
3763 {{	int16_t src = get_iword(2);
3764 {	uint32_t dsta = m68k_getpc () + 4;
3765 	dsta += (int32_t)(int16_t)get_iword(4);
3766 {	int16_t dst = m68k_read_memory_16(dsta);
3767 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3768 {	int flgs = ((int16_t)(src)) < 0;
3769 	int flgo = ((int16_t)(dst)) < 0;
3770 	int flgn = ((int16_t)(newv)) < 0;
3771 	SET_ZFLG (((int16_t)(newv)) == 0);
3772 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3773 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3774 	SET_NFLG (flgn != 0);
3775 }}}}}}}m68k_incpc(6);
3776 return 16;
3777 }
CPUFUNC(op_c7b_4)3778 unsigned long CPUFUNC(op_c7b_4)(uint32_t opcode) /* CMP */
3779 {
3780 	uint32_t dstreg = 3;
3781 	OpcodeFamily = 25; CurrentInstrCycles = 18;
3782 {{	int16_t src = get_iword(2);
3783 {	uint32_t tmppc = m68k_getpc() + 4;
3784 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(4));
3785 	BusCyclePenalty += 2;
3786 {	int16_t dst = m68k_read_memory_16(dsta);
3787 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
3788 {	int flgs = ((int16_t)(src)) < 0;
3789 	int flgo = ((int16_t)(dst)) < 0;
3790 	int flgn = ((int16_t)(newv)) < 0;
3791 	SET_ZFLG (((int16_t)(newv)) == 0);
3792 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3793 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
3794 	SET_NFLG (flgn != 0);
3795 }}}}}}}m68k_incpc(6);
3796 return 18;
3797 }
CPUFUNC(op_c80_4)3798 unsigned long CPUFUNC(op_c80_4)(uint32_t opcode) /* CMP */
3799 {
3800 	uint32_t dstreg = opcode & 7;
3801 	OpcodeFamily = 25; CurrentInstrCycles = 14;
3802 {{	int32_t src = get_ilong(2);
3803 {	int32_t dst = m68k_dreg(regs, dstreg);
3804 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3805 {	int flgs = ((int32_t)(src)) < 0;
3806 	int flgo = ((int32_t)(dst)) < 0;
3807 	int flgn = ((int32_t)(newv)) < 0;
3808 	SET_ZFLG (((int32_t)(newv)) == 0);
3809 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3810 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3811 	SET_NFLG (flgn != 0);
3812 }}}}}}m68k_incpc(6);
3813 return 14;
3814 }
CPUFUNC(op_c90_4)3815 unsigned long CPUFUNC(op_c90_4)(uint32_t opcode) /* CMP */
3816 {
3817 	uint32_t dstreg = opcode & 7;
3818 	OpcodeFamily = 25; CurrentInstrCycles = 20;
3819 {{	int32_t src = get_ilong(2);
3820 {	uint32_t dsta = m68k_areg(regs, dstreg);
3821 {	int32_t dst = m68k_read_memory_32(dsta);
3822 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3823 {	int flgs = ((int32_t)(src)) < 0;
3824 	int flgo = ((int32_t)(dst)) < 0;
3825 	int flgn = ((int32_t)(newv)) < 0;
3826 	SET_ZFLG (((int32_t)(newv)) == 0);
3827 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3828 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3829 	SET_NFLG (flgn != 0);
3830 }}}}}}}m68k_incpc(6);
3831 return 20;
3832 }
CPUFUNC(op_c98_4)3833 unsigned long CPUFUNC(op_c98_4)(uint32_t opcode) /* CMP */
3834 {
3835 	uint32_t dstreg = opcode & 7;
3836 	OpcodeFamily = 25; CurrentInstrCycles = 20;
3837 {{	int32_t src = get_ilong(2);
3838 {	uint32_t dsta = m68k_areg(regs, dstreg);
3839 {	int32_t dst = m68k_read_memory_32(dsta);
3840 	m68k_areg(regs, dstreg) += 4;
3841 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3842 {	int flgs = ((int32_t)(src)) < 0;
3843 	int flgo = ((int32_t)(dst)) < 0;
3844 	int flgn = ((int32_t)(newv)) < 0;
3845 	SET_ZFLG (((int32_t)(newv)) == 0);
3846 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3847 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3848 	SET_NFLG (flgn != 0);
3849 }}}}}}}m68k_incpc(6);
3850 return 20;
3851 }
CPUFUNC(op_ca0_4)3852 unsigned long CPUFUNC(op_ca0_4)(uint32_t opcode) /* CMP */
3853 {
3854 	uint32_t dstreg = opcode & 7;
3855 	OpcodeFamily = 25; CurrentInstrCycles = 22;
3856 {{	int32_t src = get_ilong(2);
3857 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
3858 {	int32_t dst = m68k_read_memory_32(dsta);
3859 	m68k_areg (regs, dstreg) = dsta;
3860 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3861 {	int flgs = ((int32_t)(src)) < 0;
3862 	int flgo = ((int32_t)(dst)) < 0;
3863 	int flgn = ((int32_t)(newv)) < 0;
3864 	SET_ZFLG (((int32_t)(newv)) == 0);
3865 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3866 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3867 	SET_NFLG (flgn != 0);
3868 }}}}}}}m68k_incpc(6);
3869 return 22;
3870 }
CPUFUNC(op_ca8_4)3871 unsigned long CPUFUNC(op_ca8_4)(uint32_t opcode) /* CMP */
3872 {
3873 	uint32_t dstreg = opcode & 7;
3874 	OpcodeFamily = 25; CurrentInstrCycles = 24;
3875 {{	int32_t src = get_ilong(2);
3876 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
3877 {	int32_t dst = m68k_read_memory_32(dsta);
3878 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3879 {	int flgs = ((int32_t)(src)) < 0;
3880 	int flgo = ((int32_t)(dst)) < 0;
3881 	int flgn = ((int32_t)(newv)) < 0;
3882 	SET_ZFLG (((int32_t)(newv)) == 0);
3883 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3884 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3885 	SET_NFLG (flgn != 0);
3886 }}}}}}}m68k_incpc(8);
3887 return 24;
3888 }
CPUFUNC(op_cb0_4)3889 unsigned long CPUFUNC(op_cb0_4)(uint32_t opcode) /* CMP */
3890 {
3891 	uint32_t dstreg = opcode & 7;
3892 	OpcodeFamily = 25; CurrentInstrCycles = 26;
3893 {{	int32_t src = get_ilong(2);
3894 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
3895 	BusCyclePenalty += 2;
3896 {	int32_t dst = m68k_read_memory_32(dsta);
3897 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3898 {	int flgs = ((int32_t)(src)) < 0;
3899 	int flgo = ((int32_t)(dst)) < 0;
3900 	int flgn = ((int32_t)(newv)) < 0;
3901 	SET_ZFLG (((int32_t)(newv)) == 0);
3902 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3903 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3904 	SET_NFLG (flgn != 0);
3905 }}}}}}}m68k_incpc(8);
3906 return 26;
3907 }
CPUFUNC(op_cb8_4)3908 unsigned long CPUFUNC(op_cb8_4)(uint32_t opcode) /* CMP */
3909 {
3910 	OpcodeFamily = 25; CurrentInstrCycles = 24;
3911 {{	int32_t src = get_ilong(2);
3912 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
3913 {	int32_t dst = m68k_read_memory_32(dsta);
3914 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3915 {	int flgs = ((int32_t)(src)) < 0;
3916 	int flgo = ((int32_t)(dst)) < 0;
3917 	int flgn = ((int32_t)(newv)) < 0;
3918 	SET_ZFLG (((int32_t)(newv)) == 0);
3919 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3920 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3921 	SET_NFLG (flgn != 0);
3922 }}}}}}}m68k_incpc(8);
3923 return 24;
3924 }
CPUFUNC(op_cb9_4)3925 unsigned long CPUFUNC(op_cb9_4)(uint32_t opcode) /* CMP */
3926 {
3927 	OpcodeFamily = 25; CurrentInstrCycles = 28;
3928 {{	int32_t src = get_ilong(2);
3929 {	uint32_t dsta = get_ilong(6);
3930 {	int32_t dst = m68k_read_memory_32(dsta);
3931 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3932 {	int flgs = ((int32_t)(src)) < 0;
3933 	int flgo = ((int32_t)(dst)) < 0;
3934 	int flgn = ((int32_t)(newv)) < 0;
3935 	SET_ZFLG (((int32_t)(newv)) == 0);
3936 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3937 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3938 	SET_NFLG (flgn != 0);
3939 }}}}}}}m68k_incpc(10);
3940 return 28;
3941 }
CPUFUNC(op_cba_4)3942 unsigned long CPUFUNC(op_cba_4)(uint32_t opcode) /* CMP */
3943 {
3944 	uint32_t dstreg = 2;
3945 	OpcodeFamily = 25; CurrentInstrCycles = 24;
3946 {{	int32_t src = get_ilong(2);
3947 {	uint32_t dsta = m68k_getpc () + 6;
3948 	dsta += (int32_t)(int16_t)get_iword(6);
3949 {	int32_t dst = m68k_read_memory_32(dsta);
3950 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3951 {	int flgs = ((int32_t)(src)) < 0;
3952 	int flgo = ((int32_t)(dst)) < 0;
3953 	int flgn = ((int32_t)(newv)) < 0;
3954 	SET_ZFLG (((int32_t)(newv)) == 0);
3955 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3956 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3957 	SET_NFLG (flgn != 0);
3958 }}}}}}}m68k_incpc(8);
3959 return 24;
3960 }
CPUFUNC(op_cbb_4)3961 unsigned long CPUFUNC(op_cbb_4)(uint32_t opcode) /* CMP */
3962 {
3963 	uint32_t dstreg = 3;
3964 	OpcodeFamily = 25; CurrentInstrCycles = 26;
3965 {{	int32_t src = get_ilong(2);
3966 {	uint32_t tmppc = m68k_getpc() + 6;
3967 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword(6));
3968 	BusCyclePenalty += 2;
3969 {	int32_t dst = m68k_read_memory_32(dsta);
3970 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
3971 {	int flgs = ((int32_t)(src)) < 0;
3972 	int flgo = ((int32_t)(dst)) < 0;
3973 	int flgn = ((int32_t)(newv)) < 0;
3974 	SET_ZFLG (((int32_t)(newv)) == 0);
3975 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
3976 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
3977 	SET_NFLG (flgn != 0);
3978 }}}}}}}m68k_incpc(8);
3979 return 26;
3980 }
CPUFUNC(op_1000_4)3981 unsigned long CPUFUNC(op_1000_4)(uint32_t opcode) /* MOVE */
3982 {
3983 	uint32_t srcreg = (opcode & 7);
3984 	uint32_t dstreg = (opcode >> 9) & 7;
3985 	OpcodeFamily = 30; CurrentInstrCycles = 4;
3986 {{	int8_t src = m68k_dreg(regs, srcreg);
3987 {	CLEAR_CZNV;
3988 	SET_ZFLG (((int8_t)(src)) == 0);
3989 	SET_NFLG (((int8_t)(src)) < 0);
3990 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
3991 }}}m68k_incpc(2);
3992 return 4;
3993 }
CPUFUNC(op_1008_4)3994 unsigned long CPUFUNC(op_1008_4)(uint32_t opcode) /* MOVE */
3995 {
3996 	uint32_t srcreg = (opcode & 7);
3997 	uint32_t dstreg = (opcode >> 9) & 7;
3998 	OpcodeFamily = 30; CurrentInstrCycles = 4;
3999 {{	int8_t src = m68k_areg(regs, srcreg);
4000 {	CLEAR_CZNV;
4001 	SET_ZFLG (((int8_t)(src)) == 0);
4002 	SET_NFLG (((int8_t)(src)) < 0);
4003 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4004 }}}m68k_incpc(2);
4005 return 4;
4006 }
CPUFUNC(op_1010_4)4007 unsigned long CPUFUNC(op_1010_4)(uint32_t opcode) /* MOVE */
4008 {
4009 	uint32_t srcreg = (opcode & 7);
4010 	uint32_t dstreg = (opcode >> 9) & 7;
4011 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4012 {{	uint32_t srca = m68k_areg(regs, srcreg);
4013 {	int8_t src = m68k_read_memory_8(srca);
4014 {	CLEAR_CZNV;
4015 	SET_ZFLG (((int8_t)(src)) == 0);
4016 	SET_NFLG (((int8_t)(src)) < 0);
4017 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4018 }}}}m68k_incpc(2);
4019 return 8;
4020 }
CPUFUNC(op_1018_4)4021 unsigned long CPUFUNC(op_1018_4)(uint32_t opcode) /* MOVE */
4022 {
4023 	uint32_t srcreg = (opcode & 7);
4024 	uint32_t dstreg = (opcode >> 9) & 7;
4025 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4026 {{	uint32_t srca = m68k_areg(regs, srcreg);
4027 {	int8_t src = m68k_read_memory_8(srca);
4028 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
4029 {	CLEAR_CZNV;
4030 	SET_ZFLG (((int8_t)(src)) == 0);
4031 	SET_NFLG (((int8_t)(src)) < 0);
4032 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4033 }}}}m68k_incpc(2);
4034 return 8;
4035 }
CPUFUNC(op_1020_4)4036 unsigned long CPUFUNC(op_1020_4)(uint32_t opcode) /* MOVE */
4037 {
4038 	uint32_t srcreg = (opcode & 7);
4039 	uint32_t dstreg = (opcode >> 9) & 7;
4040 	OpcodeFamily = 30; CurrentInstrCycles = 10;
4041 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
4042 {	int8_t src = m68k_read_memory_8(srca);
4043 	m68k_areg (regs, srcreg) = srca;
4044 {	CLEAR_CZNV;
4045 	SET_ZFLG (((int8_t)(src)) == 0);
4046 	SET_NFLG (((int8_t)(src)) < 0);
4047 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4048 }}}}m68k_incpc(2);
4049 return 10;
4050 }
CPUFUNC(op_1028_4)4051 unsigned long CPUFUNC(op_1028_4)(uint32_t opcode) /* MOVE */
4052 {
4053 	uint32_t srcreg = (opcode & 7);
4054 	uint32_t dstreg = (opcode >> 9) & 7;
4055 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4056 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
4057 {	int8_t src = m68k_read_memory_8(srca);
4058 {	CLEAR_CZNV;
4059 	SET_ZFLG (((int8_t)(src)) == 0);
4060 	SET_NFLG (((int8_t)(src)) < 0);
4061 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4062 }}}}m68k_incpc(4);
4063 return 12;
4064 }
CPUFUNC(op_1030_4)4065 unsigned long CPUFUNC(op_1030_4)(uint32_t opcode) /* MOVE */
4066 {
4067 	uint32_t srcreg = (opcode & 7);
4068 	uint32_t dstreg = (opcode >> 9) & 7;
4069 	OpcodeFamily = 30; CurrentInstrCycles = 14;
4070 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
4071 	BusCyclePenalty += 2;
4072 {	int8_t src = m68k_read_memory_8(srca);
4073 {	CLEAR_CZNV;
4074 	SET_ZFLG (((int8_t)(src)) == 0);
4075 	SET_NFLG (((int8_t)(src)) < 0);
4076 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4077 }}}}m68k_incpc(4);
4078 return 14;
4079 }
CPUFUNC(op_1038_4)4080 unsigned long CPUFUNC(op_1038_4)(uint32_t opcode) /* MOVE */
4081 {
4082 	uint32_t dstreg = (opcode >> 9) & 7;
4083 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4084 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
4085 {	int8_t src = m68k_read_memory_8(srca);
4086 {	CLEAR_CZNV;
4087 	SET_ZFLG (((int8_t)(src)) == 0);
4088 	SET_NFLG (((int8_t)(src)) < 0);
4089 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4090 }}}}m68k_incpc(4);
4091 return 12;
4092 }
CPUFUNC(op_1039_4)4093 unsigned long CPUFUNC(op_1039_4)(uint32_t opcode) /* MOVE */
4094 {
4095 	uint32_t dstreg = (opcode >> 9) & 7;
4096 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4097 {{	uint32_t srca = get_ilong(2);
4098 {	int8_t src = m68k_read_memory_8(srca);
4099 {	CLEAR_CZNV;
4100 	SET_ZFLG (((int8_t)(src)) == 0);
4101 	SET_NFLG (((int8_t)(src)) < 0);
4102 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4103 }}}}m68k_incpc(6);
4104 return 16;
4105 }
CPUFUNC(op_103a_4)4106 unsigned long CPUFUNC(op_103a_4)(uint32_t opcode) /* MOVE */
4107 {
4108 	uint32_t dstreg = (opcode >> 9) & 7;
4109 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4110 {{	uint32_t srca = m68k_getpc () + 2;
4111 	srca += (int32_t)(int16_t)get_iword(2);
4112 {	int8_t src = m68k_read_memory_8(srca);
4113 {	CLEAR_CZNV;
4114 	SET_ZFLG (((int8_t)(src)) == 0);
4115 	SET_NFLG (((int8_t)(src)) < 0);
4116 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4117 }}}}m68k_incpc(4);
4118 return 12;
4119 }
CPUFUNC(op_103b_4)4120 unsigned long CPUFUNC(op_103b_4)(uint32_t opcode) /* MOVE */
4121 {
4122 	uint32_t dstreg = (opcode >> 9) & 7;
4123 	OpcodeFamily = 30; CurrentInstrCycles = 14;
4124 {{	uint32_t tmppc = m68k_getpc() + 2;
4125 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
4126 	BusCyclePenalty += 2;
4127 {	int8_t src = m68k_read_memory_8(srca);
4128 {	CLEAR_CZNV;
4129 	SET_ZFLG (((int8_t)(src)) == 0);
4130 	SET_NFLG (((int8_t)(src)) < 0);
4131 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4132 }}}}m68k_incpc(4);
4133 return 14;
4134 }
CPUFUNC(op_103c_4)4135 unsigned long CPUFUNC(op_103c_4)(uint32_t opcode) /* MOVE */
4136 {
4137 	uint32_t dstreg = (opcode >> 9) & 7;
4138 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4139 {{	int8_t src = get_ibyte(2);
4140 {	CLEAR_CZNV;
4141 	SET_ZFLG (((int8_t)(src)) == 0);
4142 	SET_NFLG (((int8_t)(src)) < 0);
4143 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
4144 }}}m68k_incpc(4);
4145 return 8;
4146 }
CPUFUNC(op_1080_4)4147 unsigned long CPUFUNC(op_1080_4)(uint32_t opcode) /* MOVE */
4148 {
4149 	uint32_t srcreg = (opcode & 7);
4150 	uint32_t dstreg = (opcode >> 9) & 7;
4151 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4152 {{	int8_t src = m68k_dreg(regs, srcreg);
4153 {	uint32_t dsta = m68k_areg(regs, dstreg);
4154 	CLEAR_CZNV;
4155 	SET_ZFLG (((int8_t)(src)) == 0);
4156 	SET_NFLG (((int8_t)(src)) < 0);
4157 	m68k_write_memory_8(dsta,src);
4158 }}}m68k_incpc(2);
4159 return 8;
4160 }
CPUFUNC(op_1088_4)4161 unsigned long CPUFUNC(op_1088_4)(uint32_t opcode) /* MOVE */
4162 {
4163 	uint32_t srcreg = (opcode & 7);
4164 	uint32_t dstreg = (opcode >> 9) & 7;
4165 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4166 {{	int8_t src = m68k_areg(regs, srcreg);
4167 {	uint32_t dsta = m68k_areg(regs, dstreg);
4168 	CLEAR_CZNV;
4169 	SET_ZFLG (((int8_t)(src)) == 0);
4170 	SET_NFLG (((int8_t)(src)) < 0);
4171 	m68k_write_memory_8(dsta,src);
4172 }}}m68k_incpc(2);
4173 return 8;
4174 }
CPUFUNC(op_1090_4)4175 unsigned long CPUFUNC(op_1090_4)(uint32_t opcode) /* MOVE */
4176 {
4177 	uint32_t srcreg = (opcode & 7);
4178 	uint32_t dstreg = (opcode >> 9) & 7;
4179 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4180 {{	uint32_t srca = m68k_areg(regs, srcreg);
4181 {	int8_t src = m68k_read_memory_8(srca);
4182 {	uint32_t dsta = m68k_areg(regs, dstreg);
4183 	CLEAR_CZNV;
4184 	SET_ZFLG (((int8_t)(src)) == 0);
4185 	SET_NFLG (((int8_t)(src)) < 0);
4186 	m68k_write_memory_8(dsta,src);
4187 }}}}m68k_incpc(2);
4188 return 12;
4189 }
CPUFUNC(op_1098_4)4190 unsigned long CPUFUNC(op_1098_4)(uint32_t opcode) /* MOVE */
4191 {
4192 	uint32_t srcreg = (opcode & 7);
4193 	uint32_t dstreg = (opcode >> 9) & 7;
4194 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4195 {{	uint32_t srca = m68k_areg(regs, srcreg);
4196 {	int8_t src = m68k_read_memory_8(srca);
4197 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
4198 {	uint32_t dsta = m68k_areg(regs, dstreg);
4199 	CLEAR_CZNV;
4200 	SET_ZFLG (((int8_t)(src)) == 0);
4201 	SET_NFLG (((int8_t)(src)) < 0);
4202 	m68k_write_memory_8(dsta,src);
4203 }}}}m68k_incpc(2);
4204 return 12;
4205 }
CPUFUNC(op_10a0_4)4206 unsigned long CPUFUNC(op_10a0_4)(uint32_t opcode) /* MOVE */
4207 {
4208 	uint32_t srcreg = (opcode & 7);
4209 	uint32_t dstreg = (opcode >> 9) & 7;
4210 	OpcodeFamily = 30; CurrentInstrCycles = 14;
4211 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
4212 {	int8_t src = m68k_read_memory_8(srca);
4213 	m68k_areg (regs, srcreg) = srca;
4214 {	uint32_t dsta = m68k_areg(regs, dstreg);
4215 	CLEAR_CZNV;
4216 	SET_ZFLG (((int8_t)(src)) == 0);
4217 	SET_NFLG (((int8_t)(src)) < 0);
4218 	m68k_write_memory_8(dsta,src);
4219 }}}}m68k_incpc(2);
4220 return 14;
4221 }
CPUFUNC(op_10a8_4)4222 unsigned long CPUFUNC(op_10a8_4)(uint32_t opcode) /* MOVE */
4223 {
4224 	uint32_t srcreg = (opcode & 7);
4225 	uint32_t dstreg = (opcode >> 9) & 7;
4226 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4227 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
4228 {	int8_t src = m68k_read_memory_8(srca);
4229 {	uint32_t dsta = m68k_areg(regs, dstreg);
4230 	CLEAR_CZNV;
4231 	SET_ZFLG (((int8_t)(src)) == 0);
4232 	SET_NFLG (((int8_t)(src)) < 0);
4233 	m68k_write_memory_8(dsta,src);
4234 }}}}m68k_incpc(4);
4235 return 16;
4236 }
CPUFUNC(op_10b0_4)4237 unsigned long CPUFUNC(op_10b0_4)(uint32_t opcode) /* MOVE */
4238 {
4239 	uint32_t srcreg = (opcode & 7);
4240 	uint32_t dstreg = (opcode >> 9) & 7;
4241 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4242 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
4243 	BusCyclePenalty += 2;
4244 {	int8_t src = m68k_read_memory_8(srca);
4245 {	uint32_t dsta = m68k_areg(regs, dstreg);
4246 	CLEAR_CZNV;
4247 	SET_ZFLG (((int8_t)(src)) == 0);
4248 	SET_NFLG (((int8_t)(src)) < 0);
4249 	m68k_write_memory_8(dsta,src);
4250 }}}}m68k_incpc(4);
4251 return 18;
4252 }
CPUFUNC(op_10b8_4)4253 unsigned long CPUFUNC(op_10b8_4)(uint32_t opcode) /* MOVE */
4254 {
4255 	uint32_t dstreg = (opcode >> 9) & 7;
4256 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4257 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
4258 {	int8_t src = m68k_read_memory_8(srca);
4259 {	uint32_t dsta = m68k_areg(regs, dstreg);
4260 	CLEAR_CZNV;
4261 	SET_ZFLG (((int8_t)(src)) == 0);
4262 	SET_NFLG (((int8_t)(src)) < 0);
4263 	m68k_write_memory_8(dsta,src);
4264 }}}}m68k_incpc(4);
4265 return 16;
4266 }
CPUFUNC(op_10b9_4)4267 unsigned long CPUFUNC(op_10b9_4)(uint32_t opcode) /* MOVE */
4268 {
4269 	uint32_t dstreg = (opcode >> 9) & 7;
4270 	OpcodeFamily = 30; CurrentInstrCycles = 20;
4271 {{	uint32_t srca = get_ilong(2);
4272 {	int8_t src = m68k_read_memory_8(srca);
4273 {	uint32_t dsta = m68k_areg(regs, dstreg);
4274 	CLEAR_CZNV;
4275 	SET_ZFLG (((int8_t)(src)) == 0);
4276 	SET_NFLG (((int8_t)(src)) < 0);
4277 	m68k_write_memory_8(dsta,src);
4278 }}}}m68k_incpc(6);
4279 return 20;
4280 }
CPUFUNC(op_10ba_4)4281 unsigned long CPUFUNC(op_10ba_4)(uint32_t opcode) /* MOVE */
4282 {
4283 	uint32_t dstreg = (opcode >> 9) & 7;
4284 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4285 {{	uint32_t srca = m68k_getpc () + 2;
4286 	srca += (int32_t)(int16_t)get_iword(2);
4287 {	int8_t src = m68k_read_memory_8(srca);
4288 {	uint32_t dsta = m68k_areg(regs, dstreg);
4289 	CLEAR_CZNV;
4290 	SET_ZFLG (((int8_t)(src)) == 0);
4291 	SET_NFLG (((int8_t)(src)) < 0);
4292 	m68k_write_memory_8(dsta,src);
4293 }}}}m68k_incpc(4);
4294 return 16;
4295 }
CPUFUNC(op_10bb_4)4296 unsigned long CPUFUNC(op_10bb_4)(uint32_t opcode) /* MOVE */
4297 {
4298 	uint32_t dstreg = (opcode >> 9) & 7;
4299 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4300 {{	uint32_t tmppc = m68k_getpc() + 2;
4301 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
4302 	BusCyclePenalty += 2;
4303 {	int8_t src = m68k_read_memory_8(srca);
4304 {	uint32_t dsta = m68k_areg(regs, dstreg);
4305 	CLEAR_CZNV;
4306 	SET_ZFLG (((int8_t)(src)) == 0);
4307 	SET_NFLG (((int8_t)(src)) < 0);
4308 	m68k_write_memory_8(dsta,src);
4309 }}}}m68k_incpc(4);
4310 return 18;
4311 }
CPUFUNC(op_10bc_4)4312 unsigned long CPUFUNC(op_10bc_4)(uint32_t opcode) /* MOVE */
4313 {
4314 	uint32_t dstreg = (opcode >> 9) & 7;
4315 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4316 {{	int8_t src = get_ibyte(2);
4317 {	uint32_t dsta = m68k_areg(regs, dstreg);
4318 	CLEAR_CZNV;
4319 	SET_ZFLG (((int8_t)(src)) == 0);
4320 	SET_NFLG (((int8_t)(src)) < 0);
4321 	m68k_write_memory_8(dsta,src);
4322 }}}m68k_incpc(4);
4323 return 12;
4324 }
CPUFUNC(op_10c0_4)4325 unsigned long CPUFUNC(op_10c0_4)(uint32_t opcode) /* MOVE */
4326 {
4327 	uint32_t srcreg = (opcode & 7);
4328 	uint32_t dstreg = (opcode >> 9) & 7;
4329 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4330 {{	int8_t src = m68k_dreg(regs, srcreg);
4331 {	uint32_t dsta = m68k_areg(regs, dstreg);
4332 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4333 	CLEAR_CZNV;
4334 	SET_ZFLG (((int8_t)(src)) == 0);
4335 	SET_NFLG (((int8_t)(src)) < 0);
4336 	m68k_write_memory_8(dsta,src);
4337 }}}m68k_incpc(2);
4338 return 8;
4339 }
CPUFUNC(op_10c8_4)4340 unsigned long CPUFUNC(op_10c8_4)(uint32_t opcode) /* MOVE */
4341 {
4342 	uint32_t srcreg = (opcode & 7);
4343 	uint32_t dstreg = (opcode >> 9) & 7;
4344 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4345 {{	int8_t src = m68k_areg(regs, srcreg);
4346 {	uint32_t dsta = m68k_areg(regs, dstreg);
4347 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4348 	CLEAR_CZNV;
4349 	SET_ZFLG (((int8_t)(src)) == 0);
4350 	SET_NFLG (((int8_t)(src)) < 0);
4351 	m68k_write_memory_8(dsta,src);
4352 }}}m68k_incpc(2);
4353 return 8;
4354 }
CPUFUNC(op_10d0_4)4355 unsigned long CPUFUNC(op_10d0_4)(uint32_t opcode) /* MOVE */
4356 {
4357 	uint32_t srcreg = (opcode & 7);
4358 	uint32_t dstreg = (opcode >> 9) & 7;
4359 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4360 {{	uint32_t srca = m68k_areg(regs, srcreg);
4361 {	int8_t src = m68k_read_memory_8(srca);
4362 {	uint32_t dsta = m68k_areg(regs, dstreg);
4363 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4364 	CLEAR_CZNV;
4365 	SET_ZFLG (((int8_t)(src)) == 0);
4366 	SET_NFLG (((int8_t)(src)) < 0);
4367 	m68k_write_memory_8(dsta,src);
4368 }}}}m68k_incpc(2);
4369 return 12;
4370 }
CPUFUNC(op_10d8_4)4371 unsigned long CPUFUNC(op_10d8_4)(uint32_t opcode) /* MOVE */
4372 {
4373 	uint32_t srcreg = (opcode & 7);
4374 	uint32_t dstreg = (opcode >> 9) & 7;
4375 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4376 {{	uint32_t srca = m68k_areg(regs, srcreg);
4377 {	int8_t src = m68k_read_memory_8(srca);
4378 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
4379 {	uint32_t dsta = m68k_areg(regs, dstreg);
4380 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4381 	CLEAR_CZNV;
4382 	SET_ZFLG (((int8_t)(src)) == 0);
4383 	SET_NFLG (((int8_t)(src)) < 0);
4384 	m68k_write_memory_8(dsta,src);
4385 }}}}m68k_incpc(2);
4386 return 12;
4387 }
CPUFUNC(op_10e0_4)4388 unsigned long CPUFUNC(op_10e0_4)(uint32_t opcode) /* MOVE */
4389 {
4390 	uint32_t srcreg = (opcode & 7);
4391 	uint32_t dstreg = (opcode >> 9) & 7;
4392 	OpcodeFamily = 30; CurrentInstrCycles = 14;
4393 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
4394 {	int8_t src = m68k_read_memory_8(srca);
4395 	m68k_areg (regs, srcreg) = srca;
4396 {	uint32_t dsta = m68k_areg(regs, dstreg);
4397 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4398 	CLEAR_CZNV;
4399 	SET_ZFLG (((int8_t)(src)) == 0);
4400 	SET_NFLG (((int8_t)(src)) < 0);
4401 	m68k_write_memory_8(dsta,src);
4402 }}}}m68k_incpc(2);
4403 return 14;
4404 }
CPUFUNC(op_10e8_4)4405 unsigned long CPUFUNC(op_10e8_4)(uint32_t opcode) /* MOVE */
4406 {
4407 	uint32_t srcreg = (opcode & 7);
4408 	uint32_t dstreg = (opcode >> 9) & 7;
4409 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4410 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
4411 {	int8_t src = m68k_read_memory_8(srca);
4412 {	uint32_t dsta = m68k_areg(regs, dstreg);
4413 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4414 	CLEAR_CZNV;
4415 	SET_ZFLG (((int8_t)(src)) == 0);
4416 	SET_NFLG (((int8_t)(src)) < 0);
4417 	m68k_write_memory_8(dsta,src);
4418 }}}}m68k_incpc(4);
4419 return 16;
4420 }
CPUFUNC(op_10f0_4)4421 unsigned long CPUFUNC(op_10f0_4)(uint32_t opcode) /* MOVE */
4422 {
4423 	uint32_t srcreg = (opcode & 7);
4424 	uint32_t dstreg = (opcode >> 9) & 7;
4425 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4426 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
4427 	BusCyclePenalty += 2;
4428 {	int8_t src = m68k_read_memory_8(srca);
4429 {	uint32_t dsta = m68k_areg(regs, dstreg);
4430 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4431 	CLEAR_CZNV;
4432 	SET_ZFLG (((int8_t)(src)) == 0);
4433 	SET_NFLG (((int8_t)(src)) < 0);
4434 	m68k_write_memory_8(dsta,src);
4435 }}}}m68k_incpc(4);
4436 return 18;
4437 }
CPUFUNC(op_10f8_4)4438 unsigned long CPUFUNC(op_10f8_4)(uint32_t opcode) /* MOVE */
4439 {
4440 	uint32_t dstreg = (opcode >> 9) & 7;
4441 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4442 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
4443 {	int8_t src = m68k_read_memory_8(srca);
4444 {	uint32_t dsta = m68k_areg(regs, dstreg);
4445 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4446 	CLEAR_CZNV;
4447 	SET_ZFLG (((int8_t)(src)) == 0);
4448 	SET_NFLG (((int8_t)(src)) < 0);
4449 	m68k_write_memory_8(dsta,src);
4450 }}}}m68k_incpc(4);
4451 return 16;
4452 }
CPUFUNC(op_10f9_4)4453 unsigned long CPUFUNC(op_10f9_4)(uint32_t opcode) /* MOVE */
4454 {
4455 	uint32_t dstreg = (opcode >> 9) & 7;
4456 	OpcodeFamily = 30; CurrentInstrCycles = 20;
4457 {{	uint32_t srca = get_ilong(2);
4458 {	int8_t src = m68k_read_memory_8(srca);
4459 {	uint32_t dsta = m68k_areg(regs, dstreg);
4460 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4461 	CLEAR_CZNV;
4462 	SET_ZFLG (((int8_t)(src)) == 0);
4463 	SET_NFLG (((int8_t)(src)) < 0);
4464 	m68k_write_memory_8(dsta,src);
4465 }}}}m68k_incpc(6);
4466 return 20;
4467 }
CPUFUNC(op_10fa_4)4468 unsigned long CPUFUNC(op_10fa_4)(uint32_t opcode) /* MOVE */
4469 {
4470 	uint32_t dstreg = (opcode >> 9) & 7;
4471 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4472 {{	uint32_t srca = m68k_getpc () + 2;
4473 	srca += (int32_t)(int16_t)get_iword(2);
4474 {	int8_t src = m68k_read_memory_8(srca);
4475 {	uint32_t dsta = m68k_areg(regs, dstreg);
4476 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4477 	CLEAR_CZNV;
4478 	SET_ZFLG (((int8_t)(src)) == 0);
4479 	SET_NFLG (((int8_t)(src)) < 0);
4480 	m68k_write_memory_8(dsta,src);
4481 }}}}m68k_incpc(4);
4482 return 16;
4483 }
CPUFUNC(op_10fb_4)4484 unsigned long CPUFUNC(op_10fb_4)(uint32_t opcode) /* MOVE */
4485 {
4486 	uint32_t dstreg = (opcode >> 9) & 7;
4487 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4488 {{	uint32_t tmppc = m68k_getpc() + 2;
4489 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
4490 	BusCyclePenalty += 2;
4491 {	int8_t src = m68k_read_memory_8(srca);
4492 {	uint32_t dsta = m68k_areg(regs, dstreg);
4493 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4494 	CLEAR_CZNV;
4495 	SET_ZFLG (((int8_t)(src)) == 0);
4496 	SET_NFLG (((int8_t)(src)) < 0);
4497 	m68k_write_memory_8(dsta,src);
4498 }}}}m68k_incpc(4);
4499 return 18;
4500 }
CPUFUNC(op_10fc_4)4501 unsigned long CPUFUNC(op_10fc_4)(uint32_t opcode) /* MOVE */
4502 {
4503 	uint32_t dstreg = (opcode >> 9) & 7;
4504 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4505 {{	int8_t src = get_ibyte(2);
4506 {	uint32_t dsta = m68k_areg(regs, dstreg);
4507 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
4508 	CLEAR_CZNV;
4509 	SET_ZFLG (((int8_t)(src)) == 0);
4510 	SET_NFLG (((int8_t)(src)) < 0);
4511 	m68k_write_memory_8(dsta,src);
4512 }}}m68k_incpc(4);
4513 return 12;
4514 }
CPUFUNC(op_1100_4)4515 unsigned long CPUFUNC(op_1100_4)(uint32_t opcode) /* MOVE */
4516 {
4517 	uint32_t srcreg = (opcode & 7);
4518 	uint32_t dstreg = (opcode >> 9) & 7;
4519 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4520 {{	int8_t src = m68k_dreg(regs, srcreg);
4521 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4522 	m68k_areg (regs, dstreg) = dsta;
4523 	CLEAR_CZNV;
4524 	SET_ZFLG (((int8_t)(src)) == 0);
4525 	SET_NFLG (((int8_t)(src)) < 0);
4526 	m68k_write_memory_8(dsta,src);
4527 }}}m68k_incpc(2);
4528 return 8;
4529 }
CPUFUNC(op_1108_4)4530 unsigned long CPUFUNC(op_1108_4)(uint32_t opcode) /* MOVE */
4531 {
4532 	uint32_t srcreg = (opcode & 7);
4533 	uint32_t dstreg = (opcode >> 9) & 7;
4534 	OpcodeFamily = 30; CurrentInstrCycles = 8;
4535 {{	int8_t src = m68k_areg(regs, srcreg);
4536 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4537 	m68k_areg (regs, dstreg) = dsta;
4538 	CLEAR_CZNV;
4539 	SET_ZFLG (((int8_t)(src)) == 0);
4540 	SET_NFLG (((int8_t)(src)) < 0);
4541 	m68k_write_memory_8(dsta,src);
4542 }}}m68k_incpc(2);
4543 return 8;
4544 }
CPUFUNC(op_1110_4)4545 unsigned long CPUFUNC(op_1110_4)(uint32_t opcode) /* MOVE */
4546 {
4547 	uint32_t srcreg = (opcode & 7);
4548 	uint32_t dstreg = (opcode >> 9) & 7;
4549 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4550 {{	uint32_t srca = m68k_areg(regs, srcreg);
4551 {	int8_t src = m68k_read_memory_8(srca);
4552 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4553 	m68k_areg (regs, dstreg) = dsta;
4554 	CLEAR_CZNV;
4555 	SET_ZFLG (((int8_t)(src)) == 0);
4556 	SET_NFLG (((int8_t)(src)) < 0);
4557 	m68k_write_memory_8(dsta,src);
4558 }}}}m68k_incpc(2);
4559 return 12;
4560 }
CPUFUNC(op_1118_4)4561 unsigned long CPUFUNC(op_1118_4)(uint32_t opcode) /* MOVE */
4562 {
4563 	uint32_t srcreg = (opcode & 7);
4564 	uint32_t dstreg = (opcode >> 9) & 7;
4565 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4566 {{	uint32_t srca = m68k_areg(regs, srcreg);
4567 {	int8_t src = m68k_read_memory_8(srca);
4568 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
4569 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4570 	m68k_areg (regs, dstreg) = dsta;
4571 	CLEAR_CZNV;
4572 	SET_ZFLG (((int8_t)(src)) == 0);
4573 	SET_NFLG (((int8_t)(src)) < 0);
4574 	m68k_write_memory_8(dsta,src);
4575 }}}}m68k_incpc(2);
4576 return 12;
4577 }
CPUFUNC(op_1120_4)4578 unsigned long CPUFUNC(op_1120_4)(uint32_t opcode) /* MOVE */
4579 {
4580 	uint32_t srcreg = (opcode & 7);
4581 	uint32_t dstreg = (opcode >> 9) & 7;
4582 	OpcodeFamily = 30; CurrentInstrCycles = 14;
4583 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
4584 {	int8_t src = m68k_read_memory_8(srca);
4585 	m68k_areg (regs, srcreg) = srca;
4586 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4587 	m68k_areg (regs, dstreg) = dsta;
4588 	CLEAR_CZNV;
4589 	SET_ZFLG (((int8_t)(src)) == 0);
4590 	SET_NFLG (((int8_t)(src)) < 0);
4591 	m68k_write_memory_8(dsta,src);
4592 }}}}m68k_incpc(2);
4593 return 14;
4594 }
CPUFUNC(op_1128_4)4595 unsigned long CPUFUNC(op_1128_4)(uint32_t opcode) /* MOVE */
4596 {
4597 	uint32_t srcreg = (opcode & 7);
4598 	uint32_t dstreg = (opcode >> 9) & 7;
4599 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4600 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
4601 {	int8_t src = m68k_read_memory_8(srca);
4602 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4603 	m68k_areg (regs, dstreg) = dsta;
4604 	CLEAR_CZNV;
4605 	SET_ZFLG (((int8_t)(src)) == 0);
4606 	SET_NFLG (((int8_t)(src)) < 0);
4607 	m68k_write_memory_8(dsta,src);
4608 }}}}m68k_incpc(4);
4609 return 16;
4610 }
CPUFUNC(op_1130_4)4611 unsigned long CPUFUNC(op_1130_4)(uint32_t opcode) /* MOVE */
4612 {
4613 	uint32_t srcreg = (opcode & 7);
4614 	uint32_t dstreg = (opcode >> 9) & 7;
4615 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4616 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
4617 	BusCyclePenalty += 2;
4618 {	int8_t src = m68k_read_memory_8(srca);
4619 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4620 	m68k_areg (regs, dstreg) = dsta;
4621 	CLEAR_CZNV;
4622 	SET_ZFLG (((int8_t)(src)) == 0);
4623 	SET_NFLG (((int8_t)(src)) < 0);
4624 	m68k_write_memory_8(dsta,src);
4625 }}}}m68k_incpc(4);
4626 return 18;
4627 }
CPUFUNC(op_1138_4)4628 unsigned long CPUFUNC(op_1138_4)(uint32_t opcode) /* MOVE */
4629 {
4630 	uint32_t dstreg = (opcode >> 9) & 7;
4631 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4632 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
4633 {	int8_t src = m68k_read_memory_8(srca);
4634 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4635 	m68k_areg (regs, dstreg) = dsta;
4636 	CLEAR_CZNV;
4637 	SET_ZFLG (((int8_t)(src)) == 0);
4638 	SET_NFLG (((int8_t)(src)) < 0);
4639 	m68k_write_memory_8(dsta,src);
4640 }}}}m68k_incpc(4);
4641 return 16;
4642 }
CPUFUNC(op_1139_4)4643 unsigned long CPUFUNC(op_1139_4)(uint32_t opcode) /* MOVE */
4644 {
4645 	uint32_t dstreg = (opcode >> 9) & 7;
4646 	OpcodeFamily = 30; CurrentInstrCycles = 20;
4647 {{	uint32_t srca = get_ilong(2);
4648 {	int8_t src = m68k_read_memory_8(srca);
4649 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4650 	m68k_areg (regs, dstreg) = dsta;
4651 	CLEAR_CZNV;
4652 	SET_ZFLG (((int8_t)(src)) == 0);
4653 	SET_NFLG (((int8_t)(src)) < 0);
4654 	m68k_write_memory_8(dsta,src);
4655 }}}}m68k_incpc(6);
4656 return 20;
4657 }
CPUFUNC(op_113a_4)4658 unsigned long CPUFUNC(op_113a_4)(uint32_t opcode) /* MOVE */
4659 {
4660 	uint32_t dstreg = (opcode >> 9) & 7;
4661 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4662 {{	uint32_t srca = m68k_getpc () + 2;
4663 	srca += (int32_t)(int16_t)get_iword(2);
4664 {	int8_t src = m68k_read_memory_8(srca);
4665 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4666 	m68k_areg (regs, dstreg) = dsta;
4667 	CLEAR_CZNV;
4668 	SET_ZFLG (((int8_t)(src)) == 0);
4669 	SET_NFLG (((int8_t)(src)) < 0);
4670 	m68k_write_memory_8(dsta,src);
4671 }}}}m68k_incpc(4);
4672 return 16;
4673 }
CPUFUNC(op_113b_4)4674 unsigned long CPUFUNC(op_113b_4)(uint32_t opcode) /* MOVE */
4675 {
4676 	uint32_t dstreg = (opcode >> 9) & 7;
4677 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4678 {{	uint32_t tmppc = m68k_getpc() + 2;
4679 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
4680 	BusCyclePenalty += 2;
4681 {	int8_t src = m68k_read_memory_8(srca);
4682 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4683 	m68k_areg (regs, dstreg) = dsta;
4684 	CLEAR_CZNV;
4685 	SET_ZFLG (((int8_t)(src)) == 0);
4686 	SET_NFLG (((int8_t)(src)) < 0);
4687 	m68k_write_memory_8(dsta,src);
4688 }}}}m68k_incpc(4);
4689 return 18;
4690 }
CPUFUNC(op_113c_4)4691 unsigned long CPUFUNC(op_113c_4)(uint32_t opcode) /* MOVE */
4692 {
4693 	uint32_t dstreg = (opcode >> 9) & 7;
4694 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4695 {{	int8_t src = get_ibyte(2);
4696 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
4697 	m68k_areg (regs, dstreg) = dsta;
4698 	CLEAR_CZNV;
4699 	SET_ZFLG (((int8_t)(src)) == 0);
4700 	SET_NFLG (((int8_t)(src)) < 0);
4701 	m68k_write_memory_8(dsta,src);
4702 }}}m68k_incpc(4);
4703 return 12;
4704 }
CPUFUNC(op_1140_4)4705 unsigned long CPUFUNC(op_1140_4)(uint32_t opcode) /* MOVE */
4706 {
4707 	uint32_t srcreg = (opcode & 7);
4708 	uint32_t dstreg = (opcode >> 9) & 7;
4709 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4710 {{	int8_t src = m68k_dreg(regs, srcreg);
4711 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
4712 	CLEAR_CZNV;
4713 	SET_ZFLG (((int8_t)(src)) == 0);
4714 	SET_NFLG (((int8_t)(src)) < 0);
4715 	m68k_write_memory_8(dsta,src);
4716 }}}m68k_incpc(4);
4717 return 12;
4718 }
CPUFUNC(op_1148_4)4719 unsigned long CPUFUNC(op_1148_4)(uint32_t opcode) /* MOVE */
4720 {
4721 	uint32_t srcreg = (opcode & 7);
4722 	uint32_t dstreg = (opcode >> 9) & 7;
4723 	OpcodeFamily = 30; CurrentInstrCycles = 12;
4724 {{	int8_t src = m68k_areg(regs, srcreg);
4725 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
4726 	CLEAR_CZNV;
4727 	SET_ZFLG (((int8_t)(src)) == 0);
4728 	SET_NFLG (((int8_t)(src)) < 0);
4729 	m68k_write_memory_8(dsta,src);
4730 }}}m68k_incpc(4);
4731 return 12;
4732 }
CPUFUNC(op_1150_4)4733 unsigned long CPUFUNC(op_1150_4)(uint32_t opcode) /* MOVE */
4734 {
4735 	uint32_t srcreg = (opcode & 7);
4736 	uint32_t dstreg = (opcode >> 9) & 7;
4737 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4738 {{	uint32_t srca = m68k_areg(regs, srcreg);
4739 {	int8_t src = m68k_read_memory_8(srca);
4740 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
4741 	CLEAR_CZNV;
4742 	SET_ZFLG (((int8_t)(src)) == 0);
4743 	SET_NFLG (((int8_t)(src)) < 0);
4744 	m68k_write_memory_8(dsta,src);
4745 }}}}m68k_incpc(4);
4746 return 16;
4747 }
CPUFUNC(op_1158_4)4748 unsigned long CPUFUNC(op_1158_4)(uint32_t opcode) /* MOVE */
4749 {
4750 	uint32_t srcreg = (opcode & 7);
4751 	uint32_t dstreg = (opcode >> 9) & 7;
4752 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4753 {{	uint32_t srca = m68k_areg(regs, srcreg);
4754 {	int8_t src = m68k_read_memory_8(srca);
4755 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
4756 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
4757 	CLEAR_CZNV;
4758 	SET_ZFLG (((int8_t)(src)) == 0);
4759 	SET_NFLG (((int8_t)(src)) < 0);
4760 	m68k_write_memory_8(dsta,src);
4761 }}}}m68k_incpc(4);
4762 return 16;
4763 }
CPUFUNC(op_1160_4)4764 unsigned long CPUFUNC(op_1160_4)(uint32_t opcode) /* MOVE */
4765 {
4766 	uint32_t srcreg = (opcode & 7);
4767 	uint32_t dstreg = (opcode >> 9) & 7;
4768 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4769 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
4770 {	int8_t src = m68k_read_memory_8(srca);
4771 	m68k_areg (regs, srcreg) = srca;
4772 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
4773 	CLEAR_CZNV;
4774 	SET_ZFLG (((int8_t)(src)) == 0);
4775 	SET_NFLG (((int8_t)(src)) < 0);
4776 	m68k_write_memory_8(dsta,src);
4777 }}}}m68k_incpc(4);
4778 return 18;
4779 }
CPUFUNC(op_1168_4)4780 unsigned long CPUFUNC(op_1168_4)(uint32_t opcode) /* MOVE */
4781 {
4782 	uint32_t srcreg = (opcode & 7);
4783 	uint32_t dstreg = (opcode >> 9) & 7;
4784 	OpcodeFamily = 30; CurrentInstrCycles = 20;
4785 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
4786 {	int8_t src = m68k_read_memory_8(srca);
4787 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
4788 	CLEAR_CZNV;
4789 	SET_ZFLG (((int8_t)(src)) == 0);
4790 	SET_NFLG (((int8_t)(src)) < 0);
4791 	m68k_write_memory_8(dsta,src);
4792 }}}}m68k_incpc(6);
4793 return 20;
4794 }
CPUFUNC(op_1170_4)4795 unsigned long CPUFUNC(op_1170_4)(uint32_t opcode) /* MOVE */
4796 {
4797 	uint32_t srcreg = (opcode & 7);
4798 	uint32_t dstreg = (opcode >> 9) & 7;
4799 	OpcodeFamily = 30; CurrentInstrCycles = 22;
4800 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
4801 	BusCyclePenalty += 2;
4802 {	int8_t src = m68k_read_memory_8(srca);
4803 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
4804 	CLEAR_CZNV;
4805 	SET_ZFLG (((int8_t)(src)) == 0);
4806 	SET_NFLG (((int8_t)(src)) < 0);
4807 	m68k_write_memory_8(dsta,src);
4808 }}}}m68k_incpc(6);
4809 return 22;
4810 }
CPUFUNC(op_1178_4)4811 unsigned long CPUFUNC(op_1178_4)(uint32_t opcode) /* MOVE */
4812 {
4813 	uint32_t dstreg = (opcode >> 9) & 7;
4814 	OpcodeFamily = 30; CurrentInstrCycles = 20;
4815 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
4816 {	int8_t src = m68k_read_memory_8(srca);
4817 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
4818 	CLEAR_CZNV;
4819 	SET_ZFLG (((int8_t)(src)) == 0);
4820 	SET_NFLG (((int8_t)(src)) < 0);
4821 	m68k_write_memory_8(dsta,src);
4822 }}}}m68k_incpc(6);
4823 return 20;
4824 }
CPUFUNC(op_1179_4)4825 unsigned long CPUFUNC(op_1179_4)(uint32_t opcode) /* MOVE */
4826 {
4827 	uint32_t dstreg = (opcode >> 9) & 7;
4828 	OpcodeFamily = 30; CurrentInstrCycles = 24;
4829 {{	uint32_t srca = get_ilong(2);
4830 {	int8_t src = m68k_read_memory_8(srca);
4831 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
4832 	CLEAR_CZNV;
4833 	SET_ZFLG (((int8_t)(src)) == 0);
4834 	SET_NFLG (((int8_t)(src)) < 0);
4835 	m68k_write_memory_8(dsta,src);
4836 }}}}m68k_incpc(8);
4837 return 24;
4838 }
CPUFUNC(op_117a_4)4839 unsigned long CPUFUNC(op_117a_4)(uint32_t opcode) /* MOVE */
4840 {
4841 	uint32_t dstreg = (opcode >> 9) & 7;
4842 	OpcodeFamily = 30; CurrentInstrCycles = 20;
4843 {{	uint32_t srca = m68k_getpc () + 2;
4844 	srca += (int32_t)(int16_t)get_iword(2);
4845 {	int8_t src = m68k_read_memory_8(srca);
4846 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
4847 	CLEAR_CZNV;
4848 	SET_ZFLG (((int8_t)(src)) == 0);
4849 	SET_NFLG (((int8_t)(src)) < 0);
4850 	m68k_write_memory_8(dsta,src);
4851 }}}}m68k_incpc(6);
4852 return 20;
4853 }
CPUFUNC(op_117b_4)4854 unsigned long CPUFUNC(op_117b_4)(uint32_t opcode) /* MOVE */
4855 {
4856 	uint32_t dstreg = (opcode >> 9) & 7;
4857 	OpcodeFamily = 30; CurrentInstrCycles = 22;
4858 {{	uint32_t tmppc = m68k_getpc() + 2;
4859 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
4860 	BusCyclePenalty += 2;
4861 {	int8_t src = m68k_read_memory_8(srca);
4862 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
4863 	CLEAR_CZNV;
4864 	SET_ZFLG (((int8_t)(src)) == 0);
4865 	SET_NFLG (((int8_t)(src)) < 0);
4866 	m68k_write_memory_8(dsta,src);
4867 }}}}m68k_incpc(6);
4868 return 22;
4869 }
CPUFUNC(op_117c_4)4870 unsigned long CPUFUNC(op_117c_4)(uint32_t opcode) /* MOVE */
4871 {
4872 	uint32_t dstreg = (opcode >> 9) & 7;
4873 	OpcodeFamily = 30; CurrentInstrCycles = 16;
4874 {{	int8_t src = get_ibyte(2);
4875 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
4876 	CLEAR_CZNV;
4877 	SET_ZFLG (((int8_t)(src)) == 0);
4878 	SET_NFLG (((int8_t)(src)) < 0);
4879 	m68k_write_memory_8(dsta,src);
4880 }}}m68k_incpc(6);
4881 return 16;
4882 }
CPUFUNC(op_1180_4)4883 unsigned long CPUFUNC(op_1180_4)(uint32_t opcode) /* MOVE */
4884 {
4885 	uint32_t srcreg = (opcode & 7);
4886 	uint32_t dstreg = (opcode >> 9) & 7;
4887 	OpcodeFamily = 30; CurrentInstrCycles = 14;
4888 {{	int8_t src = m68k_dreg(regs, srcreg);
4889 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
4890 	BusCyclePenalty += 2;
4891 	CLEAR_CZNV;
4892 	SET_ZFLG (((int8_t)(src)) == 0);
4893 	SET_NFLG (((int8_t)(src)) < 0);
4894 	m68k_write_memory_8(dsta,src);
4895 }}}m68k_incpc(4);
4896 return 14;
4897 }
CPUFUNC(op_1188_4)4898 unsigned long CPUFUNC(op_1188_4)(uint32_t opcode) /* MOVE */
4899 {
4900 	uint32_t srcreg = (opcode & 7);
4901 	uint32_t dstreg = (opcode >> 9) & 7;
4902 	OpcodeFamily = 30; CurrentInstrCycles = 14;
4903 {{	int8_t src = m68k_areg(regs, srcreg);
4904 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
4905 	BusCyclePenalty += 2;
4906 	CLEAR_CZNV;
4907 	SET_ZFLG (((int8_t)(src)) == 0);
4908 	SET_NFLG (((int8_t)(src)) < 0);
4909 	m68k_write_memory_8(dsta,src);
4910 }}}m68k_incpc(4);
4911 return 14;
4912 }
CPUFUNC(op_1190_4)4913 unsigned long CPUFUNC(op_1190_4)(uint32_t opcode) /* MOVE */
4914 {
4915 	uint32_t srcreg = (opcode & 7);
4916 	uint32_t dstreg = (opcode >> 9) & 7;
4917 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4918 {{	uint32_t srca = m68k_areg(regs, srcreg);
4919 {	int8_t src = m68k_read_memory_8(srca);
4920 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
4921 	BusCyclePenalty += 2;
4922 	CLEAR_CZNV;
4923 	SET_ZFLG (((int8_t)(src)) == 0);
4924 	SET_NFLG (((int8_t)(src)) < 0);
4925 	m68k_write_memory_8(dsta,src);
4926 }}}}m68k_incpc(4);
4927 return 18;
4928 }
CPUFUNC(op_1198_4)4929 unsigned long CPUFUNC(op_1198_4)(uint32_t opcode) /* MOVE */
4930 {
4931 	uint32_t srcreg = (opcode & 7);
4932 	uint32_t dstreg = (opcode >> 9) & 7;
4933 	OpcodeFamily = 30; CurrentInstrCycles = 18;
4934 {{	uint32_t srca = m68k_areg(regs, srcreg);
4935 {	int8_t src = m68k_read_memory_8(srca);
4936 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
4937 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
4938 	BusCyclePenalty += 2;
4939 	CLEAR_CZNV;
4940 	SET_ZFLG (((int8_t)(src)) == 0);
4941 	SET_NFLG (((int8_t)(src)) < 0);
4942 	m68k_write_memory_8(dsta,src);
4943 }}}}m68k_incpc(4);
4944 return 18;
4945 }
CPUFUNC(op_11a0_4)4946 unsigned long CPUFUNC(op_11a0_4)(uint32_t opcode) /* MOVE */
4947 {
4948 	uint32_t srcreg = (opcode & 7);
4949 	uint32_t dstreg = (opcode >> 9) & 7;
4950 	OpcodeFamily = 30; CurrentInstrCycles = 20;
4951 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
4952 {	int8_t src = m68k_read_memory_8(srca);
4953 	m68k_areg (regs, srcreg) = srca;
4954 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
4955 	BusCyclePenalty += 2;
4956 	CLEAR_CZNV;
4957 	SET_ZFLG (((int8_t)(src)) == 0);
4958 	SET_NFLG (((int8_t)(src)) < 0);
4959 	m68k_write_memory_8(dsta,src);
4960 }}}}m68k_incpc(4);
4961 return 20;
4962 }
CPUFUNC(op_11a8_4)4963 unsigned long CPUFUNC(op_11a8_4)(uint32_t opcode) /* MOVE */
4964 {
4965 	uint32_t srcreg = (opcode & 7);
4966 	uint32_t dstreg = (opcode >> 9) & 7;
4967 	OpcodeFamily = 30; CurrentInstrCycles = 22;
4968 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
4969 {	int8_t src = m68k_read_memory_8(srca);
4970 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
4971 	BusCyclePenalty += 2;
4972 	CLEAR_CZNV;
4973 	SET_ZFLG (((int8_t)(src)) == 0);
4974 	SET_NFLG (((int8_t)(src)) < 0);
4975 	m68k_write_memory_8(dsta,src);
4976 }}}}m68k_incpc(6);
4977 return 22;
4978 }
CPUFUNC(op_11b0_4)4979 unsigned long CPUFUNC(op_11b0_4)(uint32_t opcode) /* MOVE */
4980 {
4981 	uint32_t srcreg = (opcode & 7);
4982 	uint32_t dstreg = (opcode >> 9) & 7;
4983 	OpcodeFamily = 30; CurrentInstrCycles = 24;
4984 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
4985 	BusCyclePenalty += 2;
4986 {	int8_t src = m68k_read_memory_8(srca);
4987 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
4988 	BusCyclePenalty += 2;
4989 	CLEAR_CZNV;
4990 	SET_ZFLG (((int8_t)(src)) == 0);
4991 	SET_NFLG (((int8_t)(src)) < 0);
4992 	m68k_write_memory_8(dsta,src);
4993 }}}}m68k_incpc(6);
4994 return 24;
4995 }
CPUFUNC(op_11b8_4)4996 unsigned long CPUFUNC(op_11b8_4)(uint32_t opcode) /* MOVE */
4997 {
4998 	uint32_t dstreg = (opcode >> 9) & 7;
4999 	OpcodeFamily = 30; CurrentInstrCycles = 22;
5000 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
5001 {	int8_t src = m68k_read_memory_8(srca);
5002 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
5003 	BusCyclePenalty += 2;
5004 	CLEAR_CZNV;
5005 	SET_ZFLG (((int8_t)(src)) == 0);
5006 	SET_NFLG (((int8_t)(src)) < 0);
5007 	m68k_write_memory_8(dsta,src);
5008 }}}}m68k_incpc(6);
5009 return 22;
5010 }
CPUFUNC(op_11b9_4)5011 unsigned long CPUFUNC(op_11b9_4)(uint32_t opcode) /* MOVE */
5012 {
5013 	uint32_t dstreg = (opcode >> 9) & 7;
5014 	OpcodeFamily = 30; CurrentInstrCycles = 26;
5015 {{	uint32_t srca = get_ilong(2);
5016 {	int8_t src = m68k_read_memory_8(srca);
5017 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
5018 	BusCyclePenalty += 2;
5019 	CLEAR_CZNV;
5020 	SET_ZFLG (((int8_t)(src)) == 0);
5021 	SET_NFLG (((int8_t)(src)) < 0);
5022 	m68k_write_memory_8(dsta,src);
5023 }}}}m68k_incpc(8);
5024 return 26;
5025 }
CPUFUNC(op_11ba_4)5026 unsigned long CPUFUNC(op_11ba_4)(uint32_t opcode) /* MOVE */
5027 {
5028 	uint32_t dstreg = (opcode >> 9) & 7;
5029 	OpcodeFamily = 30; CurrentInstrCycles = 22;
5030 {{	uint32_t srca = m68k_getpc () + 2;
5031 	srca += (int32_t)(int16_t)get_iword(2);
5032 {	int8_t src = m68k_read_memory_8(srca);
5033 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
5034 	BusCyclePenalty += 2;
5035 	CLEAR_CZNV;
5036 	SET_ZFLG (((int8_t)(src)) == 0);
5037 	SET_NFLG (((int8_t)(src)) < 0);
5038 	m68k_write_memory_8(dsta,src);
5039 }}}}m68k_incpc(6);
5040 return 22;
5041 }
CPUFUNC(op_11bb_4)5042 unsigned long CPUFUNC(op_11bb_4)(uint32_t opcode) /* MOVE */
5043 {
5044 	uint32_t dstreg = (opcode >> 9) & 7;
5045 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5046 {{	uint32_t tmppc = m68k_getpc() + 2;
5047 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
5048 	BusCyclePenalty += 2;
5049 {	int8_t src = m68k_read_memory_8(srca);
5050 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
5051 	BusCyclePenalty += 2;
5052 	CLEAR_CZNV;
5053 	SET_ZFLG (((int8_t)(src)) == 0);
5054 	SET_NFLG (((int8_t)(src)) < 0);
5055 	m68k_write_memory_8(dsta,src);
5056 }}}}m68k_incpc(6);
5057 return 24;
5058 }
CPUFUNC(op_11bc_4)5059 unsigned long CPUFUNC(op_11bc_4)(uint32_t opcode) /* MOVE */
5060 {
5061 	uint32_t dstreg = (opcode >> 9) & 7;
5062 	OpcodeFamily = 30; CurrentInstrCycles = 18;
5063 {{	int8_t src = get_ibyte(2);
5064 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
5065 	BusCyclePenalty += 2;
5066 	CLEAR_CZNV;
5067 	SET_ZFLG (((int8_t)(src)) == 0);
5068 	SET_NFLG (((int8_t)(src)) < 0);
5069 	m68k_write_memory_8(dsta,src);
5070 }}}m68k_incpc(6);
5071 return 18;
5072 }
CPUFUNC(op_11c0_4)5073 unsigned long CPUFUNC(op_11c0_4)(uint32_t opcode) /* MOVE */
5074 {
5075 	uint32_t srcreg = (opcode & 7);
5076 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5077 {{	int8_t src = m68k_dreg(regs, srcreg);
5078 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
5079 	CLEAR_CZNV;
5080 	SET_ZFLG (((int8_t)(src)) == 0);
5081 	SET_NFLG (((int8_t)(src)) < 0);
5082 	m68k_write_memory_8(dsta,src);
5083 }}}m68k_incpc(4);
5084 return 12;
5085 }
CPUFUNC(op_11c8_4)5086 unsigned long CPUFUNC(op_11c8_4)(uint32_t opcode) /* MOVE */
5087 {
5088 	uint32_t srcreg = (opcode & 7);
5089 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5090 {{	int8_t src = m68k_areg(regs, srcreg);
5091 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
5092 	CLEAR_CZNV;
5093 	SET_ZFLG (((int8_t)(src)) == 0);
5094 	SET_NFLG (((int8_t)(src)) < 0);
5095 	m68k_write_memory_8(dsta,src);
5096 }}}m68k_incpc(4);
5097 return 12;
5098 }
CPUFUNC(op_11d0_4)5099 unsigned long CPUFUNC(op_11d0_4)(uint32_t opcode) /* MOVE */
5100 {
5101 	uint32_t srcreg = (opcode & 7);
5102 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5103 {{	uint32_t srca = m68k_areg(regs, srcreg);
5104 {	int8_t src = m68k_read_memory_8(srca);
5105 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
5106 	CLEAR_CZNV;
5107 	SET_ZFLG (((int8_t)(src)) == 0);
5108 	SET_NFLG (((int8_t)(src)) < 0);
5109 	m68k_write_memory_8(dsta,src);
5110 }}}}m68k_incpc(4);
5111 return 16;
5112 }
CPUFUNC(op_11d8_4)5113 unsigned long CPUFUNC(op_11d8_4)(uint32_t opcode) /* MOVE */
5114 {
5115 	uint32_t srcreg = (opcode & 7);
5116 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5117 {{	uint32_t srca = m68k_areg(regs, srcreg);
5118 {	int8_t src = m68k_read_memory_8(srca);
5119 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
5120 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
5121 	CLEAR_CZNV;
5122 	SET_ZFLG (((int8_t)(src)) == 0);
5123 	SET_NFLG (((int8_t)(src)) < 0);
5124 	m68k_write_memory_8(dsta,src);
5125 }}}}m68k_incpc(4);
5126 return 16;
5127 }
CPUFUNC(op_11e0_4)5128 unsigned long CPUFUNC(op_11e0_4)(uint32_t opcode) /* MOVE */
5129 {
5130 	uint32_t srcreg = (opcode & 7);
5131 	OpcodeFamily = 30; CurrentInstrCycles = 18;
5132 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
5133 {	int8_t src = m68k_read_memory_8(srca);
5134 	m68k_areg (regs, srcreg) = srca;
5135 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
5136 	CLEAR_CZNV;
5137 	SET_ZFLG (((int8_t)(src)) == 0);
5138 	SET_NFLG (((int8_t)(src)) < 0);
5139 	m68k_write_memory_8(dsta,src);
5140 }}}}m68k_incpc(4);
5141 return 18;
5142 }
CPUFUNC(op_11e8_4)5143 unsigned long CPUFUNC(op_11e8_4)(uint32_t opcode) /* MOVE */
5144 {
5145 	uint32_t srcreg = (opcode & 7);
5146 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5147 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
5148 {	int8_t src = m68k_read_memory_8(srca);
5149 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
5150 	CLEAR_CZNV;
5151 	SET_ZFLG (((int8_t)(src)) == 0);
5152 	SET_NFLG (((int8_t)(src)) < 0);
5153 	m68k_write_memory_8(dsta,src);
5154 }}}}m68k_incpc(6);
5155 return 20;
5156 }
CPUFUNC(op_11f0_4)5157 unsigned long CPUFUNC(op_11f0_4)(uint32_t opcode) /* MOVE */
5158 {
5159 	uint32_t srcreg = (opcode & 7);
5160 	OpcodeFamily = 30; CurrentInstrCycles = 22;
5161 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
5162 	BusCyclePenalty += 2;
5163 {	int8_t src = m68k_read_memory_8(srca);
5164 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
5165 	CLEAR_CZNV;
5166 	SET_ZFLG (((int8_t)(src)) == 0);
5167 	SET_NFLG (((int8_t)(src)) < 0);
5168 	m68k_write_memory_8(dsta,src);
5169 }}}}m68k_incpc(6);
5170 return 22;
5171 }
CPUFUNC(op_11f8_4)5172 unsigned long CPUFUNC(op_11f8_4)(uint32_t opcode) /* MOVE */
5173 {
5174 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5175 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
5176 {	int8_t src = m68k_read_memory_8(srca);
5177 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
5178 	CLEAR_CZNV;
5179 	SET_ZFLG (((int8_t)(src)) == 0);
5180 	SET_NFLG (((int8_t)(src)) < 0);
5181 	m68k_write_memory_8(dsta,src);
5182 }}}}m68k_incpc(6);
5183 return 20;
5184 }
CPUFUNC(op_11f9_4)5185 unsigned long CPUFUNC(op_11f9_4)(uint32_t opcode) /* MOVE */
5186 {
5187 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5188 {{	uint32_t srca = get_ilong(2);
5189 {	int8_t src = m68k_read_memory_8(srca);
5190 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
5191 	CLEAR_CZNV;
5192 	SET_ZFLG (((int8_t)(src)) == 0);
5193 	SET_NFLG (((int8_t)(src)) < 0);
5194 	m68k_write_memory_8(dsta,src);
5195 }}}}m68k_incpc(8);
5196 return 24;
5197 }
CPUFUNC(op_11fa_4)5198 unsigned long CPUFUNC(op_11fa_4)(uint32_t opcode) /* MOVE */
5199 {
5200 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5201 {{	uint32_t srca = m68k_getpc () + 2;
5202 	srca += (int32_t)(int16_t)get_iword(2);
5203 {	int8_t src = m68k_read_memory_8(srca);
5204 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
5205 	CLEAR_CZNV;
5206 	SET_ZFLG (((int8_t)(src)) == 0);
5207 	SET_NFLG (((int8_t)(src)) < 0);
5208 	m68k_write_memory_8(dsta,src);
5209 }}}}m68k_incpc(6);
5210 return 20;
5211 }
CPUFUNC(op_11fb_4)5212 unsigned long CPUFUNC(op_11fb_4)(uint32_t opcode) /* MOVE */
5213 {
5214 	OpcodeFamily = 30; CurrentInstrCycles = 22;
5215 {{	uint32_t tmppc = m68k_getpc() + 2;
5216 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
5217 	BusCyclePenalty += 2;
5218 {	int8_t src = m68k_read_memory_8(srca);
5219 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
5220 	CLEAR_CZNV;
5221 	SET_ZFLG (((int8_t)(src)) == 0);
5222 	SET_NFLG (((int8_t)(src)) < 0);
5223 	m68k_write_memory_8(dsta,src);
5224 }}}}m68k_incpc(6);
5225 return 22;
5226 }
CPUFUNC(op_11fc_4)5227 unsigned long CPUFUNC(op_11fc_4)(uint32_t opcode) /* MOVE */
5228 {
5229 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5230 {{	int8_t src = get_ibyte(2);
5231 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
5232 	CLEAR_CZNV;
5233 	SET_ZFLG (((int8_t)(src)) == 0);
5234 	SET_NFLG (((int8_t)(src)) < 0);
5235 	m68k_write_memory_8(dsta,src);
5236 }}}m68k_incpc(6);
5237 return 16;
5238 }
CPUFUNC(op_13c0_4)5239 unsigned long CPUFUNC(op_13c0_4)(uint32_t opcode) /* MOVE */
5240 {
5241 	uint32_t srcreg = (opcode & 7);
5242 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5243 {{	int8_t src = m68k_dreg(regs, srcreg);
5244 {	uint32_t dsta = get_ilong(2);
5245 	CLEAR_CZNV;
5246 	SET_ZFLG (((int8_t)(src)) == 0);
5247 	SET_NFLG (((int8_t)(src)) < 0);
5248 	m68k_write_memory_8(dsta,src);
5249 }}}m68k_incpc(6);
5250 return 16;
5251 }
CPUFUNC(op_13c8_4)5252 unsigned long CPUFUNC(op_13c8_4)(uint32_t opcode) /* MOVE */
5253 {
5254 	uint32_t srcreg = (opcode & 7);
5255 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5256 {{	int8_t src = m68k_areg(regs, srcreg);
5257 {	uint32_t dsta = get_ilong(2);
5258 	CLEAR_CZNV;
5259 	SET_ZFLG (((int8_t)(src)) == 0);
5260 	SET_NFLG (((int8_t)(src)) < 0);
5261 	m68k_write_memory_8(dsta,src);
5262 }}}m68k_incpc(6);
5263 return 16;
5264 }
CPUFUNC(op_13d0_4)5265 unsigned long CPUFUNC(op_13d0_4)(uint32_t opcode) /* MOVE */
5266 {
5267 	uint32_t srcreg = (opcode & 7);
5268 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5269 {{	uint32_t srca = m68k_areg(regs, srcreg);
5270 {	int8_t src = m68k_read_memory_8(srca);
5271 {	uint32_t dsta = get_ilong(2);
5272 	CLEAR_CZNV;
5273 	SET_ZFLG (((int8_t)(src)) == 0);
5274 	SET_NFLG (((int8_t)(src)) < 0);
5275 	m68k_write_memory_8(dsta,src);
5276 }}}}m68k_incpc(6);
5277 return 20;
5278 }
CPUFUNC(op_13d8_4)5279 unsigned long CPUFUNC(op_13d8_4)(uint32_t opcode) /* MOVE */
5280 {
5281 	uint32_t srcreg = (opcode & 7);
5282 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5283 {{	uint32_t srca = m68k_areg(regs, srcreg);
5284 {	int8_t src = m68k_read_memory_8(srca);
5285 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
5286 {	uint32_t dsta = get_ilong(2);
5287 	CLEAR_CZNV;
5288 	SET_ZFLG (((int8_t)(src)) == 0);
5289 	SET_NFLG (((int8_t)(src)) < 0);
5290 	m68k_write_memory_8(dsta,src);
5291 }}}}m68k_incpc(6);
5292 return 20;
5293 }
CPUFUNC(op_13e0_4)5294 unsigned long CPUFUNC(op_13e0_4)(uint32_t opcode) /* MOVE */
5295 {
5296 	uint32_t srcreg = (opcode & 7);
5297 	OpcodeFamily = 30; CurrentInstrCycles = 22;
5298 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
5299 {	int8_t src = m68k_read_memory_8(srca);
5300 	m68k_areg (regs, srcreg) = srca;
5301 {	uint32_t dsta = get_ilong(2);
5302 	CLEAR_CZNV;
5303 	SET_ZFLG (((int8_t)(src)) == 0);
5304 	SET_NFLG (((int8_t)(src)) < 0);
5305 	m68k_write_memory_8(dsta,src);
5306 }}}}m68k_incpc(6);
5307 return 22;
5308 }
CPUFUNC(op_13e8_4)5309 unsigned long CPUFUNC(op_13e8_4)(uint32_t opcode) /* MOVE */
5310 {
5311 	uint32_t srcreg = (opcode & 7);
5312 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5313 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
5314 {	int8_t src = m68k_read_memory_8(srca);
5315 {	uint32_t dsta = get_ilong(4);
5316 	CLEAR_CZNV;
5317 	SET_ZFLG (((int8_t)(src)) == 0);
5318 	SET_NFLG (((int8_t)(src)) < 0);
5319 	m68k_write_memory_8(dsta,src);
5320 }}}}m68k_incpc(8);
5321 return 24;
5322 }
CPUFUNC(op_13f0_4)5323 unsigned long CPUFUNC(op_13f0_4)(uint32_t opcode) /* MOVE */
5324 {
5325 	uint32_t srcreg = (opcode & 7);
5326 	OpcodeFamily = 30; CurrentInstrCycles = 26;
5327 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
5328 	BusCyclePenalty += 2;
5329 {	int8_t src = m68k_read_memory_8(srca);
5330 {	uint32_t dsta = get_ilong(4);
5331 	CLEAR_CZNV;
5332 	SET_ZFLG (((int8_t)(src)) == 0);
5333 	SET_NFLG (((int8_t)(src)) < 0);
5334 	m68k_write_memory_8(dsta,src);
5335 }}}}m68k_incpc(8);
5336 return 26;
5337 }
CPUFUNC(op_13f8_4)5338 unsigned long CPUFUNC(op_13f8_4)(uint32_t opcode) /* MOVE */
5339 {
5340 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5341 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
5342 {	int8_t src = m68k_read_memory_8(srca);
5343 {	uint32_t dsta = get_ilong(4);
5344 	CLEAR_CZNV;
5345 	SET_ZFLG (((int8_t)(src)) == 0);
5346 	SET_NFLG (((int8_t)(src)) < 0);
5347 	m68k_write_memory_8(dsta,src);
5348 }}}}m68k_incpc(8);
5349 return 24;
5350 }
CPUFUNC(op_13f9_4)5351 unsigned long CPUFUNC(op_13f9_4)(uint32_t opcode) /* MOVE */
5352 {
5353 	OpcodeFamily = 30; CurrentInstrCycles = 28;
5354 {{	uint32_t srca = get_ilong(2);
5355 {	int8_t src = m68k_read_memory_8(srca);
5356 {	uint32_t dsta = get_ilong(6);
5357 	CLEAR_CZNV;
5358 	SET_ZFLG (((int8_t)(src)) == 0);
5359 	SET_NFLG (((int8_t)(src)) < 0);
5360 	m68k_write_memory_8(dsta,src);
5361 }}}}m68k_incpc(10);
5362 return 28;
5363 }
CPUFUNC(op_13fa_4)5364 unsigned long CPUFUNC(op_13fa_4)(uint32_t opcode) /* MOVE */
5365 {
5366 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5367 {{	uint32_t srca = m68k_getpc () + 2;
5368 	srca += (int32_t)(int16_t)get_iword(2);
5369 {	int8_t src = m68k_read_memory_8(srca);
5370 {	uint32_t dsta = get_ilong(4);
5371 	CLEAR_CZNV;
5372 	SET_ZFLG (((int8_t)(src)) == 0);
5373 	SET_NFLG (((int8_t)(src)) < 0);
5374 	m68k_write_memory_8(dsta,src);
5375 }}}}m68k_incpc(8);
5376 return 24;
5377 }
CPUFUNC(op_13fb_4)5378 unsigned long CPUFUNC(op_13fb_4)(uint32_t opcode) /* MOVE */
5379 {
5380 	OpcodeFamily = 30; CurrentInstrCycles = 26;
5381 {{	uint32_t tmppc = m68k_getpc() + 2;
5382 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
5383 	BusCyclePenalty += 2;
5384 {	int8_t src = m68k_read_memory_8(srca);
5385 {	uint32_t dsta = get_ilong(4);
5386 	CLEAR_CZNV;
5387 	SET_ZFLG (((int8_t)(src)) == 0);
5388 	SET_NFLG (((int8_t)(src)) < 0);
5389 	m68k_write_memory_8(dsta,src);
5390 }}}}m68k_incpc(8);
5391 return 26;
5392 }
CPUFUNC(op_13fc_4)5393 unsigned long CPUFUNC(op_13fc_4)(uint32_t opcode) /* MOVE */
5394 {
5395 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5396 {{	int8_t src = get_ibyte(2);
5397 {	uint32_t dsta = get_ilong(4);
5398 	CLEAR_CZNV;
5399 	SET_ZFLG (((int8_t)(src)) == 0);
5400 	SET_NFLG (((int8_t)(src)) < 0);
5401 	m68k_write_memory_8(dsta,src);
5402 }}}m68k_incpc(8);
5403 return 20;
5404 }
CPUFUNC(op_2000_4)5405 unsigned long CPUFUNC(op_2000_4)(uint32_t opcode) /* MOVE */
5406 {
5407 	uint32_t srcreg = (opcode & 7);
5408 	uint32_t dstreg = (opcode >> 9) & 7;
5409 	OpcodeFamily = 30; CurrentInstrCycles = 4;
5410 {{	int32_t src = m68k_dreg(regs, srcreg);
5411 {	CLEAR_CZNV;
5412 	SET_ZFLG (((int32_t)(src)) == 0);
5413 	SET_NFLG (((int32_t)(src)) < 0);
5414 	m68k_dreg(regs, dstreg) = (src);
5415 }}}m68k_incpc(2);
5416 return 4;
5417 }
CPUFUNC(op_2008_4)5418 unsigned long CPUFUNC(op_2008_4)(uint32_t opcode) /* MOVE */
5419 {
5420 	uint32_t srcreg = (opcode & 7);
5421 	uint32_t dstreg = (opcode >> 9) & 7;
5422 	OpcodeFamily = 30; CurrentInstrCycles = 4;
5423 {{	int32_t src = m68k_areg(regs, srcreg);
5424 {	CLEAR_CZNV;
5425 	SET_ZFLG (((int32_t)(src)) == 0);
5426 	SET_NFLG (((int32_t)(src)) < 0);
5427 	m68k_dreg(regs, dstreg) = (src);
5428 }}}m68k_incpc(2);
5429 return 4;
5430 }
CPUFUNC(op_2010_4)5431 unsigned long CPUFUNC(op_2010_4)(uint32_t opcode) /* MOVE */
5432 {
5433 	uint32_t srcreg = (opcode & 7);
5434 	uint32_t dstreg = (opcode >> 9) & 7;
5435 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5436 {{	uint32_t srca = m68k_areg(regs, srcreg);
5437 {	int32_t src = m68k_read_memory_32(srca);
5438 {	CLEAR_CZNV;
5439 	SET_ZFLG (((int32_t)(src)) == 0);
5440 	SET_NFLG (((int32_t)(src)) < 0);
5441 	m68k_dreg(regs, dstreg) = (src);
5442 }}}}m68k_incpc(2);
5443 return 12;
5444 }
CPUFUNC(op_2018_4)5445 unsigned long CPUFUNC(op_2018_4)(uint32_t opcode) /* MOVE */
5446 {
5447 	uint32_t srcreg = (opcode & 7);
5448 	uint32_t dstreg = (opcode >> 9) & 7;
5449 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5450 {{	uint32_t srca = m68k_areg(regs, srcreg);
5451 {	int32_t src = m68k_read_memory_32(srca);
5452 	m68k_areg(regs, srcreg) += 4;
5453 {	CLEAR_CZNV;
5454 	SET_ZFLG (((int32_t)(src)) == 0);
5455 	SET_NFLG (((int32_t)(src)) < 0);
5456 	m68k_dreg(regs, dstreg) = (src);
5457 }}}}m68k_incpc(2);
5458 return 12;
5459 }
CPUFUNC(op_2020_4)5460 unsigned long CPUFUNC(op_2020_4)(uint32_t opcode) /* MOVE */
5461 {
5462 	uint32_t srcreg = (opcode & 7);
5463 	uint32_t dstreg = (opcode >> 9) & 7;
5464 	OpcodeFamily = 30; CurrentInstrCycles = 14;
5465 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
5466 {	int32_t src = m68k_read_memory_32(srca);
5467 	m68k_areg (regs, srcreg) = srca;
5468 {	CLEAR_CZNV;
5469 	SET_ZFLG (((int32_t)(src)) == 0);
5470 	SET_NFLG (((int32_t)(src)) < 0);
5471 	m68k_dreg(regs, dstreg) = (src);
5472 }}}}m68k_incpc(2);
5473 return 14;
5474 }
CPUFUNC(op_2028_4)5475 unsigned long CPUFUNC(op_2028_4)(uint32_t opcode) /* MOVE */
5476 {
5477 	uint32_t srcreg = (opcode & 7);
5478 	uint32_t dstreg = (opcode >> 9) & 7;
5479 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5480 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
5481 {	int32_t src = m68k_read_memory_32(srca);
5482 {	CLEAR_CZNV;
5483 	SET_ZFLG (((int32_t)(src)) == 0);
5484 	SET_NFLG (((int32_t)(src)) < 0);
5485 	m68k_dreg(regs, dstreg) = (src);
5486 }}}}m68k_incpc(4);
5487 return 16;
5488 }
CPUFUNC(op_2030_4)5489 unsigned long CPUFUNC(op_2030_4)(uint32_t opcode) /* MOVE */
5490 {
5491 	uint32_t srcreg = (opcode & 7);
5492 	uint32_t dstreg = (opcode >> 9) & 7;
5493 	OpcodeFamily = 30; CurrentInstrCycles = 18;
5494 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
5495 	BusCyclePenalty += 2;
5496 {	int32_t src = m68k_read_memory_32(srca);
5497 {	CLEAR_CZNV;
5498 	SET_ZFLG (((int32_t)(src)) == 0);
5499 	SET_NFLG (((int32_t)(src)) < 0);
5500 	m68k_dreg(regs, dstreg) = (src);
5501 }}}}m68k_incpc(4);
5502 return 18;
5503 }
CPUFUNC(op_2038_4)5504 unsigned long CPUFUNC(op_2038_4)(uint32_t opcode) /* MOVE */
5505 {
5506 	uint32_t dstreg = (opcode >> 9) & 7;
5507 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5508 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
5509 {	int32_t src = m68k_read_memory_32(srca);
5510 {	CLEAR_CZNV;
5511 	SET_ZFLG (((int32_t)(src)) == 0);
5512 	SET_NFLG (((int32_t)(src)) < 0);
5513 	m68k_dreg(regs, dstreg) = (src);
5514 }}}}m68k_incpc(4);
5515 return 16;
5516 }
CPUFUNC(op_2039_4)5517 unsigned long CPUFUNC(op_2039_4)(uint32_t opcode) /* MOVE */
5518 {
5519 	uint32_t dstreg = (opcode >> 9) & 7;
5520 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5521 {{	uint32_t srca = get_ilong(2);
5522 {	int32_t src = m68k_read_memory_32(srca);
5523 {	CLEAR_CZNV;
5524 	SET_ZFLG (((int32_t)(src)) == 0);
5525 	SET_NFLG (((int32_t)(src)) < 0);
5526 	m68k_dreg(regs, dstreg) = (src);
5527 }}}}m68k_incpc(6);
5528 return 20;
5529 }
CPUFUNC(op_203a_4)5530 unsigned long CPUFUNC(op_203a_4)(uint32_t opcode) /* MOVE */
5531 {
5532 	uint32_t dstreg = (opcode >> 9) & 7;
5533 	OpcodeFamily = 30; CurrentInstrCycles = 16;
5534 {{	uint32_t srca = m68k_getpc () + 2;
5535 	srca += (int32_t)(int16_t)get_iword(2);
5536 {	int32_t src = m68k_read_memory_32(srca);
5537 {	CLEAR_CZNV;
5538 	SET_ZFLG (((int32_t)(src)) == 0);
5539 	SET_NFLG (((int32_t)(src)) < 0);
5540 	m68k_dreg(regs, dstreg) = (src);
5541 }}}}m68k_incpc(4);
5542 return 16;
5543 }
CPUFUNC(op_203b_4)5544 unsigned long CPUFUNC(op_203b_4)(uint32_t opcode) /* MOVE */
5545 {
5546 	uint32_t dstreg = (opcode >> 9) & 7;
5547 	OpcodeFamily = 30; CurrentInstrCycles = 18;
5548 {{	uint32_t tmppc = m68k_getpc() + 2;
5549 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
5550 	BusCyclePenalty += 2;
5551 {	int32_t src = m68k_read_memory_32(srca);
5552 {	CLEAR_CZNV;
5553 	SET_ZFLG (((int32_t)(src)) == 0);
5554 	SET_NFLG (((int32_t)(src)) < 0);
5555 	m68k_dreg(regs, dstreg) = (src);
5556 }}}}m68k_incpc(4);
5557 return 18;
5558 }
CPUFUNC(op_203c_4)5559 unsigned long CPUFUNC(op_203c_4)(uint32_t opcode) /* MOVE */
5560 {
5561 	uint32_t dstreg = (opcode >> 9) & 7;
5562 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5563 {{	int32_t src = get_ilong(2);
5564 {	CLEAR_CZNV;
5565 	SET_ZFLG (((int32_t)(src)) == 0);
5566 	SET_NFLG (((int32_t)(src)) < 0);
5567 	m68k_dreg(regs, dstreg) = (src);
5568 }}}m68k_incpc(6);
5569 return 12;
5570 }
CPUFUNC(op_2040_4)5571 unsigned long CPUFUNC(op_2040_4)(uint32_t opcode) /* MOVEA */
5572 {
5573 	uint32_t srcreg = (opcode & 7);
5574 	uint32_t dstreg = (opcode >> 9) & 7;
5575 	OpcodeFamily = 31; CurrentInstrCycles = 4;
5576 {{	int32_t src = m68k_dreg(regs, srcreg);
5577 {	uint32_t val = src;
5578 	m68k_areg(regs, dstreg) = (val);
5579 }}}m68k_incpc(2);
5580 return 4;
5581 }
CPUFUNC(op_2048_4)5582 unsigned long CPUFUNC(op_2048_4)(uint32_t opcode) /* MOVEA */
5583 {
5584 	uint32_t srcreg = (opcode & 7);
5585 	uint32_t dstreg = (opcode >> 9) & 7;
5586 	OpcodeFamily = 31; CurrentInstrCycles = 4;
5587 {{	int32_t src = m68k_areg(regs, srcreg);
5588 {	uint32_t val = src;
5589 	m68k_areg(regs, dstreg) = (val);
5590 }}}m68k_incpc(2);
5591 return 4;
5592 }
CPUFUNC(op_2050_4)5593 unsigned long CPUFUNC(op_2050_4)(uint32_t opcode) /* MOVEA */
5594 {
5595 	uint32_t srcreg = (opcode & 7);
5596 	uint32_t dstreg = (opcode >> 9) & 7;
5597 	OpcodeFamily = 31; CurrentInstrCycles = 12;
5598 {{	uint32_t srca = m68k_areg(regs, srcreg);
5599 {	int32_t src = m68k_read_memory_32(srca);
5600 {	uint32_t val = src;
5601 	m68k_areg(regs, dstreg) = (val);
5602 }}}}m68k_incpc(2);
5603 return 12;
5604 }
CPUFUNC(op_2058_4)5605 unsigned long CPUFUNC(op_2058_4)(uint32_t opcode) /* MOVEA */
5606 {
5607 	uint32_t srcreg = (opcode & 7);
5608 	uint32_t dstreg = (opcode >> 9) & 7;
5609 	OpcodeFamily = 31; CurrentInstrCycles = 12;
5610 {{	uint32_t srca = m68k_areg(regs, srcreg);
5611 {	int32_t src = m68k_read_memory_32(srca);
5612 	m68k_areg(regs, srcreg) += 4;
5613 {	uint32_t val = src;
5614 	m68k_areg(regs, dstreg) = (val);
5615 }}}}m68k_incpc(2);
5616 return 12;
5617 }
CPUFUNC(op_2060_4)5618 unsigned long CPUFUNC(op_2060_4)(uint32_t opcode) /* MOVEA */
5619 {
5620 	uint32_t srcreg = (opcode & 7);
5621 	uint32_t dstreg = (opcode >> 9) & 7;
5622 	OpcodeFamily = 31; CurrentInstrCycles = 14;
5623 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
5624 {	int32_t src = m68k_read_memory_32(srca);
5625 	m68k_areg (regs, srcreg) = srca;
5626 {	uint32_t val = src;
5627 	m68k_areg(regs, dstreg) = (val);
5628 }}}}m68k_incpc(2);
5629 return 14;
5630 }
CPUFUNC(op_2068_4)5631 unsigned long CPUFUNC(op_2068_4)(uint32_t opcode) /* MOVEA */
5632 {
5633 	uint32_t srcreg = (opcode & 7);
5634 	uint32_t dstreg = (opcode >> 9) & 7;
5635 	OpcodeFamily = 31; CurrentInstrCycles = 16;
5636 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
5637 {	int32_t src = m68k_read_memory_32(srca);
5638 {	uint32_t val = src;
5639 	m68k_areg(regs, dstreg) = (val);
5640 }}}}m68k_incpc(4);
5641 return 16;
5642 }
CPUFUNC(op_2070_4)5643 unsigned long CPUFUNC(op_2070_4)(uint32_t opcode) /* MOVEA */
5644 {
5645 	uint32_t srcreg = (opcode & 7);
5646 	uint32_t dstreg = (opcode >> 9) & 7;
5647 	OpcodeFamily = 31; CurrentInstrCycles = 18;
5648 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
5649 	BusCyclePenalty += 2;
5650 {	int32_t src = m68k_read_memory_32(srca);
5651 {	uint32_t val = src;
5652 	m68k_areg(regs, dstreg) = (val);
5653 }}}}m68k_incpc(4);
5654 return 18;
5655 }
CPUFUNC(op_2078_4)5656 unsigned long CPUFUNC(op_2078_4)(uint32_t opcode) /* MOVEA */
5657 {
5658 	uint32_t dstreg = (opcode >> 9) & 7;
5659 	OpcodeFamily = 31; CurrentInstrCycles = 16;
5660 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
5661 {	int32_t src = m68k_read_memory_32(srca);
5662 {	uint32_t val = src;
5663 	m68k_areg(regs, dstreg) = (val);
5664 }}}}m68k_incpc(4);
5665 return 16;
5666 }
CPUFUNC(op_2079_4)5667 unsigned long CPUFUNC(op_2079_4)(uint32_t opcode) /* MOVEA */
5668 {
5669 	uint32_t dstreg = (opcode >> 9) & 7;
5670 	OpcodeFamily = 31; CurrentInstrCycles = 20;
5671 {{	uint32_t srca = get_ilong(2);
5672 {	int32_t src = m68k_read_memory_32(srca);
5673 {	uint32_t val = src;
5674 	m68k_areg(regs, dstreg) = (val);
5675 }}}}m68k_incpc(6);
5676 return 20;
5677 }
CPUFUNC(op_207a_4)5678 unsigned long CPUFUNC(op_207a_4)(uint32_t opcode) /* MOVEA */
5679 {
5680 	uint32_t dstreg = (opcode >> 9) & 7;
5681 	OpcodeFamily = 31; CurrentInstrCycles = 16;
5682 {{	uint32_t srca = m68k_getpc () + 2;
5683 	srca += (int32_t)(int16_t)get_iword(2);
5684 {	int32_t src = m68k_read_memory_32(srca);
5685 {	uint32_t val = src;
5686 	m68k_areg(regs, dstreg) = (val);
5687 }}}}m68k_incpc(4);
5688 return 16;
5689 }
CPUFUNC(op_207b_4)5690 unsigned long CPUFUNC(op_207b_4)(uint32_t opcode) /* MOVEA */
5691 {
5692 	uint32_t dstreg = (opcode >> 9) & 7;
5693 	OpcodeFamily = 31; CurrentInstrCycles = 18;
5694 {{	uint32_t tmppc = m68k_getpc() + 2;
5695 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
5696 	BusCyclePenalty += 2;
5697 {	int32_t src = m68k_read_memory_32(srca);
5698 {	uint32_t val = src;
5699 	m68k_areg(regs, dstreg) = (val);
5700 }}}}m68k_incpc(4);
5701 return 18;
5702 }
CPUFUNC(op_207c_4)5703 unsigned long CPUFUNC(op_207c_4)(uint32_t opcode) /* MOVEA */
5704 {
5705 	uint32_t dstreg = (opcode >> 9) & 7;
5706 	OpcodeFamily = 31; CurrentInstrCycles = 12;
5707 {{	int32_t src = get_ilong(2);
5708 {	uint32_t val = src;
5709 	m68k_areg(regs, dstreg) = (val);
5710 }}}m68k_incpc(6);
5711 return 12;
5712 }
CPUFUNC(op_2080_4)5713 unsigned long CPUFUNC(op_2080_4)(uint32_t opcode) /* MOVE */
5714 {
5715 	uint32_t srcreg = (opcode & 7);
5716 	uint32_t dstreg = (opcode >> 9) & 7;
5717 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5718 {{	int32_t src = m68k_dreg(regs, srcreg);
5719 {	uint32_t dsta = m68k_areg(regs, dstreg);
5720 	CLEAR_CZNV;
5721 	SET_ZFLG (((int32_t)(src)) == 0);
5722 	SET_NFLG (((int32_t)(src)) < 0);
5723 	m68k_write_memory_32(dsta,src);
5724 }}}m68k_incpc(2);
5725 return 12;
5726 }
CPUFUNC(op_2088_4)5727 unsigned long CPUFUNC(op_2088_4)(uint32_t opcode) /* MOVE */
5728 {
5729 	uint32_t srcreg = (opcode & 7);
5730 	uint32_t dstreg = (opcode >> 9) & 7;
5731 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5732 {{	int32_t src = m68k_areg(regs, srcreg);
5733 {	uint32_t dsta = m68k_areg(regs, dstreg);
5734 	CLEAR_CZNV;
5735 	SET_ZFLG (((int32_t)(src)) == 0);
5736 	SET_NFLG (((int32_t)(src)) < 0);
5737 	m68k_write_memory_32(dsta,src);
5738 }}}m68k_incpc(2);
5739 return 12;
5740 }
CPUFUNC(op_2090_4)5741 unsigned long CPUFUNC(op_2090_4)(uint32_t opcode) /* MOVE */
5742 {
5743 	uint32_t srcreg = (opcode & 7);
5744 	uint32_t dstreg = (opcode >> 9) & 7;
5745 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5746 {{	uint32_t srca = m68k_areg(regs, srcreg);
5747 {	int32_t src = m68k_read_memory_32(srca);
5748 {	uint32_t dsta = m68k_areg(regs, dstreg);
5749 	CLEAR_CZNV;
5750 	SET_ZFLG (((int32_t)(src)) == 0);
5751 	SET_NFLG (((int32_t)(src)) < 0);
5752 	m68k_write_memory_32(dsta,src);
5753 }}}}m68k_incpc(2);
5754 return 20;
5755 }
CPUFUNC(op_2098_4)5756 unsigned long CPUFUNC(op_2098_4)(uint32_t opcode) /* MOVE */
5757 {
5758 	uint32_t srcreg = (opcode & 7);
5759 	uint32_t dstreg = (opcode >> 9) & 7;
5760 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5761 {{	uint32_t srca = m68k_areg(regs, srcreg);
5762 {	int32_t src = m68k_read_memory_32(srca);
5763 	m68k_areg(regs, srcreg) += 4;
5764 {	uint32_t dsta = m68k_areg(regs, dstreg);
5765 	CLEAR_CZNV;
5766 	SET_ZFLG (((int32_t)(src)) == 0);
5767 	SET_NFLG (((int32_t)(src)) < 0);
5768 	m68k_write_memory_32(dsta,src);
5769 }}}}m68k_incpc(2);
5770 return 20;
5771 }
CPUFUNC(op_20a0_4)5772 unsigned long CPUFUNC(op_20a0_4)(uint32_t opcode) /* MOVE */
5773 {
5774 	uint32_t srcreg = (opcode & 7);
5775 	uint32_t dstreg = (opcode >> 9) & 7;
5776 	OpcodeFamily = 30; CurrentInstrCycles = 22;
5777 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
5778 {	int32_t src = m68k_read_memory_32(srca);
5779 	m68k_areg (regs, srcreg) = srca;
5780 {	uint32_t dsta = m68k_areg(regs, dstreg);
5781 	CLEAR_CZNV;
5782 	SET_ZFLG (((int32_t)(src)) == 0);
5783 	SET_NFLG (((int32_t)(src)) < 0);
5784 	m68k_write_memory_32(dsta,src);
5785 }}}}m68k_incpc(2);
5786 return 22;
5787 }
CPUFUNC(op_20a8_4)5788 unsigned long CPUFUNC(op_20a8_4)(uint32_t opcode) /* MOVE */
5789 {
5790 	uint32_t srcreg = (opcode & 7);
5791 	uint32_t dstreg = (opcode >> 9) & 7;
5792 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5793 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
5794 {	int32_t src = m68k_read_memory_32(srca);
5795 {	uint32_t dsta = m68k_areg(regs, dstreg);
5796 	CLEAR_CZNV;
5797 	SET_ZFLG (((int32_t)(src)) == 0);
5798 	SET_NFLG (((int32_t)(src)) < 0);
5799 	m68k_write_memory_32(dsta,src);
5800 }}}}m68k_incpc(4);
5801 return 24;
5802 }
CPUFUNC(op_20b0_4)5803 unsigned long CPUFUNC(op_20b0_4)(uint32_t opcode) /* MOVE */
5804 {
5805 	uint32_t srcreg = (opcode & 7);
5806 	uint32_t dstreg = (opcode >> 9) & 7;
5807 	OpcodeFamily = 30; CurrentInstrCycles = 26;
5808 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
5809 	BusCyclePenalty += 2;
5810 {	int32_t src = m68k_read_memory_32(srca);
5811 {	uint32_t dsta = m68k_areg(regs, dstreg);
5812 	CLEAR_CZNV;
5813 	SET_ZFLG (((int32_t)(src)) == 0);
5814 	SET_NFLG (((int32_t)(src)) < 0);
5815 	m68k_write_memory_32(dsta,src);
5816 }}}}m68k_incpc(4);
5817 return 26;
5818 }
CPUFUNC(op_20b8_4)5819 unsigned long CPUFUNC(op_20b8_4)(uint32_t opcode) /* MOVE */
5820 {
5821 	uint32_t dstreg = (opcode >> 9) & 7;
5822 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5823 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
5824 {	int32_t src = m68k_read_memory_32(srca);
5825 {	uint32_t dsta = m68k_areg(regs, dstreg);
5826 	CLEAR_CZNV;
5827 	SET_ZFLG (((int32_t)(src)) == 0);
5828 	SET_NFLG (((int32_t)(src)) < 0);
5829 	m68k_write_memory_32(dsta,src);
5830 }}}}m68k_incpc(4);
5831 return 24;
5832 }
CPUFUNC(op_20b9_4)5833 unsigned long CPUFUNC(op_20b9_4)(uint32_t opcode) /* MOVE */
5834 {
5835 	uint32_t dstreg = (opcode >> 9) & 7;
5836 	OpcodeFamily = 30; CurrentInstrCycles = 28;
5837 {{	uint32_t srca = get_ilong(2);
5838 {	int32_t src = m68k_read_memory_32(srca);
5839 {	uint32_t dsta = m68k_areg(regs, dstreg);
5840 	CLEAR_CZNV;
5841 	SET_ZFLG (((int32_t)(src)) == 0);
5842 	SET_NFLG (((int32_t)(src)) < 0);
5843 	m68k_write_memory_32(dsta,src);
5844 }}}}m68k_incpc(6);
5845 return 28;
5846 }
CPUFUNC(op_20ba_4)5847 unsigned long CPUFUNC(op_20ba_4)(uint32_t opcode) /* MOVE */
5848 {
5849 	uint32_t dstreg = (opcode >> 9) & 7;
5850 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5851 {{	uint32_t srca = m68k_getpc () + 2;
5852 	srca += (int32_t)(int16_t)get_iword(2);
5853 {	int32_t src = m68k_read_memory_32(srca);
5854 {	uint32_t dsta = m68k_areg(regs, dstreg);
5855 	CLEAR_CZNV;
5856 	SET_ZFLG (((int32_t)(src)) == 0);
5857 	SET_NFLG (((int32_t)(src)) < 0);
5858 	m68k_write_memory_32(dsta,src);
5859 }}}}m68k_incpc(4);
5860 return 24;
5861 }
CPUFUNC(op_20bb_4)5862 unsigned long CPUFUNC(op_20bb_4)(uint32_t opcode) /* MOVE */
5863 {
5864 	uint32_t dstreg = (opcode >> 9) & 7;
5865 	OpcodeFamily = 30; CurrentInstrCycles = 26;
5866 {{	uint32_t tmppc = m68k_getpc() + 2;
5867 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
5868 	BusCyclePenalty += 2;
5869 {	int32_t src = m68k_read_memory_32(srca);
5870 {	uint32_t dsta = m68k_areg(regs, dstreg);
5871 	CLEAR_CZNV;
5872 	SET_ZFLG (((int32_t)(src)) == 0);
5873 	SET_NFLG (((int32_t)(src)) < 0);
5874 	m68k_write_memory_32(dsta,src);
5875 }}}}m68k_incpc(4);
5876 return 26;
5877 }
CPUFUNC(op_20bc_4)5878 unsigned long CPUFUNC(op_20bc_4)(uint32_t opcode) /* MOVE */
5879 {
5880 	uint32_t dstreg = (opcode >> 9) & 7;
5881 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5882 {{	int32_t src = get_ilong(2);
5883 {	uint32_t dsta = m68k_areg(regs, dstreg);
5884 	CLEAR_CZNV;
5885 	SET_ZFLG (((int32_t)(src)) == 0);
5886 	SET_NFLG (((int32_t)(src)) < 0);
5887 	m68k_write_memory_32(dsta,src);
5888 }}}m68k_incpc(6);
5889 return 20;
5890 }
CPUFUNC(op_20c0_4)5891 unsigned long CPUFUNC(op_20c0_4)(uint32_t opcode) /* MOVE */
5892 {
5893 	uint32_t srcreg = (opcode & 7);
5894 	uint32_t dstreg = (opcode >> 9) & 7;
5895 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5896 {{	int32_t src = m68k_dreg(regs, srcreg);
5897 {	uint32_t dsta = m68k_areg(regs, dstreg);
5898 	m68k_areg(regs, dstreg) += 4;
5899 	CLEAR_CZNV;
5900 	SET_ZFLG (((int32_t)(src)) == 0);
5901 	SET_NFLG (((int32_t)(src)) < 0);
5902 	m68k_write_memory_32(dsta,src);
5903 }}}m68k_incpc(2);
5904 return 12;
5905 }
CPUFUNC(op_20c8_4)5906 unsigned long CPUFUNC(op_20c8_4)(uint32_t opcode) /* MOVE */
5907 {
5908 	uint32_t srcreg = (opcode & 7);
5909 	uint32_t dstreg = (opcode >> 9) & 7;
5910 	OpcodeFamily = 30; CurrentInstrCycles = 12;
5911 {{	int32_t src = m68k_areg(regs, srcreg);
5912 {	uint32_t dsta = m68k_areg(regs, dstreg);
5913 	m68k_areg(regs, dstreg) += 4;
5914 	CLEAR_CZNV;
5915 	SET_ZFLG (((int32_t)(src)) == 0);
5916 	SET_NFLG (((int32_t)(src)) < 0);
5917 	m68k_write_memory_32(dsta,src);
5918 }}}m68k_incpc(2);
5919 return 12;
5920 }
CPUFUNC(op_20d0_4)5921 unsigned long CPUFUNC(op_20d0_4)(uint32_t opcode) /* MOVE */
5922 {
5923 	uint32_t srcreg = (opcode & 7);
5924 	uint32_t dstreg = (opcode >> 9) & 7;
5925 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5926 {{	uint32_t srca = m68k_areg(regs, srcreg);
5927 {	int32_t src = m68k_read_memory_32(srca);
5928 {	uint32_t dsta = m68k_areg(regs, dstreg);
5929 	m68k_areg(regs, dstreg) += 4;
5930 	CLEAR_CZNV;
5931 	SET_ZFLG (((int32_t)(src)) == 0);
5932 	SET_NFLG (((int32_t)(src)) < 0);
5933 	m68k_write_memory_32(dsta,src);
5934 }}}}m68k_incpc(2);
5935 return 20;
5936 }
CPUFUNC(op_20d8_4)5937 unsigned long CPUFUNC(op_20d8_4)(uint32_t opcode) /* MOVE */
5938 {
5939 	uint32_t srcreg = (opcode & 7);
5940 	uint32_t dstreg = (opcode >> 9) & 7;
5941 	OpcodeFamily = 30; CurrentInstrCycles = 20;
5942 {{	uint32_t srca = m68k_areg(regs, srcreg);
5943 {	int32_t src = m68k_read_memory_32(srca);
5944 	m68k_areg(regs, srcreg) += 4;
5945 {	uint32_t dsta = m68k_areg(regs, dstreg);
5946 	m68k_areg(regs, dstreg) += 4;
5947 	CLEAR_CZNV;
5948 	SET_ZFLG (((int32_t)(src)) == 0);
5949 	SET_NFLG (((int32_t)(src)) < 0);
5950 	m68k_write_memory_32(dsta,src);
5951 }}}}m68k_incpc(2);
5952 return 20;
5953 }
CPUFUNC(op_20e0_4)5954 unsigned long CPUFUNC(op_20e0_4)(uint32_t opcode) /* MOVE */
5955 {
5956 	uint32_t srcreg = (opcode & 7);
5957 	uint32_t dstreg = (opcode >> 9) & 7;
5958 	OpcodeFamily = 30; CurrentInstrCycles = 22;
5959 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
5960 {	int32_t src = m68k_read_memory_32(srca);
5961 	m68k_areg (regs, srcreg) = srca;
5962 {	uint32_t dsta = m68k_areg(regs, dstreg);
5963 	m68k_areg(regs, dstreg) += 4;
5964 	CLEAR_CZNV;
5965 	SET_ZFLG (((int32_t)(src)) == 0);
5966 	SET_NFLG (((int32_t)(src)) < 0);
5967 	m68k_write_memory_32(dsta,src);
5968 }}}}m68k_incpc(2);
5969 return 22;
5970 }
CPUFUNC(op_20e8_4)5971 unsigned long CPUFUNC(op_20e8_4)(uint32_t opcode) /* MOVE */
5972 {
5973 	uint32_t srcreg = (opcode & 7);
5974 	uint32_t dstreg = (opcode >> 9) & 7;
5975 	OpcodeFamily = 30; CurrentInstrCycles = 24;
5976 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
5977 {	int32_t src = m68k_read_memory_32(srca);
5978 {	uint32_t dsta = m68k_areg(regs, dstreg);
5979 	m68k_areg(regs, dstreg) += 4;
5980 	CLEAR_CZNV;
5981 	SET_ZFLG (((int32_t)(src)) == 0);
5982 	SET_NFLG (((int32_t)(src)) < 0);
5983 	m68k_write_memory_32(dsta,src);
5984 }}}}m68k_incpc(4);
5985 return 24;
5986 }
CPUFUNC(op_20f0_4)5987 unsigned long CPUFUNC(op_20f0_4)(uint32_t opcode) /* MOVE */
5988 {
5989 	uint32_t srcreg = (opcode & 7);
5990 	uint32_t dstreg = (opcode >> 9) & 7;
5991 	OpcodeFamily = 30; CurrentInstrCycles = 26;
5992 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
5993 	BusCyclePenalty += 2;
5994 {	int32_t src = m68k_read_memory_32(srca);
5995 {	uint32_t dsta = m68k_areg(regs, dstreg);
5996 	m68k_areg(regs, dstreg) += 4;
5997 	CLEAR_CZNV;
5998 	SET_ZFLG (((int32_t)(src)) == 0);
5999 	SET_NFLG (((int32_t)(src)) < 0);
6000 	m68k_write_memory_32(dsta,src);
6001 }}}}m68k_incpc(4);
6002 return 26;
6003 }
CPUFUNC(op_20f8_4)6004 unsigned long CPUFUNC(op_20f8_4)(uint32_t opcode) /* MOVE */
6005 {
6006 	uint32_t dstreg = (opcode >> 9) & 7;
6007 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6008 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
6009 {	int32_t src = m68k_read_memory_32(srca);
6010 {	uint32_t dsta = m68k_areg(regs, dstreg);
6011 	m68k_areg(regs, dstreg) += 4;
6012 	CLEAR_CZNV;
6013 	SET_ZFLG (((int32_t)(src)) == 0);
6014 	SET_NFLG (((int32_t)(src)) < 0);
6015 	m68k_write_memory_32(dsta,src);
6016 }}}}m68k_incpc(4);
6017 return 24;
6018 }
CPUFUNC(op_20f9_4)6019 unsigned long CPUFUNC(op_20f9_4)(uint32_t opcode) /* MOVE */
6020 {
6021 	uint32_t dstreg = (opcode >> 9) & 7;
6022 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6023 {{	uint32_t srca = get_ilong(2);
6024 {	int32_t src = m68k_read_memory_32(srca);
6025 {	uint32_t dsta = m68k_areg(regs, dstreg);
6026 	m68k_areg(regs, dstreg) += 4;
6027 	CLEAR_CZNV;
6028 	SET_ZFLG (((int32_t)(src)) == 0);
6029 	SET_NFLG (((int32_t)(src)) < 0);
6030 	m68k_write_memory_32(dsta,src);
6031 }}}}m68k_incpc(6);
6032 return 28;
6033 }
CPUFUNC(op_20fa_4)6034 unsigned long CPUFUNC(op_20fa_4)(uint32_t opcode) /* MOVE */
6035 {
6036 	uint32_t dstreg = (opcode >> 9) & 7;
6037 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6038 {{	uint32_t srca = m68k_getpc () + 2;
6039 	srca += (int32_t)(int16_t)get_iword(2);
6040 {	int32_t src = m68k_read_memory_32(srca);
6041 {	uint32_t dsta = m68k_areg(regs, dstreg);
6042 	m68k_areg(regs, dstreg) += 4;
6043 	CLEAR_CZNV;
6044 	SET_ZFLG (((int32_t)(src)) == 0);
6045 	SET_NFLG (((int32_t)(src)) < 0);
6046 	m68k_write_memory_32(dsta,src);
6047 }}}}m68k_incpc(4);
6048 return 24;
6049 }
CPUFUNC(op_20fb_4)6050 unsigned long CPUFUNC(op_20fb_4)(uint32_t opcode) /* MOVE */
6051 {
6052 	uint32_t dstreg = (opcode >> 9) & 7;
6053 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6054 {{	uint32_t tmppc = m68k_getpc() + 2;
6055 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
6056 	BusCyclePenalty += 2;
6057 {	int32_t src = m68k_read_memory_32(srca);
6058 {	uint32_t dsta = m68k_areg(regs, dstreg);
6059 	m68k_areg(regs, dstreg) += 4;
6060 	CLEAR_CZNV;
6061 	SET_ZFLG (((int32_t)(src)) == 0);
6062 	SET_NFLG (((int32_t)(src)) < 0);
6063 	m68k_write_memory_32(dsta,src);
6064 }}}}m68k_incpc(4);
6065 return 26;
6066 }
CPUFUNC(op_20fc_4)6067 unsigned long CPUFUNC(op_20fc_4)(uint32_t opcode) /* MOVE */
6068 {
6069 	uint32_t dstreg = (opcode >> 9) & 7;
6070 	OpcodeFamily = 30; CurrentInstrCycles = 20;
6071 {{	int32_t src = get_ilong(2);
6072 {	uint32_t dsta = m68k_areg(regs, dstreg);
6073 	m68k_areg(regs, dstreg) += 4;
6074 	CLEAR_CZNV;
6075 	SET_ZFLG (((int32_t)(src)) == 0);
6076 	SET_NFLG (((int32_t)(src)) < 0);
6077 	m68k_write_memory_32(dsta,src);
6078 }}}m68k_incpc(6);
6079 return 20;
6080 }
CPUFUNC(op_2100_4)6081 unsigned long CPUFUNC(op_2100_4)(uint32_t opcode) /* MOVE */
6082 {
6083 	uint32_t srcreg = (opcode & 7);
6084 	uint32_t dstreg = (opcode >> 9) & 7;
6085 	OpcodeFamily = 30; CurrentInstrCycles = 12;
6086 {{	int32_t src = m68k_dreg(regs, srcreg);
6087 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6088 	m68k_areg (regs, dstreg) = dsta;
6089 	CLEAR_CZNV;
6090 	SET_ZFLG (((int32_t)(src)) == 0);
6091 	SET_NFLG (((int32_t)(src)) < 0);
6092 	m68k_write_memory_32(dsta,src);
6093 }}}m68k_incpc(2);
6094 return 12;
6095 }
CPUFUNC(op_2108_4)6096 unsigned long CPUFUNC(op_2108_4)(uint32_t opcode) /* MOVE */
6097 {
6098 	uint32_t srcreg = (opcode & 7);
6099 	uint32_t dstreg = (opcode >> 9) & 7;
6100 	OpcodeFamily = 30; CurrentInstrCycles = 12;
6101 {{	int32_t src = m68k_areg(regs, srcreg);
6102 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6103 	m68k_areg (regs, dstreg) = dsta;
6104 	CLEAR_CZNV;
6105 	SET_ZFLG (((int32_t)(src)) == 0);
6106 	SET_NFLG (((int32_t)(src)) < 0);
6107 	m68k_write_memory_32(dsta,src);
6108 }}}m68k_incpc(2);
6109 return 12;
6110 }
CPUFUNC(op_2110_4)6111 unsigned long CPUFUNC(op_2110_4)(uint32_t opcode) /* MOVE */
6112 {
6113 	uint32_t srcreg = (opcode & 7);
6114 	uint32_t dstreg = (opcode >> 9) & 7;
6115 	OpcodeFamily = 30; CurrentInstrCycles = 20;
6116 {{	uint32_t srca = m68k_areg(regs, srcreg);
6117 {	int32_t src = m68k_read_memory_32(srca);
6118 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6119 	m68k_areg (regs, dstreg) = dsta;
6120 	CLEAR_CZNV;
6121 	SET_ZFLG (((int32_t)(src)) == 0);
6122 	SET_NFLG (((int32_t)(src)) < 0);
6123 	m68k_write_memory_32(dsta,src);
6124 }}}}m68k_incpc(2);
6125 return 20;
6126 }
CPUFUNC(op_2118_4)6127 unsigned long CPUFUNC(op_2118_4)(uint32_t opcode) /* MOVE */
6128 {
6129 	uint32_t srcreg = (opcode & 7);
6130 	uint32_t dstreg = (opcode >> 9) & 7;
6131 	OpcodeFamily = 30; CurrentInstrCycles = 20;
6132 {{	uint32_t srca = m68k_areg(regs, srcreg);
6133 {	int32_t src = m68k_read_memory_32(srca);
6134 	m68k_areg(regs, srcreg) += 4;
6135 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6136 	m68k_areg (regs, dstreg) = dsta;
6137 	CLEAR_CZNV;
6138 	SET_ZFLG (((int32_t)(src)) == 0);
6139 	SET_NFLG (((int32_t)(src)) < 0);
6140 	m68k_write_memory_32(dsta,src);
6141 }}}}m68k_incpc(2);
6142 return 20;
6143 }
CPUFUNC(op_2120_4)6144 unsigned long CPUFUNC(op_2120_4)(uint32_t opcode) /* MOVE */
6145 {
6146 	uint32_t srcreg = (opcode & 7);
6147 	uint32_t dstreg = (opcode >> 9) & 7;
6148 	OpcodeFamily = 30; CurrentInstrCycles = 22;
6149 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
6150 {	int32_t src = m68k_read_memory_32(srca);
6151 	m68k_areg (regs, srcreg) = srca;
6152 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6153 	m68k_areg (regs, dstreg) = dsta;
6154 	CLEAR_CZNV;
6155 	SET_ZFLG (((int32_t)(src)) == 0);
6156 	SET_NFLG (((int32_t)(src)) < 0);
6157 	m68k_write_memory_32(dsta,src);
6158 }}}}m68k_incpc(2);
6159 return 22;
6160 }
CPUFUNC(op_2128_4)6161 unsigned long CPUFUNC(op_2128_4)(uint32_t opcode) /* MOVE */
6162 {
6163 	uint32_t srcreg = (opcode & 7);
6164 	uint32_t dstreg = (opcode >> 9) & 7;
6165 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6166 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
6167 {	int32_t src = m68k_read_memory_32(srca);
6168 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6169 	m68k_areg (regs, dstreg) = dsta;
6170 	CLEAR_CZNV;
6171 	SET_ZFLG (((int32_t)(src)) == 0);
6172 	SET_NFLG (((int32_t)(src)) < 0);
6173 	m68k_write_memory_32(dsta,src);
6174 }}}}m68k_incpc(4);
6175 return 24;
6176 }
CPUFUNC(op_2130_4)6177 unsigned long CPUFUNC(op_2130_4)(uint32_t opcode) /* MOVE */
6178 {
6179 	uint32_t srcreg = (opcode & 7);
6180 	uint32_t dstreg = (opcode >> 9) & 7;
6181 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6182 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
6183 	BusCyclePenalty += 2;
6184 {	int32_t src = m68k_read_memory_32(srca);
6185 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6186 	m68k_areg (regs, dstreg) = dsta;
6187 	CLEAR_CZNV;
6188 	SET_ZFLG (((int32_t)(src)) == 0);
6189 	SET_NFLG (((int32_t)(src)) < 0);
6190 	m68k_write_memory_32(dsta,src);
6191 }}}}m68k_incpc(4);
6192 return 26;
6193 }
CPUFUNC(op_2138_4)6194 unsigned long CPUFUNC(op_2138_4)(uint32_t opcode) /* MOVE */
6195 {
6196 	uint32_t dstreg = (opcode >> 9) & 7;
6197 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6198 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
6199 {	int32_t src = m68k_read_memory_32(srca);
6200 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6201 	m68k_areg (regs, dstreg) = dsta;
6202 	CLEAR_CZNV;
6203 	SET_ZFLG (((int32_t)(src)) == 0);
6204 	SET_NFLG (((int32_t)(src)) < 0);
6205 	m68k_write_memory_32(dsta,src);
6206 }}}}m68k_incpc(4);
6207 return 24;
6208 }
6209 #endif
6210 
6211 #ifdef PART_3
CPUFUNC(op_2139_4)6212 unsigned long CPUFUNC(op_2139_4)(uint32_t opcode) /* MOVE */
6213 {
6214 	uint32_t dstreg = (opcode >> 9) & 7;
6215 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6216 {{	uint32_t srca = get_ilong(2);
6217 {	int32_t src = m68k_read_memory_32(srca);
6218 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6219 	m68k_areg (regs, dstreg) = dsta;
6220 	CLEAR_CZNV;
6221 	SET_ZFLG (((int32_t)(src)) == 0);
6222 	SET_NFLG (((int32_t)(src)) < 0);
6223 	m68k_write_memory_32(dsta,src);
6224 }}}}m68k_incpc(6);
6225 return 28;
6226 }
CPUFUNC(op_213a_4)6227 unsigned long CPUFUNC(op_213a_4)(uint32_t opcode) /* MOVE */
6228 {
6229 	uint32_t dstreg = (opcode >> 9) & 7;
6230 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6231 {{	uint32_t srca = m68k_getpc () + 2;
6232 	srca += (int32_t)(int16_t)get_iword(2);
6233 {	int32_t src = m68k_read_memory_32(srca);
6234 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6235 	m68k_areg (regs, dstreg) = dsta;
6236 	CLEAR_CZNV;
6237 	SET_ZFLG (((int32_t)(src)) == 0);
6238 	SET_NFLG (((int32_t)(src)) < 0);
6239 	m68k_write_memory_32(dsta,src);
6240 }}}}m68k_incpc(4);
6241 return 24;
6242 }
CPUFUNC(op_213b_4)6243 unsigned long CPUFUNC(op_213b_4)(uint32_t opcode) /* MOVE */
6244 {
6245 	uint32_t dstreg = (opcode >> 9) & 7;
6246 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6247 {{	uint32_t tmppc = m68k_getpc() + 2;
6248 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
6249 	BusCyclePenalty += 2;
6250 {	int32_t src = m68k_read_memory_32(srca);
6251 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6252 	m68k_areg (regs, dstreg) = dsta;
6253 	CLEAR_CZNV;
6254 	SET_ZFLG (((int32_t)(src)) == 0);
6255 	SET_NFLG (((int32_t)(src)) < 0);
6256 	m68k_write_memory_32(dsta,src);
6257 }}}}m68k_incpc(4);
6258 return 26;
6259 }
CPUFUNC(op_213c_4)6260 unsigned long CPUFUNC(op_213c_4)(uint32_t opcode) /* MOVE */
6261 {
6262 	uint32_t dstreg = (opcode >> 9) & 7;
6263 	OpcodeFamily = 30; CurrentInstrCycles = 20;
6264 {{	int32_t src = get_ilong(2);
6265 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
6266 	m68k_areg (regs, dstreg) = dsta;
6267 	CLEAR_CZNV;
6268 	SET_ZFLG (((int32_t)(src)) == 0);
6269 	SET_NFLG (((int32_t)(src)) < 0);
6270 	m68k_write_memory_32(dsta,src);
6271 }}}m68k_incpc(6);
6272 return 20;
6273 }
CPUFUNC(op_2140_4)6274 unsigned long CPUFUNC(op_2140_4)(uint32_t opcode) /* MOVE */
6275 {
6276 	uint32_t srcreg = (opcode & 7);
6277 	uint32_t dstreg = (opcode >> 9) & 7;
6278 	OpcodeFamily = 30; CurrentInstrCycles = 16;
6279 {{	int32_t src = m68k_dreg(regs, srcreg);
6280 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
6281 	CLEAR_CZNV;
6282 	SET_ZFLG (((int32_t)(src)) == 0);
6283 	SET_NFLG (((int32_t)(src)) < 0);
6284 	m68k_write_memory_32(dsta,src);
6285 }}}m68k_incpc(4);
6286 return 16;
6287 }
CPUFUNC(op_2148_4)6288 unsigned long CPUFUNC(op_2148_4)(uint32_t opcode) /* MOVE */
6289 {
6290 	uint32_t srcreg = (opcode & 7);
6291 	uint32_t dstreg = (opcode >> 9) & 7;
6292 	OpcodeFamily = 30; CurrentInstrCycles = 16;
6293 {{	int32_t src = m68k_areg(regs, srcreg);
6294 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
6295 	CLEAR_CZNV;
6296 	SET_ZFLG (((int32_t)(src)) == 0);
6297 	SET_NFLG (((int32_t)(src)) < 0);
6298 	m68k_write_memory_32(dsta,src);
6299 }}}m68k_incpc(4);
6300 return 16;
6301 }
CPUFUNC(op_2150_4)6302 unsigned long CPUFUNC(op_2150_4)(uint32_t opcode) /* MOVE */
6303 {
6304 	uint32_t srcreg = (opcode & 7);
6305 	uint32_t dstreg = (opcode >> 9) & 7;
6306 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6307 {{	uint32_t srca = m68k_areg(regs, srcreg);
6308 {	int32_t src = m68k_read_memory_32(srca);
6309 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
6310 	CLEAR_CZNV;
6311 	SET_ZFLG (((int32_t)(src)) == 0);
6312 	SET_NFLG (((int32_t)(src)) < 0);
6313 	m68k_write_memory_32(dsta,src);
6314 }}}}m68k_incpc(4);
6315 return 24;
6316 }
CPUFUNC(op_2158_4)6317 unsigned long CPUFUNC(op_2158_4)(uint32_t opcode) /* MOVE */
6318 {
6319 	uint32_t srcreg = (opcode & 7);
6320 	uint32_t dstreg = (opcode >> 9) & 7;
6321 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6322 {{	uint32_t srca = m68k_areg(regs, srcreg);
6323 {	int32_t src = m68k_read_memory_32(srca);
6324 	m68k_areg(regs, srcreg) += 4;
6325 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
6326 	CLEAR_CZNV;
6327 	SET_ZFLG (((int32_t)(src)) == 0);
6328 	SET_NFLG (((int32_t)(src)) < 0);
6329 	m68k_write_memory_32(dsta,src);
6330 }}}}m68k_incpc(4);
6331 return 24;
6332 }
CPUFUNC(op_2160_4)6333 unsigned long CPUFUNC(op_2160_4)(uint32_t opcode) /* MOVE */
6334 {
6335 	uint32_t srcreg = (opcode & 7);
6336 	uint32_t dstreg = (opcode >> 9) & 7;
6337 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6338 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
6339 {	int32_t src = m68k_read_memory_32(srca);
6340 	m68k_areg (regs, srcreg) = srca;
6341 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
6342 	CLEAR_CZNV;
6343 	SET_ZFLG (((int32_t)(src)) == 0);
6344 	SET_NFLG (((int32_t)(src)) < 0);
6345 	m68k_write_memory_32(dsta,src);
6346 }}}}m68k_incpc(4);
6347 return 26;
6348 }
CPUFUNC(op_2168_4)6349 unsigned long CPUFUNC(op_2168_4)(uint32_t opcode) /* MOVE */
6350 {
6351 	uint32_t srcreg = (opcode & 7);
6352 	uint32_t dstreg = (opcode >> 9) & 7;
6353 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6354 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
6355 {	int32_t src = m68k_read_memory_32(srca);
6356 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
6357 	CLEAR_CZNV;
6358 	SET_ZFLG (((int32_t)(src)) == 0);
6359 	SET_NFLG (((int32_t)(src)) < 0);
6360 	m68k_write_memory_32(dsta,src);
6361 }}}}m68k_incpc(6);
6362 return 28;
6363 }
CPUFUNC(op_2170_4)6364 unsigned long CPUFUNC(op_2170_4)(uint32_t opcode) /* MOVE */
6365 {
6366 	uint32_t srcreg = (opcode & 7);
6367 	uint32_t dstreg = (opcode >> 9) & 7;
6368 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6369 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
6370 	BusCyclePenalty += 2;
6371 {	int32_t src = m68k_read_memory_32(srca);
6372 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
6373 	CLEAR_CZNV;
6374 	SET_ZFLG (((int32_t)(src)) == 0);
6375 	SET_NFLG (((int32_t)(src)) < 0);
6376 	m68k_write_memory_32(dsta,src);
6377 }}}}m68k_incpc(6);
6378 return 30;
6379 }
CPUFUNC(op_2178_4)6380 unsigned long CPUFUNC(op_2178_4)(uint32_t opcode) /* MOVE */
6381 {
6382 	uint32_t dstreg = (opcode >> 9) & 7;
6383 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6384 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
6385 {	int32_t src = m68k_read_memory_32(srca);
6386 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
6387 	CLEAR_CZNV;
6388 	SET_ZFLG (((int32_t)(src)) == 0);
6389 	SET_NFLG (((int32_t)(src)) < 0);
6390 	m68k_write_memory_32(dsta,src);
6391 }}}}m68k_incpc(6);
6392 return 28;
6393 }
CPUFUNC(op_2179_4)6394 unsigned long CPUFUNC(op_2179_4)(uint32_t opcode) /* MOVE */
6395 {
6396 	uint32_t dstreg = (opcode >> 9) & 7;
6397 	OpcodeFamily = 30; CurrentInstrCycles = 32;
6398 {{	uint32_t srca = get_ilong(2);
6399 {	int32_t src = m68k_read_memory_32(srca);
6400 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
6401 	CLEAR_CZNV;
6402 	SET_ZFLG (((int32_t)(src)) == 0);
6403 	SET_NFLG (((int32_t)(src)) < 0);
6404 	m68k_write_memory_32(dsta,src);
6405 }}}}m68k_incpc(8);
6406 return 32;
6407 }
CPUFUNC(op_217a_4)6408 unsigned long CPUFUNC(op_217a_4)(uint32_t opcode) /* MOVE */
6409 {
6410 	uint32_t dstreg = (opcode >> 9) & 7;
6411 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6412 {{	uint32_t srca = m68k_getpc () + 2;
6413 	srca += (int32_t)(int16_t)get_iword(2);
6414 {	int32_t src = m68k_read_memory_32(srca);
6415 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
6416 	CLEAR_CZNV;
6417 	SET_ZFLG (((int32_t)(src)) == 0);
6418 	SET_NFLG (((int32_t)(src)) < 0);
6419 	m68k_write_memory_32(dsta,src);
6420 }}}}m68k_incpc(6);
6421 return 28;
6422 }
CPUFUNC(op_217b_4)6423 unsigned long CPUFUNC(op_217b_4)(uint32_t opcode) /* MOVE */
6424 {
6425 	uint32_t dstreg = (opcode >> 9) & 7;
6426 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6427 {{	uint32_t tmppc = m68k_getpc() + 2;
6428 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
6429 	BusCyclePenalty += 2;
6430 {	int32_t src = m68k_read_memory_32(srca);
6431 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
6432 	CLEAR_CZNV;
6433 	SET_ZFLG (((int32_t)(src)) == 0);
6434 	SET_NFLG (((int32_t)(src)) < 0);
6435 	m68k_write_memory_32(dsta,src);
6436 }}}}m68k_incpc(6);
6437 return 30;
6438 }
CPUFUNC(op_217c_4)6439 unsigned long CPUFUNC(op_217c_4)(uint32_t opcode) /* MOVE */
6440 {
6441 	uint32_t dstreg = (opcode >> 9) & 7;
6442 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6443 {{	int32_t src = get_ilong(2);
6444 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
6445 	CLEAR_CZNV;
6446 	SET_ZFLG (((int32_t)(src)) == 0);
6447 	SET_NFLG (((int32_t)(src)) < 0);
6448 	m68k_write_memory_32(dsta,src);
6449 }}}m68k_incpc(8);
6450 return 24;
6451 }
CPUFUNC(op_2180_4)6452 unsigned long CPUFUNC(op_2180_4)(uint32_t opcode) /* MOVE */
6453 {
6454 	uint32_t srcreg = (opcode & 7);
6455 	uint32_t dstreg = (opcode >> 9) & 7;
6456 	OpcodeFamily = 30; CurrentInstrCycles = 18;
6457 {{	int32_t src = m68k_dreg(regs, srcreg);
6458 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
6459 	BusCyclePenalty += 2;
6460 	CLEAR_CZNV;
6461 	SET_ZFLG (((int32_t)(src)) == 0);
6462 	SET_NFLG (((int32_t)(src)) < 0);
6463 	m68k_write_memory_32(dsta,src);
6464 }}}m68k_incpc(4);
6465 return 18;
6466 }
CPUFUNC(op_2188_4)6467 unsigned long CPUFUNC(op_2188_4)(uint32_t opcode) /* MOVE */
6468 {
6469 	uint32_t srcreg = (opcode & 7);
6470 	uint32_t dstreg = (opcode >> 9) & 7;
6471 	OpcodeFamily = 30; CurrentInstrCycles = 18;
6472 {{	int32_t src = m68k_areg(regs, srcreg);
6473 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
6474 	BusCyclePenalty += 2;
6475 	CLEAR_CZNV;
6476 	SET_ZFLG (((int32_t)(src)) == 0);
6477 	SET_NFLG (((int32_t)(src)) < 0);
6478 	m68k_write_memory_32(dsta,src);
6479 }}}m68k_incpc(4);
6480 return 18;
6481 }
CPUFUNC(op_2190_4)6482 unsigned long CPUFUNC(op_2190_4)(uint32_t opcode) /* MOVE */
6483 {
6484 	uint32_t srcreg = (opcode & 7);
6485 	uint32_t dstreg = (opcode >> 9) & 7;
6486 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6487 {{	uint32_t srca = m68k_areg(regs, srcreg);
6488 {	int32_t src = m68k_read_memory_32(srca);
6489 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
6490 	BusCyclePenalty += 2;
6491 	CLEAR_CZNV;
6492 	SET_ZFLG (((int32_t)(src)) == 0);
6493 	SET_NFLG (((int32_t)(src)) < 0);
6494 	m68k_write_memory_32(dsta,src);
6495 }}}}m68k_incpc(4);
6496 return 26;
6497 }
CPUFUNC(op_2198_4)6498 unsigned long CPUFUNC(op_2198_4)(uint32_t opcode) /* MOVE */
6499 {
6500 	uint32_t srcreg = (opcode & 7);
6501 	uint32_t dstreg = (opcode >> 9) & 7;
6502 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6503 {{	uint32_t srca = m68k_areg(regs, srcreg);
6504 {	int32_t src = m68k_read_memory_32(srca);
6505 	m68k_areg(regs, srcreg) += 4;
6506 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
6507 	BusCyclePenalty += 2;
6508 	CLEAR_CZNV;
6509 	SET_ZFLG (((int32_t)(src)) == 0);
6510 	SET_NFLG (((int32_t)(src)) < 0);
6511 	m68k_write_memory_32(dsta,src);
6512 }}}}m68k_incpc(4);
6513 return 26;
6514 }
CPUFUNC(op_21a0_4)6515 unsigned long CPUFUNC(op_21a0_4)(uint32_t opcode) /* MOVE */
6516 {
6517 	uint32_t srcreg = (opcode & 7);
6518 	uint32_t dstreg = (opcode >> 9) & 7;
6519 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6520 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
6521 {	int32_t src = m68k_read_memory_32(srca);
6522 	m68k_areg (regs, srcreg) = srca;
6523 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
6524 	BusCyclePenalty += 2;
6525 	CLEAR_CZNV;
6526 	SET_ZFLG (((int32_t)(src)) == 0);
6527 	SET_NFLG (((int32_t)(src)) < 0);
6528 	m68k_write_memory_32(dsta,src);
6529 }}}}m68k_incpc(4);
6530 return 28;
6531 }
CPUFUNC(op_21a8_4)6532 unsigned long CPUFUNC(op_21a8_4)(uint32_t opcode) /* MOVE */
6533 {
6534 	uint32_t srcreg = (opcode & 7);
6535 	uint32_t dstreg = (opcode >> 9) & 7;
6536 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6537 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
6538 {	int32_t src = m68k_read_memory_32(srca);
6539 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
6540 	BusCyclePenalty += 2;
6541 	CLEAR_CZNV;
6542 	SET_ZFLG (((int32_t)(src)) == 0);
6543 	SET_NFLG (((int32_t)(src)) < 0);
6544 	m68k_write_memory_32(dsta,src);
6545 }}}}m68k_incpc(6);
6546 return 30;
6547 }
CPUFUNC(op_21b0_4)6548 unsigned long CPUFUNC(op_21b0_4)(uint32_t opcode) /* MOVE */
6549 {
6550 	uint32_t srcreg = (opcode & 7);
6551 	uint32_t dstreg = (opcode >> 9) & 7;
6552 	OpcodeFamily = 30; CurrentInstrCycles = 32;
6553 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
6554 	BusCyclePenalty += 2;
6555 {	int32_t src = m68k_read_memory_32(srca);
6556 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
6557 	BusCyclePenalty += 2;
6558 	CLEAR_CZNV;
6559 	SET_ZFLG (((int32_t)(src)) == 0);
6560 	SET_NFLG (((int32_t)(src)) < 0);
6561 	m68k_write_memory_32(dsta,src);
6562 }}}}m68k_incpc(6);
6563 return 32;
6564 }
CPUFUNC(op_21b8_4)6565 unsigned long CPUFUNC(op_21b8_4)(uint32_t opcode) /* MOVE */
6566 {
6567 	uint32_t dstreg = (opcode >> 9) & 7;
6568 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6569 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
6570 {	int32_t src = m68k_read_memory_32(srca);
6571 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
6572 	BusCyclePenalty += 2;
6573 	CLEAR_CZNV;
6574 	SET_ZFLG (((int32_t)(src)) == 0);
6575 	SET_NFLG (((int32_t)(src)) < 0);
6576 	m68k_write_memory_32(dsta,src);
6577 }}}}m68k_incpc(6);
6578 return 30;
6579 }
CPUFUNC(op_21b9_4)6580 unsigned long CPUFUNC(op_21b9_4)(uint32_t opcode) /* MOVE */
6581 {
6582 	uint32_t dstreg = (opcode >> 9) & 7;
6583 	OpcodeFamily = 30; CurrentInstrCycles = 34;
6584 {{	uint32_t srca = get_ilong(2);
6585 {	int32_t src = m68k_read_memory_32(srca);
6586 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
6587 	BusCyclePenalty += 2;
6588 	CLEAR_CZNV;
6589 	SET_ZFLG (((int32_t)(src)) == 0);
6590 	SET_NFLG (((int32_t)(src)) < 0);
6591 	m68k_write_memory_32(dsta,src);
6592 }}}}m68k_incpc(8);
6593 return 34;
6594 }
CPUFUNC(op_21ba_4)6595 unsigned long CPUFUNC(op_21ba_4)(uint32_t opcode) /* MOVE */
6596 {
6597 	uint32_t dstreg = (opcode >> 9) & 7;
6598 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6599 {{	uint32_t srca = m68k_getpc () + 2;
6600 	srca += (int32_t)(int16_t)get_iword(2);
6601 {	int32_t src = m68k_read_memory_32(srca);
6602 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
6603 	BusCyclePenalty += 2;
6604 	CLEAR_CZNV;
6605 	SET_ZFLG (((int32_t)(src)) == 0);
6606 	SET_NFLG (((int32_t)(src)) < 0);
6607 	m68k_write_memory_32(dsta,src);
6608 }}}}m68k_incpc(6);
6609 return 30;
6610 }
CPUFUNC(op_21bb_4)6611 unsigned long CPUFUNC(op_21bb_4)(uint32_t opcode) /* MOVE */
6612 {
6613 	uint32_t dstreg = (opcode >> 9) & 7;
6614 	OpcodeFamily = 30; CurrentInstrCycles = 32;
6615 {{	uint32_t tmppc = m68k_getpc() + 2;
6616 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
6617 	BusCyclePenalty += 2;
6618 {	int32_t src = m68k_read_memory_32(srca);
6619 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
6620 	BusCyclePenalty += 2;
6621 	CLEAR_CZNV;
6622 	SET_ZFLG (((int32_t)(src)) == 0);
6623 	SET_NFLG (((int32_t)(src)) < 0);
6624 	m68k_write_memory_32(dsta,src);
6625 }}}}m68k_incpc(6);
6626 return 32;
6627 }
CPUFUNC(op_21bc_4)6628 unsigned long CPUFUNC(op_21bc_4)(uint32_t opcode) /* MOVE */
6629 {
6630 	uint32_t dstreg = (opcode >> 9) & 7;
6631 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6632 {{	int32_t src = get_ilong(2);
6633 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
6634 	BusCyclePenalty += 2;
6635 	CLEAR_CZNV;
6636 	SET_ZFLG (((int32_t)(src)) == 0);
6637 	SET_NFLG (((int32_t)(src)) < 0);
6638 	m68k_write_memory_32(dsta,src);
6639 }}}m68k_incpc(8);
6640 return 26;
6641 }
CPUFUNC(op_21c0_4)6642 unsigned long CPUFUNC(op_21c0_4)(uint32_t opcode) /* MOVE */
6643 {
6644 	uint32_t srcreg = (opcode & 7);
6645 	OpcodeFamily = 30; CurrentInstrCycles = 16;
6646 {{	int32_t src = m68k_dreg(regs, srcreg);
6647 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
6648 	CLEAR_CZNV;
6649 	SET_ZFLG (((int32_t)(src)) == 0);
6650 	SET_NFLG (((int32_t)(src)) < 0);
6651 	m68k_write_memory_32(dsta,src);
6652 }}}m68k_incpc(4);
6653 return 16;
6654 }
CPUFUNC(op_21c8_4)6655 unsigned long CPUFUNC(op_21c8_4)(uint32_t opcode) /* MOVE */
6656 {
6657 	uint32_t srcreg = (opcode & 7);
6658 	OpcodeFamily = 30; CurrentInstrCycles = 16;
6659 {{	int32_t src = m68k_areg(regs, srcreg);
6660 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
6661 	CLEAR_CZNV;
6662 	SET_ZFLG (((int32_t)(src)) == 0);
6663 	SET_NFLG (((int32_t)(src)) < 0);
6664 	m68k_write_memory_32(dsta,src);
6665 }}}m68k_incpc(4);
6666 return 16;
6667 }
CPUFUNC(op_21d0_4)6668 unsigned long CPUFUNC(op_21d0_4)(uint32_t opcode) /* MOVE */
6669 {
6670 	uint32_t srcreg = (opcode & 7);
6671 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6672 {{	uint32_t srca = m68k_areg(regs, srcreg);
6673 {	int32_t src = m68k_read_memory_32(srca);
6674 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
6675 	CLEAR_CZNV;
6676 	SET_ZFLG (((int32_t)(src)) == 0);
6677 	SET_NFLG (((int32_t)(src)) < 0);
6678 	m68k_write_memory_32(dsta,src);
6679 }}}}m68k_incpc(4);
6680 return 24;
6681 }
CPUFUNC(op_21d8_4)6682 unsigned long CPUFUNC(op_21d8_4)(uint32_t opcode) /* MOVE */
6683 {
6684 	uint32_t srcreg = (opcode & 7);
6685 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6686 {{	uint32_t srca = m68k_areg(regs, srcreg);
6687 {	int32_t src = m68k_read_memory_32(srca);
6688 	m68k_areg(regs, srcreg) += 4;
6689 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
6690 	CLEAR_CZNV;
6691 	SET_ZFLG (((int32_t)(src)) == 0);
6692 	SET_NFLG (((int32_t)(src)) < 0);
6693 	m68k_write_memory_32(dsta,src);
6694 }}}}m68k_incpc(4);
6695 return 24;
6696 }
CPUFUNC(op_21e0_4)6697 unsigned long CPUFUNC(op_21e0_4)(uint32_t opcode) /* MOVE */
6698 {
6699 	uint32_t srcreg = (opcode & 7);
6700 	OpcodeFamily = 30; CurrentInstrCycles = 26;
6701 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
6702 {	int32_t src = m68k_read_memory_32(srca);
6703 	m68k_areg (regs, srcreg) = srca;
6704 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
6705 	CLEAR_CZNV;
6706 	SET_ZFLG (((int32_t)(src)) == 0);
6707 	SET_NFLG (((int32_t)(src)) < 0);
6708 	m68k_write_memory_32(dsta,src);
6709 }}}}m68k_incpc(4);
6710 return 26;
6711 }
CPUFUNC(op_21e8_4)6712 unsigned long CPUFUNC(op_21e8_4)(uint32_t opcode) /* MOVE */
6713 {
6714 	uint32_t srcreg = (opcode & 7);
6715 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6716 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
6717 {	int32_t src = m68k_read_memory_32(srca);
6718 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
6719 	CLEAR_CZNV;
6720 	SET_ZFLG (((int32_t)(src)) == 0);
6721 	SET_NFLG (((int32_t)(src)) < 0);
6722 	m68k_write_memory_32(dsta,src);
6723 }}}}m68k_incpc(6);
6724 return 28;
6725 }
CPUFUNC(op_21f0_4)6726 unsigned long CPUFUNC(op_21f0_4)(uint32_t opcode) /* MOVE */
6727 {
6728 	uint32_t srcreg = (opcode & 7);
6729 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6730 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
6731 	BusCyclePenalty += 2;
6732 {	int32_t src = m68k_read_memory_32(srca);
6733 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
6734 	CLEAR_CZNV;
6735 	SET_ZFLG (((int32_t)(src)) == 0);
6736 	SET_NFLG (((int32_t)(src)) < 0);
6737 	m68k_write_memory_32(dsta,src);
6738 }}}}m68k_incpc(6);
6739 return 30;
6740 }
CPUFUNC(op_21f8_4)6741 unsigned long CPUFUNC(op_21f8_4)(uint32_t opcode) /* MOVE */
6742 {
6743 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6744 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
6745 {	int32_t src = m68k_read_memory_32(srca);
6746 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
6747 	CLEAR_CZNV;
6748 	SET_ZFLG (((int32_t)(src)) == 0);
6749 	SET_NFLG (((int32_t)(src)) < 0);
6750 	m68k_write_memory_32(dsta,src);
6751 }}}}m68k_incpc(6);
6752 return 28;
6753 }
CPUFUNC(op_21f9_4)6754 unsigned long CPUFUNC(op_21f9_4)(uint32_t opcode) /* MOVE */
6755 {
6756 	OpcodeFamily = 30; CurrentInstrCycles = 32;
6757 {{	uint32_t srca = get_ilong(2);
6758 {	int32_t src = m68k_read_memory_32(srca);
6759 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
6760 	CLEAR_CZNV;
6761 	SET_ZFLG (((int32_t)(src)) == 0);
6762 	SET_NFLG (((int32_t)(src)) < 0);
6763 	m68k_write_memory_32(dsta,src);
6764 }}}}m68k_incpc(8);
6765 return 32;
6766 }
CPUFUNC(op_21fa_4)6767 unsigned long CPUFUNC(op_21fa_4)(uint32_t opcode) /* MOVE */
6768 {
6769 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6770 {{	uint32_t srca = m68k_getpc () + 2;
6771 	srca += (int32_t)(int16_t)get_iword(2);
6772 {	int32_t src = m68k_read_memory_32(srca);
6773 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
6774 	CLEAR_CZNV;
6775 	SET_ZFLG (((int32_t)(src)) == 0);
6776 	SET_NFLG (((int32_t)(src)) < 0);
6777 	m68k_write_memory_32(dsta,src);
6778 }}}}m68k_incpc(6);
6779 return 28;
6780 }
CPUFUNC(op_21fb_4)6781 unsigned long CPUFUNC(op_21fb_4)(uint32_t opcode) /* MOVE */
6782 {
6783 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6784 {{	uint32_t tmppc = m68k_getpc() + 2;
6785 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
6786 	BusCyclePenalty += 2;
6787 {	int32_t src = m68k_read_memory_32(srca);
6788 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
6789 	CLEAR_CZNV;
6790 	SET_ZFLG (((int32_t)(src)) == 0);
6791 	SET_NFLG (((int32_t)(src)) < 0);
6792 	m68k_write_memory_32(dsta,src);
6793 }}}}m68k_incpc(6);
6794 return 30;
6795 }
CPUFUNC(op_21fc_4)6796 unsigned long CPUFUNC(op_21fc_4)(uint32_t opcode) /* MOVE */
6797 {
6798 	OpcodeFamily = 30; CurrentInstrCycles = 24;
6799 {{	int32_t src = get_ilong(2);
6800 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
6801 	CLEAR_CZNV;
6802 	SET_ZFLG (((int32_t)(src)) == 0);
6803 	SET_NFLG (((int32_t)(src)) < 0);
6804 	m68k_write_memory_32(dsta,src);
6805 }}}m68k_incpc(8);
6806 return 24;
6807 }
CPUFUNC(op_23c0_4)6808 unsigned long CPUFUNC(op_23c0_4)(uint32_t opcode) /* MOVE */
6809 {
6810 	uint32_t srcreg = (opcode & 7);
6811 	OpcodeFamily = 30; CurrentInstrCycles = 20;
6812 {{	int32_t src = m68k_dreg(regs, srcreg);
6813 {	uint32_t dsta = get_ilong(2);
6814 	CLEAR_CZNV;
6815 	SET_ZFLG (((int32_t)(src)) == 0);
6816 	SET_NFLG (((int32_t)(src)) < 0);
6817 	m68k_write_memory_32(dsta,src);
6818 }}}m68k_incpc(6);
6819 return 20;
6820 }
CPUFUNC(op_23c8_4)6821 unsigned long CPUFUNC(op_23c8_4)(uint32_t opcode) /* MOVE */
6822 {
6823 	uint32_t srcreg = (opcode & 7);
6824 	OpcodeFamily = 30; CurrentInstrCycles = 20;
6825 {{	int32_t src = m68k_areg(regs, srcreg);
6826 {	uint32_t dsta = get_ilong(2);
6827 	CLEAR_CZNV;
6828 	SET_ZFLG (((int32_t)(src)) == 0);
6829 	SET_NFLG (((int32_t)(src)) < 0);
6830 	m68k_write_memory_32(dsta,src);
6831 }}}m68k_incpc(6);
6832 return 20;
6833 }
CPUFUNC(op_23d0_4)6834 unsigned long CPUFUNC(op_23d0_4)(uint32_t opcode) /* MOVE */
6835 {
6836 	uint32_t srcreg = (opcode & 7);
6837 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6838 {{	uint32_t srca = m68k_areg(regs, srcreg);
6839 {	int32_t src = m68k_read_memory_32(srca);
6840 {	uint32_t dsta = get_ilong(2);
6841 	CLEAR_CZNV;
6842 	SET_ZFLG (((int32_t)(src)) == 0);
6843 	SET_NFLG (((int32_t)(src)) < 0);
6844 	m68k_write_memory_32(dsta,src);
6845 }}}}m68k_incpc(6);
6846 return 28;
6847 }
CPUFUNC(op_23d8_4)6848 unsigned long CPUFUNC(op_23d8_4)(uint32_t opcode) /* MOVE */
6849 {
6850 	uint32_t srcreg = (opcode & 7);
6851 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6852 {{	uint32_t srca = m68k_areg(regs, srcreg);
6853 {	int32_t src = m68k_read_memory_32(srca);
6854 	m68k_areg(regs, srcreg) += 4;
6855 {	uint32_t dsta = get_ilong(2);
6856 	CLEAR_CZNV;
6857 	SET_ZFLG (((int32_t)(src)) == 0);
6858 	SET_NFLG (((int32_t)(src)) < 0);
6859 	m68k_write_memory_32(dsta,src);
6860 }}}}m68k_incpc(6);
6861 return 28;
6862 }
CPUFUNC(op_23e0_4)6863 unsigned long CPUFUNC(op_23e0_4)(uint32_t opcode) /* MOVE */
6864 {
6865 	uint32_t srcreg = (opcode & 7);
6866 	OpcodeFamily = 30; CurrentInstrCycles = 30;
6867 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
6868 {	int32_t src = m68k_read_memory_32(srca);
6869 	m68k_areg (regs, srcreg) = srca;
6870 {	uint32_t dsta = get_ilong(2);
6871 	CLEAR_CZNV;
6872 	SET_ZFLG (((int32_t)(src)) == 0);
6873 	SET_NFLG (((int32_t)(src)) < 0);
6874 	m68k_write_memory_32(dsta,src);
6875 }}}}m68k_incpc(6);
6876 return 30;
6877 }
CPUFUNC(op_23e8_4)6878 unsigned long CPUFUNC(op_23e8_4)(uint32_t opcode) /* MOVE */
6879 {
6880 	uint32_t srcreg = (opcode & 7);
6881 	OpcodeFamily = 30; CurrentInstrCycles = 32;
6882 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
6883 {	int32_t src = m68k_read_memory_32(srca);
6884 {	uint32_t dsta = get_ilong(4);
6885 	CLEAR_CZNV;
6886 	SET_ZFLG (((int32_t)(src)) == 0);
6887 	SET_NFLG (((int32_t)(src)) < 0);
6888 	m68k_write_memory_32(dsta,src);
6889 }}}}m68k_incpc(8);
6890 return 32;
6891 }
CPUFUNC(op_23f0_4)6892 unsigned long CPUFUNC(op_23f0_4)(uint32_t opcode) /* MOVE */
6893 {
6894 	uint32_t srcreg = (opcode & 7);
6895 	OpcodeFamily = 30; CurrentInstrCycles = 34;
6896 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
6897 	BusCyclePenalty += 2;
6898 {	int32_t src = m68k_read_memory_32(srca);
6899 {	uint32_t dsta = get_ilong(4);
6900 	CLEAR_CZNV;
6901 	SET_ZFLG (((int32_t)(src)) == 0);
6902 	SET_NFLG (((int32_t)(src)) < 0);
6903 	m68k_write_memory_32(dsta,src);
6904 }}}}m68k_incpc(8);
6905 return 34;
6906 }
CPUFUNC(op_23f8_4)6907 unsigned long CPUFUNC(op_23f8_4)(uint32_t opcode) /* MOVE */
6908 {
6909 	OpcodeFamily = 30; CurrentInstrCycles = 32;
6910 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
6911 {	int32_t src = m68k_read_memory_32(srca);
6912 {	uint32_t dsta = get_ilong(4);
6913 	CLEAR_CZNV;
6914 	SET_ZFLG (((int32_t)(src)) == 0);
6915 	SET_NFLG (((int32_t)(src)) < 0);
6916 	m68k_write_memory_32(dsta,src);
6917 }}}}m68k_incpc(8);
6918 return 32;
6919 }
CPUFUNC(op_23f9_4)6920 unsigned long CPUFUNC(op_23f9_4)(uint32_t opcode) /* MOVE */
6921 {
6922 	OpcodeFamily = 30; CurrentInstrCycles = 36;
6923 {{	uint32_t srca = get_ilong(2);
6924 {	int32_t src = m68k_read_memory_32(srca);
6925 {	uint32_t dsta = get_ilong(6);
6926 	CLEAR_CZNV;
6927 	SET_ZFLG (((int32_t)(src)) == 0);
6928 	SET_NFLG (((int32_t)(src)) < 0);
6929 	m68k_write_memory_32(dsta,src);
6930 }}}}m68k_incpc(10);
6931 return 36;
6932 }
CPUFUNC(op_23fa_4)6933 unsigned long CPUFUNC(op_23fa_4)(uint32_t opcode) /* MOVE */
6934 {
6935 	OpcodeFamily = 30; CurrentInstrCycles = 32;
6936 {{	uint32_t srca = m68k_getpc () + 2;
6937 	srca += (int32_t)(int16_t)get_iword(2);
6938 {	int32_t src = m68k_read_memory_32(srca);
6939 {	uint32_t dsta = get_ilong(4);
6940 	CLEAR_CZNV;
6941 	SET_ZFLG (((int32_t)(src)) == 0);
6942 	SET_NFLG (((int32_t)(src)) < 0);
6943 	m68k_write_memory_32(dsta,src);
6944 }}}}m68k_incpc(8);
6945 return 32;
6946 }
CPUFUNC(op_23fb_4)6947 unsigned long CPUFUNC(op_23fb_4)(uint32_t opcode) /* MOVE */
6948 {
6949 	OpcodeFamily = 30; CurrentInstrCycles = 34;
6950 {{	uint32_t tmppc = m68k_getpc() + 2;
6951 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
6952 	BusCyclePenalty += 2;
6953 {	int32_t src = m68k_read_memory_32(srca);
6954 {	uint32_t dsta = get_ilong(4);
6955 	CLEAR_CZNV;
6956 	SET_ZFLG (((int32_t)(src)) == 0);
6957 	SET_NFLG (((int32_t)(src)) < 0);
6958 	m68k_write_memory_32(dsta,src);
6959 }}}}m68k_incpc(8);
6960 return 34;
6961 }
CPUFUNC(op_23fc_4)6962 unsigned long CPUFUNC(op_23fc_4)(uint32_t opcode) /* MOVE */
6963 {
6964 	OpcodeFamily = 30; CurrentInstrCycles = 28;
6965 {{	int32_t src = get_ilong(2);
6966 {	uint32_t dsta = get_ilong(6);
6967 	CLEAR_CZNV;
6968 	SET_ZFLG (((int32_t)(src)) == 0);
6969 	SET_NFLG (((int32_t)(src)) < 0);
6970 	m68k_write_memory_32(dsta,src);
6971 }}}m68k_incpc(10);
6972 return 28;
6973 }
CPUFUNC(op_3000_4)6974 unsigned long CPUFUNC(op_3000_4)(uint32_t opcode) /* MOVE */
6975 {
6976 	uint32_t srcreg = (opcode & 7);
6977 	uint32_t dstreg = (opcode >> 9) & 7;
6978 	OpcodeFamily = 30; CurrentInstrCycles = 4;
6979 {{	int16_t src = m68k_dreg(regs, srcreg);
6980 {	CLEAR_CZNV;
6981 	SET_ZFLG (((int16_t)(src)) == 0);
6982 	SET_NFLG (((int16_t)(src)) < 0);
6983 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
6984 }}}m68k_incpc(2);
6985 return 4;
6986 }
CPUFUNC(op_3008_4)6987 unsigned long CPUFUNC(op_3008_4)(uint32_t opcode) /* MOVE */
6988 {
6989 	uint32_t srcreg = (opcode & 7);
6990 	uint32_t dstreg = (opcode >> 9) & 7;
6991 	OpcodeFamily = 30; CurrentInstrCycles = 4;
6992 {{	int16_t src = m68k_areg(regs, srcreg);
6993 {	CLEAR_CZNV;
6994 	SET_ZFLG (((int16_t)(src)) == 0);
6995 	SET_NFLG (((int16_t)(src)) < 0);
6996 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
6997 }}}m68k_incpc(2);
6998 return 4;
6999 }
CPUFUNC(op_3010_4)7000 unsigned long CPUFUNC(op_3010_4)(uint32_t opcode) /* MOVE */
7001 {
7002 	uint32_t srcreg = (opcode & 7);
7003 	uint32_t dstreg = (opcode >> 9) & 7;
7004 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7005 {{	uint32_t srca = m68k_areg(regs, srcreg);
7006 {	int16_t src = m68k_read_memory_16(srca);
7007 {	CLEAR_CZNV;
7008 	SET_ZFLG (((int16_t)(src)) == 0);
7009 	SET_NFLG (((int16_t)(src)) < 0);
7010 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7011 }}}}m68k_incpc(2);
7012 return 8;
7013 }
CPUFUNC(op_3018_4)7014 unsigned long CPUFUNC(op_3018_4)(uint32_t opcode) /* MOVE */
7015 {
7016 	uint32_t srcreg = (opcode & 7);
7017 	uint32_t dstreg = (opcode >> 9) & 7;
7018 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7019 {{	uint32_t srca = m68k_areg(regs, srcreg);
7020 {	int16_t src = m68k_read_memory_16(srca);
7021 	m68k_areg(regs, srcreg) += 2;
7022 {	CLEAR_CZNV;
7023 	SET_ZFLG (((int16_t)(src)) == 0);
7024 	SET_NFLG (((int16_t)(src)) < 0);
7025 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7026 }}}}m68k_incpc(2);
7027 return 8;
7028 }
CPUFUNC(op_3020_4)7029 unsigned long CPUFUNC(op_3020_4)(uint32_t opcode) /* MOVE */
7030 {
7031 	uint32_t srcreg = (opcode & 7);
7032 	uint32_t dstreg = (opcode >> 9) & 7;
7033 	OpcodeFamily = 30; CurrentInstrCycles = 10;
7034 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
7035 {	int16_t src = m68k_read_memory_16(srca);
7036 	m68k_areg (regs, srcreg) = srca;
7037 {	CLEAR_CZNV;
7038 	SET_ZFLG (((int16_t)(src)) == 0);
7039 	SET_NFLG (((int16_t)(src)) < 0);
7040 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7041 }}}}m68k_incpc(2);
7042 return 10;
7043 }
CPUFUNC(op_3028_4)7044 unsigned long CPUFUNC(op_3028_4)(uint32_t opcode) /* MOVE */
7045 {
7046 	uint32_t srcreg = (opcode & 7);
7047 	uint32_t dstreg = (opcode >> 9) & 7;
7048 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7049 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
7050 {	int16_t src = m68k_read_memory_16(srca);
7051 {	CLEAR_CZNV;
7052 	SET_ZFLG (((int16_t)(src)) == 0);
7053 	SET_NFLG (((int16_t)(src)) < 0);
7054 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7055 }}}}m68k_incpc(4);
7056 return 12;
7057 }
CPUFUNC(op_3030_4)7058 unsigned long CPUFUNC(op_3030_4)(uint32_t opcode) /* MOVE */
7059 {
7060 	uint32_t srcreg = (opcode & 7);
7061 	uint32_t dstreg = (opcode >> 9) & 7;
7062 	OpcodeFamily = 30; CurrentInstrCycles = 14;
7063 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
7064 	BusCyclePenalty += 2;
7065 {	int16_t src = m68k_read_memory_16(srca);
7066 {	CLEAR_CZNV;
7067 	SET_ZFLG (((int16_t)(src)) == 0);
7068 	SET_NFLG (((int16_t)(src)) < 0);
7069 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7070 }}}}m68k_incpc(4);
7071 return 14;
7072 }
CPUFUNC(op_3038_4)7073 unsigned long CPUFUNC(op_3038_4)(uint32_t opcode) /* MOVE */
7074 {
7075 	uint32_t dstreg = (opcode >> 9) & 7;
7076 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7077 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
7078 {	int16_t src = m68k_read_memory_16(srca);
7079 {	CLEAR_CZNV;
7080 	SET_ZFLG (((int16_t)(src)) == 0);
7081 	SET_NFLG (((int16_t)(src)) < 0);
7082 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7083 }}}}m68k_incpc(4);
7084 return 12;
7085 }
CPUFUNC(op_3039_4)7086 unsigned long CPUFUNC(op_3039_4)(uint32_t opcode) /* MOVE */
7087 {
7088 	uint32_t dstreg = (opcode >> 9) & 7;
7089 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7090 {{	uint32_t srca = get_ilong(2);
7091 {	int16_t src = m68k_read_memory_16(srca);
7092 {	CLEAR_CZNV;
7093 	SET_ZFLG (((int16_t)(src)) == 0);
7094 	SET_NFLG (((int16_t)(src)) < 0);
7095 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7096 }}}}m68k_incpc(6);
7097 return 16;
7098 }
CPUFUNC(op_303a_4)7099 unsigned long CPUFUNC(op_303a_4)(uint32_t opcode) /* MOVE */
7100 {
7101 	uint32_t dstreg = (opcode >> 9) & 7;
7102 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7103 {{	uint32_t srca = m68k_getpc () + 2;
7104 	srca += (int32_t)(int16_t)get_iword(2);
7105 {	int16_t src = m68k_read_memory_16(srca);
7106 {	CLEAR_CZNV;
7107 	SET_ZFLG (((int16_t)(src)) == 0);
7108 	SET_NFLG (((int16_t)(src)) < 0);
7109 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7110 }}}}m68k_incpc(4);
7111 return 12;
7112 }
CPUFUNC(op_303b_4)7113 unsigned long CPUFUNC(op_303b_4)(uint32_t opcode) /* MOVE */
7114 {
7115 	uint32_t dstreg = (opcode >> 9) & 7;
7116 	OpcodeFamily = 30; CurrentInstrCycles = 14;
7117 {{	uint32_t tmppc = m68k_getpc() + 2;
7118 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
7119 	BusCyclePenalty += 2;
7120 {	int16_t src = m68k_read_memory_16(srca);
7121 {	CLEAR_CZNV;
7122 	SET_ZFLG (((int16_t)(src)) == 0);
7123 	SET_NFLG (((int16_t)(src)) < 0);
7124 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7125 }}}}m68k_incpc(4);
7126 return 14;
7127 }
CPUFUNC(op_303c_4)7128 unsigned long CPUFUNC(op_303c_4)(uint32_t opcode) /* MOVE */
7129 {
7130 	uint32_t dstreg = (opcode >> 9) & 7;
7131 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7132 {{	int16_t src = get_iword(2);
7133 {	CLEAR_CZNV;
7134 	SET_ZFLG (((int16_t)(src)) == 0);
7135 	SET_NFLG (((int16_t)(src)) < 0);
7136 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
7137 }}}m68k_incpc(4);
7138 return 8;
7139 }
CPUFUNC(op_3040_4)7140 unsigned long CPUFUNC(op_3040_4)(uint32_t opcode) /* MOVEA */
7141 {
7142 	uint32_t srcreg = (opcode & 7);
7143 	uint32_t dstreg = (opcode >> 9) & 7;
7144 	OpcodeFamily = 31; CurrentInstrCycles = 4;
7145 {{	int16_t src = m68k_dreg(regs, srcreg);
7146 {	uint32_t val = (int32_t)(int16_t)src;
7147 	m68k_areg(regs, dstreg) = (val);
7148 }}}m68k_incpc(2);
7149 return 4;
7150 }
CPUFUNC(op_3048_4)7151 unsigned long CPUFUNC(op_3048_4)(uint32_t opcode) /* MOVEA */
7152 {
7153 	uint32_t srcreg = (opcode & 7);
7154 	uint32_t dstreg = (opcode >> 9) & 7;
7155 	OpcodeFamily = 31; CurrentInstrCycles = 4;
7156 {{	int16_t src = m68k_areg(regs, srcreg);
7157 {	uint32_t val = (int32_t)(int16_t)src;
7158 	m68k_areg(regs, dstreg) = (val);
7159 }}}m68k_incpc(2);
7160 return 4;
7161 }
CPUFUNC(op_3050_4)7162 unsigned long CPUFUNC(op_3050_4)(uint32_t opcode) /* MOVEA */
7163 {
7164 	uint32_t srcreg = (opcode & 7);
7165 	uint32_t dstreg = (opcode >> 9) & 7;
7166 	OpcodeFamily = 31; CurrentInstrCycles = 8;
7167 {{	uint32_t srca = m68k_areg(regs, srcreg);
7168 {	int16_t src = m68k_read_memory_16(srca);
7169 {	uint32_t val = (int32_t)(int16_t)src;
7170 	m68k_areg(regs, dstreg) = (val);
7171 }}}}m68k_incpc(2);
7172 return 8;
7173 }
CPUFUNC(op_3058_4)7174 unsigned long CPUFUNC(op_3058_4)(uint32_t opcode) /* MOVEA */
7175 {
7176 	uint32_t srcreg = (opcode & 7);
7177 	uint32_t dstreg = (opcode >> 9) & 7;
7178 	OpcodeFamily = 31; CurrentInstrCycles = 8;
7179 {{	uint32_t srca = m68k_areg(regs, srcreg);
7180 {	int16_t src = m68k_read_memory_16(srca);
7181 	m68k_areg(regs, srcreg) += 2;
7182 {	uint32_t val = (int32_t)(int16_t)src;
7183 	m68k_areg(regs, dstreg) = (val);
7184 }}}}m68k_incpc(2);
7185 return 8;
7186 }
CPUFUNC(op_3060_4)7187 unsigned long CPUFUNC(op_3060_4)(uint32_t opcode) /* MOVEA */
7188 {
7189 	uint32_t srcreg = (opcode & 7);
7190 	uint32_t dstreg = (opcode >> 9) & 7;
7191 	OpcodeFamily = 31; CurrentInstrCycles = 10;
7192 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
7193 {	int16_t src = m68k_read_memory_16(srca);
7194 	m68k_areg (regs, srcreg) = srca;
7195 {	uint32_t val = (int32_t)(int16_t)src;
7196 	m68k_areg(regs, dstreg) = (val);
7197 }}}}m68k_incpc(2);
7198 return 10;
7199 }
CPUFUNC(op_3068_4)7200 unsigned long CPUFUNC(op_3068_4)(uint32_t opcode) /* MOVEA */
7201 {
7202 	uint32_t srcreg = (opcode & 7);
7203 	uint32_t dstreg = (opcode >> 9) & 7;
7204 	OpcodeFamily = 31; CurrentInstrCycles = 12;
7205 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
7206 {	int16_t src = m68k_read_memory_16(srca);
7207 {	uint32_t val = (int32_t)(int16_t)src;
7208 	m68k_areg(regs, dstreg) = (val);
7209 }}}}m68k_incpc(4);
7210 return 12;
7211 }
CPUFUNC(op_3070_4)7212 unsigned long CPUFUNC(op_3070_4)(uint32_t opcode) /* MOVEA */
7213 {
7214 	uint32_t srcreg = (opcode & 7);
7215 	uint32_t dstreg = (opcode >> 9) & 7;
7216 	OpcodeFamily = 31; CurrentInstrCycles = 14;
7217 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
7218 	BusCyclePenalty += 2;
7219 {	int16_t src = m68k_read_memory_16(srca);
7220 {	uint32_t val = (int32_t)(int16_t)src;
7221 	m68k_areg(regs, dstreg) = (val);
7222 }}}}m68k_incpc(4);
7223 return 14;
7224 }
CPUFUNC(op_3078_4)7225 unsigned long CPUFUNC(op_3078_4)(uint32_t opcode) /* MOVEA */
7226 {
7227 	uint32_t dstreg = (opcode >> 9) & 7;
7228 	OpcodeFamily = 31; CurrentInstrCycles = 12;
7229 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
7230 {	int16_t src = m68k_read_memory_16(srca);
7231 {	uint32_t val = (int32_t)(int16_t)src;
7232 	m68k_areg(regs, dstreg) = (val);
7233 }}}}m68k_incpc(4);
7234 return 12;
7235 }
CPUFUNC(op_3079_4)7236 unsigned long CPUFUNC(op_3079_4)(uint32_t opcode) /* MOVEA */
7237 {
7238 	uint32_t dstreg = (opcode >> 9) & 7;
7239 	OpcodeFamily = 31; CurrentInstrCycles = 16;
7240 {{	uint32_t srca = get_ilong(2);
7241 {	int16_t src = m68k_read_memory_16(srca);
7242 {	uint32_t val = (int32_t)(int16_t)src;
7243 	m68k_areg(regs, dstreg) = (val);
7244 }}}}m68k_incpc(6);
7245 return 16;
7246 }
CPUFUNC(op_307a_4)7247 unsigned long CPUFUNC(op_307a_4)(uint32_t opcode) /* MOVEA */
7248 {
7249 	uint32_t dstreg = (opcode >> 9) & 7;
7250 	OpcodeFamily = 31; CurrentInstrCycles = 12;
7251 {{	uint32_t srca = m68k_getpc () + 2;
7252 	srca += (int32_t)(int16_t)get_iword(2);
7253 {	int16_t src = m68k_read_memory_16(srca);
7254 {	uint32_t val = (int32_t)(int16_t)src;
7255 	m68k_areg(regs, dstreg) = (val);
7256 }}}}m68k_incpc(4);
7257 return 12;
7258 }
CPUFUNC(op_307b_4)7259 unsigned long CPUFUNC(op_307b_4)(uint32_t opcode) /* MOVEA */
7260 {
7261 	uint32_t dstreg = (opcode >> 9) & 7;
7262 	OpcodeFamily = 31; CurrentInstrCycles = 14;
7263 {{	uint32_t tmppc = m68k_getpc() + 2;
7264 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
7265 	BusCyclePenalty += 2;
7266 {	int16_t src = m68k_read_memory_16(srca);
7267 {	uint32_t val = (int32_t)(int16_t)src;
7268 	m68k_areg(regs, dstreg) = (val);
7269 }}}}m68k_incpc(4);
7270 return 14;
7271 }
CPUFUNC(op_307c_4)7272 unsigned long CPUFUNC(op_307c_4)(uint32_t opcode) /* MOVEA */
7273 {
7274 	uint32_t dstreg = (opcode >> 9) & 7;
7275 	OpcodeFamily = 31; CurrentInstrCycles = 8;
7276 {{	int16_t src = get_iword(2);
7277 {	uint32_t val = (int32_t)(int16_t)src;
7278 	m68k_areg(regs, dstreg) = (val);
7279 }}}m68k_incpc(4);
7280 return 8;
7281 }
CPUFUNC(op_3080_4)7282 unsigned long CPUFUNC(op_3080_4)(uint32_t opcode) /* MOVE */
7283 {
7284 	uint32_t srcreg = (opcode & 7);
7285 	uint32_t dstreg = (opcode >> 9) & 7;
7286 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7287 {{	int16_t src = m68k_dreg(regs, srcreg);
7288 {	uint32_t dsta = m68k_areg(regs, dstreg);
7289 	CLEAR_CZNV;
7290 	SET_ZFLG (((int16_t)(src)) == 0);
7291 	SET_NFLG (((int16_t)(src)) < 0);
7292 	m68k_write_memory_16(dsta,src);
7293 }}}m68k_incpc(2);
7294 return 8;
7295 }
CPUFUNC(op_3088_4)7296 unsigned long CPUFUNC(op_3088_4)(uint32_t opcode) /* MOVE */
7297 {
7298 	uint32_t srcreg = (opcode & 7);
7299 	uint32_t dstreg = (opcode >> 9) & 7;
7300 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7301 {{	int16_t src = m68k_areg(regs, srcreg);
7302 {	uint32_t dsta = m68k_areg(regs, dstreg);
7303 	CLEAR_CZNV;
7304 	SET_ZFLG (((int16_t)(src)) == 0);
7305 	SET_NFLG (((int16_t)(src)) < 0);
7306 	m68k_write_memory_16(dsta,src);
7307 }}}m68k_incpc(2);
7308 return 8;
7309 }
CPUFUNC(op_3090_4)7310 unsigned long CPUFUNC(op_3090_4)(uint32_t opcode) /* MOVE */
7311 {
7312 	uint32_t srcreg = (opcode & 7);
7313 	uint32_t dstreg = (opcode >> 9) & 7;
7314 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7315 {{	uint32_t srca = m68k_areg(regs, srcreg);
7316 {	int16_t src = m68k_read_memory_16(srca);
7317 {	uint32_t dsta = m68k_areg(regs, dstreg);
7318 	CLEAR_CZNV;
7319 	SET_ZFLG (((int16_t)(src)) == 0);
7320 	SET_NFLG (((int16_t)(src)) < 0);
7321 	m68k_write_memory_16(dsta,src);
7322 }}}}m68k_incpc(2);
7323 return 12;
7324 }
CPUFUNC(op_3098_4)7325 unsigned long CPUFUNC(op_3098_4)(uint32_t opcode) /* MOVE */
7326 {
7327 	uint32_t srcreg = (opcode & 7);
7328 	uint32_t dstreg = (opcode >> 9) & 7;
7329 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7330 {{	uint32_t srca = m68k_areg(regs, srcreg);
7331 {	int16_t src = m68k_read_memory_16(srca);
7332 	m68k_areg(regs, srcreg) += 2;
7333 {	uint32_t dsta = m68k_areg(regs, dstreg);
7334 	CLEAR_CZNV;
7335 	SET_ZFLG (((int16_t)(src)) == 0);
7336 	SET_NFLG (((int16_t)(src)) < 0);
7337 	m68k_write_memory_16(dsta,src);
7338 }}}}m68k_incpc(2);
7339 return 12;
7340 }
CPUFUNC(op_30a0_4)7341 unsigned long CPUFUNC(op_30a0_4)(uint32_t opcode) /* MOVE */
7342 {
7343 	uint32_t srcreg = (opcode & 7);
7344 	uint32_t dstreg = (opcode >> 9) & 7;
7345 	OpcodeFamily = 30; CurrentInstrCycles = 14;
7346 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
7347 {	int16_t src = m68k_read_memory_16(srca);
7348 	m68k_areg (regs, srcreg) = srca;
7349 {	uint32_t dsta = m68k_areg(regs, dstreg);
7350 	CLEAR_CZNV;
7351 	SET_ZFLG (((int16_t)(src)) == 0);
7352 	SET_NFLG (((int16_t)(src)) < 0);
7353 	m68k_write_memory_16(dsta,src);
7354 }}}}m68k_incpc(2);
7355 return 14;
7356 }
CPUFUNC(op_30a8_4)7357 unsigned long CPUFUNC(op_30a8_4)(uint32_t opcode) /* MOVE */
7358 {
7359 	uint32_t srcreg = (opcode & 7);
7360 	uint32_t dstreg = (opcode >> 9) & 7;
7361 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7362 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
7363 {	int16_t src = m68k_read_memory_16(srca);
7364 {	uint32_t dsta = m68k_areg(regs, dstreg);
7365 	CLEAR_CZNV;
7366 	SET_ZFLG (((int16_t)(src)) == 0);
7367 	SET_NFLG (((int16_t)(src)) < 0);
7368 	m68k_write_memory_16(dsta,src);
7369 }}}}m68k_incpc(4);
7370 return 16;
7371 }
CPUFUNC(op_30b0_4)7372 unsigned long CPUFUNC(op_30b0_4)(uint32_t opcode) /* MOVE */
7373 {
7374 	uint32_t srcreg = (opcode & 7);
7375 	uint32_t dstreg = (opcode >> 9) & 7;
7376 	OpcodeFamily = 30; CurrentInstrCycles = 18;
7377 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
7378 	BusCyclePenalty += 2;
7379 {	int16_t src = m68k_read_memory_16(srca);
7380 {	uint32_t dsta = m68k_areg(regs, dstreg);
7381 	CLEAR_CZNV;
7382 	SET_ZFLG (((int16_t)(src)) == 0);
7383 	SET_NFLG (((int16_t)(src)) < 0);
7384 	m68k_write_memory_16(dsta,src);
7385 }}}}m68k_incpc(4);
7386 return 18;
7387 }
CPUFUNC(op_30b8_4)7388 unsigned long CPUFUNC(op_30b8_4)(uint32_t opcode) /* MOVE */
7389 {
7390 	uint32_t dstreg = (opcode >> 9) & 7;
7391 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7392 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
7393 {	int16_t src = m68k_read_memory_16(srca);
7394 {	uint32_t dsta = m68k_areg(regs, dstreg);
7395 	CLEAR_CZNV;
7396 	SET_ZFLG (((int16_t)(src)) == 0);
7397 	SET_NFLG (((int16_t)(src)) < 0);
7398 	m68k_write_memory_16(dsta,src);
7399 }}}}m68k_incpc(4);
7400 return 16;
7401 }
CPUFUNC(op_30b9_4)7402 unsigned long CPUFUNC(op_30b9_4)(uint32_t opcode) /* MOVE */
7403 {
7404 	uint32_t dstreg = (opcode >> 9) & 7;
7405 	OpcodeFamily = 30; CurrentInstrCycles = 20;
7406 {{	uint32_t srca = get_ilong(2);
7407 {	int16_t src = m68k_read_memory_16(srca);
7408 {	uint32_t dsta = m68k_areg(regs, dstreg);
7409 	CLEAR_CZNV;
7410 	SET_ZFLG (((int16_t)(src)) == 0);
7411 	SET_NFLG (((int16_t)(src)) < 0);
7412 	m68k_write_memory_16(dsta,src);
7413 }}}}m68k_incpc(6);
7414 return 20;
7415 }
CPUFUNC(op_30ba_4)7416 unsigned long CPUFUNC(op_30ba_4)(uint32_t opcode) /* MOVE */
7417 {
7418 	uint32_t dstreg = (opcode >> 9) & 7;
7419 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7420 {{	uint32_t srca = m68k_getpc () + 2;
7421 	srca += (int32_t)(int16_t)get_iword(2);
7422 {	int16_t src = m68k_read_memory_16(srca);
7423 {	uint32_t dsta = m68k_areg(regs, dstreg);
7424 	CLEAR_CZNV;
7425 	SET_ZFLG (((int16_t)(src)) == 0);
7426 	SET_NFLG (((int16_t)(src)) < 0);
7427 	m68k_write_memory_16(dsta,src);
7428 }}}}m68k_incpc(4);
7429 return 16;
7430 }
CPUFUNC(op_30bb_4)7431 unsigned long CPUFUNC(op_30bb_4)(uint32_t opcode) /* MOVE */
7432 {
7433 	uint32_t dstreg = (opcode >> 9) & 7;
7434 	OpcodeFamily = 30; CurrentInstrCycles = 18;
7435 {{	uint32_t tmppc = m68k_getpc() + 2;
7436 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
7437 	BusCyclePenalty += 2;
7438 {	int16_t src = m68k_read_memory_16(srca);
7439 {	uint32_t dsta = m68k_areg(regs, dstreg);
7440 	CLEAR_CZNV;
7441 	SET_ZFLG (((int16_t)(src)) == 0);
7442 	SET_NFLG (((int16_t)(src)) < 0);
7443 	m68k_write_memory_16(dsta,src);
7444 }}}}m68k_incpc(4);
7445 return 18;
7446 }
CPUFUNC(op_30bc_4)7447 unsigned long CPUFUNC(op_30bc_4)(uint32_t opcode) /* MOVE */
7448 {
7449 	uint32_t dstreg = (opcode >> 9) & 7;
7450 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7451 {{	int16_t src = get_iword(2);
7452 {	uint32_t dsta = m68k_areg(regs, dstreg);
7453 	CLEAR_CZNV;
7454 	SET_ZFLG (((int16_t)(src)) == 0);
7455 	SET_NFLG (((int16_t)(src)) < 0);
7456 	m68k_write_memory_16(dsta,src);
7457 }}}m68k_incpc(4);
7458 return 12;
7459 }
CPUFUNC(op_30c0_4)7460 unsigned long CPUFUNC(op_30c0_4)(uint32_t opcode) /* MOVE */
7461 {
7462 	uint32_t srcreg = (opcode & 7);
7463 	uint32_t dstreg = (opcode >> 9) & 7;
7464 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7465 {{	int16_t src = m68k_dreg(regs, srcreg);
7466 {	uint32_t dsta = m68k_areg(regs, dstreg);
7467 	m68k_areg(regs, dstreg) += 2;
7468 	CLEAR_CZNV;
7469 	SET_ZFLG (((int16_t)(src)) == 0);
7470 	SET_NFLG (((int16_t)(src)) < 0);
7471 	m68k_write_memory_16(dsta,src);
7472 }}}m68k_incpc(2);
7473 return 8;
7474 }
CPUFUNC(op_30c8_4)7475 unsigned long CPUFUNC(op_30c8_4)(uint32_t opcode) /* MOVE */
7476 {
7477 	uint32_t srcreg = (opcode & 7);
7478 	uint32_t dstreg = (opcode >> 9) & 7;
7479 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7480 {{	int16_t src = m68k_areg(regs, srcreg);
7481 {	uint32_t dsta = m68k_areg(regs, dstreg);
7482 	m68k_areg(regs, dstreg) += 2;
7483 	CLEAR_CZNV;
7484 	SET_ZFLG (((int16_t)(src)) == 0);
7485 	SET_NFLG (((int16_t)(src)) < 0);
7486 	m68k_write_memory_16(dsta,src);
7487 }}}m68k_incpc(2);
7488 return 8;
7489 }
CPUFUNC(op_30d0_4)7490 unsigned long CPUFUNC(op_30d0_4)(uint32_t opcode) /* MOVE */
7491 {
7492 	uint32_t srcreg = (opcode & 7);
7493 	uint32_t dstreg = (opcode >> 9) & 7;
7494 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7495 {{	uint32_t srca = m68k_areg(regs, srcreg);
7496 {	int16_t src = m68k_read_memory_16(srca);
7497 {	uint32_t dsta = m68k_areg(regs, dstreg);
7498 	m68k_areg(regs, dstreg) += 2;
7499 	CLEAR_CZNV;
7500 	SET_ZFLG (((int16_t)(src)) == 0);
7501 	SET_NFLG (((int16_t)(src)) < 0);
7502 	m68k_write_memory_16(dsta,src);
7503 }}}}m68k_incpc(2);
7504 return 12;
7505 }
CPUFUNC(op_30d8_4)7506 unsigned long CPUFUNC(op_30d8_4)(uint32_t opcode) /* MOVE */
7507 {
7508 	uint32_t srcreg = (opcode & 7);
7509 	uint32_t dstreg = (opcode >> 9) & 7;
7510 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7511 {{	uint32_t srca = m68k_areg(regs, srcreg);
7512 {	int16_t src = m68k_read_memory_16(srca);
7513 	m68k_areg(regs, srcreg) += 2;
7514 {	uint32_t dsta = m68k_areg(regs, dstreg);
7515 	m68k_areg(regs, dstreg) += 2;
7516 	CLEAR_CZNV;
7517 	SET_ZFLG (((int16_t)(src)) == 0);
7518 	SET_NFLG (((int16_t)(src)) < 0);
7519 	m68k_write_memory_16(dsta,src);
7520 }}}}m68k_incpc(2);
7521 return 12;
7522 }
CPUFUNC(op_30e0_4)7523 unsigned long CPUFUNC(op_30e0_4)(uint32_t opcode) /* MOVE */
7524 {
7525 	uint32_t srcreg = (opcode & 7);
7526 	uint32_t dstreg = (opcode >> 9) & 7;
7527 	OpcodeFamily = 30; CurrentInstrCycles = 14;
7528 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
7529 {	int16_t src = m68k_read_memory_16(srca);
7530 	m68k_areg (regs, srcreg) = srca;
7531 {	uint32_t dsta = m68k_areg(regs, dstreg);
7532 	m68k_areg(regs, dstreg) += 2;
7533 	CLEAR_CZNV;
7534 	SET_ZFLG (((int16_t)(src)) == 0);
7535 	SET_NFLG (((int16_t)(src)) < 0);
7536 	m68k_write_memory_16(dsta,src);
7537 }}}}m68k_incpc(2);
7538 return 14;
7539 }
CPUFUNC(op_30e8_4)7540 unsigned long CPUFUNC(op_30e8_4)(uint32_t opcode) /* MOVE */
7541 {
7542 	uint32_t srcreg = (opcode & 7);
7543 	uint32_t dstreg = (opcode >> 9) & 7;
7544 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7545 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
7546 {	int16_t src = m68k_read_memory_16(srca);
7547 {	uint32_t dsta = m68k_areg(regs, dstreg);
7548 	m68k_areg(regs, dstreg) += 2;
7549 	CLEAR_CZNV;
7550 	SET_ZFLG (((int16_t)(src)) == 0);
7551 	SET_NFLG (((int16_t)(src)) < 0);
7552 	m68k_write_memory_16(dsta,src);
7553 }}}}m68k_incpc(4);
7554 return 16;
7555 }
CPUFUNC(op_30f0_4)7556 unsigned long CPUFUNC(op_30f0_4)(uint32_t opcode) /* MOVE */
7557 {
7558 	uint32_t srcreg = (opcode & 7);
7559 	uint32_t dstreg = (opcode >> 9) & 7;
7560 	OpcodeFamily = 30; CurrentInstrCycles = 18;
7561 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
7562 	BusCyclePenalty += 2;
7563 {	int16_t src = m68k_read_memory_16(srca);
7564 {	uint32_t dsta = m68k_areg(regs, dstreg);
7565 	m68k_areg(regs, dstreg) += 2;
7566 	CLEAR_CZNV;
7567 	SET_ZFLG (((int16_t)(src)) == 0);
7568 	SET_NFLG (((int16_t)(src)) < 0);
7569 	m68k_write_memory_16(dsta,src);
7570 }}}}m68k_incpc(4);
7571 return 18;
7572 }
CPUFUNC(op_30f8_4)7573 unsigned long CPUFUNC(op_30f8_4)(uint32_t opcode) /* MOVE */
7574 {
7575 	uint32_t dstreg = (opcode >> 9) & 7;
7576 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7577 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
7578 {	int16_t src = m68k_read_memory_16(srca);
7579 {	uint32_t dsta = m68k_areg(regs, dstreg);
7580 	m68k_areg(regs, dstreg) += 2;
7581 	CLEAR_CZNV;
7582 	SET_ZFLG (((int16_t)(src)) == 0);
7583 	SET_NFLG (((int16_t)(src)) < 0);
7584 	m68k_write_memory_16(dsta,src);
7585 }}}}m68k_incpc(4);
7586 return 16;
7587 }
CPUFUNC(op_30f9_4)7588 unsigned long CPUFUNC(op_30f9_4)(uint32_t opcode) /* MOVE */
7589 {
7590 	uint32_t dstreg = (opcode >> 9) & 7;
7591 	OpcodeFamily = 30; CurrentInstrCycles = 20;
7592 {{	uint32_t srca = get_ilong(2);
7593 {	int16_t src = m68k_read_memory_16(srca);
7594 {	uint32_t dsta = m68k_areg(regs, dstreg);
7595 	m68k_areg(regs, dstreg) += 2;
7596 	CLEAR_CZNV;
7597 	SET_ZFLG (((int16_t)(src)) == 0);
7598 	SET_NFLG (((int16_t)(src)) < 0);
7599 	m68k_write_memory_16(dsta,src);
7600 }}}}m68k_incpc(6);
7601 return 20;
7602 }
CPUFUNC(op_30fa_4)7603 unsigned long CPUFUNC(op_30fa_4)(uint32_t opcode) /* MOVE */
7604 {
7605 	uint32_t dstreg = (opcode >> 9) & 7;
7606 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7607 {{	uint32_t srca = m68k_getpc () + 2;
7608 	srca += (int32_t)(int16_t)get_iword(2);
7609 {	int16_t src = m68k_read_memory_16(srca);
7610 {	uint32_t dsta = m68k_areg(regs, dstreg);
7611 	m68k_areg(regs, dstreg) += 2;
7612 	CLEAR_CZNV;
7613 	SET_ZFLG (((int16_t)(src)) == 0);
7614 	SET_NFLG (((int16_t)(src)) < 0);
7615 	m68k_write_memory_16(dsta,src);
7616 }}}}m68k_incpc(4);
7617 return 16;
7618 }
CPUFUNC(op_30fb_4)7619 unsigned long CPUFUNC(op_30fb_4)(uint32_t opcode) /* MOVE */
7620 {
7621 	uint32_t dstreg = (opcode >> 9) & 7;
7622 	OpcodeFamily = 30; CurrentInstrCycles = 18;
7623 {{	uint32_t tmppc = m68k_getpc() + 2;
7624 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
7625 	BusCyclePenalty += 2;
7626 {	int16_t src = m68k_read_memory_16(srca);
7627 {	uint32_t dsta = m68k_areg(regs, dstreg);
7628 	m68k_areg(regs, dstreg) += 2;
7629 	CLEAR_CZNV;
7630 	SET_ZFLG (((int16_t)(src)) == 0);
7631 	SET_NFLG (((int16_t)(src)) < 0);
7632 	m68k_write_memory_16(dsta,src);
7633 }}}}m68k_incpc(4);
7634 return 18;
7635 }
CPUFUNC(op_30fc_4)7636 unsigned long CPUFUNC(op_30fc_4)(uint32_t opcode) /* MOVE */
7637 {
7638 	uint32_t dstreg = (opcode >> 9) & 7;
7639 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7640 {{	int16_t src = get_iword(2);
7641 {	uint32_t dsta = m68k_areg(regs, dstreg);
7642 	m68k_areg(regs, dstreg) += 2;
7643 	CLEAR_CZNV;
7644 	SET_ZFLG (((int16_t)(src)) == 0);
7645 	SET_NFLG (((int16_t)(src)) < 0);
7646 	m68k_write_memory_16(dsta,src);
7647 }}}m68k_incpc(4);
7648 return 12;
7649 }
CPUFUNC(op_3100_4)7650 unsigned long CPUFUNC(op_3100_4)(uint32_t opcode) /* MOVE */
7651 {
7652 	uint32_t srcreg = (opcode & 7);
7653 	uint32_t dstreg = (opcode >> 9) & 7;
7654 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7655 {{	int16_t src = m68k_dreg(regs, srcreg);
7656 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7657 	m68k_areg (regs, dstreg) = dsta;
7658 	CLEAR_CZNV;
7659 	SET_ZFLG (((int16_t)(src)) == 0);
7660 	SET_NFLG (((int16_t)(src)) < 0);
7661 	m68k_write_memory_16(dsta,src);
7662 }}}m68k_incpc(2);
7663 return 8;
7664 }
CPUFUNC(op_3108_4)7665 unsigned long CPUFUNC(op_3108_4)(uint32_t opcode) /* MOVE */
7666 {
7667 	uint32_t srcreg = (opcode & 7);
7668 	uint32_t dstreg = (opcode >> 9) & 7;
7669 	OpcodeFamily = 30; CurrentInstrCycles = 8;
7670 {{	int16_t src = m68k_areg(regs, srcreg);
7671 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7672 	m68k_areg (regs, dstreg) = dsta;
7673 	CLEAR_CZNV;
7674 	SET_ZFLG (((int16_t)(src)) == 0);
7675 	SET_NFLG (((int16_t)(src)) < 0);
7676 	m68k_write_memory_16(dsta,src);
7677 }}}m68k_incpc(2);
7678 return 8;
7679 }
CPUFUNC(op_3110_4)7680 unsigned long CPUFUNC(op_3110_4)(uint32_t opcode) /* MOVE */
7681 {
7682 	uint32_t srcreg = (opcode & 7);
7683 	uint32_t dstreg = (opcode >> 9) & 7;
7684 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7685 {{	uint32_t srca = m68k_areg(regs, srcreg);
7686 {	int16_t src = m68k_read_memory_16(srca);
7687 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7688 	m68k_areg (regs, dstreg) = dsta;
7689 	CLEAR_CZNV;
7690 	SET_ZFLG (((int16_t)(src)) == 0);
7691 	SET_NFLG (((int16_t)(src)) < 0);
7692 	m68k_write_memory_16(dsta,src);
7693 }}}}m68k_incpc(2);
7694 return 12;
7695 }
CPUFUNC(op_3118_4)7696 unsigned long CPUFUNC(op_3118_4)(uint32_t opcode) /* MOVE */
7697 {
7698 	uint32_t srcreg = (opcode & 7);
7699 	uint32_t dstreg = (opcode >> 9) & 7;
7700 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7701 {{	uint32_t srca = m68k_areg(regs, srcreg);
7702 {	int16_t src = m68k_read_memory_16(srca);
7703 	m68k_areg(regs, srcreg) += 2;
7704 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7705 	m68k_areg (regs, dstreg) = dsta;
7706 	CLEAR_CZNV;
7707 	SET_ZFLG (((int16_t)(src)) == 0);
7708 	SET_NFLG (((int16_t)(src)) < 0);
7709 	m68k_write_memory_16(dsta,src);
7710 }}}}m68k_incpc(2);
7711 return 12;
7712 }
CPUFUNC(op_3120_4)7713 unsigned long CPUFUNC(op_3120_4)(uint32_t opcode) /* MOVE */
7714 {
7715 	uint32_t srcreg = (opcode & 7);
7716 	uint32_t dstreg = (opcode >> 9) & 7;
7717 	OpcodeFamily = 30; CurrentInstrCycles = 14;
7718 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
7719 {	int16_t src = m68k_read_memory_16(srca);
7720 	m68k_areg (regs, srcreg) = srca;
7721 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7722 	m68k_areg (regs, dstreg) = dsta;
7723 	CLEAR_CZNV;
7724 	SET_ZFLG (((int16_t)(src)) == 0);
7725 	SET_NFLG (((int16_t)(src)) < 0);
7726 	m68k_write_memory_16(dsta,src);
7727 }}}}m68k_incpc(2);
7728 return 14;
7729 }
CPUFUNC(op_3128_4)7730 unsigned long CPUFUNC(op_3128_4)(uint32_t opcode) /* MOVE */
7731 {
7732 	uint32_t srcreg = (opcode & 7);
7733 	uint32_t dstreg = (opcode >> 9) & 7;
7734 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7735 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
7736 {	int16_t src = m68k_read_memory_16(srca);
7737 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7738 	m68k_areg (regs, dstreg) = dsta;
7739 	CLEAR_CZNV;
7740 	SET_ZFLG (((int16_t)(src)) == 0);
7741 	SET_NFLG (((int16_t)(src)) < 0);
7742 	m68k_write_memory_16(dsta,src);
7743 }}}}m68k_incpc(4);
7744 return 16;
7745 }
CPUFUNC(op_3130_4)7746 unsigned long CPUFUNC(op_3130_4)(uint32_t opcode) /* MOVE */
7747 {
7748 	uint32_t srcreg = (opcode & 7);
7749 	uint32_t dstreg = (opcode >> 9) & 7;
7750 	OpcodeFamily = 30; CurrentInstrCycles = 18;
7751 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
7752 	BusCyclePenalty += 2;
7753 {	int16_t src = m68k_read_memory_16(srca);
7754 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7755 	m68k_areg (regs, dstreg) = dsta;
7756 	CLEAR_CZNV;
7757 	SET_ZFLG (((int16_t)(src)) == 0);
7758 	SET_NFLG (((int16_t)(src)) < 0);
7759 	m68k_write_memory_16(dsta,src);
7760 }}}}m68k_incpc(4);
7761 return 18;
7762 }
CPUFUNC(op_3138_4)7763 unsigned long CPUFUNC(op_3138_4)(uint32_t opcode) /* MOVE */
7764 {
7765 	uint32_t dstreg = (opcode >> 9) & 7;
7766 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7767 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
7768 {	int16_t src = m68k_read_memory_16(srca);
7769 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7770 	m68k_areg (regs, dstreg) = dsta;
7771 	CLEAR_CZNV;
7772 	SET_ZFLG (((int16_t)(src)) == 0);
7773 	SET_NFLG (((int16_t)(src)) < 0);
7774 	m68k_write_memory_16(dsta,src);
7775 }}}}m68k_incpc(4);
7776 return 16;
7777 }
CPUFUNC(op_3139_4)7778 unsigned long CPUFUNC(op_3139_4)(uint32_t opcode) /* MOVE */
7779 {
7780 	uint32_t dstreg = (opcode >> 9) & 7;
7781 	OpcodeFamily = 30; CurrentInstrCycles = 20;
7782 {{	uint32_t srca = get_ilong(2);
7783 {	int16_t src = m68k_read_memory_16(srca);
7784 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7785 	m68k_areg (regs, dstreg) = dsta;
7786 	CLEAR_CZNV;
7787 	SET_ZFLG (((int16_t)(src)) == 0);
7788 	SET_NFLG (((int16_t)(src)) < 0);
7789 	m68k_write_memory_16(dsta,src);
7790 }}}}m68k_incpc(6);
7791 return 20;
7792 }
CPUFUNC(op_313a_4)7793 unsigned long CPUFUNC(op_313a_4)(uint32_t opcode) /* MOVE */
7794 {
7795 	uint32_t dstreg = (opcode >> 9) & 7;
7796 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7797 {{	uint32_t srca = m68k_getpc () + 2;
7798 	srca += (int32_t)(int16_t)get_iword(2);
7799 {	int16_t src = m68k_read_memory_16(srca);
7800 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7801 	m68k_areg (regs, dstreg) = dsta;
7802 	CLEAR_CZNV;
7803 	SET_ZFLG (((int16_t)(src)) == 0);
7804 	SET_NFLG (((int16_t)(src)) < 0);
7805 	m68k_write_memory_16(dsta,src);
7806 }}}}m68k_incpc(4);
7807 return 16;
7808 }
CPUFUNC(op_313b_4)7809 unsigned long CPUFUNC(op_313b_4)(uint32_t opcode) /* MOVE */
7810 {
7811 	uint32_t dstreg = (opcode >> 9) & 7;
7812 	OpcodeFamily = 30; CurrentInstrCycles = 18;
7813 {{	uint32_t tmppc = m68k_getpc() + 2;
7814 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
7815 	BusCyclePenalty += 2;
7816 {	int16_t src = m68k_read_memory_16(srca);
7817 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7818 	m68k_areg (regs, dstreg) = dsta;
7819 	CLEAR_CZNV;
7820 	SET_ZFLG (((int16_t)(src)) == 0);
7821 	SET_NFLG (((int16_t)(src)) < 0);
7822 	m68k_write_memory_16(dsta,src);
7823 }}}}m68k_incpc(4);
7824 return 18;
7825 }
CPUFUNC(op_313c_4)7826 unsigned long CPUFUNC(op_313c_4)(uint32_t opcode) /* MOVE */
7827 {
7828 	uint32_t dstreg = (opcode >> 9) & 7;
7829 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7830 {{	int16_t src = get_iword(2);
7831 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
7832 	m68k_areg (regs, dstreg) = dsta;
7833 	CLEAR_CZNV;
7834 	SET_ZFLG (((int16_t)(src)) == 0);
7835 	SET_NFLG (((int16_t)(src)) < 0);
7836 	m68k_write_memory_16(dsta,src);
7837 }}}m68k_incpc(4);
7838 return 12;
7839 }
CPUFUNC(op_3140_4)7840 unsigned long CPUFUNC(op_3140_4)(uint32_t opcode) /* MOVE */
7841 {
7842 	uint32_t srcreg = (opcode & 7);
7843 	uint32_t dstreg = (opcode >> 9) & 7;
7844 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7845 {{	int16_t src = m68k_dreg(regs, srcreg);
7846 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
7847 	CLEAR_CZNV;
7848 	SET_ZFLG (((int16_t)(src)) == 0);
7849 	SET_NFLG (((int16_t)(src)) < 0);
7850 	m68k_write_memory_16(dsta,src);
7851 }}}m68k_incpc(4);
7852 return 12;
7853 }
CPUFUNC(op_3148_4)7854 unsigned long CPUFUNC(op_3148_4)(uint32_t opcode) /* MOVE */
7855 {
7856 	uint32_t srcreg = (opcode & 7);
7857 	uint32_t dstreg = (opcode >> 9) & 7;
7858 	OpcodeFamily = 30; CurrentInstrCycles = 12;
7859 {{	int16_t src = m68k_areg(regs, srcreg);
7860 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
7861 	CLEAR_CZNV;
7862 	SET_ZFLG (((int16_t)(src)) == 0);
7863 	SET_NFLG (((int16_t)(src)) < 0);
7864 	m68k_write_memory_16(dsta,src);
7865 }}}m68k_incpc(4);
7866 return 12;
7867 }
CPUFUNC(op_3150_4)7868 unsigned long CPUFUNC(op_3150_4)(uint32_t opcode) /* MOVE */
7869 {
7870 	uint32_t srcreg = (opcode & 7);
7871 	uint32_t dstreg = (opcode >> 9) & 7;
7872 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7873 {{	uint32_t srca = m68k_areg(regs, srcreg);
7874 {	int16_t src = m68k_read_memory_16(srca);
7875 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
7876 	CLEAR_CZNV;
7877 	SET_ZFLG (((int16_t)(src)) == 0);
7878 	SET_NFLG (((int16_t)(src)) < 0);
7879 	m68k_write_memory_16(dsta,src);
7880 }}}}m68k_incpc(4);
7881 return 16;
7882 }
CPUFUNC(op_3158_4)7883 unsigned long CPUFUNC(op_3158_4)(uint32_t opcode) /* MOVE */
7884 {
7885 	uint32_t srcreg = (opcode & 7);
7886 	uint32_t dstreg = (opcode >> 9) & 7;
7887 	OpcodeFamily = 30; CurrentInstrCycles = 16;
7888 {{	uint32_t srca = m68k_areg(regs, srcreg);
7889 {	int16_t src = m68k_read_memory_16(srca);
7890 	m68k_areg(regs, srcreg) += 2;
7891 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
7892 	CLEAR_CZNV;
7893 	SET_ZFLG (((int16_t)(src)) == 0);
7894 	SET_NFLG (((int16_t)(src)) < 0);
7895 	m68k_write_memory_16(dsta,src);
7896 }}}}m68k_incpc(4);
7897 return 16;
7898 }
CPUFUNC(op_3160_4)7899 unsigned long CPUFUNC(op_3160_4)(uint32_t opcode) /* MOVE */
7900 {
7901 	uint32_t srcreg = (opcode & 7);
7902 	uint32_t dstreg = (opcode >> 9) & 7;
7903 	OpcodeFamily = 30; CurrentInstrCycles = 18;
7904 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
7905 {	int16_t src = m68k_read_memory_16(srca);
7906 	m68k_areg (regs, srcreg) = srca;
7907 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
7908 	CLEAR_CZNV;
7909 	SET_ZFLG (((int16_t)(src)) == 0);
7910 	SET_NFLG (((int16_t)(src)) < 0);
7911 	m68k_write_memory_16(dsta,src);
7912 }}}}m68k_incpc(4);
7913 return 18;
7914 }
CPUFUNC(op_3168_4)7915 unsigned long CPUFUNC(op_3168_4)(uint32_t opcode) /* MOVE */
7916 {
7917 	uint32_t srcreg = (opcode & 7);
7918 	uint32_t dstreg = (opcode >> 9) & 7;
7919 	OpcodeFamily = 30; CurrentInstrCycles = 20;
7920 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
7921 {	int16_t src = m68k_read_memory_16(srca);
7922 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
7923 	CLEAR_CZNV;
7924 	SET_ZFLG (((int16_t)(src)) == 0);
7925 	SET_NFLG (((int16_t)(src)) < 0);
7926 	m68k_write_memory_16(dsta,src);
7927 }}}}m68k_incpc(6);
7928 return 20;
7929 }
CPUFUNC(op_3170_4)7930 unsigned long CPUFUNC(op_3170_4)(uint32_t opcode) /* MOVE */
7931 {
7932 	uint32_t srcreg = (opcode & 7);
7933 	uint32_t dstreg = (opcode >> 9) & 7;
7934 	OpcodeFamily = 30; CurrentInstrCycles = 22;
7935 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
7936 	BusCyclePenalty += 2;
7937 {	int16_t src = m68k_read_memory_16(srca);
7938 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
7939 	CLEAR_CZNV;
7940 	SET_ZFLG (((int16_t)(src)) == 0);
7941 	SET_NFLG (((int16_t)(src)) < 0);
7942 	m68k_write_memory_16(dsta,src);
7943 }}}}m68k_incpc(6);
7944 return 22;
7945 }
CPUFUNC(op_3178_4)7946 unsigned long CPUFUNC(op_3178_4)(uint32_t opcode) /* MOVE */
7947 {
7948 	uint32_t dstreg = (opcode >> 9) & 7;
7949 	OpcodeFamily = 30; CurrentInstrCycles = 20;
7950 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
7951 {	int16_t src = m68k_read_memory_16(srca);
7952 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
7953 	CLEAR_CZNV;
7954 	SET_ZFLG (((int16_t)(src)) == 0);
7955 	SET_NFLG (((int16_t)(src)) < 0);
7956 	m68k_write_memory_16(dsta,src);
7957 }}}}m68k_incpc(6);
7958 return 20;
7959 }
CPUFUNC(op_3179_4)7960 unsigned long CPUFUNC(op_3179_4)(uint32_t opcode) /* MOVE */
7961 {
7962 	uint32_t dstreg = (opcode >> 9) & 7;
7963 	OpcodeFamily = 30; CurrentInstrCycles = 24;
7964 {{	uint32_t srca = get_ilong(2);
7965 {	int16_t src = m68k_read_memory_16(srca);
7966 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(6);
7967 	CLEAR_CZNV;
7968 	SET_ZFLG (((int16_t)(src)) == 0);
7969 	SET_NFLG (((int16_t)(src)) < 0);
7970 	m68k_write_memory_16(dsta,src);
7971 }}}}m68k_incpc(8);
7972 return 24;
7973 }
CPUFUNC(op_317a_4)7974 unsigned long CPUFUNC(op_317a_4)(uint32_t opcode) /* MOVE */
7975 {
7976 	uint32_t dstreg = (opcode >> 9) & 7;
7977 	OpcodeFamily = 30; CurrentInstrCycles = 20;
7978 {{	uint32_t srca = m68k_getpc () + 2;
7979 	srca += (int32_t)(int16_t)get_iword(2);
7980 {	int16_t src = m68k_read_memory_16(srca);
7981 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
7982 	CLEAR_CZNV;
7983 	SET_ZFLG (((int16_t)(src)) == 0);
7984 	SET_NFLG (((int16_t)(src)) < 0);
7985 	m68k_write_memory_16(dsta,src);
7986 }}}}m68k_incpc(6);
7987 return 20;
7988 }
CPUFUNC(op_317b_4)7989 unsigned long CPUFUNC(op_317b_4)(uint32_t opcode) /* MOVE */
7990 {
7991 	uint32_t dstreg = (opcode >> 9) & 7;
7992 	OpcodeFamily = 30; CurrentInstrCycles = 22;
7993 {{	uint32_t tmppc = m68k_getpc() + 2;
7994 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
7995 	BusCyclePenalty += 2;
7996 {	int16_t src = m68k_read_memory_16(srca);
7997 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
7998 	CLEAR_CZNV;
7999 	SET_ZFLG (((int16_t)(src)) == 0);
8000 	SET_NFLG (((int16_t)(src)) < 0);
8001 	m68k_write_memory_16(dsta,src);
8002 }}}}m68k_incpc(6);
8003 return 22;
8004 }
CPUFUNC(op_317c_4)8005 unsigned long CPUFUNC(op_317c_4)(uint32_t opcode) /* MOVE */
8006 {
8007 	uint32_t dstreg = (opcode >> 9) & 7;
8008 	OpcodeFamily = 30; CurrentInstrCycles = 16;
8009 {{	int16_t src = get_iword(2);
8010 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
8011 	CLEAR_CZNV;
8012 	SET_ZFLG (((int16_t)(src)) == 0);
8013 	SET_NFLG (((int16_t)(src)) < 0);
8014 	m68k_write_memory_16(dsta,src);
8015 }}}m68k_incpc(6);
8016 return 16;
8017 }
CPUFUNC(op_3180_4)8018 unsigned long CPUFUNC(op_3180_4)(uint32_t opcode) /* MOVE */
8019 {
8020 	uint32_t srcreg = (opcode & 7);
8021 	uint32_t dstreg = (opcode >> 9) & 7;
8022 	OpcodeFamily = 30; CurrentInstrCycles = 14;
8023 {{	int16_t src = m68k_dreg(regs, srcreg);
8024 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
8025 	BusCyclePenalty += 2;
8026 	CLEAR_CZNV;
8027 	SET_ZFLG (((int16_t)(src)) == 0);
8028 	SET_NFLG (((int16_t)(src)) < 0);
8029 	m68k_write_memory_16(dsta,src);
8030 }}}m68k_incpc(4);
8031 return 14;
8032 }
CPUFUNC(op_3188_4)8033 unsigned long CPUFUNC(op_3188_4)(uint32_t opcode) /* MOVE */
8034 {
8035 	uint32_t srcreg = (opcode & 7);
8036 	uint32_t dstreg = (opcode >> 9) & 7;
8037 	OpcodeFamily = 30; CurrentInstrCycles = 14;
8038 {{	int16_t src = m68k_areg(regs, srcreg);
8039 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
8040 	BusCyclePenalty += 2;
8041 	CLEAR_CZNV;
8042 	SET_ZFLG (((int16_t)(src)) == 0);
8043 	SET_NFLG (((int16_t)(src)) < 0);
8044 	m68k_write_memory_16(dsta,src);
8045 }}}m68k_incpc(4);
8046 return 14;
8047 }
CPUFUNC(op_3190_4)8048 unsigned long CPUFUNC(op_3190_4)(uint32_t opcode) /* MOVE */
8049 {
8050 	uint32_t srcreg = (opcode & 7);
8051 	uint32_t dstreg = (opcode >> 9) & 7;
8052 	OpcodeFamily = 30; CurrentInstrCycles = 18;
8053 {{	uint32_t srca = m68k_areg(regs, srcreg);
8054 {	int16_t src = m68k_read_memory_16(srca);
8055 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
8056 	BusCyclePenalty += 2;
8057 	CLEAR_CZNV;
8058 	SET_ZFLG (((int16_t)(src)) == 0);
8059 	SET_NFLG (((int16_t)(src)) < 0);
8060 	m68k_write_memory_16(dsta,src);
8061 }}}}m68k_incpc(4);
8062 return 18;
8063 }
CPUFUNC(op_3198_4)8064 unsigned long CPUFUNC(op_3198_4)(uint32_t opcode) /* MOVE */
8065 {
8066 	uint32_t srcreg = (opcode & 7);
8067 	uint32_t dstreg = (opcode >> 9) & 7;
8068 	OpcodeFamily = 30; CurrentInstrCycles = 18;
8069 {{	uint32_t srca = m68k_areg(regs, srcreg);
8070 {	int16_t src = m68k_read_memory_16(srca);
8071 	m68k_areg(regs, srcreg) += 2;
8072 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
8073 	BusCyclePenalty += 2;
8074 	CLEAR_CZNV;
8075 	SET_ZFLG (((int16_t)(src)) == 0);
8076 	SET_NFLG (((int16_t)(src)) < 0);
8077 	m68k_write_memory_16(dsta,src);
8078 }}}}m68k_incpc(4);
8079 return 18;
8080 }
CPUFUNC(op_31a0_4)8081 unsigned long CPUFUNC(op_31a0_4)(uint32_t opcode) /* MOVE */
8082 {
8083 	uint32_t srcreg = (opcode & 7);
8084 	uint32_t dstreg = (opcode >> 9) & 7;
8085 	OpcodeFamily = 30; CurrentInstrCycles = 20;
8086 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
8087 {	int16_t src = m68k_read_memory_16(srca);
8088 	m68k_areg (regs, srcreg) = srca;
8089 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
8090 	BusCyclePenalty += 2;
8091 	CLEAR_CZNV;
8092 	SET_ZFLG (((int16_t)(src)) == 0);
8093 	SET_NFLG (((int16_t)(src)) < 0);
8094 	m68k_write_memory_16(dsta,src);
8095 }}}}m68k_incpc(4);
8096 return 20;
8097 }
CPUFUNC(op_31a8_4)8098 unsigned long CPUFUNC(op_31a8_4)(uint32_t opcode) /* MOVE */
8099 {
8100 	uint32_t srcreg = (opcode & 7);
8101 	uint32_t dstreg = (opcode >> 9) & 7;
8102 	OpcodeFamily = 30; CurrentInstrCycles = 22;
8103 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
8104 {	int16_t src = m68k_read_memory_16(srca);
8105 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
8106 	BusCyclePenalty += 2;
8107 	CLEAR_CZNV;
8108 	SET_ZFLG (((int16_t)(src)) == 0);
8109 	SET_NFLG (((int16_t)(src)) < 0);
8110 	m68k_write_memory_16(dsta,src);
8111 }}}}m68k_incpc(6);
8112 return 22;
8113 }
CPUFUNC(op_31b0_4)8114 unsigned long CPUFUNC(op_31b0_4)(uint32_t opcode) /* MOVE */
8115 {
8116 	uint32_t srcreg = (opcode & 7);
8117 	uint32_t dstreg = (opcode >> 9) & 7;
8118 	OpcodeFamily = 30; CurrentInstrCycles = 24;
8119 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
8120 	BusCyclePenalty += 2;
8121 {	int16_t src = m68k_read_memory_16(srca);
8122 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
8123 	BusCyclePenalty += 2;
8124 	CLEAR_CZNV;
8125 	SET_ZFLG (((int16_t)(src)) == 0);
8126 	SET_NFLG (((int16_t)(src)) < 0);
8127 	m68k_write_memory_16(dsta,src);
8128 }}}}m68k_incpc(6);
8129 return 24;
8130 }
CPUFUNC(op_31b8_4)8131 unsigned long CPUFUNC(op_31b8_4)(uint32_t opcode) /* MOVE */
8132 {
8133 	uint32_t dstreg = (opcode >> 9) & 7;
8134 	OpcodeFamily = 30; CurrentInstrCycles = 22;
8135 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
8136 {	int16_t src = m68k_read_memory_16(srca);
8137 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
8138 	BusCyclePenalty += 2;
8139 	CLEAR_CZNV;
8140 	SET_ZFLG (((int16_t)(src)) == 0);
8141 	SET_NFLG (((int16_t)(src)) < 0);
8142 	m68k_write_memory_16(dsta,src);
8143 }}}}m68k_incpc(6);
8144 return 22;
8145 }
CPUFUNC(op_31b9_4)8146 unsigned long CPUFUNC(op_31b9_4)(uint32_t opcode) /* MOVE */
8147 {
8148 	uint32_t dstreg = (opcode >> 9) & 7;
8149 	OpcodeFamily = 30; CurrentInstrCycles = 26;
8150 {{	uint32_t srca = get_ilong(2);
8151 {	int16_t src = m68k_read_memory_16(srca);
8152 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(6));
8153 	BusCyclePenalty += 2;
8154 	CLEAR_CZNV;
8155 	SET_ZFLG (((int16_t)(src)) == 0);
8156 	SET_NFLG (((int16_t)(src)) < 0);
8157 	m68k_write_memory_16(dsta,src);
8158 }}}}m68k_incpc(8);
8159 return 26;
8160 }
CPUFUNC(op_31ba_4)8161 unsigned long CPUFUNC(op_31ba_4)(uint32_t opcode) /* MOVE */
8162 {
8163 	uint32_t dstreg = (opcode >> 9) & 7;
8164 	OpcodeFamily = 30; CurrentInstrCycles = 22;
8165 {{	uint32_t srca = m68k_getpc () + 2;
8166 	srca += (int32_t)(int16_t)get_iword(2);
8167 {	int16_t src = m68k_read_memory_16(srca);
8168 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
8169 	BusCyclePenalty += 2;
8170 	CLEAR_CZNV;
8171 	SET_ZFLG (((int16_t)(src)) == 0);
8172 	SET_NFLG (((int16_t)(src)) < 0);
8173 	m68k_write_memory_16(dsta,src);
8174 }}}}m68k_incpc(6);
8175 return 22;
8176 }
CPUFUNC(op_31bb_4)8177 unsigned long CPUFUNC(op_31bb_4)(uint32_t opcode) /* MOVE */
8178 {
8179 	uint32_t dstreg = (opcode >> 9) & 7;
8180 	OpcodeFamily = 30; CurrentInstrCycles = 24;
8181 {{	uint32_t tmppc = m68k_getpc() + 2;
8182 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
8183 	BusCyclePenalty += 2;
8184 {	int16_t src = m68k_read_memory_16(srca);
8185 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
8186 	BusCyclePenalty += 2;
8187 	CLEAR_CZNV;
8188 	SET_ZFLG (((int16_t)(src)) == 0);
8189 	SET_NFLG (((int16_t)(src)) < 0);
8190 	m68k_write_memory_16(dsta,src);
8191 }}}}m68k_incpc(6);
8192 return 24;
8193 }
CPUFUNC(op_31bc_4)8194 unsigned long CPUFUNC(op_31bc_4)(uint32_t opcode) /* MOVE */
8195 {
8196 	uint32_t dstreg = (opcode >> 9) & 7;
8197 	OpcodeFamily = 30; CurrentInstrCycles = 18;
8198 {{	int16_t src = get_iword(2);
8199 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
8200 	BusCyclePenalty += 2;
8201 	CLEAR_CZNV;
8202 	SET_ZFLG (((int16_t)(src)) == 0);
8203 	SET_NFLG (((int16_t)(src)) < 0);
8204 	m68k_write_memory_16(dsta,src);
8205 }}}m68k_incpc(6);
8206 return 18;
8207 }
CPUFUNC(op_31c0_4)8208 unsigned long CPUFUNC(op_31c0_4)(uint32_t opcode) /* MOVE */
8209 {
8210 	uint32_t srcreg = (opcode & 7);
8211 	OpcodeFamily = 30; CurrentInstrCycles = 12;
8212 {{	int16_t src = m68k_dreg(regs, srcreg);
8213 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
8214 	CLEAR_CZNV;
8215 	SET_ZFLG (((int16_t)(src)) == 0);
8216 	SET_NFLG (((int16_t)(src)) < 0);
8217 	m68k_write_memory_16(dsta,src);
8218 }}}m68k_incpc(4);
8219 return 12;
8220 }
CPUFUNC(op_31c8_4)8221 unsigned long CPUFUNC(op_31c8_4)(uint32_t opcode) /* MOVE */
8222 {
8223 	uint32_t srcreg = (opcode & 7);
8224 	OpcodeFamily = 30; CurrentInstrCycles = 12;
8225 {{	int16_t src = m68k_areg(regs, srcreg);
8226 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
8227 	CLEAR_CZNV;
8228 	SET_ZFLG (((int16_t)(src)) == 0);
8229 	SET_NFLG (((int16_t)(src)) < 0);
8230 	m68k_write_memory_16(dsta,src);
8231 }}}m68k_incpc(4);
8232 return 12;
8233 }
CPUFUNC(op_31d0_4)8234 unsigned long CPUFUNC(op_31d0_4)(uint32_t opcode) /* MOVE */
8235 {
8236 	uint32_t srcreg = (opcode & 7);
8237 	OpcodeFamily = 30; CurrentInstrCycles = 16;
8238 {{	uint32_t srca = m68k_areg(regs, srcreg);
8239 {	int16_t src = m68k_read_memory_16(srca);
8240 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
8241 	CLEAR_CZNV;
8242 	SET_ZFLG (((int16_t)(src)) == 0);
8243 	SET_NFLG (((int16_t)(src)) < 0);
8244 	m68k_write_memory_16(dsta,src);
8245 }}}}m68k_incpc(4);
8246 return 16;
8247 }
CPUFUNC(op_31d8_4)8248 unsigned long CPUFUNC(op_31d8_4)(uint32_t opcode) /* MOVE */
8249 {
8250 	uint32_t srcreg = (opcode & 7);
8251 	OpcodeFamily = 30; CurrentInstrCycles = 16;
8252 {{	uint32_t srca = m68k_areg(regs, srcreg);
8253 {	int16_t src = m68k_read_memory_16(srca);
8254 	m68k_areg(regs, srcreg) += 2;
8255 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
8256 	CLEAR_CZNV;
8257 	SET_ZFLG (((int16_t)(src)) == 0);
8258 	SET_NFLG (((int16_t)(src)) < 0);
8259 	m68k_write_memory_16(dsta,src);
8260 }}}}m68k_incpc(4);
8261 return 16;
8262 }
CPUFUNC(op_31e0_4)8263 unsigned long CPUFUNC(op_31e0_4)(uint32_t opcode) /* MOVE */
8264 {
8265 	uint32_t srcreg = (opcode & 7);
8266 	OpcodeFamily = 30; CurrentInstrCycles = 18;
8267 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
8268 {	int16_t src = m68k_read_memory_16(srca);
8269 	m68k_areg (regs, srcreg) = srca;
8270 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
8271 	CLEAR_CZNV;
8272 	SET_ZFLG (((int16_t)(src)) == 0);
8273 	SET_NFLG (((int16_t)(src)) < 0);
8274 	m68k_write_memory_16(dsta,src);
8275 }}}}m68k_incpc(4);
8276 return 18;
8277 }
CPUFUNC(op_31e8_4)8278 unsigned long CPUFUNC(op_31e8_4)(uint32_t opcode) /* MOVE */
8279 {
8280 	uint32_t srcreg = (opcode & 7);
8281 	OpcodeFamily = 30; CurrentInstrCycles = 20;
8282 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
8283 {	int16_t src = m68k_read_memory_16(srca);
8284 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
8285 	CLEAR_CZNV;
8286 	SET_ZFLG (((int16_t)(src)) == 0);
8287 	SET_NFLG (((int16_t)(src)) < 0);
8288 	m68k_write_memory_16(dsta,src);
8289 }}}}m68k_incpc(6);
8290 return 20;
8291 }
CPUFUNC(op_31f0_4)8292 unsigned long CPUFUNC(op_31f0_4)(uint32_t opcode) /* MOVE */
8293 {
8294 	uint32_t srcreg = (opcode & 7);
8295 	OpcodeFamily = 30; CurrentInstrCycles = 22;
8296 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
8297 	BusCyclePenalty += 2;
8298 {	int16_t src = m68k_read_memory_16(srca);
8299 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
8300 	CLEAR_CZNV;
8301 	SET_ZFLG (((int16_t)(src)) == 0);
8302 	SET_NFLG (((int16_t)(src)) < 0);
8303 	m68k_write_memory_16(dsta,src);
8304 }}}}m68k_incpc(6);
8305 return 22;
8306 }
CPUFUNC(op_31f8_4)8307 unsigned long CPUFUNC(op_31f8_4)(uint32_t opcode) /* MOVE */
8308 {
8309 	OpcodeFamily = 30; CurrentInstrCycles = 20;
8310 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
8311 {	int16_t src = m68k_read_memory_16(srca);
8312 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
8313 	CLEAR_CZNV;
8314 	SET_ZFLG (((int16_t)(src)) == 0);
8315 	SET_NFLG (((int16_t)(src)) < 0);
8316 	m68k_write_memory_16(dsta,src);
8317 }}}}m68k_incpc(6);
8318 return 20;
8319 }
CPUFUNC(op_31f9_4)8320 unsigned long CPUFUNC(op_31f9_4)(uint32_t opcode) /* MOVE */
8321 {
8322 	OpcodeFamily = 30; CurrentInstrCycles = 24;
8323 {{	uint32_t srca = get_ilong(2);
8324 {	int16_t src = m68k_read_memory_16(srca);
8325 {	uint32_t dsta = (int32_t)(int16_t)get_iword(6);
8326 	CLEAR_CZNV;
8327 	SET_ZFLG (((int16_t)(src)) == 0);
8328 	SET_NFLG (((int16_t)(src)) < 0);
8329 	m68k_write_memory_16(dsta,src);
8330 }}}}m68k_incpc(8);
8331 return 24;
8332 }
CPUFUNC(op_31fa_4)8333 unsigned long CPUFUNC(op_31fa_4)(uint32_t opcode) /* MOVE */
8334 {
8335 	OpcodeFamily = 30; CurrentInstrCycles = 20;
8336 {{	uint32_t srca = m68k_getpc () + 2;
8337 	srca += (int32_t)(int16_t)get_iword(2);
8338 {	int16_t src = m68k_read_memory_16(srca);
8339 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
8340 	CLEAR_CZNV;
8341 	SET_ZFLG (((int16_t)(src)) == 0);
8342 	SET_NFLG (((int16_t)(src)) < 0);
8343 	m68k_write_memory_16(dsta,src);
8344 }}}}m68k_incpc(6);
8345 return 20;
8346 }
CPUFUNC(op_31fb_4)8347 unsigned long CPUFUNC(op_31fb_4)(uint32_t opcode) /* MOVE */
8348 {
8349 	OpcodeFamily = 30; CurrentInstrCycles = 22;
8350 {{	uint32_t tmppc = m68k_getpc() + 2;
8351 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
8352 	BusCyclePenalty += 2;
8353 {	int16_t src = m68k_read_memory_16(srca);
8354 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
8355 	CLEAR_CZNV;
8356 	SET_ZFLG (((int16_t)(src)) == 0);
8357 	SET_NFLG (((int16_t)(src)) < 0);
8358 	m68k_write_memory_16(dsta,src);
8359 }}}}m68k_incpc(6);
8360 return 22;
8361 }
CPUFUNC(op_31fc_4)8362 unsigned long CPUFUNC(op_31fc_4)(uint32_t opcode) /* MOVE */
8363 {
8364 	OpcodeFamily = 30; CurrentInstrCycles = 16;
8365 {{	int16_t src = get_iword(2);
8366 {	uint32_t dsta = (int32_t)(int16_t)get_iword(4);
8367 	CLEAR_CZNV;
8368 	SET_ZFLG (((int16_t)(src)) == 0);
8369 	SET_NFLG (((int16_t)(src)) < 0);
8370 	m68k_write_memory_16(dsta,src);
8371 }}}m68k_incpc(6);
8372 return 16;
8373 }
CPUFUNC(op_33c0_4)8374 unsigned long CPUFUNC(op_33c0_4)(uint32_t opcode) /* MOVE */
8375 {
8376 	uint32_t srcreg = (opcode & 7);
8377 	OpcodeFamily = 30; CurrentInstrCycles = 16;
8378 {{	int16_t src = m68k_dreg(regs, srcreg);
8379 {	uint32_t dsta = get_ilong(2);
8380 	CLEAR_CZNV;
8381 	SET_ZFLG (((int16_t)(src)) == 0);
8382 	SET_NFLG (((int16_t)(src)) < 0);
8383 	m68k_write_memory_16(dsta,src);
8384 }}}m68k_incpc(6);
8385 return 16;
8386 }
CPUFUNC(op_33c8_4)8387 unsigned long CPUFUNC(op_33c8_4)(uint32_t opcode) /* MOVE */
8388 {
8389 	uint32_t srcreg = (opcode & 7);
8390 	OpcodeFamily = 30; CurrentInstrCycles = 16;
8391 {{	int16_t src = m68k_areg(regs, srcreg);
8392 {	uint32_t dsta = get_ilong(2);
8393 	CLEAR_CZNV;
8394 	SET_ZFLG (((int16_t)(src)) == 0);
8395 	SET_NFLG (((int16_t)(src)) < 0);
8396 	m68k_write_memory_16(dsta,src);
8397 }}}m68k_incpc(6);
8398 return 16;
8399 }
CPUFUNC(op_33d0_4)8400 unsigned long CPUFUNC(op_33d0_4)(uint32_t opcode) /* MOVE */
8401 {
8402 	uint32_t srcreg = (opcode & 7);
8403 	OpcodeFamily = 30; CurrentInstrCycles = 20;
8404 {{	uint32_t srca = m68k_areg(regs, srcreg);
8405 {	int16_t src = m68k_read_memory_16(srca);
8406 {	uint32_t dsta = get_ilong(2);
8407 	CLEAR_CZNV;
8408 	SET_ZFLG (((int16_t)(src)) == 0);
8409 	SET_NFLG (((int16_t)(src)) < 0);
8410 	m68k_write_memory_16(dsta,src);
8411 }}}}m68k_incpc(6);
8412 return 20;
8413 }
CPUFUNC(op_33d8_4)8414 unsigned long CPUFUNC(op_33d8_4)(uint32_t opcode) /* MOVE */
8415 {
8416 	uint32_t srcreg = (opcode & 7);
8417 	OpcodeFamily = 30; CurrentInstrCycles = 20;
8418 {{	uint32_t srca = m68k_areg(regs, srcreg);
8419 {	int16_t src = m68k_read_memory_16(srca);
8420 	m68k_areg(regs, srcreg) += 2;
8421 {	uint32_t dsta = get_ilong(2);
8422 	CLEAR_CZNV;
8423 	SET_ZFLG (((int16_t)(src)) == 0);
8424 	SET_NFLG (((int16_t)(src)) < 0);
8425 	m68k_write_memory_16(dsta,src);
8426 }}}}m68k_incpc(6);
8427 return 20;
8428 }
CPUFUNC(op_33e0_4)8429 unsigned long CPUFUNC(op_33e0_4)(uint32_t opcode) /* MOVE */
8430 {
8431 	uint32_t srcreg = (opcode & 7);
8432 	OpcodeFamily = 30; CurrentInstrCycles = 22;
8433 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
8434 {	int16_t src = m68k_read_memory_16(srca);
8435 	m68k_areg (regs, srcreg) = srca;
8436 {	uint32_t dsta = get_ilong(2);
8437 	CLEAR_CZNV;
8438 	SET_ZFLG (((int16_t)(src)) == 0);
8439 	SET_NFLG (((int16_t)(src)) < 0);
8440 	m68k_write_memory_16(dsta,src);
8441 }}}}m68k_incpc(6);
8442 return 22;
8443 }
CPUFUNC(op_33e8_4)8444 unsigned long CPUFUNC(op_33e8_4)(uint32_t opcode) /* MOVE */
8445 {
8446 	uint32_t srcreg = (opcode & 7);
8447 	OpcodeFamily = 30; CurrentInstrCycles = 24;
8448 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
8449 {	int16_t src = m68k_read_memory_16(srca);
8450 {	uint32_t dsta = get_ilong(4);
8451 	CLEAR_CZNV;
8452 	SET_ZFLG (((int16_t)(src)) == 0);
8453 	SET_NFLG (((int16_t)(src)) < 0);
8454 	m68k_write_memory_16(dsta,src);
8455 }}}}m68k_incpc(8);
8456 return 24;
8457 }
CPUFUNC(op_33f0_4)8458 unsigned long CPUFUNC(op_33f0_4)(uint32_t opcode) /* MOVE */
8459 {
8460 	uint32_t srcreg = (opcode & 7);
8461 	OpcodeFamily = 30; CurrentInstrCycles = 26;
8462 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
8463 	BusCyclePenalty += 2;
8464 {	int16_t src = m68k_read_memory_16(srca);
8465 {	uint32_t dsta = get_ilong(4);
8466 	CLEAR_CZNV;
8467 	SET_ZFLG (((int16_t)(src)) == 0);
8468 	SET_NFLG (((int16_t)(src)) < 0);
8469 	m68k_write_memory_16(dsta,src);
8470 }}}}m68k_incpc(8);
8471 return 26;
8472 }
CPUFUNC(op_33f8_4)8473 unsigned long CPUFUNC(op_33f8_4)(uint32_t opcode) /* MOVE */
8474 {
8475 	OpcodeFamily = 30; CurrentInstrCycles = 24;
8476 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
8477 {	int16_t src = m68k_read_memory_16(srca);
8478 {	uint32_t dsta = get_ilong(4);
8479 	CLEAR_CZNV;
8480 	SET_ZFLG (((int16_t)(src)) == 0);
8481 	SET_NFLG (((int16_t)(src)) < 0);
8482 	m68k_write_memory_16(dsta,src);
8483 }}}}m68k_incpc(8);
8484 return 24;
8485 }
CPUFUNC(op_33f9_4)8486 unsigned long CPUFUNC(op_33f9_4)(uint32_t opcode) /* MOVE */
8487 {
8488 	OpcodeFamily = 30; CurrentInstrCycles = 28;
8489 {{	uint32_t srca = get_ilong(2);
8490 {	int16_t src = m68k_read_memory_16(srca);
8491 {	uint32_t dsta = get_ilong(6);
8492 	CLEAR_CZNV;
8493 	SET_ZFLG (((int16_t)(src)) == 0);
8494 	SET_NFLG (((int16_t)(src)) < 0);
8495 	m68k_write_memory_16(dsta,src);
8496 }}}}m68k_incpc(10);
8497 return 28;
8498 }
CPUFUNC(op_33fa_4)8499 unsigned long CPUFUNC(op_33fa_4)(uint32_t opcode) /* MOVE */
8500 {
8501 	OpcodeFamily = 30; CurrentInstrCycles = 24;
8502 {{	uint32_t srca = m68k_getpc () + 2;
8503 	srca += (int32_t)(int16_t)get_iword(2);
8504 {	int16_t src = m68k_read_memory_16(srca);
8505 {	uint32_t dsta = get_ilong(4);
8506 	CLEAR_CZNV;
8507 	SET_ZFLG (((int16_t)(src)) == 0);
8508 	SET_NFLG (((int16_t)(src)) < 0);
8509 	m68k_write_memory_16(dsta,src);
8510 }}}}m68k_incpc(8);
8511 return 24;
8512 }
CPUFUNC(op_33fb_4)8513 unsigned long CPUFUNC(op_33fb_4)(uint32_t opcode) /* MOVE */
8514 {
8515 	OpcodeFamily = 30; CurrentInstrCycles = 26;
8516 {{	uint32_t tmppc = m68k_getpc() + 2;
8517 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
8518 	BusCyclePenalty += 2;
8519 {	int16_t src = m68k_read_memory_16(srca);
8520 {	uint32_t dsta = get_ilong(4);
8521 	CLEAR_CZNV;
8522 	SET_ZFLG (((int16_t)(src)) == 0);
8523 	SET_NFLG (((int16_t)(src)) < 0);
8524 	m68k_write_memory_16(dsta,src);
8525 }}}}m68k_incpc(8);
8526 return 26;
8527 }
CPUFUNC(op_33fc_4)8528 unsigned long CPUFUNC(op_33fc_4)(uint32_t opcode) /* MOVE */
8529 {
8530 	OpcodeFamily = 30; CurrentInstrCycles = 20;
8531 {{	int16_t src = get_iword(2);
8532 {	uint32_t dsta = get_ilong(4);
8533 	CLEAR_CZNV;
8534 	SET_ZFLG (((int16_t)(src)) == 0);
8535 	SET_NFLG (((int16_t)(src)) < 0);
8536 	m68k_write_memory_16(dsta,src);
8537 }}}m68k_incpc(8);
8538 return 20;
8539 }
CPUFUNC(op_4000_4)8540 unsigned long CPUFUNC(op_4000_4)(uint32_t opcode) /* NEGX */
8541 {
8542 	uint32_t srcreg = (opcode & 7);
8543 	OpcodeFamily = 16; CurrentInstrCycles = 4;
8544 {{	int8_t src = m68k_dreg(regs, srcreg);
8545 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8546 {	int flgs = ((int8_t)(src)) < 0;
8547 	int flgo = ((int8_t)(0)) < 0;
8548 	int flgn = ((int8_t)(newv)) < 0;
8549 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8550 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8551 	COPY_CARRY;
8552 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8553 	SET_NFLG (((int8_t)(newv)) < 0);
8554 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((newv) & 0xff);
8555 }}}}m68k_incpc(2);
8556 return 4;
8557 }
CPUFUNC(op_4010_4)8558 unsigned long CPUFUNC(op_4010_4)(uint32_t opcode) /* NEGX */
8559 {
8560 	uint32_t srcreg = (opcode & 7);
8561 	OpcodeFamily = 16; CurrentInstrCycles = 12;
8562 {{	uint32_t srca = m68k_areg(regs, srcreg);
8563 {	int8_t src = m68k_read_memory_8(srca);
8564 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8565 {	int flgs = ((int8_t)(src)) < 0;
8566 	int flgo = ((int8_t)(0)) < 0;
8567 	int flgn = ((int8_t)(newv)) < 0;
8568 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8569 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8570 	COPY_CARRY;
8571 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8572 	SET_NFLG (((int8_t)(newv)) < 0);
8573 	m68k_write_memory_8(srca,newv);
8574 }}}}}m68k_incpc(2);
8575 return 12;
8576 }
CPUFUNC(op_4018_4)8577 unsigned long CPUFUNC(op_4018_4)(uint32_t opcode) /* NEGX */
8578 {
8579 	uint32_t srcreg = (opcode & 7);
8580 	OpcodeFamily = 16; CurrentInstrCycles = 12;
8581 {{	uint32_t srca = m68k_areg(regs, srcreg);
8582 {	int8_t src = m68k_read_memory_8(srca);
8583 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
8584 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8585 {	int flgs = ((int8_t)(src)) < 0;
8586 	int flgo = ((int8_t)(0)) < 0;
8587 	int flgn = ((int8_t)(newv)) < 0;
8588 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8589 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8590 	COPY_CARRY;
8591 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8592 	SET_NFLG (((int8_t)(newv)) < 0);
8593 	m68k_write_memory_8(srca,newv);
8594 }}}}}m68k_incpc(2);
8595 return 12;
8596 }
CPUFUNC(op_4020_4)8597 unsigned long CPUFUNC(op_4020_4)(uint32_t opcode) /* NEGX */
8598 {
8599 	uint32_t srcreg = (opcode & 7);
8600 	OpcodeFamily = 16; CurrentInstrCycles = 14;
8601 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
8602 {	int8_t src = m68k_read_memory_8(srca);
8603 	m68k_areg (regs, srcreg) = srca;
8604 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8605 {	int flgs = ((int8_t)(src)) < 0;
8606 	int flgo = ((int8_t)(0)) < 0;
8607 	int flgn = ((int8_t)(newv)) < 0;
8608 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8609 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8610 	COPY_CARRY;
8611 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8612 	SET_NFLG (((int8_t)(newv)) < 0);
8613 	m68k_write_memory_8(srca,newv);
8614 }}}}}m68k_incpc(2);
8615 return 14;
8616 }
CPUFUNC(op_4028_4)8617 unsigned long CPUFUNC(op_4028_4)(uint32_t opcode) /* NEGX */
8618 {
8619 	uint32_t srcreg = (opcode & 7);
8620 	OpcodeFamily = 16; CurrentInstrCycles = 16;
8621 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
8622 {	int8_t src = m68k_read_memory_8(srca);
8623 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8624 {	int flgs = ((int8_t)(src)) < 0;
8625 	int flgo = ((int8_t)(0)) < 0;
8626 	int flgn = ((int8_t)(newv)) < 0;
8627 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8628 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8629 	COPY_CARRY;
8630 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8631 	SET_NFLG (((int8_t)(newv)) < 0);
8632 	m68k_write_memory_8(srca,newv);
8633 }}}}}m68k_incpc(4);
8634 return 16;
8635 }
CPUFUNC(op_4030_4)8636 unsigned long CPUFUNC(op_4030_4)(uint32_t opcode) /* NEGX */
8637 {
8638 	uint32_t srcreg = (opcode & 7);
8639 	OpcodeFamily = 16; CurrentInstrCycles = 18;
8640 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
8641 	BusCyclePenalty += 2;
8642 {	int8_t src = m68k_read_memory_8(srca);
8643 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8644 {	int flgs = ((int8_t)(src)) < 0;
8645 	int flgo = ((int8_t)(0)) < 0;
8646 	int flgn = ((int8_t)(newv)) < 0;
8647 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8648 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8649 	COPY_CARRY;
8650 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8651 	SET_NFLG (((int8_t)(newv)) < 0);
8652 	m68k_write_memory_8(srca,newv);
8653 }}}}}m68k_incpc(4);
8654 return 18;
8655 }
CPUFUNC(op_4038_4)8656 unsigned long CPUFUNC(op_4038_4)(uint32_t opcode) /* NEGX */
8657 {
8658 	OpcodeFamily = 16; CurrentInstrCycles = 16;
8659 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
8660 {	int8_t src = m68k_read_memory_8(srca);
8661 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8662 {	int flgs = ((int8_t)(src)) < 0;
8663 	int flgo = ((int8_t)(0)) < 0;
8664 	int flgn = ((int8_t)(newv)) < 0;
8665 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8666 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8667 	COPY_CARRY;
8668 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8669 	SET_NFLG (((int8_t)(newv)) < 0);
8670 	m68k_write_memory_8(srca,newv);
8671 }}}}}m68k_incpc(4);
8672 return 16;
8673 }
CPUFUNC(op_4039_4)8674 unsigned long CPUFUNC(op_4039_4)(uint32_t opcode) /* NEGX */
8675 {
8676 	OpcodeFamily = 16; CurrentInstrCycles = 20;
8677 {{	uint32_t srca = get_ilong(2);
8678 {	int8_t src = m68k_read_memory_8(srca);
8679 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8680 {	int flgs = ((int8_t)(src)) < 0;
8681 	int flgo = ((int8_t)(0)) < 0;
8682 	int flgn = ((int8_t)(newv)) < 0;
8683 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8684 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8685 	COPY_CARRY;
8686 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
8687 	SET_NFLG (((int8_t)(newv)) < 0);
8688 	m68k_write_memory_8(srca,newv);
8689 }}}}}m68k_incpc(6);
8690 return 20;
8691 }
CPUFUNC(op_4040_4)8692 unsigned long CPUFUNC(op_4040_4)(uint32_t opcode) /* NEGX */
8693 {
8694 	uint32_t srcreg = (opcode & 7);
8695 	OpcodeFamily = 16; CurrentInstrCycles = 4;
8696 {{	int16_t src = m68k_dreg(regs, srcreg);
8697 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8698 {	int flgs = ((int16_t)(src)) < 0;
8699 	int flgo = ((int16_t)(0)) < 0;
8700 	int flgn = ((int16_t)(newv)) < 0;
8701 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8702 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8703 	COPY_CARRY;
8704 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8705 	SET_NFLG (((int16_t)(newv)) < 0);
8706 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((newv) & 0xffff);
8707 }}}}m68k_incpc(2);
8708 return 4;
8709 }
CPUFUNC(op_4050_4)8710 unsigned long CPUFUNC(op_4050_4)(uint32_t opcode) /* NEGX */
8711 {
8712 	uint32_t srcreg = (opcode & 7);
8713 	OpcodeFamily = 16; CurrentInstrCycles = 12;
8714 {{	uint32_t srca = m68k_areg(regs, srcreg);
8715 {	int16_t src = m68k_read_memory_16(srca);
8716 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8717 {	int flgs = ((int16_t)(src)) < 0;
8718 	int flgo = ((int16_t)(0)) < 0;
8719 	int flgn = ((int16_t)(newv)) < 0;
8720 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8721 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8722 	COPY_CARRY;
8723 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8724 	SET_NFLG (((int16_t)(newv)) < 0);
8725 	m68k_write_memory_16(srca,newv);
8726 }}}}}m68k_incpc(2);
8727 return 12;
8728 }
CPUFUNC(op_4058_4)8729 unsigned long CPUFUNC(op_4058_4)(uint32_t opcode) /* NEGX */
8730 {
8731 	uint32_t srcreg = (opcode & 7);
8732 	OpcodeFamily = 16; CurrentInstrCycles = 12;
8733 {{	uint32_t srca = m68k_areg(regs, srcreg);
8734 {	int16_t src = m68k_read_memory_16(srca);
8735 	m68k_areg(regs, srcreg) += 2;
8736 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8737 {	int flgs = ((int16_t)(src)) < 0;
8738 	int flgo = ((int16_t)(0)) < 0;
8739 	int flgn = ((int16_t)(newv)) < 0;
8740 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8741 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8742 	COPY_CARRY;
8743 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8744 	SET_NFLG (((int16_t)(newv)) < 0);
8745 	m68k_write_memory_16(srca,newv);
8746 }}}}}m68k_incpc(2);
8747 return 12;
8748 }
CPUFUNC(op_4060_4)8749 unsigned long CPUFUNC(op_4060_4)(uint32_t opcode) /* NEGX */
8750 {
8751 	uint32_t srcreg = (opcode & 7);
8752 	OpcodeFamily = 16; CurrentInstrCycles = 14;
8753 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
8754 {	int16_t src = m68k_read_memory_16(srca);
8755 	m68k_areg (regs, srcreg) = srca;
8756 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8757 {	int flgs = ((int16_t)(src)) < 0;
8758 	int flgo = ((int16_t)(0)) < 0;
8759 	int flgn = ((int16_t)(newv)) < 0;
8760 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8761 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8762 	COPY_CARRY;
8763 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8764 	SET_NFLG (((int16_t)(newv)) < 0);
8765 	m68k_write_memory_16(srca,newv);
8766 }}}}}m68k_incpc(2);
8767 return 14;
8768 }
CPUFUNC(op_4068_4)8769 unsigned long CPUFUNC(op_4068_4)(uint32_t opcode) /* NEGX */
8770 {
8771 	uint32_t srcreg = (opcode & 7);
8772 	OpcodeFamily = 16; CurrentInstrCycles = 16;
8773 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
8774 {	int16_t src = m68k_read_memory_16(srca);
8775 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8776 {	int flgs = ((int16_t)(src)) < 0;
8777 	int flgo = ((int16_t)(0)) < 0;
8778 	int flgn = ((int16_t)(newv)) < 0;
8779 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8780 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8781 	COPY_CARRY;
8782 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8783 	SET_NFLG (((int16_t)(newv)) < 0);
8784 	m68k_write_memory_16(srca,newv);
8785 }}}}}m68k_incpc(4);
8786 return 16;
8787 }
CPUFUNC(op_4070_4)8788 unsigned long CPUFUNC(op_4070_4)(uint32_t opcode) /* NEGX */
8789 {
8790 	uint32_t srcreg = (opcode & 7);
8791 	OpcodeFamily = 16; CurrentInstrCycles = 18;
8792 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
8793 	BusCyclePenalty += 2;
8794 {	int16_t src = m68k_read_memory_16(srca);
8795 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8796 {	int flgs = ((int16_t)(src)) < 0;
8797 	int flgo = ((int16_t)(0)) < 0;
8798 	int flgn = ((int16_t)(newv)) < 0;
8799 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8800 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8801 	COPY_CARRY;
8802 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8803 	SET_NFLG (((int16_t)(newv)) < 0);
8804 	m68k_write_memory_16(srca,newv);
8805 }}}}}m68k_incpc(4);
8806 return 18;
8807 }
CPUFUNC(op_4078_4)8808 unsigned long CPUFUNC(op_4078_4)(uint32_t opcode) /* NEGX */
8809 {
8810 	OpcodeFamily = 16; CurrentInstrCycles = 16;
8811 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
8812 {	int16_t src = m68k_read_memory_16(srca);
8813 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8814 {	int flgs = ((int16_t)(src)) < 0;
8815 	int flgo = ((int16_t)(0)) < 0;
8816 	int flgn = ((int16_t)(newv)) < 0;
8817 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8818 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8819 	COPY_CARRY;
8820 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8821 	SET_NFLG (((int16_t)(newv)) < 0);
8822 	m68k_write_memory_16(srca,newv);
8823 }}}}}m68k_incpc(4);
8824 return 16;
8825 }
CPUFUNC(op_4079_4)8826 unsigned long CPUFUNC(op_4079_4)(uint32_t opcode) /* NEGX */
8827 {
8828 	OpcodeFamily = 16; CurrentInstrCycles = 20;
8829 {{	uint32_t srca = get_ilong(2);
8830 {	int16_t src = m68k_read_memory_16(srca);
8831 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8832 {	int flgs = ((int16_t)(src)) < 0;
8833 	int flgo = ((int16_t)(0)) < 0;
8834 	int flgn = ((int16_t)(newv)) < 0;
8835 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8836 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8837 	COPY_CARRY;
8838 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
8839 	SET_NFLG (((int16_t)(newv)) < 0);
8840 	m68k_write_memory_16(srca,newv);
8841 }}}}}m68k_incpc(6);
8842 return 20;
8843 }
CPUFUNC(op_4080_4)8844 unsigned long CPUFUNC(op_4080_4)(uint32_t opcode) /* NEGX */
8845 {
8846 	uint32_t srcreg = (opcode & 7);
8847 	OpcodeFamily = 16; CurrentInstrCycles = 6;
8848 {{	int32_t src = m68k_dreg(regs, srcreg);
8849 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8850 {	int flgs = ((int32_t)(src)) < 0;
8851 	int flgo = ((int32_t)(0)) < 0;
8852 	int flgn = ((int32_t)(newv)) < 0;
8853 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8854 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8855 	COPY_CARRY;
8856 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8857 	SET_NFLG (((int32_t)(newv)) < 0);
8858 	m68k_dreg(regs, srcreg) = (newv);
8859 }}}}m68k_incpc(2);
8860 return 6;
8861 }
CPUFUNC(op_4090_4)8862 unsigned long CPUFUNC(op_4090_4)(uint32_t opcode) /* NEGX */
8863 {
8864 	uint32_t srcreg = (opcode & 7);
8865 	OpcodeFamily = 16; CurrentInstrCycles = 20;
8866 {{	uint32_t srca = m68k_areg(regs, srcreg);
8867 {	int32_t src = m68k_read_memory_32(srca);
8868 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8869 {	int flgs = ((int32_t)(src)) < 0;
8870 	int flgo = ((int32_t)(0)) < 0;
8871 	int flgn = ((int32_t)(newv)) < 0;
8872 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8873 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8874 	COPY_CARRY;
8875 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8876 	SET_NFLG (((int32_t)(newv)) < 0);
8877 	m68k_write_memory_32(srca,newv);
8878 }}}}}m68k_incpc(2);
8879 return 20;
8880 }
CPUFUNC(op_4098_4)8881 unsigned long CPUFUNC(op_4098_4)(uint32_t opcode) /* NEGX */
8882 {
8883 	uint32_t srcreg = (opcode & 7);
8884 	OpcodeFamily = 16; CurrentInstrCycles = 20;
8885 {{	uint32_t srca = m68k_areg(regs, srcreg);
8886 {	int32_t src = m68k_read_memory_32(srca);
8887 	m68k_areg(regs, srcreg) += 4;
8888 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8889 {	int flgs = ((int32_t)(src)) < 0;
8890 	int flgo = ((int32_t)(0)) < 0;
8891 	int flgn = ((int32_t)(newv)) < 0;
8892 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8893 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8894 	COPY_CARRY;
8895 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8896 	SET_NFLG (((int32_t)(newv)) < 0);
8897 	m68k_write_memory_32(srca,newv);
8898 }}}}}m68k_incpc(2);
8899 return 20;
8900 }
CPUFUNC(op_40a0_4)8901 unsigned long CPUFUNC(op_40a0_4)(uint32_t opcode) /* NEGX */
8902 {
8903 	uint32_t srcreg = (opcode & 7);
8904 	OpcodeFamily = 16; CurrentInstrCycles = 22;
8905 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
8906 {	int32_t src = m68k_read_memory_32(srca);
8907 	m68k_areg (regs, srcreg) = srca;
8908 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8909 {	int flgs = ((int32_t)(src)) < 0;
8910 	int flgo = ((int32_t)(0)) < 0;
8911 	int flgn = ((int32_t)(newv)) < 0;
8912 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8913 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8914 	COPY_CARRY;
8915 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8916 	SET_NFLG (((int32_t)(newv)) < 0);
8917 	m68k_write_memory_32(srca,newv);
8918 }}}}}m68k_incpc(2);
8919 return 22;
8920 }
CPUFUNC(op_40a8_4)8921 unsigned long CPUFUNC(op_40a8_4)(uint32_t opcode) /* NEGX */
8922 {
8923 	uint32_t srcreg = (opcode & 7);
8924 	OpcodeFamily = 16; CurrentInstrCycles = 24;
8925 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
8926 {	int32_t src = m68k_read_memory_32(srca);
8927 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8928 {	int flgs = ((int32_t)(src)) < 0;
8929 	int flgo = ((int32_t)(0)) < 0;
8930 	int flgn = ((int32_t)(newv)) < 0;
8931 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8932 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8933 	COPY_CARRY;
8934 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8935 	SET_NFLG (((int32_t)(newv)) < 0);
8936 	m68k_write_memory_32(srca,newv);
8937 }}}}}m68k_incpc(4);
8938 return 24;
8939 }
CPUFUNC(op_40b0_4)8940 unsigned long CPUFUNC(op_40b0_4)(uint32_t opcode) /* NEGX */
8941 {
8942 	uint32_t srcreg = (opcode & 7);
8943 	OpcodeFamily = 16; CurrentInstrCycles = 26;
8944 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
8945 	BusCyclePenalty += 2;
8946 {	int32_t src = m68k_read_memory_32(srca);
8947 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8948 {	int flgs = ((int32_t)(src)) < 0;
8949 	int flgo = ((int32_t)(0)) < 0;
8950 	int flgn = ((int32_t)(newv)) < 0;
8951 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8952 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8953 	COPY_CARRY;
8954 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8955 	SET_NFLG (((int32_t)(newv)) < 0);
8956 	m68k_write_memory_32(srca,newv);
8957 }}}}}m68k_incpc(4);
8958 return 26;
8959 }
CPUFUNC(op_40b8_4)8960 unsigned long CPUFUNC(op_40b8_4)(uint32_t opcode) /* NEGX */
8961 {
8962 	OpcodeFamily = 16; CurrentInstrCycles = 24;
8963 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
8964 {	int32_t src = m68k_read_memory_32(srca);
8965 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8966 {	int flgs = ((int32_t)(src)) < 0;
8967 	int flgo = ((int32_t)(0)) < 0;
8968 	int flgn = ((int32_t)(newv)) < 0;
8969 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8970 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8971 	COPY_CARRY;
8972 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8973 	SET_NFLG (((int32_t)(newv)) < 0);
8974 	m68k_write_memory_32(srca,newv);
8975 }}}}}m68k_incpc(4);
8976 return 24;
8977 }
CPUFUNC(op_40b9_4)8978 unsigned long CPUFUNC(op_40b9_4)(uint32_t opcode) /* NEGX */
8979 {
8980 	OpcodeFamily = 16; CurrentInstrCycles = 28;
8981 {{	uint32_t srca = get_ilong(2);
8982 {	int32_t src = m68k_read_memory_32(srca);
8983 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
8984 {	int flgs = ((int32_t)(src)) < 0;
8985 	int flgo = ((int32_t)(0)) < 0;
8986 	int flgn = ((int32_t)(newv)) < 0;
8987 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
8988 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
8989 	COPY_CARRY;
8990 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
8991 	SET_NFLG (((int32_t)(newv)) < 0);
8992 	m68k_write_memory_32(srca,newv);
8993 }}}}}m68k_incpc(6);
8994 return 28;
8995 }
CPUFUNC(op_40c0_4)8996 unsigned long CPUFUNC(op_40c0_4)(uint32_t opcode) /* MVSR2 */
8997 {
8998 	uint32_t srcreg = (opcode & 7);
8999 	OpcodeFamily = 32; CurrentInstrCycles = 6;
9000 {{	MakeSR();
9001 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((regs.sr) & 0xffff);
9002 }}m68k_incpc(2);
9003 return 6;
9004 }
CPUFUNC(op_40d0_4)9005 unsigned long CPUFUNC(op_40d0_4)(uint32_t opcode) /* MVSR2 */
9006 {
9007 	uint32_t srcreg = (opcode & 7);
9008 	OpcodeFamily = 32; CurrentInstrCycles = 12;
9009 {{	uint32_t srca = m68k_areg(regs, srcreg);
9010 	MakeSR();
9011 	m68k_write_memory_16(srca,regs.sr);
9012 }}m68k_incpc(2);
9013 return 12;
9014 }
CPUFUNC(op_40d8_4)9015 unsigned long CPUFUNC(op_40d8_4)(uint32_t opcode) /* MVSR2 */
9016 {
9017 	uint32_t srcreg = (opcode & 7);
9018 	OpcodeFamily = 32; CurrentInstrCycles = 12;
9019 {{	uint32_t srca = m68k_areg(regs, srcreg);
9020 	m68k_areg(regs, srcreg) += 2;
9021 	MakeSR();
9022 	m68k_write_memory_16(srca,regs.sr);
9023 }}m68k_incpc(2);
9024 return 12;
9025 }
CPUFUNC(op_40e0_4)9026 unsigned long CPUFUNC(op_40e0_4)(uint32_t opcode) /* MVSR2 */
9027 {
9028 	uint32_t srcreg = (opcode & 7);
9029 	OpcodeFamily = 32; CurrentInstrCycles = 14;
9030 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
9031 	m68k_areg (regs, srcreg) = srca;
9032 	MakeSR();
9033 	m68k_write_memory_16(srca,regs.sr);
9034 }}m68k_incpc(2);
9035 return 14;
9036 }
CPUFUNC(op_40e8_4)9037 unsigned long CPUFUNC(op_40e8_4)(uint32_t opcode) /* MVSR2 */
9038 {
9039 	uint32_t srcreg = (opcode & 7);
9040 	OpcodeFamily = 32; CurrentInstrCycles = 16;
9041 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9042 	MakeSR();
9043 	m68k_write_memory_16(srca,regs.sr);
9044 }}m68k_incpc(4);
9045 return 16;
9046 }
CPUFUNC(op_40f0_4)9047 unsigned long CPUFUNC(op_40f0_4)(uint32_t opcode) /* MVSR2 */
9048 {
9049 	uint32_t srcreg = (opcode & 7);
9050 	OpcodeFamily = 32; CurrentInstrCycles = 18;
9051 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9052 	BusCyclePenalty += 2;
9053 	MakeSR();
9054 	m68k_write_memory_16(srca,regs.sr);
9055 }}m68k_incpc(4);
9056 return 18;
9057 }
CPUFUNC(op_40f8_4)9058 unsigned long CPUFUNC(op_40f8_4)(uint32_t opcode) /* MVSR2 */
9059 {
9060 	OpcodeFamily = 32; CurrentInstrCycles = 16;
9061 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9062 	MakeSR();
9063 	m68k_write_memory_16(srca,regs.sr);
9064 }}m68k_incpc(4);
9065 return 16;
9066 }
CPUFUNC(op_40f9_4)9067 unsigned long CPUFUNC(op_40f9_4)(uint32_t opcode) /* MVSR2 */
9068 {
9069 	OpcodeFamily = 32; CurrentInstrCycles = 20;
9070 {{	uint32_t srca = get_ilong(2);
9071 	MakeSR();
9072 	m68k_write_memory_16(srca,regs.sr);
9073 }}m68k_incpc(6);
9074 return 20;
9075 }
CPUFUNC(op_4180_4)9076 unsigned long CPUFUNC(op_4180_4)(uint32_t opcode) /* CHK */
9077 {
9078 	uint32_t srcreg = (opcode & 7);
9079 	uint32_t dstreg = (opcode >> 9) & 7;
9080 	OpcodeFamily = 80; CurrentInstrCycles = 10;
9081 {	uint32_t oldpc = m68k_getpc();
9082 {	int16_t src = m68k_dreg(regs, srcreg);
9083 {	int16_t dst = m68k_dreg(regs, dstreg);
9084 m68k_incpc(2);
9085 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel587; }
9086 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel587; }
9087 }}}endlabel587: ;
9088 return 10;
9089 }
CPUFUNC(op_4190_4)9090 unsigned long CPUFUNC(op_4190_4)(uint32_t opcode) /* CHK */
9091 {
9092 	uint32_t srcreg = (opcode & 7);
9093 	uint32_t dstreg = (opcode >> 9) & 7;
9094 	OpcodeFamily = 80; CurrentInstrCycles = 14;
9095 {	uint32_t oldpc = m68k_getpc();
9096 {	uint32_t srca = m68k_areg(regs, srcreg);
9097 {	int16_t src = m68k_read_memory_16(srca);
9098 {	int16_t dst = m68k_dreg(regs, dstreg);
9099 m68k_incpc(2);
9100 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel588; }
9101 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel588; }
9102 }}}}endlabel588: ;
9103 return 14;
9104 }
CPUFUNC(op_4198_4)9105 unsigned long CPUFUNC(op_4198_4)(uint32_t opcode) /* CHK */
9106 {
9107 	uint32_t srcreg = (opcode & 7);
9108 	uint32_t dstreg = (opcode >> 9) & 7;
9109 	OpcodeFamily = 80; CurrentInstrCycles = 14;
9110 {	uint32_t oldpc = m68k_getpc();
9111 {	uint32_t srca = m68k_areg(regs, srcreg);
9112 {	int16_t src = m68k_read_memory_16(srca);
9113 	m68k_areg(regs, srcreg) += 2;
9114 {	int16_t dst = m68k_dreg(regs, dstreg);
9115 m68k_incpc(2);
9116 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel589; }
9117 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel589; }
9118 }}}}endlabel589: ;
9119 return 14;
9120 }
CPUFUNC(op_41a0_4)9121 unsigned long CPUFUNC(op_41a0_4)(uint32_t opcode) /* CHK */
9122 {
9123 	uint32_t srcreg = (opcode & 7);
9124 	uint32_t dstreg = (opcode >> 9) & 7;
9125 	OpcodeFamily = 80; CurrentInstrCycles = 16;
9126 {	uint32_t oldpc = m68k_getpc();
9127 {	uint32_t srca = m68k_areg(regs, srcreg) - 2;
9128 {	int16_t src = m68k_read_memory_16(srca);
9129 	m68k_areg (regs, srcreg) = srca;
9130 {	int16_t dst = m68k_dreg(regs, dstreg);
9131 m68k_incpc(2);
9132 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel590; }
9133 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel590; }
9134 }}}}endlabel590: ;
9135 return 16;
9136 }
CPUFUNC(op_41a8_4)9137 unsigned long CPUFUNC(op_41a8_4)(uint32_t opcode) /* CHK */
9138 {
9139 	uint32_t srcreg = (opcode & 7);
9140 	uint32_t dstreg = (opcode >> 9) & 7;
9141 	OpcodeFamily = 80; CurrentInstrCycles = 18;
9142 {	uint32_t oldpc = m68k_getpc();
9143 {	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9144 {	int16_t src = m68k_read_memory_16(srca);
9145 {	int16_t dst = m68k_dreg(regs, dstreg);
9146 m68k_incpc(4);
9147 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel591; }
9148 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel591; }
9149 }}}}endlabel591: ;
9150 return 18;
9151 }
CPUFUNC(op_41b0_4)9152 unsigned long CPUFUNC(op_41b0_4)(uint32_t opcode) /* CHK */
9153 {
9154 	uint32_t srcreg = (opcode & 7);
9155 	uint32_t dstreg = (opcode >> 9) & 7;
9156 	OpcodeFamily = 80; CurrentInstrCycles = 20;
9157 {	uint32_t oldpc = m68k_getpc();
9158 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9159 	BusCyclePenalty += 2;
9160 {	int16_t src = m68k_read_memory_16(srca);
9161 {	int16_t dst = m68k_dreg(regs, dstreg);
9162 m68k_incpc(4);
9163 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel592; }
9164 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel592; }
9165 }}}}endlabel592: ;
9166 return 20;
9167 }
CPUFUNC(op_41b8_4)9168 unsigned long CPUFUNC(op_41b8_4)(uint32_t opcode) /* CHK */
9169 {
9170 	uint32_t dstreg = (opcode >> 9) & 7;
9171 	OpcodeFamily = 80; CurrentInstrCycles = 18;
9172 {	uint32_t oldpc = m68k_getpc();
9173 {	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9174 {	int16_t src = m68k_read_memory_16(srca);
9175 {	int16_t dst = m68k_dreg(regs, dstreg);
9176 m68k_incpc(4);
9177 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel593; }
9178 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel593; }
9179 }}}}endlabel593: ;
9180 return 18;
9181 }
CPUFUNC(op_41b9_4)9182 unsigned long CPUFUNC(op_41b9_4)(uint32_t opcode) /* CHK */
9183 {
9184 	uint32_t dstreg = (opcode >> 9) & 7;
9185 	OpcodeFamily = 80; CurrentInstrCycles = 22;
9186 {	uint32_t oldpc = m68k_getpc();
9187 {	uint32_t srca = get_ilong(2);
9188 {	int16_t src = m68k_read_memory_16(srca);
9189 {	int16_t dst = m68k_dreg(regs, dstreg);
9190 m68k_incpc(6);
9191 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel594; }
9192 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel594; }
9193 }}}}endlabel594: ;
9194 return 22;
9195 }
CPUFUNC(op_41ba_4)9196 unsigned long CPUFUNC(op_41ba_4)(uint32_t opcode) /* CHK */
9197 {
9198 	uint32_t dstreg = (opcode >> 9) & 7;
9199 	OpcodeFamily = 80; CurrentInstrCycles = 18;
9200 {	uint32_t oldpc = m68k_getpc();
9201 {	uint32_t srca = m68k_getpc () + 2;
9202 	srca += (int32_t)(int16_t)get_iword(2);
9203 {	int16_t src = m68k_read_memory_16(srca);
9204 {	int16_t dst = m68k_dreg(regs, dstreg);
9205 m68k_incpc(4);
9206 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel595; }
9207 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel595; }
9208 }}}}endlabel595: ;
9209 return 18;
9210 }
CPUFUNC(op_41bb_4)9211 unsigned long CPUFUNC(op_41bb_4)(uint32_t opcode) /* CHK */
9212 {
9213 	uint32_t dstreg = (opcode >> 9) & 7;
9214 	OpcodeFamily = 80; CurrentInstrCycles = 20;
9215 {	uint32_t oldpc = m68k_getpc();
9216 {	uint32_t tmppc = m68k_getpc() + 2;
9217 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
9218 	BusCyclePenalty += 2;
9219 {	int16_t src = m68k_read_memory_16(srca);
9220 {	int16_t dst = m68k_dreg(regs, dstreg);
9221 m68k_incpc(4);
9222 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel596; }
9223 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel596; }
9224 }}}}endlabel596: ;
9225 return 20;
9226 }
CPUFUNC(op_41bc_4)9227 unsigned long CPUFUNC(op_41bc_4)(uint32_t opcode) /* CHK */
9228 {
9229 	uint32_t dstreg = (opcode >> 9) & 7;
9230 	OpcodeFamily = 80; CurrentInstrCycles = 14;
9231 {	uint32_t oldpc = m68k_getpc();
9232 {	int16_t src = get_iword(2);
9233 {	int16_t dst = m68k_dreg(regs, dstreg);
9234 m68k_incpc(4);
9235 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel597; }
9236 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel597; }
9237 }}}endlabel597: ;
9238 return 14;
9239 }
CPUFUNC(op_41d0_4)9240 unsigned long CPUFUNC(op_41d0_4)(uint32_t opcode) /* LEA */
9241 {
9242 	uint32_t srcreg = (opcode & 7);
9243 	uint32_t dstreg = (opcode >> 9) & 7;
9244 	OpcodeFamily = 56; CurrentInstrCycles = 4;
9245 {{	uint32_t srca = m68k_areg(regs, srcreg);
9246 {	m68k_areg(regs, dstreg) = (srca);
9247 }}}m68k_incpc(2);
9248 return 4;
9249 }
CPUFUNC(op_41e8_4)9250 unsigned long CPUFUNC(op_41e8_4)(uint32_t opcode) /* LEA */
9251 {
9252 	uint32_t srcreg = (opcode & 7);
9253 	uint32_t dstreg = (opcode >> 9) & 7;
9254 	OpcodeFamily = 56; CurrentInstrCycles = 8;
9255 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9256 {	m68k_areg(regs, dstreg) = (srca);
9257 }}}m68k_incpc(4);
9258 return 8;
9259 }
CPUFUNC(op_41f0_4)9260 unsigned long CPUFUNC(op_41f0_4)(uint32_t opcode) /* LEA */
9261 {
9262 	uint32_t srcreg = (opcode & 7);
9263 	uint32_t dstreg = (opcode >> 9) & 7;
9264 	OpcodeFamily = 56; CurrentInstrCycles = 14;
9265 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9266 	BusCyclePenalty += 2;
9267 {	m68k_areg(regs, dstreg) = (srca);
9268 }}}m68k_incpc(4);
9269 return 14;
9270 }
CPUFUNC(op_41f8_4)9271 unsigned long CPUFUNC(op_41f8_4)(uint32_t opcode) /* LEA */
9272 {
9273 	uint32_t dstreg = (opcode >> 9) & 7;
9274 	OpcodeFamily = 56; CurrentInstrCycles = 8;
9275 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9276 {	m68k_areg(regs, dstreg) = (srca);
9277 }}}m68k_incpc(4);
9278 return 8;
9279 }
CPUFUNC(op_41f9_4)9280 unsigned long CPUFUNC(op_41f9_4)(uint32_t opcode) /* LEA */
9281 {
9282 	uint32_t dstreg = (opcode >> 9) & 7;
9283 	OpcodeFamily = 56; CurrentInstrCycles = 12;
9284 {{	uint32_t srca = get_ilong(2);
9285 {	m68k_areg(regs, dstreg) = (srca);
9286 }}}m68k_incpc(6);
9287 return 12;
9288 }
CPUFUNC(op_41fa_4)9289 unsigned long CPUFUNC(op_41fa_4)(uint32_t opcode) /* LEA */
9290 {
9291 	uint32_t dstreg = (opcode >> 9) & 7;
9292 	OpcodeFamily = 56; CurrentInstrCycles = 8;
9293 {{	uint32_t srca = m68k_getpc () + 2;
9294 	srca += (int32_t)(int16_t)get_iword(2);
9295 {	m68k_areg(regs, dstreg) = (srca);
9296 }}}m68k_incpc(4);
9297 return 8;
9298 }
CPUFUNC(op_41fb_4)9299 unsigned long CPUFUNC(op_41fb_4)(uint32_t opcode) /* LEA */
9300 {
9301 	uint32_t dstreg = (opcode >> 9) & 7;
9302 	OpcodeFamily = 56; CurrentInstrCycles = 14;
9303 {{	uint32_t tmppc = m68k_getpc() + 2;
9304 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
9305 	BusCyclePenalty += 2;
9306 {	m68k_areg(regs, dstreg) = (srca);
9307 }}}m68k_incpc(4);
9308 return 14;
9309 }
CPUFUNC(op_4200_4)9310 unsigned long CPUFUNC(op_4200_4)(uint32_t opcode) /* CLR */
9311 {
9312 	uint32_t srcreg = (opcode & 7);
9313 	OpcodeFamily = 18; CurrentInstrCycles = 4;
9314 {{	CLEAR_CZNV;
9315 	SET_ZFLG (((int8_t)(0)) == 0);
9316 	SET_NFLG (((int8_t)(0)) < 0);
9317 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((0) & 0xff);
9318 }}m68k_incpc(2);
9319 return 4;
9320 }
CPUFUNC(op_4210_4)9321 unsigned long CPUFUNC(op_4210_4)(uint32_t opcode) /* CLR */
9322 {
9323 	uint32_t srcreg = (opcode & 7);
9324 	OpcodeFamily = 18; CurrentInstrCycles = 12;
9325 {{	uint32_t srca = m68k_areg(regs, srcreg);
9326 	int8_t src = m68k_read_memory_8(srca);
9327 	CLEAR_CZNV;
9328 	SET_ZFLG (((int8_t)(0)) == 0);
9329 	SET_NFLG (((int8_t)(0)) < 0);
9330 	m68k_write_memory_8(srca,0);
9331 }}m68k_incpc(2);
9332 return 12;
9333 }
CPUFUNC(op_4218_4)9334 unsigned long CPUFUNC(op_4218_4)(uint32_t opcode) /* CLR */
9335 {
9336 	uint32_t srcreg = (opcode & 7);
9337 	OpcodeFamily = 18; CurrentInstrCycles = 12;
9338 {{	int8_t src; uint32_t srca = m68k_areg(regs, srcreg);
9339 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
9340 	src = m68k_read_memory_8(srca);
9341 	CLEAR_CZNV;
9342 	SET_ZFLG (((int8_t)(0)) == 0);
9343 	SET_NFLG (((int8_t)(0)) < 0);
9344 	m68k_write_memory_8(srca,0);
9345 }}m68k_incpc(2);
9346 return 12;
9347 }
CPUFUNC(op_4220_4)9348 unsigned long CPUFUNC(op_4220_4)(uint32_t opcode) /* CLR */
9349 {
9350 	uint32_t srcreg = (opcode & 7);
9351 	OpcodeFamily = 18; CurrentInstrCycles = 14;
9352 {{	int8_t src; uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
9353 	m68k_areg (regs, srcreg) = srca;
9354 	src = m68k_read_memory_8(srca);
9355 	CLEAR_CZNV;
9356 	SET_ZFLG (((int8_t)(0)) == 0);
9357 	SET_NFLG (((int8_t)(0)) < 0);
9358 	m68k_write_memory_8(srca,0);
9359 }}m68k_incpc(2);
9360 return 14;
9361 }
CPUFUNC(op_4228_4)9362 unsigned long CPUFUNC(op_4228_4)(uint32_t opcode) /* CLR */
9363 {
9364 	uint32_t srcreg = (opcode & 7);
9365 	OpcodeFamily = 18; CurrentInstrCycles = 16;
9366 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9367 	int8_t src = m68k_read_memory_8(srca);
9368 	CLEAR_CZNV;
9369 	SET_ZFLG (((int8_t)(0)) == 0);
9370 	SET_NFLG (((int8_t)(0)) < 0);
9371 	m68k_write_memory_8(srca,0);
9372 }}m68k_incpc(4);
9373 return 16;
9374 }
CPUFUNC(op_4230_4)9375 unsigned long CPUFUNC(op_4230_4)(uint32_t opcode) /* CLR */
9376 {
9377 	uint32_t srcreg = (opcode & 7);
9378 	OpcodeFamily = 18; CurrentInstrCycles = 18;
9379 {{	int8_t src; uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9380 	BusCyclePenalty += 2;
9381 	src = m68k_read_memory_8(srca);
9382 	CLEAR_CZNV;
9383 	SET_ZFLG (((int8_t)(0)) == 0);
9384 	SET_NFLG (((int8_t)(0)) < 0);
9385 	m68k_write_memory_8(srca,0);
9386 }}m68k_incpc(4);
9387 return 18;
9388 }
CPUFUNC(op_4238_4)9389 unsigned long CPUFUNC(op_4238_4)(uint32_t opcode) /* CLR */
9390 {
9391 	OpcodeFamily = 18; CurrentInstrCycles = 16;
9392 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9393 	int8_t src = m68k_read_memory_8(srca);
9394 	CLEAR_CZNV;
9395 	SET_ZFLG (((int8_t)(0)) == 0);
9396 	SET_NFLG (((int8_t)(0)) < 0);
9397 	m68k_write_memory_8(srca,0);
9398 }}m68k_incpc(4);
9399 return 16;
9400 }
CPUFUNC(op_4239_4)9401 unsigned long CPUFUNC(op_4239_4)(uint32_t opcode) /* CLR */
9402 {
9403 	OpcodeFamily = 18; CurrentInstrCycles = 20;
9404 {{	uint32_t srca = get_ilong(2);
9405 	int8_t src = m68k_read_memory_8(srca);
9406 	CLEAR_CZNV;
9407 	SET_ZFLG (((int8_t)(0)) == 0);
9408 	SET_NFLG (((int8_t)(0)) < 0);
9409 	m68k_write_memory_8(srca,0);
9410 }}m68k_incpc(6);
9411 return 20;
9412 }
CPUFUNC(op_4240_4)9413 unsigned long CPUFUNC(op_4240_4)(uint32_t opcode) /* CLR */
9414 {
9415 	uint32_t srcreg = (opcode & 7);
9416 	OpcodeFamily = 18; CurrentInstrCycles = 4;
9417 {{	CLEAR_CZNV;
9418 	SET_ZFLG (((int16_t)(0)) == 0);
9419 	SET_NFLG (((int16_t)(0)) < 0);
9420 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((0) & 0xffff);
9421 }}m68k_incpc(2);
9422 return 4;
9423 }
CPUFUNC(op_4250_4)9424 unsigned long CPUFUNC(op_4250_4)(uint32_t opcode) /* CLR */
9425 {
9426 	uint32_t srcreg = (opcode & 7);
9427 	OpcodeFamily = 18; CurrentInstrCycles = 12;
9428 {{	uint32_t srca = m68k_areg(regs, srcreg);
9429 	int16_t src = m68k_read_memory_16(srca);
9430 	CLEAR_CZNV;
9431 	SET_ZFLG (((int16_t)(0)) == 0);
9432 	SET_NFLG (((int16_t)(0)) < 0);
9433 	m68k_write_memory_16(srca,0);
9434 }}m68k_incpc(2);
9435 return 12;
9436 }
CPUFUNC(op_4258_4)9437 unsigned long CPUFUNC(op_4258_4)(uint32_t opcode) /* CLR */
9438 {
9439 	uint32_t srcreg = (opcode & 7);
9440 	OpcodeFamily = 18; CurrentInstrCycles = 12;
9441 {{	int16_t src; uint32_t srca = m68k_areg(regs, srcreg);
9442 	m68k_areg(regs, srcreg) += 2;
9443 	src = m68k_read_memory_16(srca);
9444 	CLEAR_CZNV;
9445 	SET_ZFLG (((int16_t)(0)) == 0);
9446 	SET_NFLG (((int16_t)(0)) < 0);
9447 	m68k_write_memory_16(srca,0);
9448 }}m68k_incpc(2);
9449 return 12;
9450 }
CPUFUNC(op_4260_4)9451 unsigned long CPUFUNC(op_4260_4)(uint32_t opcode) /* CLR */
9452 {
9453 	uint32_t srcreg = (opcode & 7);
9454 	OpcodeFamily = 18; CurrentInstrCycles = 14;
9455 {{	int16_t src; uint32_t srca = m68k_areg(regs, srcreg) - 2;
9456 	m68k_areg (regs, srcreg) = srca;
9457 	src = m68k_read_memory_16(srca);
9458 	CLEAR_CZNV;
9459 	SET_ZFLG (((int16_t)(0)) == 0);
9460 	SET_NFLG (((int16_t)(0)) < 0);
9461 	m68k_write_memory_16(srca,0);
9462 }}m68k_incpc(2);
9463 return 14;
9464 }
CPUFUNC(op_4268_4)9465 unsigned long CPUFUNC(op_4268_4)(uint32_t opcode) /* CLR */
9466 {
9467 	uint32_t srcreg = (opcode & 7);
9468 	OpcodeFamily = 18; CurrentInstrCycles = 16;
9469 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9470 	int16_t src = m68k_read_memory_16(srca);
9471 	CLEAR_CZNV;
9472 	SET_ZFLG (((int16_t)(0)) == 0);
9473 	SET_NFLG (((int16_t)(0)) < 0);
9474 	m68k_write_memory_16(srca,0);
9475 }}m68k_incpc(4);
9476 return 16;
9477 }
9478 #endif
9479 
9480 #ifdef PART_4
CPUFUNC(op_4270_4)9481 unsigned long CPUFUNC(op_4270_4)(uint32_t opcode) /* CLR */
9482 {
9483 	uint32_t srcreg = (opcode & 7);
9484 	OpcodeFamily = 18; CurrentInstrCycles = 18;
9485 {{	int16_t src; uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9486 	BusCyclePenalty += 2;
9487 	src = m68k_read_memory_16(srca);
9488 	CLEAR_CZNV;
9489 	SET_ZFLG (((int16_t)(0)) == 0);
9490 	SET_NFLG (((int16_t)(0)) < 0);
9491 	m68k_write_memory_16(srca,0);
9492 }}m68k_incpc(4);
9493 return 18;
9494 }
CPUFUNC(op_4278_4)9495 unsigned long CPUFUNC(op_4278_4)(uint32_t opcode) /* CLR */
9496 {
9497 	OpcodeFamily = 18; CurrentInstrCycles = 16;
9498 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9499 	int16_t src = m68k_read_memory_16(srca);
9500 	CLEAR_CZNV;
9501 	SET_ZFLG (((int16_t)(0)) == 0);
9502 	SET_NFLG (((int16_t)(0)) < 0);
9503 	m68k_write_memory_16(srca,0);
9504 }}m68k_incpc(4);
9505 return 16;
9506 }
CPUFUNC(op_4279_4)9507 unsigned long CPUFUNC(op_4279_4)(uint32_t opcode) /* CLR */
9508 {
9509 	OpcodeFamily = 18; CurrentInstrCycles = 20;
9510 {{	uint32_t srca = get_ilong(2);
9511 	int16_t src = m68k_read_memory_16(srca);
9512 	CLEAR_CZNV;
9513 	SET_ZFLG (((int16_t)(0)) == 0);
9514 	SET_NFLG (((int16_t)(0)) < 0);
9515 	m68k_write_memory_16(srca,0);
9516 }}m68k_incpc(6);
9517 return 20;
9518 }
CPUFUNC(op_4280_4)9519 unsigned long CPUFUNC(op_4280_4)(uint32_t opcode) /* CLR */
9520 {
9521 	uint32_t srcreg = (opcode & 7);
9522 	OpcodeFamily = 18; CurrentInstrCycles = 6;
9523 {{	CLEAR_CZNV;
9524 	SET_ZFLG (((int32_t)(0)) == 0);
9525 	SET_NFLG (((int32_t)(0)) < 0);
9526 	m68k_dreg(regs, srcreg) = (0);
9527 }}m68k_incpc(2);
9528 return 6;
9529 }
CPUFUNC(op_4290_4)9530 unsigned long CPUFUNC(op_4290_4)(uint32_t opcode) /* CLR */
9531 {
9532 	uint32_t srcreg = (opcode & 7);
9533 	OpcodeFamily = 18; CurrentInstrCycles = 20;
9534 {{	uint32_t srca = m68k_areg(regs, srcreg);
9535 	int32_t src = m68k_read_memory_32(srca);
9536 	CLEAR_CZNV;
9537 	SET_ZFLG (((int32_t)(0)) == 0);
9538 	SET_NFLG (((int32_t)(0)) < 0);
9539 	m68k_write_memory_32(srca,0);
9540 }}m68k_incpc(2);
9541 return 20;
9542 }
CPUFUNC(op_4298_4)9543 unsigned long CPUFUNC(op_4298_4)(uint32_t opcode) /* CLR */
9544 {
9545 	uint32_t srcreg = (opcode & 7);
9546 	OpcodeFamily = 18; CurrentInstrCycles = 20;
9547 {{	int32_t src; uint32_t srca = m68k_areg(regs, srcreg);
9548 	m68k_areg(regs, srcreg) += 4;
9549 	src = m68k_read_memory_32(srca);
9550 	CLEAR_CZNV;
9551 	SET_ZFLG (((int32_t)(0)) == 0);
9552 	SET_NFLG (((int32_t)(0)) < 0);
9553 	m68k_write_memory_32(srca,0);
9554 }}m68k_incpc(2);
9555 return 20;
9556 }
CPUFUNC(op_42a0_4)9557 unsigned long CPUFUNC(op_42a0_4)(uint32_t opcode) /* CLR */
9558 {
9559 	uint32_t srcreg = (opcode & 7);
9560 	OpcodeFamily = 18; CurrentInstrCycles = 22;
9561 {{	int32_t src; uint32_t srca = m68k_areg(regs, srcreg) - 4;
9562 	m68k_areg (regs, srcreg) = srca;
9563 	src = m68k_read_memory_32(srca);
9564 	CLEAR_CZNV;
9565 	SET_ZFLG (((int32_t)(0)) == 0);
9566 	SET_NFLG (((int32_t)(0)) < 0);
9567 	m68k_write_memory_32(srca,0);
9568 }}m68k_incpc(2);
9569 return 22;
9570 }
CPUFUNC(op_42a8_4)9571 unsigned long CPUFUNC(op_42a8_4)(uint32_t opcode) /* CLR */
9572 {
9573 	uint32_t srcreg = (opcode & 7);
9574 	OpcodeFamily = 18; CurrentInstrCycles = 24;
9575 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9576 	int32_t src = m68k_read_memory_32(srca);
9577 	CLEAR_CZNV;
9578 	SET_ZFLG (((int32_t)(0)) == 0);
9579 	SET_NFLG (((int32_t)(0)) < 0);
9580 	m68k_write_memory_32(srca,0);
9581 }}m68k_incpc(4);
9582 return 24;
9583 }
CPUFUNC(op_42b0_4)9584 unsigned long CPUFUNC(op_42b0_4)(uint32_t opcode) /* CLR */
9585 {
9586 	uint32_t srcreg = (opcode & 7);
9587 	OpcodeFamily = 18; CurrentInstrCycles = 26;
9588 {{	int32_t src; uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9589 	BusCyclePenalty += 2;
9590 	src = m68k_read_memory_32(srca);
9591 	CLEAR_CZNV;
9592 	SET_ZFLG (((int32_t)(0)) == 0);
9593 	SET_NFLG (((int32_t)(0)) < 0);
9594 	m68k_write_memory_32(srca,0);
9595 }}m68k_incpc(4);
9596 return 26;
9597 }
CPUFUNC(op_42b8_4)9598 unsigned long CPUFUNC(op_42b8_4)(uint32_t opcode) /* CLR */
9599 {
9600 	OpcodeFamily = 18; CurrentInstrCycles = 24;
9601 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9602 	int32_t src = m68k_read_memory_32(srca);
9603 	CLEAR_CZNV;
9604 	SET_ZFLG (((int32_t)(0)) == 0);
9605 	SET_NFLG (((int32_t)(0)) < 0);
9606 	m68k_write_memory_32(srca,0);
9607 }}m68k_incpc(4);
9608 return 24;
9609 }
CPUFUNC(op_42b9_4)9610 unsigned long CPUFUNC(op_42b9_4)(uint32_t opcode) /* CLR */
9611 {
9612 	OpcodeFamily = 18; CurrentInstrCycles = 28;
9613 {{	uint32_t srca = get_ilong(2);
9614 	int32_t src = m68k_read_memory_32(srca);
9615 	CLEAR_CZNV;
9616 	SET_ZFLG (((int32_t)(0)) == 0);
9617 	SET_NFLG (((int32_t)(0)) < 0);
9618 	m68k_write_memory_32(srca,0);
9619 }}m68k_incpc(6);
9620 return 28;
9621 }
CPUFUNC(op_4400_4)9622 unsigned long CPUFUNC(op_4400_4)(uint32_t opcode) /* NEG */
9623 {
9624 	uint32_t srcreg = (opcode & 7);
9625 	OpcodeFamily = 15; CurrentInstrCycles = 4;
9626 {{	int8_t src = m68k_dreg(regs, srcreg);
9627 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9628 {	int flgs = ((int8_t)(src)) < 0;
9629 	int flgo = ((int8_t)(0)) < 0;
9630 	int flgn = ((int8_t)(dst)) < 0;
9631 	SET_ZFLG (((int8_t)(dst)) == 0);
9632 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9633 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9634 	COPY_CARRY;
9635 	SET_NFLG (flgn != 0);
9636 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((dst) & 0xff);
9637 }}}}}m68k_incpc(2);
9638 return 4;
9639 }
CPUFUNC(op_4410_4)9640 unsigned long CPUFUNC(op_4410_4)(uint32_t opcode) /* NEG */
9641 {
9642 	uint32_t srcreg = (opcode & 7);
9643 	OpcodeFamily = 15; CurrentInstrCycles = 12;
9644 {{	uint32_t srca = m68k_areg(regs, srcreg);
9645 {	int8_t src = m68k_read_memory_8(srca);
9646 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9647 {	int flgs = ((int8_t)(src)) < 0;
9648 	int flgo = ((int8_t)(0)) < 0;
9649 	int flgn = ((int8_t)(dst)) < 0;
9650 	SET_ZFLG (((int8_t)(dst)) == 0);
9651 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9652 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9653 	COPY_CARRY;
9654 	SET_NFLG (flgn != 0);
9655 	m68k_write_memory_8(srca,dst);
9656 }}}}}}m68k_incpc(2);
9657 return 12;
9658 }
CPUFUNC(op_4418_4)9659 unsigned long CPUFUNC(op_4418_4)(uint32_t opcode) /* NEG */
9660 {
9661 	uint32_t srcreg = (opcode & 7);
9662 	OpcodeFamily = 15; CurrentInstrCycles = 12;
9663 {{	uint32_t srca = m68k_areg(regs, srcreg);
9664 {	int8_t src = m68k_read_memory_8(srca);
9665 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
9666 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9667 {	int flgs = ((int8_t)(src)) < 0;
9668 	int flgo = ((int8_t)(0)) < 0;
9669 	int flgn = ((int8_t)(dst)) < 0;
9670 	SET_ZFLG (((int8_t)(dst)) == 0);
9671 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9672 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9673 	COPY_CARRY;
9674 	SET_NFLG (flgn != 0);
9675 	m68k_write_memory_8(srca,dst);
9676 }}}}}}m68k_incpc(2);
9677 return 12;
9678 }
CPUFUNC(op_4420_4)9679 unsigned long CPUFUNC(op_4420_4)(uint32_t opcode) /* NEG */
9680 {
9681 	uint32_t srcreg = (opcode & 7);
9682 	OpcodeFamily = 15; CurrentInstrCycles = 14;
9683 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
9684 {	int8_t src = m68k_read_memory_8(srca);
9685 	m68k_areg (regs, srcreg) = srca;
9686 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9687 {	int flgs = ((int8_t)(src)) < 0;
9688 	int flgo = ((int8_t)(0)) < 0;
9689 	int flgn = ((int8_t)(dst)) < 0;
9690 	SET_ZFLG (((int8_t)(dst)) == 0);
9691 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9692 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9693 	COPY_CARRY;
9694 	SET_NFLG (flgn != 0);
9695 	m68k_write_memory_8(srca,dst);
9696 }}}}}}m68k_incpc(2);
9697 return 14;
9698 }
CPUFUNC(op_4428_4)9699 unsigned long CPUFUNC(op_4428_4)(uint32_t opcode) /* NEG */
9700 {
9701 	uint32_t srcreg = (opcode & 7);
9702 	OpcodeFamily = 15; CurrentInstrCycles = 16;
9703 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9704 {	int8_t src = m68k_read_memory_8(srca);
9705 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9706 {	int flgs = ((int8_t)(src)) < 0;
9707 	int flgo = ((int8_t)(0)) < 0;
9708 	int flgn = ((int8_t)(dst)) < 0;
9709 	SET_ZFLG (((int8_t)(dst)) == 0);
9710 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9711 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9712 	COPY_CARRY;
9713 	SET_NFLG (flgn != 0);
9714 	m68k_write_memory_8(srca,dst);
9715 }}}}}}m68k_incpc(4);
9716 return 16;
9717 }
CPUFUNC(op_4430_4)9718 unsigned long CPUFUNC(op_4430_4)(uint32_t opcode) /* NEG */
9719 {
9720 	uint32_t srcreg = (opcode & 7);
9721 	OpcodeFamily = 15; CurrentInstrCycles = 18;
9722 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9723 	BusCyclePenalty += 2;
9724 {	int8_t src = m68k_read_memory_8(srca);
9725 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9726 {	int flgs = ((int8_t)(src)) < 0;
9727 	int flgo = ((int8_t)(0)) < 0;
9728 	int flgn = ((int8_t)(dst)) < 0;
9729 	SET_ZFLG (((int8_t)(dst)) == 0);
9730 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9731 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9732 	COPY_CARRY;
9733 	SET_NFLG (flgn != 0);
9734 	m68k_write_memory_8(srca,dst);
9735 }}}}}}m68k_incpc(4);
9736 return 18;
9737 }
CPUFUNC(op_4438_4)9738 unsigned long CPUFUNC(op_4438_4)(uint32_t opcode) /* NEG */
9739 {
9740 	OpcodeFamily = 15; CurrentInstrCycles = 16;
9741 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9742 {	int8_t src = m68k_read_memory_8(srca);
9743 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9744 {	int flgs = ((int8_t)(src)) < 0;
9745 	int flgo = ((int8_t)(0)) < 0;
9746 	int flgn = ((int8_t)(dst)) < 0;
9747 	SET_ZFLG (((int8_t)(dst)) == 0);
9748 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9749 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9750 	COPY_CARRY;
9751 	SET_NFLG (flgn != 0);
9752 	m68k_write_memory_8(srca,dst);
9753 }}}}}}m68k_incpc(4);
9754 return 16;
9755 }
CPUFUNC(op_4439_4)9756 unsigned long CPUFUNC(op_4439_4)(uint32_t opcode) /* NEG */
9757 {
9758 	OpcodeFamily = 15; CurrentInstrCycles = 20;
9759 {{	uint32_t srca = get_ilong(2);
9760 {	int8_t src = m68k_read_memory_8(srca);
9761 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
9762 {	int flgs = ((int8_t)(src)) < 0;
9763 	int flgo = ((int8_t)(0)) < 0;
9764 	int flgn = ((int8_t)(dst)) < 0;
9765 	SET_ZFLG (((int8_t)(dst)) == 0);
9766 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9767 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
9768 	COPY_CARRY;
9769 	SET_NFLG (flgn != 0);
9770 	m68k_write_memory_8(srca,dst);
9771 }}}}}}m68k_incpc(6);
9772 return 20;
9773 }
CPUFUNC(op_4440_4)9774 unsigned long CPUFUNC(op_4440_4)(uint32_t opcode) /* NEG */
9775 {
9776 	uint32_t srcreg = (opcode & 7);
9777 	OpcodeFamily = 15; CurrentInstrCycles = 4;
9778 {{	int16_t src = m68k_dreg(regs, srcreg);
9779 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9780 {	int flgs = ((int16_t)(src)) < 0;
9781 	int flgo = ((int16_t)(0)) < 0;
9782 	int flgn = ((int16_t)(dst)) < 0;
9783 	SET_ZFLG (((int16_t)(dst)) == 0);
9784 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9785 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9786 	COPY_CARRY;
9787 	SET_NFLG (flgn != 0);
9788 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((dst) & 0xffff);
9789 }}}}}m68k_incpc(2);
9790 return 4;
9791 }
CPUFUNC(op_4450_4)9792 unsigned long CPUFUNC(op_4450_4)(uint32_t opcode) /* NEG */
9793 {
9794 	uint32_t srcreg = (opcode & 7);
9795 	OpcodeFamily = 15; CurrentInstrCycles = 12;
9796 {{	uint32_t srca = m68k_areg(regs, srcreg);
9797 {	int16_t src = m68k_read_memory_16(srca);
9798 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9799 {	int flgs = ((int16_t)(src)) < 0;
9800 	int flgo = ((int16_t)(0)) < 0;
9801 	int flgn = ((int16_t)(dst)) < 0;
9802 	SET_ZFLG (((int16_t)(dst)) == 0);
9803 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9804 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9805 	COPY_CARRY;
9806 	SET_NFLG (flgn != 0);
9807 	m68k_write_memory_16(srca,dst);
9808 }}}}}}m68k_incpc(2);
9809 return 12;
9810 }
CPUFUNC(op_4458_4)9811 unsigned long CPUFUNC(op_4458_4)(uint32_t opcode) /* NEG */
9812 {
9813 	uint32_t srcreg = (opcode & 7);
9814 	OpcodeFamily = 15; CurrentInstrCycles = 12;
9815 {{	uint32_t srca = m68k_areg(regs, srcreg);
9816 {	int16_t src = m68k_read_memory_16(srca);
9817 	m68k_areg(regs, srcreg) += 2;
9818 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9819 {	int flgs = ((int16_t)(src)) < 0;
9820 	int flgo = ((int16_t)(0)) < 0;
9821 	int flgn = ((int16_t)(dst)) < 0;
9822 	SET_ZFLG (((int16_t)(dst)) == 0);
9823 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9824 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9825 	COPY_CARRY;
9826 	SET_NFLG (flgn != 0);
9827 	m68k_write_memory_16(srca,dst);
9828 }}}}}}m68k_incpc(2);
9829 return 12;
9830 }
CPUFUNC(op_4460_4)9831 unsigned long CPUFUNC(op_4460_4)(uint32_t opcode) /* NEG */
9832 {
9833 	uint32_t srcreg = (opcode & 7);
9834 	OpcodeFamily = 15; CurrentInstrCycles = 14;
9835 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
9836 {	int16_t src = m68k_read_memory_16(srca);
9837 	m68k_areg (regs, srcreg) = srca;
9838 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9839 {	int flgs = ((int16_t)(src)) < 0;
9840 	int flgo = ((int16_t)(0)) < 0;
9841 	int flgn = ((int16_t)(dst)) < 0;
9842 	SET_ZFLG (((int16_t)(dst)) == 0);
9843 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9844 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9845 	COPY_CARRY;
9846 	SET_NFLG (flgn != 0);
9847 	m68k_write_memory_16(srca,dst);
9848 }}}}}}m68k_incpc(2);
9849 return 14;
9850 }
CPUFUNC(op_4468_4)9851 unsigned long CPUFUNC(op_4468_4)(uint32_t opcode) /* NEG */
9852 {
9853 	uint32_t srcreg = (opcode & 7);
9854 	OpcodeFamily = 15; CurrentInstrCycles = 16;
9855 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
9856 {	int16_t src = m68k_read_memory_16(srca);
9857 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9858 {	int flgs = ((int16_t)(src)) < 0;
9859 	int flgo = ((int16_t)(0)) < 0;
9860 	int flgn = ((int16_t)(dst)) < 0;
9861 	SET_ZFLG (((int16_t)(dst)) == 0);
9862 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9863 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9864 	COPY_CARRY;
9865 	SET_NFLG (flgn != 0);
9866 	m68k_write_memory_16(srca,dst);
9867 }}}}}}m68k_incpc(4);
9868 return 16;
9869 }
CPUFUNC(op_4470_4)9870 unsigned long CPUFUNC(op_4470_4)(uint32_t opcode) /* NEG */
9871 {
9872 	uint32_t srcreg = (opcode & 7);
9873 	OpcodeFamily = 15; CurrentInstrCycles = 18;
9874 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
9875 	BusCyclePenalty += 2;
9876 {	int16_t src = m68k_read_memory_16(srca);
9877 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9878 {	int flgs = ((int16_t)(src)) < 0;
9879 	int flgo = ((int16_t)(0)) < 0;
9880 	int flgn = ((int16_t)(dst)) < 0;
9881 	SET_ZFLG (((int16_t)(dst)) == 0);
9882 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9883 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9884 	COPY_CARRY;
9885 	SET_NFLG (flgn != 0);
9886 	m68k_write_memory_16(srca,dst);
9887 }}}}}}m68k_incpc(4);
9888 return 18;
9889 }
CPUFUNC(op_4478_4)9890 unsigned long CPUFUNC(op_4478_4)(uint32_t opcode) /* NEG */
9891 {
9892 	OpcodeFamily = 15; CurrentInstrCycles = 16;
9893 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
9894 {	int16_t src = m68k_read_memory_16(srca);
9895 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9896 {	int flgs = ((int16_t)(src)) < 0;
9897 	int flgo = ((int16_t)(0)) < 0;
9898 	int flgn = ((int16_t)(dst)) < 0;
9899 	SET_ZFLG (((int16_t)(dst)) == 0);
9900 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9901 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9902 	COPY_CARRY;
9903 	SET_NFLG (flgn != 0);
9904 	m68k_write_memory_16(srca,dst);
9905 }}}}}}m68k_incpc(4);
9906 return 16;
9907 }
CPUFUNC(op_4479_4)9908 unsigned long CPUFUNC(op_4479_4)(uint32_t opcode) /* NEG */
9909 {
9910 	OpcodeFamily = 15; CurrentInstrCycles = 20;
9911 {{	uint32_t srca = get_ilong(2);
9912 {	int16_t src = m68k_read_memory_16(srca);
9913 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
9914 {	int flgs = ((int16_t)(src)) < 0;
9915 	int flgo = ((int16_t)(0)) < 0;
9916 	int flgn = ((int16_t)(dst)) < 0;
9917 	SET_ZFLG (((int16_t)(dst)) == 0);
9918 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9919 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
9920 	COPY_CARRY;
9921 	SET_NFLG (flgn != 0);
9922 	m68k_write_memory_16(srca,dst);
9923 }}}}}}m68k_incpc(6);
9924 return 20;
9925 }
CPUFUNC(op_4480_4)9926 unsigned long CPUFUNC(op_4480_4)(uint32_t opcode) /* NEG */
9927 {
9928 	uint32_t srcreg = (opcode & 7);
9929 	OpcodeFamily = 15; CurrentInstrCycles = 6;
9930 {{	int32_t src = m68k_dreg(regs, srcreg);
9931 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
9932 {	int flgs = ((int32_t)(src)) < 0;
9933 	int flgo = ((int32_t)(0)) < 0;
9934 	int flgn = ((int32_t)(dst)) < 0;
9935 	SET_ZFLG (((int32_t)(dst)) == 0);
9936 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9937 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
9938 	COPY_CARRY;
9939 	SET_NFLG (flgn != 0);
9940 	m68k_dreg(regs, srcreg) = (dst);
9941 }}}}}m68k_incpc(2);
9942 return 6;
9943 }
CPUFUNC(op_4490_4)9944 unsigned long CPUFUNC(op_4490_4)(uint32_t opcode) /* NEG */
9945 {
9946 	uint32_t srcreg = (opcode & 7);
9947 	OpcodeFamily = 15; CurrentInstrCycles = 20;
9948 {{	uint32_t srca = m68k_areg(regs, srcreg);
9949 {	int32_t src = m68k_read_memory_32(srca);
9950 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
9951 {	int flgs = ((int32_t)(src)) < 0;
9952 	int flgo = ((int32_t)(0)) < 0;
9953 	int flgn = ((int32_t)(dst)) < 0;
9954 	SET_ZFLG (((int32_t)(dst)) == 0);
9955 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9956 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
9957 	COPY_CARRY;
9958 	SET_NFLG (flgn != 0);
9959 	m68k_write_memory_32(srca,dst);
9960 }}}}}}m68k_incpc(2);
9961 return 20;
9962 }
CPUFUNC(op_4498_4)9963 unsigned long CPUFUNC(op_4498_4)(uint32_t opcode) /* NEG */
9964 {
9965 	uint32_t srcreg = (opcode & 7);
9966 	OpcodeFamily = 15; CurrentInstrCycles = 20;
9967 {{	uint32_t srca = m68k_areg(regs, srcreg);
9968 {	int32_t src = m68k_read_memory_32(srca);
9969 	m68k_areg(regs, srcreg) += 4;
9970 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
9971 {	int flgs = ((int32_t)(src)) < 0;
9972 	int flgo = ((int32_t)(0)) < 0;
9973 	int flgn = ((int32_t)(dst)) < 0;
9974 	SET_ZFLG (((int32_t)(dst)) == 0);
9975 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9976 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
9977 	COPY_CARRY;
9978 	SET_NFLG (flgn != 0);
9979 	m68k_write_memory_32(srca,dst);
9980 }}}}}}m68k_incpc(2);
9981 return 20;
9982 }
CPUFUNC(op_44a0_4)9983 unsigned long CPUFUNC(op_44a0_4)(uint32_t opcode) /* NEG */
9984 {
9985 	uint32_t srcreg = (opcode & 7);
9986 	OpcodeFamily = 15; CurrentInstrCycles = 22;
9987 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
9988 {	int32_t src = m68k_read_memory_32(srca);
9989 	m68k_areg (regs, srcreg) = srca;
9990 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
9991 {	int flgs = ((int32_t)(src)) < 0;
9992 	int flgo = ((int32_t)(0)) < 0;
9993 	int flgn = ((int32_t)(dst)) < 0;
9994 	SET_ZFLG (((int32_t)(dst)) == 0);
9995 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
9996 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
9997 	COPY_CARRY;
9998 	SET_NFLG (flgn != 0);
9999 	m68k_write_memory_32(srca,dst);
10000 }}}}}}m68k_incpc(2);
10001 return 22;
10002 }
CPUFUNC(op_44a8_4)10003 unsigned long CPUFUNC(op_44a8_4)(uint32_t opcode) /* NEG */
10004 {
10005 	uint32_t srcreg = (opcode & 7);
10006 	OpcodeFamily = 15; CurrentInstrCycles = 24;
10007 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10008 {	int32_t src = m68k_read_memory_32(srca);
10009 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
10010 {	int flgs = ((int32_t)(src)) < 0;
10011 	int flgo = ((int32_t)(0)) < 0;
10012 	int flgn = ((int32_t)(dst)) < 0;
10013 	SET_ZFLG (((int32_t)(dst)) == 0);
10014 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
10015 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
10016 	COPY_CARRY;
10017 	SET_NFLG (flgn != 0);
10018 	m68k_write_memory_32(srca,dst);
10019 }}}}}}m68k_incpc(4);
10020 return 24;
10021 }
CPUFUNC(op_44b0_4)10022 unsigned long CPUFUNC(op_44b0_4)(uint32_t opcode) /* NEG */
10023 {
10024 	uint32_t srcreg = (opcode & 7);
10025 	OpcodeFamily = 15; CurrentInstrCycles = 26;
10026 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10027 	BusCyclePenalty += 2;
10028 {	int32_t src = m68k_read_memory_32(srca);
10029 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
10030 {	int flgs = ((int32_t)(src)) < 0;
10031 	int flgo = ((int32_t)(0)) < 0;
10032 	int flgn = ((int32_t)(dst)) < 0;
10033 	SET_ZFLG (((int32_t)(dst)) == 0);
10034 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
10035 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
10036 	COPY_CARRY;
10037 	SET_NFLG (flgn != 0);
10038 	m68k_write_memory_32(srca,dst);
10039 }}}}}}m68k_incpc(4);
10040 return 26;
10041 }
CPUFUNC(op_44b8_4)10042 unsigned long CPUFUNC(op_44b8_4)(uint32_t opcode) /* NEG */
10043 {
10044 	OpcodeFamily = 15; CurrentInstrCycles = 24;
10045 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10046 {	int32_t src = m68k_read_memory_32(srca);
10047 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
10048 {	int flgs = ((int32_t)(src)) < 0;
10049 	int flgo = ((int32_t)(0)) < 0;
10050 	int flgn = ((int32_t)(dst)) < 0;
10051 	SET_ZFLG (((int32_t)(dst)) == 0);
10052 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
10053 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
10054 	COPY_CARRY;
10055 	SET_NFLG (flgn != 0);
10056 	m68k_write_memory_32(srca,dst);
10057 }}}}}}m68k_incpc(4);
10058 return 24;
10059 }
CPUFUNC(op_44b9_4)10060 unsigned long CPUFUNC(op_44b9_4)(uint32_t opcode) /* NEG */
10061 {
10062 	OpcodeFamily = 15; CurrentInstrCycles = 28;
10063 {{	uint32_t srca = get_ilong(2);
10064 {	int32_t src = m68k_read_memory_32(srca);
10065 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
10066 {	int flgs = ((int32_t)(src)) < 0;
10067 	int flgo = ((int32_t)(0)) < 0;
10068 	int flgn = ((int32_t)(dst)) < 0;
10069 	SET_ZFLG (((int32_t)(dst)) == 0);
10070 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
10071 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
10072 	COPY_CARRY;
10073 	SET_NFLG (flgn != 0);
10074 	m68k_write_memory_32(srca,dst);
10075 }}}}}}m68k_incpc(6);
10076 return 28;
10077 }
CPUFUNC(op_44c0_4)10078 unsigned long CPUFUNC(op_44c0_4)(uint32_t opcode) /* MV2SR */
10079 {
10080 	uint32_t srcreg = (opcode & 7);
10081 	OpcodeFamily = 33; CurrentInstrCycles = 12;
10082 {{	int16_t src = m68k_dreg(regs, srcreg);
10083 	MakeSR();
10084 	regs.sr &= 0xFF00;
10085 	regs.sr |= src & 0xFF;
10086 	MakeFromSR();
10087 }}m68k_incpc(2);
10088 return 12;
10089 }
CPUFUNC(op_44d0_4)10090 unsigned long CPUFUNC(op_44d0_4)(uint32_t opcode) /* MV2SR */
10091 {
10092 	uint32_t srcreg = (opcode & 7);
10093 	OpcodeFamily = 33; CurrentInstrCycles = 16;
10094 {{	uint32_t srca = m68k_areg(regs, srcreg);
10095 {	int16_t src = m68k_read_memory_16(srca);
10096 	MakeSR();
10097 	regs.sr &= 0xFF00;
10098 	regs.sr |= src & 0xFF;
10099 	MakeFromSR();
10100 }}}m68k_incpc(2);
10101 return 16;
10102 }
CPUFUNC(op_44d8_4)10103 unsigned long CPUFUNC(op_44d8_4)(uint32_t opcode) /* MV2SR */
10104 {
10105 	uint32_t srcreg = (opcode & 7);
10106 	OpcodeFamily = 33; CurrentInstrCycles = 16;
10107 {{	uint32_t srca = m68k_areg(regs, srcreg);
10108 {	int16_t src = m68k_read_memory_16(srca);
10109 	m68k_areg(regs, srcreg) += 2;
10110 	MakeSR();
10111 	regs.sr &= 0xFF00;
10112 	regs.sr |= src & 0xFF;
10113 	MakeFromSR();
10114 }}}m68k_incpc(2);
10115 return 16;
10116 }
CPUFUNC(op_44e0_4)10117 unsigned long CPUFUNC(op_44e0_4)(uint32_t opcode) /* MV2SR */
10118 {
10119 	uint32_t srcreg = (opcode & 7);
10120 	OpcodeFamily = 33; CurrentInstrCycles = 18;
10121 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
10122 {	int16_t src = m68k_read_memory_16(srca);
10123 	m68k_areg (regs, srcreg) = srca;
10124 	MakeSR();
10125 	regs.sr &= 0xFF00;
10126 	regs.sr |= src & 0xFF;
10127 	MakeFromSR();
10128 }}}m68k_incpc(2);
10129 return 18;
10130 }
CPUFUNC(op_44e8_4)10131 unsigned long CPUFUNC(op_44e8_4)(uint32_t opcode) /* MV2SR */
10132 {
10133 	uint32_t srcreg = (opcode & 7);
10134 	OpcodeFamily = 33; CurrentInstrCycles = 20;
10135 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10136 {	int16_t src = m68k_read_memory_16(srca);
10137 	MakeSR();
10138 	regs.sr &= 0xFF00;
10139 	regs.sr |= src & 0xFF;
10140 	MakeFromSR();
10141 }}}m68k_incpc(4);
10142 return 20;
10143 }
CPUFUNC(op_44f0_4)10144 unsigned long CPUFUNC(op_44f0_4)(uint32_t opcode) /* MV2SR */
10145 {
10146 	uint32_t srcreg = (opcode & 7);
10147 	OpcodeFamily = 33; CurrentInstrCycles = 22;
10148 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10149 	BusCyclePenalty += 2;
10150 {	int16_t src = m68k_read_memory_16(srca);
10151 	MakeSR();
10152 	regs.sr &= 0xFF00;
10153 	regs.sr |= src & 0xFF;
10154 	MakeFromSR();
10155 }}}m68k_incpc(4);
10156 return 22;
10157 }
CPUFUNC(op_44f8_4)10158 unsigned long CPUFUNC(op_44f8_4)(uint32_t opcode) /* MV2SR */
10159 {
10160 	OpcodeFamily = 33; CurrentInstrCycles = 20;
10161 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10162 {	int16_t src = m68k_read_memory_16(srca);
10163 	MakeSR();
10164 	regs.sr &= 0xFF00;
10165 	regs.sr |= src & 0xFF;
10166 	MakeFromSR();
10167 }}}m68k_incpc(4);
10168 return 20;
10169 }
CPUFUNC(op_44f9_4)10170 unsigned long CPUFUNC(op_44f9_4)(uint32_t opcode) /* MV2SR */
10171 {
10172 	OpcodeFamily = 33; CurrentInstrCycles = 24;
10173 {{	uint32_t srca = get_ilong(2);
10174 {	int16_t src = m68k_read_memory_16(srca);
10175 	MakeSR();
10176 	regs.sr &= 0xFF00;
10177 	regs.sr |= src & 0xFF;
10178 	MakeFromSR();
10179 }}}m68k_incpc(6);
10180 return 24;
10181 }
CPUFUNC(op_44fa_4)10182 unsigned long CPUFUNC(op_44fa_4)(uint32_t opcode) /* MV2SR */
10183 {
10184 	OpcodeFamily = 33; CurrentInstrCycles = 20;
10185 {{	uint32_t srca = m68k_getpc () + 2;
10186 	srca += (int32_t)(int16_t)get_iword(2);
10187 {	int16_t src = m68k_read_memory_16(srca);
10188 	MakeSR();
10189 	regs.sr &= 0xFF00;
10190 	regs.sr |= src & 0xFF;
10191 	MakeFromSR();
10192 }}}m68k_incpc(4);
10193 return 20;
10194 }
CPUFUNC(op_44fb_4)10195 unsigned long CPUFUNC(op_44fb_4)(uint32_t opcode) /* MV2SR */
10196 {
10197 	OpcodeFamily = 33; CurrentInstrCycles = 22;
10198 {{	uint32_t tmppc = m68k_getpc() + 2;
10199 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
10200 	BusCyclePenalty += 2;
10201 {	int16_t src = m68k_read_memory_16(srca);
10202 	MakeSR();
10203 	regs.sr &= 0xFF00;
10204 	regs.sr |= src & 0xFF;
10205 	MakeFromSR();
10206 }}}m68k_incpc(4);
10207 return 22;
10208 }
CPUFUNC(op_44fc_4)10209 unsigned long CPUFUNC(op_44fc_4)(uint32_t opcode) /* MV2SR */
10210 {
10211 	OpcodeFamily = 33; CurrentInstrCycles = 16;
10212 {{	int16_t src = get_iword(2);
10213 	MakeSR();
10214 	regs.sr &= 0xFF00;
10215 	regs.sr |= src & 0xFF;
10216 	MakeFromSR();
10217 }}m68k_incpc(4);
10218 return 16;
10219 }
CPUFUNC(op_4600_4)10220 unsigned long CPUFUNC(op_4600_4)(uint32_t opcode) /* NOT */
10221 {
10222 	uint32_t srcreg = (opcode & 7);
10223 	OpcodeFamily = 19; CurrentInstrCycles = 4;
10224 {{	int8_t src = m68k_dreg(regs, srcreg);
10225 {	uint32_t dst = ~src;
10226 	CLEAR_CZNV;
10227 	SET_ZFLG (((int8_t)(dst)) == 0);
10228 	SET_NFLG (((int8_t)(dst)) < 0);
10229 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((dst) & 0xff);
10230 }}}m68k_incpc(2);
10231 return 4;
10232 }
CPUFUNC(op_4610_4)10233 unsigned long CPUFUNC(op_4610_4)(uint32_t opcode) /* NOT */
10234 {
10235 	uint32_t srcreg = (opcode & 7);
10236 	OpcodeFamily = 19; CurrentInstrCycles = 12;
10237 {{	uint32_t srca = m68k_areg(regs, srcreg);
10238 {	int8_t src = m68k_read_memory_8(srca);
10239 {	uint32_t dst = ~src;
10240 	CLEAR_CZNV;
10241 	SET_ZFLG (((int8_t)(dst)) == 0);
10242 	SET_NFLG (((int8_t)(dst)) < 0);
10243 	m68k_write_memory_8(srca,dst);
10244 }}}}m68k_incpc(2);
10245 return 12;
10246 }
CPUFUNC(op_4618_4)10247 unsigned long CPUFUNC(op_4618_4)(uint32_t opcode) /* NOT */
10248 {
10249 	uint32_t srcreg = (opcode & 7);
10250 	OpcodeFamily = 19; CurrentInstrCycles = 12;
10251 {{	uint32_t srca = m68k_areg(regs, srcreg);
10252 {	int8_t src = m68k_read_memory_8(srca);
10253 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
10254 {	uint32_t dst = ~src;
10255 	CLEAR_CZNV;
10256 	SET_ZFLG (((int8_t)(dst)) == 0);
10257 	SET_NFLG (((int8_t)(dst)) < 0);
10258 	m68k_write_memory_8(srca,dst);
10259 }}}}m68k_incpc(2);
10260 return 12;
10261 }
CPUFUNC(op_4620_4)10262 unsigned long CPUFUNC(op_4620_4)(uint32_t opcode) /* NOT */
10263 {
10264 	uint32_t srcreg = (opcode & 7);
10265 	OpcodeFamily = 19; CurrentInstrCycles = 14;
10266 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
10267 {	int8_t src = m68k_read_memory_8(srca);
10268 	m68k_areg (regs, srcreg) = srca;
10269 {	uint32_t dst = ~src;
10270 	CLEAR_CZNV;
10271 	SET_ZFLG (((int8_t)(dst)) == 0);
10272 	SET_NFLG (((int8_t)(dst)) < 0);
10273 	m68k_write_memory_8(srca,dst);
10274 }}}}m68k_incpc(2);
10275 return 14;
10276 }
CPUFUNC(op_4628_4)10277 unsigned long CPUFUNC(op_4628_4)(uint32_t opcode) /* NOT */
10278 {
10279 	uint32_t srcreg = (opcode & 7);
10280 	OpcodeFamily = 19; CurrentInstrCycles = 16;
10281 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10282 {	int8_t src = m68k_read_memory_8(srca);
10283 {	uint32_t dst = ~src;
10284 	CLEAR_CZNV;
10285 	SET_ZFLG (((int8_t)(dst)) == 0);
10286 	SET_NFLG (((int8_t)(dst)) < 0);
10287 	m68k_write_memory_8(srca,dst);
10288 }}}}m68k_incpc(4);
10289 return 16;
10290 }
CPUFUNC(op_4630_4)10291 unsigned long CPUFUNC(op_4630_4)(uint32_t opcode) /* NOT */
10292 {
10293 	uint32_t srcreg = (opcode & 7);
10294 	OpcodeFamily = 19; CurrentInstrCycles = 18;
10295 {{	int8_t src; uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10296 	BusCyclePenalty += 2;
10297 {	src = m68k_read_memory_8(srca);
10298 {	uint32_t dst = ~src;
10299 	CLEAR_CZNV;
10300 	SET_ZFLG (((int8_t)(dst)) == 0);
10301 	SET_NFLG (((int8_t)(dst)) < 0);
10302 	m68k_write_memory_8(srca,dst);
10303 }}}}m68k_incpc(4);
10304 return 18;
10305 }
CPUFUNC(op_4638_4)10306 unsigned long CPUFUNC(op_4638_4)(uint32_t opcode) /* NOT */
10307 {
10308 	OpcodeFamily = 19; CurrentInstrCycles = 16;
10309 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10310 {	int8_t src = m68k_read_memory_8(srca);
10311 {	uint32_t dst = ~src;
10312 	CLEAR_CZNV;
10313 	SET_ZFLG (((int8_t)(dst)) == 0);
10314 	SET_NFLG (((int8_t)(dst)) < 0);
10315 	m68k_write_memory_8(srca,dst);
10316 }}}}m68k_incpc(4);
10317 return 16;
10318 }
CPUFUNC(op_4639_4)10319 unsigned long CPUFUNC(op_4639_4)(uint32_t opcode) /* NOT */
10320 {
10321 	OpcodeFamily = 19; CurrentInstrCycles = 20;
10322 {{	uint32_t srca = get_ilong(2);
10323 {	int8_t src = m68k_read_memory_8(srca);
10324 {	uint32_t dst = ~src;
10325 	CLEAR_CZNV;
10326 	SET_ZFLG (((int8_t)(dst)) == 0);
10327 	SET_NFLG (((int8_t)(dst)) < 0);
10328 	m68k_write_memory_8(srca,dst);
10329 }}}}m68k_incpc(6);
10330 return 20;
10331 }
CPUFUNC(op_4640_4)10332 unsigned long CPUFUNC(op_4640_4)(uint32_t opcode) /* NOT */
10333 {
10334 	uint32_t srcreg = (opcode & 7);
10335 	OpcodeFamily = 19; CurrentInstrCycles = 4;
10336 {{	int16_t src = m68k_dreg(regs, srcreg);
10337 {	uint32_t dst = ~src;
10338 	CLEAR_CZNV;
10339 	SET_ZFLG (((int16_t)(dst)) == 0);
10340 	SET_NFLG (((int16_t)(dst)) < 0);
10341 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((dst) & 0xffff);
10342 }}}m68k_incpc(2);
10343 return 4;
10344 }
CPUFUNC(op_4650_4)10345 unsigned long CPUFUNC(op_4650_4)(uint32_t opcode) /* NOT */
10346 {
10347 	uint32_t srcreg = (opcode & 7);
10348 	OpcodeFamily = 19; CurrentInstrCycles = 12;
10349 {{	uint32_t srca = m68k_areg(regs, srcreg);
10350 {	int16_t src = m68k_read_memory_16(srca);
10351 {	uint32_t dst = ~src;
10352 	CLEAR_CZNV;
10353 	SET_ZFLG (((int16_t)(dst)) == 0);
10354 	SET_NFLG (((int16_t)(dst)) < 0);
10355 	m68k_write_memory_16(srca,dst);
10356 }}}}m68k_incpc(2);
10357 return 12;
10358 }
CPUFUNC(op_4658_4)10359 unsigned long CPUFUNC(op_4658_4)(uint32_t opcode) /* NOT */
10360 {
10361 	uint32_t srcreg = (opcode & 7);
10362 	OpcodeFamily = 19; CurrentInstrCycles = 12;
10363 {{	uint32_t srca = m68k_areg(regs, srcreg);
10364 {	int16_t src = m68k_read_memory_16(srca);
10365 	m68k_areg(regs, srcreg) += 2;
10366 {	uint32_t dst = ~src;
10367 	CLEAR_CZNV;
10368 	SET_ZFLG (((int16_t)(dst)) == 0);
10369 	SET_NFLG (((int16_t)(dst)) < 0);
10370 	m68k_write_memory_16(srca,dst);
10371 }}}}m68k_incpc(2);
10372 return 12;
10373 }
CPUFUNC(op_4660_4)10374 unsigned long CPUFUNC(op_4660_4)(uint32_t opcode) /* NOT */
10375 {
10376 	uint32_t srcreg = (opcode & 7);
10377 	OpcodeFamily = 19; CurrentInstrCycles = 14;
10378 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
10379 {	int16_t src = m68k_read_memory_16(srca);
10380 	m68k_areg (regs, srcreg) = srca;
10381 {	uint32_t dst = ~src;
10382 	CLEAR_CZNV;
10383 	SET_ZFLG (((int16_t)(dst)) == 0);
10384 	SET_NFLG (((int16_t)(dst)) < 0);
10385 	m68k_write_memory_16(srca,dst);
10386 }}}}m68k_incpc(2);
10387 return 14;
10388 }
CPUFUNC(op_4668_4)10389 unsigned long CPUFUNC(op_4668_4)(uint32_t opcode) /* NOT */
10390 {
10391 	uint32_t srcreg = (opcode & 7);
10392 	OpcodeFamily = 19; CurrentInstrCycles = 16;
10393 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10394 {	int16_t src = m68k_read_memory_16(srca);
10395 {	uint32_t dst = ~src;
10396 	CLEAR_CZNV;
10397 	SET_ZFLG (((int16_t)(dst)) == 0);
10398 	SET_NFLG (((int16_t)(dst)) < 0);
10399 	m68k_write_memory_16(srca,dst);
10400 }}}}m68k_incpc(4);
10401 return 16;
10402 }
CPUFUNC(op_4670_4)10403 unsigned long CPUFUNC(op_4670_4)(uint32_t opcode) /* NOT */
10404 {
10405 	uint32_t srcreg = (opcode & 7);
10406 	OpcodeFamily = 19; CurrentInstrCycles = 18;
10407 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10408 	BusCyclePenalty += 2;
10409 {	int16_t src = m68k_read_memory_16(srca);
10410 {	uint32_t dst = ~src;
10411 	CLEAR_CZNV;
10412 	SET_ZFLG (((int16_t)(dst)) == 0);
10413 	SET_NFLG (((int16_t)(dst)) < 0);
10414 	m68k_write_memory_16(srca,dst);
10415 }}}}m68k_incpc(4);
10416 return 18;
10417 }
CPUFUNC(op_4678_4)10418 unsigned long CPUFUNC(op_4678_4)(uint32_t opcode) /* NOT */
10419 {
10420 	OpcodeFamily = 19; CurrentInstrCycles = 16;
10421 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10422 {	int16_t src = m68k_read_memory_16(srca);
10423 {	uint32_t dst = ~src;
10424 	CLEAR_CZNV;
10425 	SET_ZFLG (((int16_t)(dst)) == 0);
10426 	SET_NFLG (((int16_t)(dst)) < 0);
10427 	m68k_write_memory_16(srca,dst);
10428 }}}}m68k_incpc(4);
10429 return 16;
10430 }
CPUFUNC(op_4679_4)10431 unsigned long CPUFUNC(op_4679_4)(uint32_t opcode) /* NOT */
10432 {
10433 	OpcodeFamily = 19; CurrentInstrCycles = 20;
10434 {{	uint32_t srca = get_ilong(2);
10435 {	int16_t src = m68k_read_memory_16(srca);
10436 {	uint32_t dst = ~src;
10437 	CLEAR_CZNV;
10438 	SET_ZFLG (((int16_t)(dst)) == 0);
10439 	SET_NFLG (((int16_t)(dst)) < 0);
10440 	m68k_write_memory_16(srca,dst);
10441 }}}}m68k_incpc(6);
10442 return 20;
10443 }
CPUFUNC(op_4680_4)10444 unsigned long CPUFUNC(op_4680_4)(uint32_t opcode) /* NOT */
10445 {
10446 	uint32_t srcreg = (opcode & 7);
10447 	OpcodeFamily = 19; CurrentInstrCycles = 6;
10448 {{	int32_t src = m68k_dreg(regs, srcreg);
10449 {	uint32_t dst = ~src;
10450 	CLEAR_CZNV;
10451 	SET_ZFLG (((int32_t)(dst)) == 0);
10452 	SET_NFLG (((int32_t)(dst)) < 0);
10453 	m68k_dreg(regs, srcreg) = (dst);
10454 }}}m68k_incpc(2);
10455 return 6;
10456 }
CPUFUNC(op_4690_4)10457 unsigned long CPUFUNC(op_4690_4)(uint32_t opcode) /* NOT */
10458 {
10459 	uint32_t srcreg = (opcode & 7);
10460 	OpcodeFamily = 19; CurrentInstrCycles = 20;
10461 {{	uint32_t srca = m68k_areg(regs, srcreg);
10462 {	int32_t src = m68k_read_memory_32(srca);
10463 {	uint32_t dst = ~src;
10464 	CLEAR_CZNV;
10465 	SET_ZFLG (((int32_t)(dst)) == 0);
10466 	SET_NFLG (((int32_t)(dst)) < 0);
10467 	m68k_write_memory_32(srca,dst);
10468 }}}}m68k_incpc(2);
10469 return 20;
10470 }
CPUFUNC(op_4698_4)10471 unsigned long CPUFUNC(op_4698_4)(uint32_t opcode) /* NOT */
10472 {
10473 	uint32_t srcreg = (opcode & 7);
10474 	OpcodeFamily = 19; CurrentInstrCycles = 20;
10475 {{	uint32_t srca = m68k_areg(regs, srcreg);
10476 {	int32_t src = m68k_read_memory_32(srca);
10477 	m68k_areg(regs, srcreg) += 4;
10478 {	uint32_t dst = ~src;
10479 	CLEAR_CZNV;
10480 	SET_ZFLG (((int32_t)(dst)) == 0);
10481 	SET_NFLG (((int32_t)(dst)) < 0);
10482 	m68k_write_memory_32(srca,dst);
10483 }}}}m68k_incpc(2);
10484 return 20;
10485 }
CPUFUNC(op_46a0_4)10486 unsigned long CPUFUNC(op_46a0_4)(uint32_t opcode) /* NOT */
10487 {
10488 	uint32_t srcreg = (opcode & 7);
10489 	OpcodeFamily = 19; CurrentInstrCycles = 22;
10490 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
10491 {	int32_t src = m68k_read_memory_32(srca);
10492 	m68k_areg (regs, srcreg) = srca;
10493 {	uint32_t dst = ~src;
10494 	CLEAR_CZNV;
10495 	SET_ZFLG (((int32_t)(dst)) == 0);
10496 	SET_NFLG (((int32_t)(dst)) < 0);
10497 	m68k_write_memory_32(srca,dst);
10498 }}}}m68k_incpc(2);
10499 return 22;
10500 }
CPUFUNC(op_46a8_4)10501 unsigned long CPUFUNC(op_46a8_4)(uint32_t opcode) /* NOT */
10502 {
10503 	uint32_t srcreg = (opcode & 7);
10504 	OpcodeFamily = 19; CurrentInstrCycles = 24;
10505 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10506 {	int32_t src = m68k_read_memory_32(srca);
10507 {	uint32_t dst = ~src;
10508 	CLEAR_CZNV;
10509 	SET_ZFLG (((int32_t)(dst)) == 0);
10510 	SET_NFLG (((int32_t)(dst)) < 0);
10511 	m68k_write_memory_32(srca,dst);
10512 }}}}m68k_incpc(4);
10513 return 24;
10514 }
CPUFUNC(op_46b0_4)10515 unsigned long CPUFUNC(op_46b0_4)(uint32_t opcode) /* NOT */
10516 {
10517 	uint32_t srcreg = (opcode & 7);
10518 	OpcodeFamily = 19; CurrentInstrCycles = 26;
10519 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10520 	BusCyclePenalty += 2;
10521 {	int32_t src = m68k_read_memory_32(srca);
10522 {	uint32_t dst = ~src;
10523 	CLEAR_CZNV;
10524 	SET_ZFLG (((int32_t)(dst)) == 0);
10525 	SET_NFLG (((int32_t)(dst)) < 0);
10526 	m68k_write_memory_32(srca,dst);
10527 }}}}m68k_incpc(4);
10528 return 26;
10529 }
CPUFUNC(op_46b8_4)10530 unsigned long CPUFUNC(op_46b8_4)(uint32_t opcode) /* NOT */
10531 {
10532 	OpcodeFamily = 19; CurrentInstrCycles = 24;
10533 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10534 {	int32_t src = m68k_read_memory_32(srca);
10535 {	uint32_t dst = ~src;
10536 	CLEAR_CZNV;
10537 	SET_ZFLG (((int32_t)(dst)) == 0);
10538 	SET_NFLG (((int32_t)(dst)) < 0);
10539 	m68k_write_memory_32(srca,dst);
10540 }}}}m68k_incpc(4);
10541 return 24;
10542 }
CPUFUNC(op_46b9_4)10543 unsigned long CPUFUNC(op_46b9_4)(uint32_t opcode) /* NOT */
10544 {
10545 	OpcodeFamily = 19; CurrentInstrCycles = 28;
10546 {{	uint32_t srca = get_ilong(2);
10547 {	int32_t src = m68k_read_memory_32(srca);
10548 {	uint32_t dst = ~src;
10549 	CLEAR_CZNV;
10550 	SET_ZFLG (((int32_t)(dst)) == 0);
10551 	SET_NFLG (((int32_t)(dst)) < 0);
10552 	m68k_write_memory_32(srca,dst);
10553 }}}}m68k_incpc(6);
10554 return 28;
10555 }
CPUFUNC(op_46c0_4)10556 unsigned long CPUFUNC(op_46c0_4)(uint32_t opcode) /* MV2SR */
10557 {
10558 	uint32_t srcreg = (opcode & 7);
10559 	OpcodeFamily = 33; CurrentInstrCycles = 12;
10560 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel688; }
10561 {{	int16_t src = m68k_dreg(regs, srcreg);
10562 	regs.sr = src;
10563 	MakeFromSR();
10564 }}}m68k_incpc(2);
10565 endlabel688: ;
10566 return 12;
10567 }
CPUFUNC(op_46d0_4)10568 unsigned long CPUFUNC(op_46d0_4)(uint32_t opcode) /* MV2SR */
10569 {
10570 	uint32_t srcreg = (opcode & 7);
10571 	OpcodeFamily = 33; CurrentInstrCycles = 16;
10572 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel689; }
10573 {{	uint32_t srca = m68k_areg(regs, srcreg);
10574 {	int16_t src = m68k_read_memory_16(srca);
10575 	regs.sr = src;
10576 	MakeFromSR();
10577 }}}}m68k_incpc(2);
10578 endlabel689: ;
10579 return 16;
10580 }
CPUFUNC(op_46d8_4)10581 unsigned long CPUFUNC(op_46d8_4)(uint32_t opcode) /* MV2SR */
10582 {
10583 	uint32_t srcreg = (opcode & 7);
10584 	OpcodeFamily = 33; CurrentInstrCycles = 16;
10585 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel690; }
10586 {{	uint32_t srca = m68k_areg(regs, srcreg);
10587 {	int16_t src = m68k_read_memory_16(srca);
10588 	m68k_areg(regs, srcreg) += 2;
10589 	regs.sr = src;
10590 	MakeFromSR();
10591 }}}}m68k_incpc(2);
10592 endlabel690: ;
10593 return 16;
10594 }
CPUFUNC(op_46e0_4)10595 unsigned long CPUFUNC(op_46e0_4)(uint32_t opcode) /* MV2SR */
10596 {
10597 	uint32_t srcreg = (opcode & 7);
10598 	OpcodeFamily = 33; CurrentInstrCycles = 18;
10599 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel691; }
10600 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
10601 {	int16_t src = m68k_read_memory_16(srca);
10602 	m68k_areg (regs, srcreg) = srca;
10603 	regs.sr = src;
10604 	MakeFromSR();
10605 }}}}m68k_incpc(2);
10606 endlabel691: ;
10607 return 18;
10608 }
CPUFUNC(op_46e8_4)10609 unsigned long CPUFUNC(op_46e8_4)(uint32_t opcode) /* MV2SR */
10610 {
10611 	uint32_t srcreg = (opcode & 7);
10612 	OpcodeFamily = 33; CurrentInstrCycles = 20;
10613 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel692; }
10614 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10615 {	int16_t src = m68k_read_memory_16(srca);
10616 	regs.sr = src;
10617 	MakeFromSR();
10618 }}}}m68k_incpc(4);
10619 endlabel692: ;
10620 return 20;
10621 }
CPUFUNC(op_46f0_4)10622 unsigned long CPUFUNC(op_46f0_4)(uint32_t opcode) /* MV2SR */
10623 {
10624 	uint32_t srcreg = (opcode & 7);
10625 	OpcodeFamily = 33; CurrentInstrCycles = 22;
10626 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel693; }
10627 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10628 	BusCyclePenalty += 2;
10629 {	int16_t src = m68k_read_memory_16(srca);
10630 	regs.sr = src;
10631 	MakeFromSR();
10632 }}}}m68k_incpc(4);
10633 endlabel693: ;
10634 return 22;
10635 }
CPUFUNC(op_46f8_4)10636 unsigned long CPUFUNC(op_46f8_4)(uint32_t opcode) /* MV2SR */
10637 {
10638 	OpcodeFamily = 33; CurrentInstrCycles = 20;
10639 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel694; }
10640 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10641 {	int16_t src = m68k_read_memory_16(srca);
10642 	regs.sr = src;
10643 	MakeFromSR();
10644 }}}}m68k_incpc(4);
10645 endlabel694: ;
10646 return 20;
10647 }
CPUFUNC(op_46f9_4)10648 unsigned long CPUFUNC(op_46f9_4)(uint32_t opcode) /* MV2SR */
10649 {
10650 	OpcodeFamily = 33; CurrentInstrCycles = 24;
10651 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel695; }
10652 {{	uint32_t srca = get_ilong(2);
10653 {	int16_t src = m68k_read_memory_16(srca);
10654 	regs.sr = src;
10655 	MakeFromSR();
10656 }}}}m68k_incpc(6);
10657 endlabel695: ;
10658 return 24;
10659 }
CPUFUNC(op_46fa_4)10660 unsigned long CPUFUNC(op_46fa_4)(uint32_t opcode) /* MV2SR */
10661 {
10662 	OpcodeFamily = 33; CurrentInstrCycles = 20;
10663 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel696; }
10664 {{	uint32_t srca = m68k_getpc () + 2;
10665 	srca += (int32_t)(int16_t)get_iword(2);
10666 {	int16_t src = m68k_read_memory_16(srca);
10667 	regs.sr = src;
10668 	MakeFromSR();
10669 }}}}m68k_incpc(4);
10670 endlabel696: ;
10671 return 20;
10672 }
CPUFUNC(op_46fb_4)10673 unsigned long CPUFUNC(op_46fb_4)(uint32_t opcode) /* MV2SR */
10674 {
10675 	OpcodeFamily = 33; CurrentInstrCycles = 22;
10676 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel697; }
10677 {{	uint32_t tmppc = m68k_getpc() + 2;
10678 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
10679 	BusCyclePenalty += 2;
10680 {	int16_t src = m68k_read_memory_16(srca);
10681 	regs.sr = src;
10682 	MakeFromSR();
10683 }}}}m68k_incpc(4);
10684 endlabel697: ;
10685 return 22;
10686 }
CPUFUNC(op_46fc_4)10687 unsigned long CPUFUNC(op_46fc_4)(uint32_t opcode) /* MV2SR */
10688 {
10689 	OpcodeFamily = 33; CurrentInstrCycles = 16;
10690 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel698; }
10691 {{	int16_t src = get_iword(2);
10692 	regs.sr = src;
10693 	MakeFromSR();
10694 }}}m68k_incpc(4);
10695 endlabel698: ;
10696 return 16;
10697 }
CPUFUNC(op_4800_4)10698 unsigned long CPUFUNC(op_4800_4)(uint32_t opcode) /* NBCD */
10699 {
10700 	uint32_t srcreg = (opcode & 7);
10701 	OpcodeFamily = 17; CurrentInstrCycles = 6;
10702 {{	int8_t src = m68k_dreg(regs, srcreg);
10703 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10704 	uint16_t newv_hi = - (src & 0xF0);
10705 	uint16_t newv;
10706 	int cflg;
10707 	if (newv_lo > 9) { newv_lo -= 6; }
10708 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10709 	if (cflg) newv -= 0x60;
10710 	SET_CFLG (cflg);
10711 	COPY_CARRY;
10712 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10713 	SET_NFLG (((int8_t)(newv)) < 0);
10714 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((newv) & 0xff);
10715 }}}m68k_incpc(2);
10716 return 6;
10717 }
CPUFUNC(op_4810_4)10718 unsigned long CPUFUNC(op_4810_4)(uint32_t opcode) /* NBCD */
10719 {
10720 	uint32_t srcreg = (opcode & 7);
10721 	OpcodeFamily = 17; CurrentInstrCycles = 12;
10722 {{	uint32_t srca = m68k_areg(regs, srcreg);
10723 {	int8_t src = m68k_read_memory_8(srca);
10724 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10725 	uint16_t newv_hi = - (src & 0xF0);
10726 	uint16_t newv;
10727 	int cflg;
10728 	if (newv_lo > 9) { newv_lo -= 6; }
10729 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10730 	if (cflg) newv -= 0x60;
10731 	SET_CFLG (cflg);
10732 	COPY_CARRY;
10733 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10734 	SET_NFLG (((int8_t)(newv)) < 0);
10735 	m68k_write_memory_8(srca,newv);
10736 }}}}m68k_incpc(2);
10737 return 12;
10738 }
CPUFUNC(op_4818_4)10739 unsigned long CPUFUNC(op_4818_4)(uint32_t opcode) /* NBCD */
10740 {
10741 	uint32_t srcreg = (opcode & 7);
10742 	OpcodeFamily = 17; CurrentInstrCycles = 12;
10743 {{	uint32_t srca = m68k_areg(regs, srcreg);
10744 {	int8_t src = m68k_read_memory_8(srca);
10745 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
10746 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10747 	uint16_t newv_hi = - (src & 0xF0);
10748 	uint16_t newv;
10749 	int cflg;
10750 	if (newv_lo > 9) { newv_lo -= 6; }
10751 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10752 	if (cflg) newv -= 0x60;
10753 	SET_CFLG (cflg);
10754 	COPY_CARRY;
10755 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10756 	SET_NFLG (((int8_t)(newv)) < 0);
10757 	m68k_write_memory_8(srca,newv);
10758 }}}}m68k_incpc(2);
10759 return 12;
10760 }
CPUFUNC(op_4820_4)10761 unsigned long CPUFUNC(op_4820_4)(uint32_t opcode) /* NBCD */
10762 {
10763 	uint32_t srcreg = (opcode & 7);
10764 	OpcodeFamily = 17; CurrentInstrCycles = 14;
10765 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
10766 {	int8_t src = m68k_read_memory_8(srca);
10767 	m68k_areg (regs, srcreg) = srca;
10768 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10769 	uint16_t newv_hi = - (src & 0xF0);
10770 	uint16_t newv;
10771 	int cflg;
10772 	if (newv_lo > 9) { newv_lo -= 6; }
10773 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10774 	if (cflg) newv -= 0x60;
10775 	SET_CFLG (cflg);
10776 	COPY_CARRY;
10777 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10778 	SET_NFLG (((int8_t)(newv)) < 0);
10779 	m68k_write_memory_8(srca,newv);
10780 }}}}m68k_incpc(2);
10781 return 14;
10782 }
CPUFUNC(op_4828_4)10783 unsigned long CPUFUNC(op_4828_4)(uint32_t opcode) /* NBCD */
10784 {
10785 	uint32_t srcreg = (opcode & 7);
10786 	OpcodeFamily = 17; CurrentInstrCycles = 16;
10787 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10788 {	int8_t src = m68k_read_memory_8(srca);
10789 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10790 	uint16_t newv_hi = - (src & 0xF0);
10791 	uint16_t newv;
10792 	int cflg;
10793 	if (newv_lo > 9) { newv_lo -= 6; }
10794 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10795 	if (cflg) newv -= 0x60;
10796 	SET_CFLG (cflg);
10797 	COPY_CARRY;
10798 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10799 	SET_NFLG (((int8_t)(newv)) < 0);
10800 	m68k_write_memory_8(srca,newv);
10801 }}}}m68k_incpc(4);
10802 return 16;
10803 }
CPUFUNC(op_4830_4)10804 unsigned long CPUFUNC(op_4830_4)(uint32_t opcode) /* NBCD */
10805 {
10806 	uint32_t srcreg = (opcode & 7);
10807 	OpcodeFamily = 17; CurrentInstrCycles = 18;
10808 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10809 	BusCyclePenalty += 2;
10810 {	int8_t src = m68k_read_memory_8(srca);
10811 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10812 	uint16_t newv_hi = - (src & 0xF0);
10813 	uint16_t newv;
10814 	int cflg;
10815 	if (newv_lo > 9) { newv_lo -= 6; }
10816 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10817 	if (cflg) newv -= 0x60;
10818 	SET_CFLG (cflg);
10819 	COPY_CARRY;
10820 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10821 	SET_NFLG (((int8_t)(newv)) < 0);
10822 	m68k_write_memory_8(srca,newv);
10823 }}}}m68k_incpc(4);
10824 return 18;
10825 }
CPUFUNC(op_4838_4)10826 unsigned long CPUFUNC(op_4838_4)(uint32_t opcode) /* NBCD */
10827 {
10828 	OpcodeFamily = 17; CurrentInstrCycles = 16;
10829 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10830 {	int8_t src = m68k_read_memory_8(srca);
10831 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10832 	uint16_t newv_hi = - (src & 0xF0);
10833 	uint16_t newv;
10834 	int cflg;
10835 	if (newv_lo > 9) { newv_lo -= 6; }
10836 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10837 	if (cflg) newv -= 0x60;
10838 	SET_CFLG (cflg);
10839 	COPY_CARRY;
10840 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10841 	SET_NFLG (((int8_t)(newv)) < 0);
10842 	m68k_write_memory_8(srca,newv);
10843 }}}}m68k_incpc(4);
10844 return 16;
10845 }
CPUFUNC(op_4839_4)10846 unsigned long CPUFUNC(op_4839_4)(uint32_t opcode) /* NBCD */
10847 {
10848 	OpcodeFamily = 17; CurrentInstrCycles = 20;
10849 {{	uint32_t srca = get_ilong(2);
10850 {	int8_t src = m68k_read_memory_8(srca);
10851 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
10852 	uint16_t newv_hi = - (src & 0xF0);
10853 	uint16_t newv;
10854 	int cflg;
10855 	if (newv_lo > 9) { newv_lo -= 6; }
10856 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
10857 	if (cflg) newv -= 0x60;
10858 	SET_CFLG (cflg);
10859 	COPY_CARRY;
10860 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
10861 	SET_NFLG (((int8_t)(newv)) < 0);
10862 	m68k_write_memory_8(srca,newv);
10863 }}}}m68k_incpc(6);
10864 return 20;
10865 }
CPUFUNC(op_4840_4)10866 unsigned long CPUFUNC(op_4840_4)(uint32_t opcode) /* SWAP */
10867 {
10868 	uint32_t srcreg = (opcode & 7);
10869 	OpcodeFamily = 34; CurrentInstrCycles = 4;
10870 {{	int32_t src = m68k_dreg(regs, srcreg);
10871 {	uint32_t dst = ((src >> 16)&0xFFFF) | ((src&0xFFFF)<<16);
10872 	CLEAR_CZNV;
10873 	SET_ZFLG (((int32_t)(dst)) == 0);
10874 	SET_NFLG (((int32_t)(dst)) < 0);
10875 	m68k_dreg(regs, srcreg) = (dst);
10876 }}}m68k_incpc(2);
10877 return 4;
10878 }
CPUFUNC(op_4850_4)10879 unsigned long CPUFUNC(op_4850_4)(uint32_t opcode) /* PEA */
10880 {
10881 	uint32_t srcreg = (opcode & 7);
10882 	OpcodeFamily = 57; CurrentInstrCycles = 12;
10883 {{	uint32_t srca = m68k_areg(regs, srcreg);
10884 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
10885 	m68k_areg (regs, 7) = dsta;
10886 	m68k_write_memory_32(dsta,srca);
10887 }}}m68k_incpc(2);
10888 return 12;
10889 }
CPUFUNC(op_4868_4)10890 unsigned long CPUFUNC(op_4868_4)(uint32_t opcode) /* PEA */
10891 {
10892 	uint32_t srcreg = (opcode & 7);
10893 	OpcodeFamily = 57; CurrentInstrCycles = 16;
10894 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
10895 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
10896 	m68k_areg (regs, 7) = dsta;
10897 	m68k_write_memory_32(dsta,srca);
10898 }}}m68k_incpc(4);
10899 return 16;
10900 }
CPUFUNC(op_4870_4)10901 unsigned long CPUFUNC(op_4870_4)(uint32_t opcode) /* PEA */
10902 {
10903 	uint32_t srcreg = (opcode & 7);
10904 	OpcodeFamily = 57; CurrentInstrCycles = 22;
10905 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
10906 	BusCyclePenalty += 2;
10907 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
10908 	m68k_areg (regs, 7) = dsta;
10909 	m68k_write_memory_32(dsta,srca);
10910 }}}m68k_incpc(4);
10911 return 22;
10912 }
CPUFUNC(op_4878_4)10913 unsigned long CPUFUNC(op_4878_4)(uint32_t opcode) /* PEA */
10914 {
10915 	OpcodeFamily = 57; CurrentInstrCycles = 16;
10916 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
10917 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
10918 	m68k_areg (regs, 7) = dsta;
10919 	m68k_write_memory_32(dsta,srca);
10920 }}}m68k_incpc(4);
10921 return 16;
10922 }
CPUFUNC(op_4879_4)10923 unsigned long CPUFUNC(op_4879_4)(uint32_t opcode) /* PEA */
10924 {
10925 	OpcodeFamily = 57; CurrentInstrCycles = 20;
10926 {{	uint32_t srca = get_ilong(2);
10927 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
10928 	m68k_areg (regs, 7) = dsta;
10929 	m68k_write_memory_32(dsta,srca);
10930 }}}m68k_incpc(6);
10931 return 20;
10932 }
CPUFUNC(op_487a_4)10933 unsigned long CPUFUNC(op_487a_4)(uint32_t opcode) /* PEA */
10934 {
10935 	OpcodeFamily = 57; CurrentInstrCycles = 16;
10936 {{	uint32_t srca = m68k_getpc () + 2;
10937 	srca += (int32_t)(int16_t)get_iword(2);
10938 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
10939 	m68k_areg (regs, 7) = dsta;
10940 	m68k_write_memory_32(dsta,srca);
10941 }}}m68k_incpc(4);
10942 return 16;
10943 }
CPUFUNC(op_487b_4)10944 unsigned long CPUFUNC(op_487b_4)(uint32_t opcode) /* PEA */
10945 {
10946 	OpcodeFamily = 57; CurrentInstrCycles = 22;
10947 {{	uint32_t tmppc = m68k_getpc() + 2;
10948 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
10949 	BusCyclePenalty += 2;
10950 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
10951 	m68k_areg (regs, 7) = dsta;
10952 	m68k_write_memory_32(dsta,srca);
10953 }}}m68k_incpc(4);
10954 return 22;
10955 }
CPUFUNC(op_4880_4)10956 unsigned long CPUFUNC(op_4880_4)(uint32_t opcode) /* EXT */
10957 {
10958 	uint32_t srcreg = (opcode & 7);
10959 	OpcodeFamily = 36; CurrentInstrCycles = 4;
10960 {{	int32_t src = m68k_dreg(regs, srcreg);
10961 {	uint16_t dst = (int16_t)(int8_t)src;
10962 	CLEAR_CZNV;
10963 	SET_ZFLG (((int16_t)(dst)) == 0);
10964 	SET_NFLG (((int16_t)(dst)) < 0);
10965 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((dst) & 0xffff);
10966 }}}m68k_incpc(2);
10967 return 4;
10968 }
CPUFUNC(op_4890_4)10969 unsigned long CPUFUNC(op_4890_4)(uint32_t opcode) /* MVMLE */
10970 {
10971 	uint32_t dstreg = opcode & 7;
10972 	unsigned int retcycles = 0;
10973 	OpcodeFamily = 38; CurrentInstrCycles = 8;
10974 {	uint16_t mask = get_iword(2);
10975 	retcycles = 0;
10976 {	uint32_t srca = m68k_areg(regs, dstreg);
10977 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
10978 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
10979 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
10980 }}}m68k_incpc(4);
10981  return (8+retcycles);
10982 }
CPUFUNC(op_48a0_4)10983 unsigned long CPUFUNC(op_48a0_4)(uint32_t opcode) /* MVMLE */
10984 {
10985 	uint32_t dstreg = opcode & 7;
10986 	unsigned int retcycles = 0;
10987 	OpcodeFamily = 38; CurrentInstrCycles = 8;
10988 {	uint16_t mask = get_iword(2);
10989 	retcycles = 0;
10990 {	uint32_t srca = m68k_areg(regs, dstreg) - 0;
10991 {	uint16_t amask = mask & 0xff, dmask = (mask >> 8) & 0xff;
10992 	while (amask) { srca -= 2; m68k_write_memory_16(srca, m68k_areg(regs, movem_index2[amask])); amask = movem_next[amask]; retcycles+=4; }
10993 	while (dmask) { srca -= 2; m68k_write_memory_16(srca, m68k_dreg(regs, movem_index2[dmask])); dmask = movem_next[dmask]; retcycles+=4; }
10994 	m68k_areg(regs, dstreg) = srca;
10995 }}}m68k_incpc(4);
10996  return (8+retcycles);
10997 }
CPUFUNC(op_48a8_4)10998 unsigned long CPUFUNC(op_48a8_4)(uint32_t opcode) /* MVMLE */
10999 {
11000 	uint32_t dstreg = opcode & 7;
11001 	unsigned int retcycles = 0;
11002 	OpcodeFamily = 38; CurrentInstrCycles = 12;
11003 {	uint16_t mask = get_iword(2);
11004 	retcycles = 0;
11005 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
11006 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11007 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11008 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11009 }}}m68k_incpc(6);
11010  return (12+retcycles);
11011 }
CPUFUNC(op_48b0_4)11012 unsigned long CPUFUNC(op_48b0_4)(uint32_t opcode) /* MVMLE */
11013 {
11014 	uint32_t dstreg = opcode & 7;
11015 	unsigned int retcycles = 0;
11016 	OpcodeFamily = 38; CurrentInstrCycles = 14;
11017 {	uint16_t mask = get_iword(2);
11018 	retcycles = 0;
11019 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
11020 	BusCyclePenalty += 2;
11021 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11022 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11023 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11024 }}}m68k_incpc(6);
11025  return (14+retcycles);
11026 }
CPUFUNC(op_48b8_4)11027 unsigned long CPUFUNC(op_48b8_4)(uint32_t opcode) /* MVMLE */
11028 {
11029 	unsigned int retcycles = 0;
11030 	OpcodeFamily = 38; CurrentInstrCycles = 12;
11031 {	uint16_t mask = get_iword(2);
11032 	retcycles = 0;
11033 {	uint32_t srca = (int32_t)(int16_t)get_iword(4);
11034 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11035 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11036 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11037 }}}m68k_incpc(6);
11038  return (12+retcycles);
11039 }
CPUFUNC(op_48b9_4)11040 unsigned long CPUFUNC(op_48b9_4)(uint32_t opcode) /* MVMLE */
11041 {
11042 	unsigned int retcycles = 0;
11043 	OpcodeFamily = 38; CurrentInstrCycles = 16;
11044 {	uint16_t mask = get_iword(2);
11045 	retcycles = 0;
11046 {	uint32_t srca = get_ilong(4);
11047 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11048 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11049 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11050 }}}m68k_incpc(8);
11051  return (16+retcycles);
11052 }
CPUFUNC(op_48c0_4)11053 unsigned long CPUFUNC(op_48c0_4)(uint32_t opcode) /* EXT */
11054 {
11055 	uint32_t srcreg = (opcode & 7);
11056 	OpcodeFamily = 36; CurrentInstrCycles = 4;
11057 {{	int32_t src = m68k_dreg(regs, srcreg);
11058 {	uint32_t dst = (int32_t)(int16_t)src;
11059 	CLEAR_CZNV;
11060 	SET_ZFLG (((int32_t)(dst)) == 0);
11061 	SET_NFLG (((int32_t)(dst)) < 0);
11062 	m68k_dreg(regs, srcreg) = (dst);
11063 }}}m68k_incpc(2);
11064 return 4;
11065 }
CPUFUNC(op_48d0_4)11066 unsigned long CPUFUNC(op_48d0_4)(uint32_t opcode) /* MVMLE */
11067 {
11068 	uint32_t dstreg = opcode & 7;
11069 	unsigned int retcycles = 0;
11070 	OpcodeFamily = 38; CurrentInstrCycles = 8;
11071 {	uint16_t mask = get_iword(2);
11072 	retcycles = 0;
11073 {	uint32_t srca = m68k_areg(regs, dstreg);
11074 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11075 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11076 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11077 }}}m68k_incpc(4);
11078  return (8+retcycles);
11079 }
CPUFUNC(op_48e0_4)11080 unsigned long CPUFUNC(op_48e0_4)(uint32_t opcode) /* MVMLE */
11081 {
11082 	uint32_t dstreg = opcode & 7;
11083 	unsigned int retcycles = 0;
11084 	OpcodeFamily = 38; CurrentInstrCycles = 8;
11085 {	uint16_t mask = get_iword(2);
11086 	retcycles = 0;
11087 {	uint32_t srca = m68k_areg(regs, dstreg) - 0;
11088 {	uint16_t amask = mask & 0xff, dmask = (mask >> 8) & 0xff;
11089 	while (amask) { srca -= 4; m68k_write_memory_32(srca, m68k_areg(regs, movem_index2[amask])); amask = movem_next[amask]; retcycles+=8; }
11090 	while (dmask) { srca -= 4; m68k_write_memory_32(srca, m68k_dreg(regs, movem_index2[dmask])); dmask = movem_next[dmask]; retcycles+=8; }
11091 	m68k_areg(regs, dstreg) = srca;
11092 }}}m68k_incpc(4);
11093  return (8+retcycles);
11094 }
CPUFUNC(op_48e8_4)11095 unsigned long CPUFUNC(op_48e8_4)(uint32_t opcode) /* MVMLE */
11096 {
11097 	uint32_t dstreg = opcode & 7;
11098 	unsigned int retcycles = 0;
11099 	OpcodeFamily = 38; CurrentInstrCycles = 12;
11100 {	uint16_t mask = get_iword(2);
11101 	retcycles = 0;
11102 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
11103 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11104 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11105 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11106 }}}m68k_incpc(6);
11107  return (12+retcycles);
11108 }
CPUFUNC(op_48f0_4)11109 unsigned long CPUFUNC(op_48f0_4)(uint32_t opcode) /* MVMLE */
11110 {
11111 	uint32_t dstreg = opcode & 7;
11112 	unsigned int retcycles = 0;
11113 	OpcodeFamily = 38; CurrentInstrCycles = 14;
11114 {	uint16_t mask = get_iword(2);
11115 	retcycles = 0;
11116 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
11117 	BusCyclePenalty += 2;
11118 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11119 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11120 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11121 }}}m68k_incpc(6);
11122  return (14+retcycles);
11123 }
CPUFUNC(op_48f8_4)11124 unsigned long CPUFUNC(op_48f8_4)(uint32_t opcode) /* MVMLE */
11125 {
11126 	unsigned int retcycles = 0;
11127 	OpcodeFamily = 38; CurrentInstrCycles = 12;
11128 {	uint16_t mask = get_iword(2);
11129 	retcycles = 0;
11130 {	uint32_t srca = (int32_t)(int16_t)get_iword(4);
11131 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11132 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11133 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11134 }}}m68k_incpc(6);
11135  return (12+retcycles);
11136 }
CPUFUNC(op_48f9_4)11137 unsigned long CPUFUNC(op_48f9_4)(uint32_t opcode) /* MVMLE */
11138 {
11139 	unsigned int retcycles = 0;
11140 	OpcodeFamily = 38; CurrentInstrCycles = 16;
11141 {	uint16_t mask = get_iword(2);
11142 	retcycles = 0;
11143 {	uint32_t srca = get_ilong(4);
11144 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11145 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11146 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11147 }}}m68k_incpc(8);
11148  return (16+retcycles);
11149 }
CPUFUNC(op_4a00_4)11150 unsigned long CPUFUNC(op_4a00_4)(uint32_t opcode) /* TST */
11151 {
11152 	uint32_t srcreg = (opcode & 7);
11153 	OpcodeFamily = 20; CurrentInstrCycles = 4;
11154 {{	int8_t src = m68k_dreg(regs, srcreg);
11155 	CLEAR_CZNV;
11156 	SET_ZFLG (((int8_t)(src)) == 0);
11157 	SET_NFLG (((int8_t)(src)) < 0);
11158 }}m68k_incpc(2);
11159 return 4;
11160 }
CPUFUNC(op_4a10_4)11161 unsigned long CPUFUNC(op_4a10_4)(uint32_t opcode) /* TST */
11162 {
11163 	uint32_t srcreg = (opcode & 7);
11164 	OpcodeFamily = 20; CurrentInstrCycles = 8;
11165 {{	uint32_t srca = m68k_areg(regs, srcreg);
11166 {	int8_t src = m68k_read_memory_8(srca);
11167 	CLEAR_CZNV;
11168 	SET_ZFLG (((int8_t)(src)) == 0);
11169 	SET_NFLG (((int8_t)(src)) < 0);
11170 }}}m68k_incpc(2);
11171 return 8;
11172 }
CPUFUNC(op_4a18_4)11173 unsigned long CPUFUNC(op_4a18_4)(uint32_t opcode) /* TST */
11174 {
11175 	uint32_t srcreg = (opcode & 7);
11176 	OpcodeFamily = 20; CurrentInstrCycles = 8;
11177 {{	uint32_t srca = m68k_areg(regs, srcreg);
11178 {	int8_t src = m68k_read_memory_8(srca);
11179 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
11180 	CLEAR_CZNV;
11181 	SET_ZFLG (((int8_t)(src)) == 0);
11182 	SET_NFLG (((int8_t)(src)) < 0);
11183 }}}m68k_incpc(2);
11184 return 8;
11185 }
CPUFUNC(op_4a20_4)11186 unsigned long CPUFUNC(op_4a20_4)(uint32_t opcode) /* TST */
11187 {
11188 	uint32_t srcreg = (opcode & 7);
11189 	OpcodeFamily = 20; CurrentInstrCycles = 10;
11190 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
11191 {	int8_t src = m68k_read_memory_8(srca);
11192 	m68k_areg (regs, srcreg) = srca;
11193 	CLEAR_CZNV;
11194 	SET_ZFLG (((int8_t)(src)) == 0);
11195 	SET_NFLG (((int8_t)(src)) < 0);
11196 }}}m68k_incpc(2);
11197 return 10;
11198 }
CPUFUNC(op_4a28_4)11199 unsigned long CPUFUNC(op_4a28_4)(uint32_t opcode) /* TST */
11200 {
11201 	uint32_t srcreg = (opcode & 7);
11202 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11203 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
11204 {	int8_t src = m68k_read_memory_8(srca);
11205 	CLEAR_CZNV;
11206 	SET_ZFLG (((int8_t)(src)) == 0);
11207 	SET_NFLG (((int8_t)(src)) < 0);
11208 }}}m68k_incpc(4);
11209 return 12;
11210 }
CPUFUNC(op_4a30_4)11211 unsigned long CPUFUNC(op_4a30_4)(uint32_t opcode) /* TST */
11212 {
11213 	uint32_t srcreg = (opcode & 7);
11214 	OpcodeFamily = 20; CurrentInstrCycles = 14;
11215 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
11216 	BusCyclePenalty += 2;
11217 {	int8_t src = m68k_read_memory_8(srca);
11218 	CLEAR_CZNV;
11219 	SET_ZFLG (((int8_t)(src)) == 0);
11220 	SET_NFLG (((int8_t)(src)) < 0);
11221 }}}m68k_incpc(4);
11222 return 14;
11223 }
CPUFUNC(op_4a38_4)11224 unsigned long CPUFUNC(op_4a38_4)(uint32_t opcode) /* TST */
11225 {
11226 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11227 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
11228 {	int8_t src = m68k_read_memory_8(srca);
11229 	CLEAR_CZNV;
11230 	SET_ZFLG (((int8_t)(src)) == 0);
11231 	SET_NFLG (((int8_t)(src)) < 0);
11232 }}}m68k_incpc(4);
11233 return 12;
11234 }
CPUFUNC(op_4a39_4)11235 unsigned long CPUFUNC(op_4a39_4)(uint32_t opcode) /* TST */
11236 {
11237 	OpcodeFamily = 20; CurrentInstrCycles = 16;
11238 {{	uint32_t srca = get_ilong(2);
11239 {	int8_t src = m68k_read_memory_8(srca);
11240 	CLEAR_CZNV;
11241 	SET_ZFLG (((int8_t)(src)) == 0);
11242 	SET_NFLG (((int8_t)(src)) < 0);
11243 }}}m68k_incpc(6);
11244 return 16;
11245 }
CPUFUNC(op_4a3a_4)11246 unsigned long CPUFUNC(op_4a3a_4)(uint32_t opcode) /* TST */
11247 {
11248 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11249 {{	uint32_t srca = m68k_getpc () + 2;
11250 	srca += (int32_t)(int16_t)get_iword(2);
11251 {	int8_t src = m68k_read_memory_8(srca);
11252 	CLEAR_CZNV;
11253 	SET_ZFLG (((int8_t)(src)) == 0);
11254 	SET_NFLG (((int8_t)(src)) < 0);
11255 }}}m68k_incpc(4);
11256 return 12;
11257 }
CPUFUNC(op_4a3b_4)11258 unsigned long CPUFUNC(op_4a3b_4)(uint32_t opcode) /* TST */
11259 {
11260 	OpcodeFamily = 20; CurrentInstrCycles = 14;
11261 {{	uint32_t tmppc = m68k_getpc() + 2;
11262 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
11263 	BusCyclePenalty += 2;
11264 {	int8_t src = m68k_read_memory_8(srca);
11265 	CLEAR_CZNV;
11266 	SET_ZFLG (((int8_t)(src)) == 0);
11267 	SET_NFLG (((int8_t)(src)) < 0);
11268 }}}m68k_incpc(4);
11269 return 14;
11270 }
CPUFUNC(op_4a3c_4)11271 unsigned long CPUFUNC(op_4a3c_4)(uint32_t opcode) /* TST */
11272 {
11273 	OpcodeFamily = 20; CurrentInstrCycles = 8;
11274 {{	int8_t src = get_ibyte(2);
11275 	CLEAR_CZNV;
11276 	SET_ZFLG (((int8_t)(src)) == 0);
11277 	SET_NFLG (((int8_t)(src)) < 0);
11278 }}m68k_incpc(4);
11279 return 8;
11280 }
CPUFUNC(op_4a40_4)11281 unsigned long CPUFUNC(op_4a40_4)(uint32_t opcode) /* TST */
11282 {
11283 	uint32_t srcreg = (opcode & 7);
11284 	OpcodeFamily = 20; CurrentInstrCycles = 4;
11285 {{	int16_t src = m68k_dreg(regs, srcreg);
11286 	CLEAR_CZNV;
11287 	SET_ZFLG (((int16_t)(src)) == 0);
11288 	SET_NFLG (((int16_t)(src)) < 0);
11289 }}m68k_incpc(2);
11290 return 4;
11291 }
CPUFUNC(op_4a48_4)11292 unsigned long CPUFUNC(op_4a48_4)(uint32_t opcode) /* TST */
11293 {
11294 	uint32_t srcreg = (opcode & 7);
11295 	OpcodeFamily = 20; CurrentInstrCycles = 4;
11296 {{	int16_t src = m68k_areg(regs, srcreg);
11297 	CLEAR_CZNV;
11298 	SET_ZFLG (((int16_t)(src)) == 0);
11299 	SET_NFLG (((int16_t)(src)) < 0);
11300 }}m68k_incpc(2);
11301 return 4;
11302 }
CPUFUNC(op_4a50_4)11303 unsigned long CPUFUNC(op_4a50_4)(uint32_t opcode) /* TST */
11304 {
11305 	uint32_t srcreg = (opcode & 7);
11306 	OpcodeFamily = 20; CurrentInstrCycles = 8;
11307 {{	uint32_t srca = m68k_areg(regs, srcreg);
11308 {	int16_t src = m68k_read_memory_16(srca);
11309 	CLEAR_CZNV;
11310 	SET_ZFLG (((int16_t)(src)) == 0);
11311 	SET_NFLG (((int16_t)(src)) < 0);
11312 }}}m68k_incpc(2);
11313 return 8;
11314 }
CPUFUNC(op_4a58_4)11315 unsigned long CPUFUNC(op_4a58_4)(uint32_t opcode) /* TST */
11316 {
11317 	uint32_t srcreg = (opcode & 7);
11318 	OpcodeFamily = 20; CurrentInstrCycles = 8;
11319 {{	uint32_t srca = m68k_areg(regs, srcreg);
11320 {	int16_t src = m68k_read_memory_16(srca);
11321 	m68k_areg(regs, srcreg) += 2;
11322 	CLEAR_CZNV;
11323 	SET_ZFLG (((int16_t)(src)) == 0);
11324 	SET_NFLG (((int16_t)(src)) < 0);
11325 }}}m68k_incpc(2);
11326 return 8;
11327 }
CPUFUNC(op_4a60_4)11328 unsigned long CPUFUNC(op_4a60_4)(uint32_t opcode) /* TST */
11329 {
11330 	uint32_t srcreg = (opcode & 7);
11331 	OpcodeFamily = 20; CurrentInstrCycles = 10;
11332 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
11333 {	int16_t src = m68k_read_memory_16(srca);
11334 	m68k_areg (regs, srcreg) = srca;
11335 	CLEAR_CZNV;
11336 	SET_ZFLG (((int16_t)(src)) == 0);
11337 	SET_NFLG (((int16_t)(src)) < 0);
11338 }}}m68k_incpc(2);
11339 return 10;
11340 }
CPUFUNC(op_4a68_4)11341 unsigned long CPUFUNC(op_4a68_4)(uint32_t opcode) /* TST */
11342 {
11343 	uint32_t srcreg = (opcode & 7);
11344 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11345 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
11346 {	int16_t src = m68k_read_memory_16(srca);
11347 	CLEAR_CZNV;
11348 	SET_ZFLG (((int16_t)(src)) == 0);
11349 	SET_NFLG (((int16_t)(src)) < 0);
11350 }}}m68k_incpc(4);
11351 return 12;
11352 }
CPUFUNC(op_4a70_4)11353 unsigned long CPUFUNC(op_4a70_4)(uint32_t opcode) /* TST */
11354 {
11355 	uint32_t srcreg = (opcode & 7);
11356 	OpcodeFamily = 20; CurrentInstrCycles = 14;
11357 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
11358 	BusCyclePenalty += 2;
11359 {	int16_t src = m68k_read_memory_16(srca);
11360 	CLEAR_CZNV;
11361 	SET_ZFLG (((int16_t)(src)) == 0);
11362 	SET_NFLG (((int16_t)(src)) < 0);
11363 }}}m68k_incpc(4);
11364 return 14;
11365 }
CPUFUNC(op_4a78_4)11366 unsigned long CPUFUNC(op_4a78_4)(uint32_t opcode) /* TST */
11367 {
11368 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11369 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
11370 {	int16_t src = m68k_read_memory_16(srca);
11371 	CLEAR_CZNV;
11372 	SET_ZFLG (((int16_t)(src)) == 0);
11373 	SET_NFLG (((int16_t)(src)) < 0);
11374 }}}m68k_incpc(4);
11375 return 12;
11376 }
CPUFUNC(op_4a79_4)11377 unsigned long CPUFUNC(op_4a79_4)(uint32_t opcode) /* TST */
11378 {
11379 	OpcodeFamily = 20; CurrentInstrCycles = 16;
11380 {{	uint32_t srca = get_ilong(2);
11381 {	int16_t src = m68k_read_memory_16(srca);
11382 	CLEAR_CZNV;
11383 	SET_ZFLG (((int16_t)(src)) == 0);
11384 	SET_NFLG (((int16_t)(src)) < 0);
11385 }}}m68k_incpc(6);
11386 return 16;
11387 }
CPUFUNC(op_4a7a_4)11388 unsigned long CPUFUNC(op_4a7a_4)(uint32_t opcode) /* TST */
11389 {
11390 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11391 {{	uint32_t srca = m68k_getpc () + 2;
11392 	srca += (int32_t)(int16_t)get_iword(2);
11393 {	int16_t src = m68k_read_memory_16(srca);
11394 	CLEAR_CZNV;
11395 	SET_ZFLG (((int16_t)(src)) == 0);
11396 	SET_NFLG (((int16_t)(src)) < 0);
11397 }}}m68k_incpc(4);
11398 return 12;
11399 }
CPUFUNC(op_4a7b_4)11400 unsigned long CPUFUNC(op_4a7b_4)(uint32_t opcode) /* TST */
11401 {
11402 	OpcodeFamily = 20; CurrentInstrCycles = 14;
11403 {{	uint32_t tmppc = m68k_getpc() + 2;
11404 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
11405 	BusCyclePenalty += 2;
11406 {	int16_t src = m68k_read_memory_16(srca);
11407 	CLEAR_CZNV;
11408 	SET_ZFLG (((int16_t)(src)) == 0);
11409 	SET_NFLG (((int16_t)(src)) < 0);
11410 }}}m68k_incpc(4);
11411 return 14;
11412 }
CPUFUNC(op_4a7c_4)11413 unsigned long CPUFUNC(op_4a7c_4)(uint32_t opcode) /* TST */
11414 {
11415 	OpcodeFamily = 20; CurrentInstrCycles = 8;
11416 {{	int16_t src = get_iword(2);
11417 	CLEAR_CZNV;
11418 	SET_ZFLG (((int16_t)(src)) == 0);
11419 	SET_NFLG (((int16_t)(src)) < 0);
11420 }}m68k_incpc(4);
11421 return 8;
11422 }
CPUFUNC(op_4a80_4)11423 unsigned long CPUFUNC(op_4a80_4)(uint32_t opcode) /* TST */
11424 {
11425 	uint32_t srcreg = (opcode & 7);
11426 	OpcodeFamily = 20; CurrentInstrCycles = 4;
11427 {{	int32_t src = m68k_dreg(regs, srcreg);
11428 	CLEAR_CZNV;
11429 	SET_ZFLG (((int32_t)(src)) == 0);
11430 	SET_NFLG (((int32_t)(src)) < 0);
11431 }}m68k_incpc(2);
11432 return 4;
11433 }
CPUFUNC(op_4a88_4)11434 unsigned long CPUFUNC(op_4a88_4)(uint32_t opcode) /* TST */
11435 {
11436 	uint32_t srcreg = (opcode & 7);
11437 	OpcodeFamily = 20; CurrentInstrCycles = 4;
11438 {{	int32_t src = m68k_areg(regs, srcreg);
11439 	CLEAR_CZNV;
11440 	SET_ZFLG (((int32_t)(src)) == 0);
11441 	SET_NFLG (((int32_t)(src)) < 0);
11442 }}m68k_incpc(2);
11443 return 4;
11444 }
CPUFUNC(op_4a90_4)11445 unsigned long CPUFUNC(op_4a90_4)(uint32_t opcode) /* TST */
11446 {
11447 	uint32_t srcreg = (opcode & 7);
11448 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11449 {{	uint32_t srca = m68k_areg(regs, srcreg);
11450 {	int32_t src = m68k_read_memory_32(srca);
11451 	CLEAR_CZNV;
11452 	SET_ZFLG (((int32_t)(src)) == 0);
11453 	SET_NFLG (((int32_t)(src)) < 0);
11454 }}}m68k_incpc(2);
11455 return 12;
11456 }
CPUFUNC(op_4a98_4)11457 unsigned long CPUFUNC(op_4a98_4)(uint32_t opcode) /* TST */
11458 {
11459 	uint32_t srcreg = (opcode & 7);
11460 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11461 {{	uint32_t srca = m68k_areg(regs, srcreg);
11462 {	int32_t src = m68k_read_memory_32(srca);
11463 	m68k_areg(regs, srcreg) += 4;
11464 	CLEAR_CZNV;
11465 	SET_ZFLG (((int32_t)(src)) == 0);
11466 	SET_NFLG (((int32_t)(src)) < 0);
11467 }}}m68k_incpc(2);
11468 return 12;
11469 }
CPUFUNC(op_4aa0_4)11470 unsigned long CPUFUNC(op_4aa0_4)(uint32_t opcode) /* TST */
11471 {
11472 	uint32_t srcreg = (opcode & 7);
11473 	OpcodeFamily = 20; CurrentInstrCycles = 14;
11474 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
11475 {	int32_t src = m68k_read_memory_32(srca);
11476 	m68k_areg (regs, srcreg) = srca;
11477 	CLEAR_CZNV;
11478 	SET_ZFLG (((int32_t)(src)) == 0);
11479 	SET_NFLG (((int32_t)(src)) < 0);
11480 }}}m68k_incpc(2);
11481 return 14;
11482 }
CPUFUNC(op_4aa8_4)11483 unsigned long CPUFUNC(op_4aa8_4)(uint32_t opcode) /* TST */
11484 {
11485 	uint32_t srcreg = (opcode & 7);
11486 	OpcodeFamily = 20; CurrentInstrCycles = 16;
11487 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
11488 {	int32_t src = m68k_read_memory_32(srca);
11489 	CLEAR_CZNV;
11490 	SET_ZFLG (((int32_t)(src)) == 0);
11491 	SET_NFLG (((int32_t)(src)) < 0);
11492 }}}m68k_incpc(4);
11493 return 16;
11494 }
CPUFUNC(op_4ab0_4)11495 unsigned long CPUFUNC(op_4ab0_4)(uint32_t opcode) /* TST */
11496 {
11497 	uint32_t srcreg = (opcode & 7);
11498 	OpcodeFamily = 20; CurrentInstrCycles = 18;
11499 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
11500 	BusCyclePenalty += 2;
11501 {	int32_t src = m68k_read_memory_32(srca);
11502 	CLEAR_CZNV;
11503 	SET_ZFLG (((int32_t)(src)) == 0);
11504 	SET_NFLG (((int32_t)(src)) < 0);
11505 }}}m68k_incpc(4);
11506 return 18;
11507 }
CPUFUNC(op_4ab8_4)11508 unsigned long CPUFUNC(op_4ab8_4)(uint32_t opcode) /* TST */
11509 {
11510 	OpcodeFamily = 20; CurrentInstrCycles = 16;
11511 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
11512 {	int32_t src = m68k_read_memory_32(srca);
11513 	CLEAR_CZNV;
11514 	SET_ZFLG (((int32_t)(src)) == 0);
11515 	SET_NFLG (((int32_t)(src)) < 0);
11516 }}}m68k_incpc(4);
11517 return 16;
11518 }
CPUFUNC(op_4ab9_4)11519 unsigned long CPUFUNC(op_4ab9_4)(uint32_t opcode) /* TST */
11520 {
11521 	OpcodeFamily = 20; CurrentInstrCycles = 20;
11522 {{	uint32_t srca = get_ilong(2);
11523 {	int32_t src = m68k_read_memory_32(srca);
11524 	CLEAR_CZNV;
11525 	SET_ZFLG (((int32_t)(src)) == 0);
11526 	SET_NFLG (((int32_t)(src)) < 0);
11527 }}}m68k_incpc(6);
11528 return 20;
11529 }
CPUFUNC(op_4aba_4)11530 unsigned long CPUFUNC(op_4aba_4)(uint32_t opcode) /* TST */
11531 {
11532 	OpcodeFamily = 20; CurrentInstrCycles = 16;
11533 {{	uint32_t srca = m68k_getpc () + 2;
11534 	srca += (int32_t)(int16_t)get_iword(2);
11535 {	int32_t src = m68k_read_memory_32(srca);
11536 	CLEAR_CZNV;
11537 	SET_ZFLG (((int32_t)(src)) == 0);
11538 	SET_NFLG (((int32_t)(src)) < 0);
11539 }}}m68k_incpc(4);
11540 return 16;
11541 }
CPUFUNC(op_4abb_4)11542 unsigned long CPUFUNC(op_4abb_4)(uint32_t opcode) /* TST */
11543 {
11544 	OpcodeFamily = 20; CurrentInstrCycles = 18;
11545 {{	uint32_t tmppc = m68k_getpc() + 2;
11546 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
11547 	BusCyclePenalty += 2;
11548 {	int32_t src = m68k_read_memory_32(srca);
11549 	CLEAR_CZNV;
11550 	SET_ZFLG (((int32_t)(src)) == 0);
11551 	SET_NFLG (((int32_t)(src)) < 0);
11552 }}}m68k_incpc(4);
11553 return 18;
11554 }
CPUFUNC(op_4abc_4)11555 unsigned long CPUFUNC(op_4abc_4)(uint32_t opcode) /* TST */
11556 {
11557 	OpcodeFamily = 20; CurrentInstrCycles = 12;
11558 {{	int32_t src = get_ilong(2);
11559 	CLEAR_CZNV;
11560 	SET_ZFLG (((int32_t)(src)) == 0);
11561 	SET_NFLG (((int32_t)(src)) < 0);
11562 }}m68k_incpc(6);
11563 return 12;
11564 }
CPUFUNC(op_4ac0_4)11565 unsigned long CPUFUNC(op_4ac0_4)(uint32_t opcode) /* TAS */
11566 {
11567 	uint32_t srcreg = (opcode & 7);
11568 	OpcodeFamily = 98; CurrentInstrCycles = 4;
11569 {{	int8_t src = m68k_dreg(regs, srcreg);
11570 	CLEAR_CZNV;
11571 	SET_ZFLG (((int8_t)(src)) == 0);
11572 	SET_NFLG (((int8_t)(src)) < 0);
11573 	src |= 0x80;
11574 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((src) & 0xff);
11575 }}m68k_incpc(2);
11576 return 4;
11577 }
CPUFUNC(op_4ad0_4)11578 unsigned long CPUFUNC(op_4ad0_4)(uint32_t opcode) /* TAS */
11579 {
11580 	uint32_t srcreg = (opcode & 7);
11581 	OpcodeFamily = 98; CurrentInstrCycles = 14;
11582 {{	uint32_t srca = m68k_areg(regs, srcreg);
11583 {	int8_t src = m68k_read_memory_8(srca);
11584 	CLEAR_CZNV;
11585 	SET_ZFLG (((int8_t)(src)) == 0);
11586 	SET_NFLG (((int8_t)(src)) < 0);
11587 	src |= 0x80;
11588 	m68k_write_memory_8(srca,src);
11589 }}}m68k_incpc(2);
11590 return 14;
11591 }
CPUFUNC(op_4ad8_4)11592 unsigned long CPUFUNC(op_4ad8_4)(uint32_t opcode) /* TAS */
11593 {
11594 	uint32_t srcreg = (opcode & 7);
11595 	OpcodeFamily = 98; CurrentInstrCycles = 14;
11596 {{	uint32_t srca = m68k_areg(regs, srcreg);
11597 {	int8_t src = m68k_read_memory_8(srca);
11598 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
11599 	CLEAR_CZNV;
11600 	SET_ZFLG (((int8_t)(src)) == 0);
11601 	SET_NFLG (((int8_t)(src)) < 0);
11602 	src |= 0x80;
11603 	m68k_write_memory_8(srca,src);
11604 }}}m68k_incpc(2);
11605 return 14;
11606 }
CPUFUNC(op_4ae0_4)11607 unsigned long CPUFUNC(op_4ae0_4)(uint32_t opcode) /* TAS */
11608 {
11609 	uint32_t srcreg = (opcode & 7);
11610 	OpcodeFamily = 98; CurrentInstrCycles = 16;
11611 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
11612 {	int8_t src = m68k_read_memory_8(srca);
11613 	m68k_areg (regs, srcreg) = srca;
11614 	CLEAR_CZNV;
11615 	SET_ZFLG (((int8_t)(src)) == 0);
11616 	SET_NFLG (((int8_t)(src)) < 0);
11617 	src |= 0x80;
11618 	m68k_write_memory_8(srca,src);
11619 }}}m68k_incpc(2);
11620 return 16;
11621 }
CPUFUNC(op_4ae8_4)11622 unsigned long CPUFUNC(op_4ae8_4)(uint32_t opcode) /* TAS */
11623 {
11624 	uint32_t srcreg = (opcode & 7);
11625 	OpcodeFamily = 98; CurrentInstrCycles = 18;
11626 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
11627 {	int8_t src = m68k_read_memory_8(srca);
11628 	CLEAR_CZNV;
11629 	SET_ZFLG (((int8_t)(src)) == 0);
11630 	SET_NFLG (((int8_t)(src)) < 0);
11631 	src |= 0x80;
11632 	m68k_write_memory_8(srca,src);
11633 }}}m68k_incpc(4);
11634 return 18;
11635 }
CPUFUNC(op_4af0_4)11636 unsigned long CPUFUNC(op_4af0_4)(uint32_t opcode) /* TAS */
11637 {
11638 	uint32_t srcreg = (opcode & 7);
11639 	OpcodeFamily = 98; CurrentInstrCycles = 20;
11640 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
11641 	BusCyclePenalty += 2;
11642 {	int8_t src = m68k_read_memory_8(srca);
11643 	CLEAR_CZNV;
11644 	SET_ZFLG (((int8_t)(src)) == 0);
11645 	SET_NFLG (((int8_t)(src)) < 0);
11646 	src |= 0x80;
11647 	m68k_write_memory_8(srca,src);
11648 }}}m68k_incpc(4);
11649 return 20;
11650 }
CPUFUNC(op_4af8_4)11651 unsigned long CPUFUNC(op_4af8_4)(uint32_t opcode) /* TAS */
11652 {
11653 	OpcodeFamily = 98; CurrentInstrCycles = 18;
11654 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
11655 {	int8_t src = m68k_read_memory_8(srca);
11656 	CLEAR_CZNV;
11657 	SET_ZFLG (((int8_t)(src)) == 0);
11658 	SET_NFLG (((int8_t)(src)) < 0);
11659 	src |= 0x80;
11660 	m68k_write_memory_8(srca,src);
11661 }}}m68k_incpc(4);
11662 return 18;
11663 }
CPUFUNC(op_4af9_4)11664 unsigned long CPUFUNC(op_4af9_4)(uint32_t opcode) /* TAS */
11665 {
11666 	OpcodeFamily = 98; CurrentInstrCycles = 22;
11667 {{	uint32_t srca = get_ilong(2);
11668 {	int8_t src = m68k_read_memory_8(srca);
11669 	CLEAR_CZNV;
11670 	SET_ZFLG (((int8_t)(src)) == 0);
11671 	SET_NFLG (((int8_t)(src)) < 0);
11672 	src |= 0x80;
11673 	m68k_write_memory_8(srca,src);
11674 }}}m68k_incpc(6);
11675 return 22;
11676 }
CPUFUNC(op_4c90_4)11677 unsigned long CPUFUNC(op_4c90_4)(uint32_t opcode) /* MVMEL */
11678 {
11679 	uint32_t dstreg = opcode & 7;
11680 	unsigned int retcycles = 0;
11681 	OpcodeFamily = 37; CurrentInstrCycles = 12;
11682 {	uint16_t mask = get_iword(2);
11683 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11684 	retcycles = 0;
11685 {	uint32_t srca = m68k_areg(regs, dstreg);
11686 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11687 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11688 }}}m68k_incpc(4);
11689  return (12+retcycles);
11690 }
CPUFUNC(op_4c98_4)11691 unsigned long CPUFUNC(op_4c98_4)(uint32_t opcode) /* MVMEL */
11692 {
11693 	uint32_t dstreg = opcode & 7;
11694 	unsigned int retcycles = 0;
11695 	OpcodeFamily = 37; CurrentInstrCycles = 12;
11696 {	uint16_t mask = get_iword(2);
11697 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11698 	retcycles = 0;
11699 {	uint32_t srca = m68k_areg(regs, dstreg);
11700 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11701 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11702 	m68k_areg(regs, dstreg) = srca;
11703 }}}m68k_incpc(4);
11704  return (12+retcycles);
11705 }
CPUFUNC(op_4ca8_4)11706 unsigned long CPUFUNC(op_4ca8_4)(uint32_t opcode) /* MVMEL */
11707 {
11708 	uint32_t dstreg = opcode & 7;
11709 	unsigned int retcycles = 0;
11710 	OpcodeFamily = 37; CurrentInstrCycles = 16;
11711 {	uint16_t mask = get_iword(2);
11712 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11713 	retcycles = 0;
11714 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
11715 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11716 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11717 }}}m68k_incpc(6);
11718  return (16+retcycles);
11719 }
CPUFUNC(op_4cb0_4)11720 unsigned long CPUFUNC(op_4cb0_4)(uint32_t opcode) /* MVMEL */
11721 {
11722 	uint32_t dstreg = opcode & 7;
11723 	unsigned int retcycles = 0;
11724 	OpcodeFamily = 37; CurrentInstrCycles = 18;
11725 {	uint16_t mask = get_iword(2);
11726 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11727 	retcycles = 0;
11728 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
11729 	BusCyclePenalty += 2;
11730 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11731 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11732 }}}m68k_incpc(6);
11733  return (18+retcycles);
11734 }
CPUFUNC(op_4cb8_4)11735 unsigned long CPUFUNC(op_4cb8_4)(uint32_t opcode) /* MVMEL */
11736 {
11737 	unsigned int retcycles = 0;
11738 	OpcodeFamily = 37; CurrentInstrCycles = 16;
11739 {	uint16_t mask = get_iword(2);
11740 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11741 	retcycles = 0;
11742 {	uint32_t srca = (int32_t)(int16_t)get_iword(4);
11743 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11744 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11745 }}}m68k_incpc(6);
11746  return (16+retcycles);
11747 }
CPUFUNC(op_4cb9_4)11748 unsigned long CPUFUNC(op_4cb9_4)(uint32_t opcode) /* MVMEL */
11749 {
11750 	unsigned int retcycles = 0;
11751 	OpcodeFamily = 37; CurrentInstrCycles = 20;
11752 {	uint16_t mask = get_iword(2);
11753 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11754 	retcycles = 0;
11755 {	uint32_t srca = get_ilong(4);
11756 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11757 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11758 }}}m68k_incpc(8);
11759  return (20+retcycles);
11760 }
CPUFUNC(op_4cba_4)11761 unsigned long CPUFUNC(op_4cba_4)(uint32_t opcode) /* MVMEL */
11762 {
11763 	uint32_t dstreg = 2;
11764 	unsigned int retcycles = 0;
11765 	OpcodeFamily = 37; CurrentInstrCycles = 16;
11766 {	uint16_t mask = get_iword(2);
11767 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11768 	retcycles = 0;
11769 {	uint32_t srca = m68k_getpc () + 4;
11770 	srca += (int32_t)(int16_t)get_iword(4);
11771 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11772 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11773 }}}m68k_incpc(6);
11774  return (16+retcycles);
11775 }
CPUFUNC(op_4cbb_4)11776 unsigned long CPUFUNC(op_4cbb_4)(uint32_t opcode) /* MVMEL */
11777 {
11778 	uint32_t dstreg = 3;
11779 	unsigned int retcycles = 0;
11780 	OpcodeFamily = 37; CurrentInstrCycles = 18;
11781 {	uint16_t mask = get_iword(2);
11782 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11783 	retcycles = 0;
11784 {	uint32_t tmppc = m68k_getpc() + 4;
11785 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(4));
11786 	BusCyclePenalty += 2;
11787 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
11788 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
11789 }}}m68k_incpc(6);
11790  return (18+retcycles);
11791 }
CPUFUNC(op_4cd0_4)11792 unsigned long CPUFUNC(op_4cd0_4)(uint32_t opcode) /* MVMEL */
11793 {
11794 	uint32_t dstreg = opcode & 7;
11795 	unsigned int retcycles = 0;
11796 	OpcodeFamily = 37; CurrentInstrCycles = 12;
11797 {	uint16_t mask = get_iword(2);
11798 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11799 	retcycles = 0;
11800 {	uint32_t srca = m68k_areg(regs, dstreg);
11801 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11802 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11803 }}}m68k_incpc(4);
11804  return (12+retcycles);
11805 }
CPUFUNC(op_4cd8_4)11806 unsigned long CPUFUNC(op_4cd8_4)(uint32_t opcode) /* MVMEL */
11807 {
11808 	uint32_t dstreg = opcode & 7;
11809 	unsigned int retcycles = 0;
11810 	OpcodeFamily = 37; CurrentInstrCycles = 12;
11811 {	uint16_t mask = get_iword(2);
11812 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11813 	retcycles = 0;
11814 {	uint32_t srca = m68k_areg(regs, dstreg);
11815 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11816 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11817 	m68k_areg(regs, dstreg) = srca;
11818 }}}m68k_incpc(4);
11819  return (12+retcycles);
11820 }
CPUFUNC(op_4ce8_4)11821 unsigned long CPUFUNC(op_4ce8_4)(uint32_t opcode) /* MVMEL */
11822 {
11823 	uint32_t dstreg = opcode & 7;
11824 	unsigned int retcycles = 0;
11825 	OpcodeFamily = 37; CurrentInstrCycles = 16;
11826 {	uint16_t mask = get_iword(2);
11827 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11828 	retcycles = 0;
11829 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(4);
11830 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11831 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11832 }}}m68k_incpc(6);
11833  return (16+retcycles);
11834 }
CPUFUNC(op_4cf0_4)11835 unsigned long CPUFUNC(op_4cf0_4)(uint32_t opcode) /* MVMEL */
11836 {
11837 	uint32_t dstreg = opcode & 7;
11838 	unsigned int retcycles = 0;
11839 	OpcodeFamily = 37; CurrentInstrCycles = 18;
11840 {	uint16_t mask = get_iword(2);
11841 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11842 	retcycles = 0;
11843 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(4));
11844 	BusCyclePenalty += 2;
11845 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11846 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11847 }}}m68k_incpc(6);
11848  return (18+retcycles);
11849 }
CPUFUNC(op_4cf8_4)11850 unsigned long CPUFUNC(op_4cf8_4)(uint32_t opcode) /* MVMEL */
11851 {
11852 	unsigned int retcycles = 0;
11853 	OpcodeFamily = 37; CurrentInstrCycles = 16;
11854 {	uint16_t mask = get_iword(2);
11855 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11856 	retcycles = 0;
11857 {	uint32_t srca = (int32_t)(int16_t)get_iword(4);
11858 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11859 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11860 }}}m68k_incpc(6);
11861  return (16+retcycles);
11862 }
CPUFUNC(op_4cf9_4)11863 unsigned long CPUFUNC(op_4cf9_4)(uint32_t opcode) /* MVMEL */
11864 {
11865 	unsigned int retcycles = 0;
11866 	OpcodeFamily = 37; CurrentInstrCycles = 20;
11867 {	uint16_t mask = get_iword(2);
11868 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11869 	retcycles = 0;
11870 {	uint32_t srca = get_ilong(4);
11871 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11872 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11873 }}}m68k_incpc(8);
11874  return (20+retcycles);
11875 }
CPUFUNC(op_4cfa_4)11876 unsigned long CPUFUNC(op_4cfa_4)(uint32_t opcode) /* MVMEL */
11877 {
11878 	uint32_t dstreg = 2;
11879 	unsigned int retcycles = 0;
11880 	OpcodeFamily = 37; CurrentInstrCycles = 16;
11881 {	uint16_t mask = get_iword(2);
11882 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11883 	retcycles = 0;
11884 {	uint32_t srca = m68k_getpc () + 4;
11885 	srca += (int32_t)(int16_t)get_iword(4);
11886 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11887 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11888 }}}m68k_incpc(6);
11889  return (16+retcycles);
11890 }
CPUFUNC(op_4cfb_4)11891 unsigned long CPUFUNC(op_4cfb_4)(uint32_t opcode) /* MVMEL */
11892 {
11893 	uint32_t dstreg = 3;
11894 	unsigned int retcycles = 0;
11895 	OpcodeFamily = 37; CurrentInstrCycles = 18;
11896 {	uint16_t mask = get_iword(2);
11897 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
11898 	retcycles = 0;
11899 {	uint32_t tmppc = m68k_getpc() + 4;
11900 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(4));
11901 	BusCyclePenalty += 2;
11902 {	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
11903 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
11904 }}}m68k_incpc(6);
11905  return (18+retcycles);
11906 }
CPUFUNC(op_4e40_4)11907 unsigned long CPUFUNC(op_4e40_4)(uint32_t opcode) /* TRAP */
11908 {
11909 	uint32_t srcreg = (opcode & 15);
11910 	OpcodeFamily = 39; CurrentInstrCycles = 4;
11911 {{	uint32_t src = srcreg;
11912 m68k_incpc(2);
11913 	Exception(src+32,0,M68000_EXC_SRC_CPU);
11914 }}return 4;
11915 }
CPUFUNC(op_4e50_4)11916 unsigned long CPUFUNC(op_4e50_4)(uint32_t opcode) /* LINK */
11917 {
11918 	uint32_t srcreg = (opcode & 7);
11919 	OpcodeFamily = 47; CurrentInstrCycles = 18;
11920 {{	uint32_t olda = m68k_areg(regs, 7) - 4;
11921 	m68k_areg (regs, 7) = olda;
11922 {	int32_t src = m68k_areg(regs, srcreg);
11923 	m68k_write_memory_32(olda,src);
11924 	m68k_areg(regs, srcreg) = (m68k_areg(regs, 7));
11925 {	int16_t offs = get_iword(2);
11926 	m68k_areg(regs, 7) += offs;
11927 }}}}m68k_incpc(4);
11928 return 18;
11929 }
CPUFUNC(op_4e58_4)11930 unsigned long CPUFUNC(op_4e58_4)(uint32_t opcode) /* UNLK */
11931 {
11932 	uint32_t srcreg = (opcode & 7);
11933 	OpcodeFamily = 48; CurrentInstrCycles = 12;
11934 {{	int32_t src = m68k_areg(regs, srcreg);
11935 	m68k_areg(regs, 7) = src;
11936 {	uint32_t olda = m68k_areg(regs, 7);
11937 {	int32_t old = m68k_read_memory_32(olda);
11938 	m68k_areg(regs, 7) += 4;
11939 	m68k_areg(regs, srcreg) = (old);
11940 }}}}m68k_incpc(2);
11941 return 12;
11942 }
CPUFUNC(op_4e60_4)11943 unsigned long CPUFUNC(op_4e60_4)(uint32_t opcode) /* MVR2USP */
11944 {
11945 	uint32_t srcreg = (opcode & 7);
11946 	OpcodeFamily = 40; CurrentInstrCycles = 4;
11947 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel791; }
11948 {{	int32_t src = m68k_areg(regs, srcreg);
11949 	regs.usp = src;
11950 }}}m68k_incpc(2);
11951 endlabel791: ;
11952 return 4;
11953 }
CPUFUNC(op_4e68_4)11954 unsigned long CPUFUNC(op_4e68_4)(uint32_t opcode) /* MVUSP2R */
11955 {
11956 	uint32_t srcreg = (opcode & 7);
11957 	OpcodeFamily = 41; CurrentInstrCycles = 4;
11958 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel792; }
11959 {{	m68k_areg(regs, srcreg) = (regs.usp);
11960 }}}m68k_incpc(2);
11961 endlabel792: ;
11962 return 4;
11963 }
CPUFUNC(op_4e70_4)11964 unsigned long CPUFUNC(op_4e70_4)(uint32_t opcode) /* RESET */
11965 {
11966 	OpcodeFamily = 42; CurrentInstrCycles = 132;
11967 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel793; }
11968 {}}m68k_incpc(2);
11969 endlabel793: ;
11970 return 132;
11971 }
CPUFUNC(op_4e71_4)11972 unsigned long CPUFUNC(op_4e71_4)(uint32_t opcode) /* NOP */
11973 {
11974 	OpcodeFamily = 43; CurrentInstrCycles = 4;
11975 {}m68k_incpc(2);
11976 return 4;
11977 }
CPUFUNC(op_4e72_4)11978 unsigned long CPUFUNC(op_4e72_4)(uint32_t opcode) /* STOP */
11979 {
11980 	OpcodeFamily = 44; CurrentInstrCycles = 4;
11981 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel795; }
11982 {{	int16_t src = get_iword(2);
11983 	regs.sr = src;
11984 	MakeFromSR();
11985 	m68k_setstopped(1);
11986 }}}m68k_incpc(4);
11987 endlabel795: ;
11988 return 4;
11989 }
CPUFUNC(op_4e73_4)11990 unsigned long CPUFUNC(op_4e73_4)(uint32_t opcode) /* RTE */
11991 {
11992 	OpcodeFamily = 45; CurrentInstrCycles = 20;
11993 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel796; }
11994 {{	uint32_t sra = m68k_areg(regs, 7);
11995 {	int16_t sr = m68k_read_memory_16(sra);
11996 	m68k_areg(regs, 7) += 2;
11997 {	uint32_t pca = m68k_areg(regs, 7);
11998 {	int32_t pc = m68k_read_memory_32(pca);
11999 	m68k_areg(regs, 7) += 4;
12000 	regs.sr = sr; m68k_setpc_rte(pc);
12001 	MakeFromSR();
12002 }}}}}}endlabel796: ;
12003 return 20;
12004 }
CPUFUNC(op_4e74_4)12005 unsigned long CPUFUNC(op_4e74_4)(uint32_t opcode) /* RTD */
12006 {
12007 	OpcodeFamily = 46; CurrentInstrCycles = 16;
12008 {{	uint32_t pca = m68k_areg(regs, 7);
12009 {	int32_t pc = m68k_read_memory_32(pca);
12010 	m68k_areg(regs, 7) += 4;
12011 {	int16_t offs = get_iword(2);
12012 	m68k_areg(regs, 7) += offs;
12013 	m68k_setpc_rte(pc);
12014 }}}}return 16;
12015 }
CPUFUNC(op_4e75_4)12016 unsigned long CPUFUNC(op_4e75_4)(uint32_t opcode) /* RTS */
12017 {
12018 	OpcodeFamily = 49; CurrentInstrCycles = 16;
12019 {	m68k_do_rts();
12020 }return 16;
12021 }
CPUFUNC(op_4e76_4)12022 unsigned long CPUFUNC(op_4e76_4)(uint32_t opcode) /* TRAPV */
12023 {
12024 	OpcodeFamily = 50; CurrentInstrCycles = 4;
12025 {m68k_incpc(2);
12026 	if (GET_VFLG) { Exception(7,m68k_getpc(),M68000_EXC_SRC_CPU); goto endlabel799; }
12027 }endlabel799: ;
12028 return 4;
12029 }
CPUFUNC(op_4e77_4)12030 unsigned long CPUFUNC(op_4e77_4)(uint32_t opcode) /* RTR */
12031 {
12032 	OpcodeFamily = 51; CurrentInstrCycles = 20;
12033 {	MakeSR();
12034 {	uint32_t sra = m68k_areg(regs, 7);
12035 {	int16_t sr = m68k_read_memory_16(sra);
12036 	m68k_areg(regs, 7) += 2;
12037 {	uint32_t pca = m68k_areg(regs, 7);
12038 {	int32_t pc = m68k_read_memory_32(pca);
12039 	m68k_areg(regs, 7) += 4;
12040 	regs.sr &= 0xFF00; sr &= 0xFF;
12041 	regs.sr |= sr; m68k_setpc(pc);
12042 	MakeFromSR();
12043 }}}}}return 20;
12044 }
CPUFUNC(op_4e90_4)12045 unsigned long CPUFUNC(op_4e90_4)(uint32_t opcode) /* JSR */
12046 {
12047 	uint32_t srcreg = (opcode & 7);
12048 	OpcodeFamily = 52; CurrentInstrCycles = 16;
12049 {{	uint32_t srca = m68k_areg(regs, srcreg);
12050 	uint32_t oldpc = m68k_getpc () + 2;
12051 	m68k_do_jsr(m68k_getpc() + 2, srca);
12052 }}return 16;
12053 }
CPUFUNC(op_4ea8_4)12054 unsigned long CPUFUNC(op_4ea8_4)(uint32_t opcode) /* JSR */
12055 {
12056 	uint32_t srcreg = (opcode & 7);
12057 	OpcodeFamily = 52; CurrentInstrCycles = 18;
12058 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
12059 	uint32_t oldpc = m68k_getpc () + 4;
12060 	m68k_do_jsr(m68k_getpc() + 4, srca);
12061 }}return 18;
12062 }
CPUFUNC(op_4eb0_4)12063 unsigned long CPUFUNC(op_4eb0_4)(uint32_t opcode) /* JSR */
12064 {
12065 	uint32_t srcreg = (opcode & 7);
12066 	OpcodeFamily = 52; CurrentInstrCycles = 22;
12067 {{	uint32_t oldpc; uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
12068 	BusCyclePenalty += 2;
12069 	oldpc = m68k_getpc () + 4;
12070 	m68k_do_jsr(m68k_getpc() + 4, srca);
12071 }}return 22;
12072 }
CPUFUNC(op_4eb8_4)12073 unsigned long CPUFUNC(op_4eb8_4)(uint32_t opcode) /* JSR */
12074 {
12075 	OpcodeFamily = 52; CurrentInstrCycles = 18;
12076 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
12077 	uint32_t oldpc = m68k_getpc () + 4;
12078 	m68k_do_jsr(m68k_getpc() + 4, srca);
12079 }}return 18;
12080 }
CPUFUNC(op_4eb9_4)12081 unsigned long CPUFUNC(op_4eb9_4)(uint32_t opcode) /* JSR */
12082 {
12083 	OpcodeFamily = 52; CurrentInstrCycles = 20;
12084 {{	uint32_t srca = get_ilong(2);
12085 	uint32_t oldpc = m68k_getpc () + 6;
12086 	m68k_do_jsr(m68k_getpc() + 6, srca);
12087 }}return 20;
12088 }
CPUFUNC(op_4eba_4)12089 unsigned long CPUFUNC(op_4eba_4)(uint32_t opcode) /* JSR */
12090 {
12091 	OpcodeFamily = 52; CurrentInstrCycles = 18;
12092 {{	uint32_t oldpc; uint32_t srca = m68k_getpc () + 2;
12093 	srca += (int32_t)(int16_t)get_iword(2);
12094 	oldpc = m68k_getpc () + 4;
12095 	m68k_do_jsr(m68k_getpc() + 4, srca);
12096 }}return 18;
12097 }
CPUFUNC(op_4ebb_4)12098 unsigned long CPUFUNC(op_4ebb_4)(uint32_t opcode) /* JSR */
12099 {
12100 	OpcodeFamily = 52; CurrentInstrCycles = 22;
12101 {{	uint32_t tmppc = m68k_getpc() + 2;
12102 	uint32_t oldpc; uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
12103 	BusCyclePenalty += 2;
12104 	oldpc = m68k_getpc () + 4;
12105 	m68k_do_jsr(m68k_getpc() + 4, srca);
12106 }}return 22;
12107 }
CPUFUNC(op_4ed0_4)12108 unsigned long CPUFUNC(op_4ed0_4)(uint32_t opcode) /* JMP */
12109 {
12110 	uint32_t srcreg = (opcode & 7);
12111 	OpcodeFamily = 53; CurrentInstrCycles = 8;
12112 {{	uint32_t srca = m68k_areg(regs, srcreg);
12113 	m68k_setpc(srca);
12114 }}return 8;
12115 }
CPUFUNC(op_4ee8_4)12116 unsigned long CPUFUNC(op_4ee8_4)(uint32_t opcode) /* JMP */
12117 {
12118 	uint32_t srcreg = (opcode & 7);
12119 	OpcodeFamily = 53; CurrentInstrCycles = 10;
12120 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
12121 	m68k_setpc(srca);
12122 }}return 10;
12123 }
CPUFUNC(op_4ef0_4)12124 unsigned long CPUFUNC(op_4ef0_4)(uint32_t opcode) /* JMP */
12125 {
12126 	uint32_t srcreg = (opcode & 7);
12127 	OpcodeFamily = 53; CurrentInstrCycles = 14;
12128 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
12129 	BusCyclePenalty += 2;
12130 	m68k_setpc(srca);
12131 }}return 14;
12132 }
CPUFUNC(op_4ef8_4)12133 unsigned long CPUFUNC(op_4ef8_4)(uint32_t opcode) /* JMP */
12134 {
12135 	OpcodeFamily = 53; CurrentInstrCycles = 10;
12136 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
12137 	m68k_setpc(srca);
12138 }}return 10;
12139 }
CPUFUNC(op_4ef9_4)12140 unsigned long CPUFUNC(op_4ef9_4)(uint32_t opcode) /* JMP */
12141 {
12142 	OpcodeFamily = 53; CurrentInstrCycles = 12;
12143 {{	uint32_t srca = get_ilong(2);
12144 	m68k_setpc(srca);
12145 }}return 12;
12146 }
CPUFUNC(op_4efa_4)12147 unsigned long CPUFUNC(op_4efa_4)(uint32_t opcode) /* JMP */
12148 {
12149 	OpcodeFamily = 53; CurrentInstrCycles = 10;
12150 {{	uint32_t srca = m68k_getpc () + 2;
12151 	srca += (int32_t)(int16_t)get_iword(2);
12152 	m68k_setpc(srca);
12153 }}return 10;
12154 }
CPUFUNC(op_4efb_4)12155 unsigned long CPUFUNC(op_4efb_4)(uint32_t opcode) /* JMP */
12156 {
12157 	OpcodeFamily = 53; CurrentInstrCycles = 14;
12158 {{	uint32_t tmppc = m68k_getpc() + 2;
12159 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
12160 	BusCyclePenalty += 2;
12161 	m68k_setpc(srca);
12162 }}return 14;
12163 }
CPUFUNC(op_5000_4)12164 unsigned long CPUFUNC(op_5000_4)(uint32_t opcode) /* ADD */
12165 {
12166 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12167 	uint32_t dstreg = opcode & 7;
12168 	OpcodeFamily = 11; CurrentInstrCycles = 4;
12169 {{	uint32_t src = srcreg;
12170 {	int8_t dst = m68k_dreg(regs, dstreg);
12171 {	refill_prefetch (m68k_getpc(), 2);
12172 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12173 {	int flgs = ((int8_t)(src)) < 0;
12174 	int flgo = ((int8_t)(dst)) < 0;
12175 	int flgn = ((int8_t)(newv)) < 0;
12176 	SET_ZFLG (((int8_t)(newv)) == 0);
12177 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12178 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12179 	COPY_CARRY;
12180 	SET_NFLG (flgn != 0);
12181 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
12182 }}}}}}m68k_incpc(2);
12183 return 4;
12184 }
CPUFUNC(op_5010_4)12185 unsigned long CPUFUNC(op_5010_4)(uint32_t opcode) /* ADD */
12186 {
12187 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12188 	uint32_t dstreg = opcode & 7;
12189 	OpcodeFamily = 11; CurrentInstrCycles = 12;
12190 {{	uint32_t src = srcreg;
12191 {	uint32_t dsta = m68k_areg(regs, dstreg);
12192 {	int8_t dst = m68k_read_memory_8(dsta);
12193 {	refill_prefetch (m68k_getpc(), 2);
12194 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12195 {	int flgs = ((int8_t)(src)) < 0;
12196 	int flgo = ((int8_t)(dst)) < 0;
12197 	int flgn = ((int8_t)(newv)) < 0;
12198 	SET_ZFLG (((int8_t)(newv)) == 0);
12199 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12200 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12201 	COPY_CARRY;
12202 	SET_NFLG (flgn != 0);
12203 	m68k_write_memory_8(dsta,newv);
12204 }}}}}}}m68k_incpc(2);
12205 return 12;
12206 }
CPUFUNC(op_5018_4)12207 unsigned long CPUFUNC(op_5018_4)(uint32_t opcode) /* ADD */
12208 {
12209 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12210 	uint32_t dstreg = opcode & 7;
12211 	OpcodeFamily = 11; CurrentInstrCycles = 12;
12212 {{	uint32_t src = srcreg;
12213 {	uint32_t dsta = m68k_areg(regs, dstreg);
12214 {	int8_t dst = m68k_read_memory_8(dsta);
12215 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
12216 {	refill_prefetch (m68k_getpc(), 2);
12217 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12218 {	int flgs = ((int8_t)(src)) < 0;
12219 	int flgo = ((int8_t)(dst)) < 0;
12220 	int flgn = ((int8_t)(newv)) < 0;
12221 	SET_ZFLG (((int8_t)(newv)) == 0);
12222 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12223 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12224 	COPY_CARRY;
12225 	SET_NFLG (flgn != 0);
12226 	m68k_write_memory_8(dsta,newv);
12227 }}}}}}}m68k_incpc(2);
12228 return 12;
12229 }
12230 #endif
12231 
12232 #ifdef PART_5
CPUFUNC(op_5020_4)12233 unsigned long CPUFUNC(op_5020_4)(uint32_t opcode) /* ADD */
12234 {
12235 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12236 	uint32_t dstreg = opcode & 7;
12237 	OpcodeFamily = 11; CurrentInstrCycles = 14;
12238 {{	uint32_t src = srcreg;
12239 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
12240 {	int8_t dst = m68k_read_memory_8(dsta);
12241 	m68k_areg (regs, dstreg) = dsta;
12242 {	refill_prefetch (m68k_getpc(), 2);
12243 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12244 {	int flgs = ((int8_t)(src)) < 0;
12245 	int flgo = ((int8_t)(dst)) < 0;
12246 	int flgn = ((int8_t)(newv)) < 0;
12247 	SET_ZFLG (((int8_t)(newv)) == 0);
12248 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12249 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12250 	COPY_CARRY;
12251 	SET_NFLG (flgn != 0);
12252 	m68k_write_memory_8(dsta,newv);
12253 }}}}}}}m68k_incpc(2);
12254 return 14;
12255 }
CPUFUNC(op_5028_4)12256 unsigned long CPUFUNC(op_5028_4)(uint32_t opcode) /* ADD */
12257 {
12258 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12259 	uint32_t dstreg = opcode & 7;
12260 	OpcodeFamily = 11; CurrentInstrCycles = 16;
12261 {{	uint32_t src = srcreg;
12262 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
12263 {	int8_t dst = m68k_read_memory_8(dsta);
12264 {	refill_prefetch (m68k_getpc(), 2);
12265 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12266 {	int flgs = ((int8_t)(src)) < 0;
12267 	int flgo = ((int8_t)(dst)) < 0;
12268 	int flgn = ((int8_t)(newv)) < 0;
12269 	SET_ZFLG (((int8_t)(newv)) == 0);
12270 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12271 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12272 	COPY_CARRY;
12273 	SET_NFLG (flgn != 0);
12274 	m68k_write_memory_8(dsta,newv);
12275 }}}}}}}m68k_incpc(4);
12276 return 16;
12277 }
CPUFUNC(op_5030_4)12278 unsigned long CPUFUNC(op_5030_4)(uint32_t opcode) /* ADD */
12279 {
12280 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12281 	uint32_t dstreg = opcode & 7;
12282 	OpcodeFamily = 11; CurrentInstrCycles = 18;
12283 {{	uint32_t src = srcreg;
12284 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
12285 	BusCyclePenalty += 2;
12286 {	int8_t dst = m68k_read_memory_8(dsta);
12287 {	refill_prefetch (m68k_getpc(), 2);
12288 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12289 {	int flgs = ((int8_t)(src)) < 0;
12290 	int flgo = ((int8_t)(dst)) < 0;
12291 	int flgn = ((int8_t)(newv)) < 0;
12292 	SET_ZFLG (((int8_t)(newv)) == 0);
12293 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12294 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12295 	COPY_CARRY;
12296 	SET_NFLG (flgn != 0);
12297 	m68k_write_memory_8(dsta,newv);
12298 }}}}}}}m68k_incpc(4);
12299 return 18;
12300 }
CPUFUNC(op_5038_4)12301 unsigned long CPUFUNC(op_5038_4)(uint32_t opcode) /* ADD */
12302 {
12303 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12304 	OpcodeFamily = 11; CurrentInstrCycles = 16;
12305 {{	uint32_t src = srcreg;
12306 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
12307 {	int8_t dst = m68k_read_memory_8(dsta);
12308 {	refill_prefetch (m68k_getpc(), 2);
12309 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12310 {	int flgs = ((int8_t)(src)) < 0;
12311 	int flgo = ((int8_t)(dst)) < 0;
12312 	int flgn = ((int8_t)(newv)) < 0;
12313 	SET_ZFLG (((int8_t)(newv)) == 0);
12314 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12315 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12316 	COPY_CARRY;
12317 	SET_NFLG (flgn != 0);
12318 	m68k_write_memory_8(dsta,newv);
12319 }}}}}}}m68k_incpc(4);
12320 return 16;
12321 }
CPUFUNC(op_5039_4)12322 unsigned long CPUFUNC(op_5039_4)(uint32_t opcode) /* ADD */
12323 {
12324 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12325 	OpcodeFamily = 11; CurrentInstrCycles = 20;
12326 {{	uint32_t src = srcreg;
12327 {	uint32_t dsta = get_ilong(2);
12328 {	int8_t dst = m68k_read_memory_8(dsta);
12329 {	refill_prefetch (m68k_getpc(), 2);
12330 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
12331 {	int flgs = ((int8_t)(src)) < 0;
12332 	int flgo = ((int8_t)(dst)) < 0;
12333 	int flgn = ((int8_t)(newv)) < 0;
12334 	SET_ZFLG (((int8_t)(newv)) == 0);
12335 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12336 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
12337 	COPY_CARRY;
12338 	SET_NFLG (flgn != 0);
12339 	m68k_write_memory_8(dsta,newv);
12340 }}}}}}}m68k_incpc(6);
12341 return 20;
12342 }
CPUFUNC(op_5040_4)12343 unsigned long CPUFUNC(op_5040_4)(uint32_t opcode) /* ADD */
12344 {
12345 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12346 	uint32_t dstreg = opcode & 7;
12347 	OpcodeFamily = 11; CurrentInstrCycles = 4;
12348 {{	uint32_t src = srcreg;
12349 {	int16_t dst = m68k_dreg(regs, dstreg);
12350 {	refill_prefetch (m68k_getpc(), 2);
12351 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12352 {	int flgs = ((int16_t)(src)) < 0;
12353 	int flgo = ((int16_t)(dst)) < 0;
12354 	int flgn = ((int16_t)(newv)) < 0;
12355 	SET_ZFLG (((int16_t)(newv)) == 0);
12356 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12357 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12358 	COPY_CARRY;
12359 	SET_NFLG (flgn != 0);
12360 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
12361 }}}}}}m68k_incpc(2);
12362 return 4;
12363 }
CPUFUNC(op_5048_4)12364 unsigned long CPUFUNC(op_5048_4)(uint32_t opcode) /* ADDA */
12365 {
12366 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12367 	uint32_t dstreg = opcode & 7;
12368 	OpcodeFamily = 12; CurrentInstrCycles = 8;
12369 {{	uint32_t src = srcreg;
12370 {	int32_t dst = m68k_areg(regs, dstreg);
12371 {	uint32_t newv = dst + src;
12372 	m68k_areg(regs, dstreg) = (newv);
12373 }}}}m68k_incpc(2);
12374 return 8;
12375 }
CPUFUNC(op_5050_4)12376 unsigned long CPUFUNC(op_5050_4)(uint32_t opcode) /* ADD */
12377 {
12378 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12379 	uint32_t dstreg = opcode & 7;
12380 	OpcodeFamily = 11; CurrentInstrCycles = 12;
12381 {{	uint32_t src = srcreg;
12382 {	uint32_t dsta = m68k_areg(regs, dstreg);
12383 {	int16_t dst = m68k_read_memory_16(dsta);
12384 {	refill_prefetch (m68k_getpc(), 2);
12385 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12386 {	int flgs = ((int16_t)(src)) < 0;
12387 	int flgo = ((int16_t)(dst)) < 0;
12388 	int flgn = ((int16_t)(newv)) < 0;
12389 	SET_ZFLG (((int16_t)(newv)) == 0);
12390 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12391 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12392 	COPY_CARRY;
12393 	SET_NFLG (flgn != 0);
12394 	m68k_write_memory_16(dsta,newv);
12395 }}}}}}}m68k_incpc(2);
12396 return 12;
12397 }
CPUFUNC(op_5058_4)12398 unsigned long CPUFUNC(op_5058_4)(uint32_t opcode) /* ADD */
12399 {
12400 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12401 	uint32_t dstreg = opcode & 7;
12402 	OpcodeFamily = 11; CurrentInstrCycles = 12;
12403 {{	uint32_t src = srcreg;
12404 {	uint32_t dsta = m68k_areg(regs, dstreg);
12405 {	int16_t dst = m68k_read_memory_16(dsta);
12406 	m68k_areg(regs, dstreg) += 2;
12407 {	refill_prefetch (m68k_getpc(), 2);
12408 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12409 {	int flgs = ((int16_t)(src)) < 0;
12410 	int flgo = ((int16_t)(dst)) < 0;
12411 	int flgn = ((int16_t)(newv)) < 0;
12412 	SET_ZFLG (((int16_t)(newv)) == 0);
12413 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12414 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12415 	COPY_CARRY;
12416 	SET_NFLG (flgn != 0);
12417 	m68k_write_memory_16(dsta,newv);
12418 }}}}}}}m68k_incpc(2);
12419 return 12;
12420 }
CPUFUNC(op_5060_4)12421 unsigned long CPUFUNC(op_5060_4)(uint32_t opcode) /* ADD */
12422 {
12423 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12424 	uint32_t dstreg = opcode & 7;
12425 	OpcodeFamily = 11; CurrentInstrCycles = 14;
12426 {{	uint32_t src = srcreg;
12427 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
12428 {	int16_t dst = m68k_read_memory_16(dsta);
12429 	m68k_areg (regs, dstreg) = dsta;
12430 {	refill_prefetch (m68k_getpc(), 2);
12431 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12432 {	int flgs = ((int16_t)(src)) < 0;
12433 	int flgo = ((int16_t)(dst)) < 0;
12434 	int flgn = ((int16_t)(newv)) < 0;
12435 	SET_ZFLG (((int16_t)(newv)) == 0);
12436 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12437 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12438 	COPY_CARRY;
12439 	SET_NFLG (flgn != 0);
12440 	m68k_write_memory_16(dsta,newv);
12441 }}}}}}}m68k_incpc(2);
12442 return 14;
12443 }
CPUFUNC(op_5068_4)12444 unsigned long CPUFUNC(op_5068_4)(uint32_t opcode) /* ADD */
12445 {
12446 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12447 	uint32_t dstreg = opcode & 7;
12448 	OpcodeFamily = 11; CurrentInstrCycles = 16;
12449 {{	uint32_t src = srcreg;
12450 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
12451 {	int16_t dst = m68k_read_memory_16(dsta);
12452 {	refill_prefetch (m68k_getpc(), 2);
12453 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12454 {	int flgs = ((int16_t)(src)) < 0;
12455 	int flgo = ((int16_t)(dst)) < 0;
12456 	int flgn = ((int16_t)(newv)) < 0;
12457 	SET_ZFLG (((int16_t)(newv)) == 0);
12458 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12459 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12460 	COPY_CARRY;
12461 	SET_NFLG (flgn != 0);
12462 	m68k_write_memory_16(dsta,newv);
12463 }}}}}}}m68k_incpc(4);
12464 return 16;
12465 }
CPUFUNC(op_5070_4)12466 unsigned long CPUFUNC(op_5070_4)(uint32_t opcode) /* ADD */
12467 {
12468 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12469 	uint32_t dstreg = opcode & 7;
12470 	OpcodeFamily = 11; CurrentInstrCycles = 18;
12471 {{	uint32_t src = srcreg;
12472 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
12473 	BusCyclePenalty += 2;
12474 {	int16_t dst = m68k_read_memory_16(dsta);
12475 {	refill_prefetch (m68k_getpc(), 2);
12476 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12477 {	int flgs = ((int16_t)(src)) < 0;
12478 	int flgo = ((int16_t)(dst)) < 0;
12479 	int flgn = ((int16_t)(newv)) < 0;
12480 	SET_ZFLG (((int16_t)(newv)) == 0);
12481 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12482 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12483 	COPY_CARRY;
12484 	SET_NFLG (flgn != 0);
12485 	m68k_write_memory_16(dsta,newv);
12486 }}}}}}}m68k_incpc(4);
12487 return 18;
12488 }
CPUFUNC(op_5078_4)12489 unsigned long CPUFUNC(op_5078_4)(uint32_t opcode) /* ADD */
12490 {
12491 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12492 	OpcodeFamily = 11; CurrentInstrCycles = 16;
12493 {{	uint32_t src = srcreg;
12494 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
12495 {	int16_t dst = m68k_read_memory_16(dsta);
12496 {	refill_prefetch (m68k_getpc(), 2);
12497 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12498 {	int flgs = ((int16_t)(src)) < 0;
12499 	int flgo = ((int16_t)(dst)) < 0;
12500 	int flgn = ((int16_t)(newv)) < 0;
12501 	SET_ZFLG (((int16_t)(newv)) == 0);
12502 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12503 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12504 	COPY_CARRY;
12505 	SET_NFLG (flgn != 0);
12506 	m68k_write_memory_16(dsta,newv);
12507 }}}}}}}m68k_incpc(4);
12508 return 16;
12509 }
CPUFUNC(op_5079_4)12510 unsigned long CPUFUNC(op_5079_4)(uint32_t opcode) /* ADD */
12511 {
12512 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12513 	OpcodeFamily = 11; CurrentInstrCycles = 20;
12514 {{	uint32_t src = srcreg;
12515 {	uint32_t dsta = get_ilong(2);
12516 {	int16_t dst = m68k_read_memory_16(dsta);
12517 {	refill_prefetch (m68k_getpc(), 2);
12518 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
12519 {	int flgs = ((int16_t)(src)) < 0;
12520 	int flgo = ((int16_t)(dst)) < 0;
12521 	int flgn = ((int16_t)(newv)) < 0;
12522 	SET_ZFLG (((int16_t)(newv)) == 0);
12523 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12524 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
12525 	COPY_CARRY;
12526 	SET_NFLG (flgn != 0);
12527 	m68k_write_memory_16(dsta,newv);
12528 }}}}}}}m68k_incpc(6);
12529 return 20;
12530 }
CPUFUNC(op_5080_4)12531 unsigned long CPUFUNC(op_5080_4)(uint32_t opcode) /* ADD */
12532 {
12533 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12534 	uint32_t dstreg = opcode & 7;
12535 	OpcodeFamily = 11; CurrentInstrCycles = 8;
12536 {{	uint32_t src = srcreg;
12537 {	int32_t dst = m68k_dreg(regs, dstreg);
12538 {	refill_prefetch (m68k_getpc(), 2);
12539 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12540 {	int flgs = ((int32_t)(src)) < 0;
12541 	int flgo = ((int32_t)(dst)) < 0;
12542 	int flgn = ((int32_t)(newv)) < 0;
12543 	SET_ZFLG (((int32_t)(newv)) == 0);
12544 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12545 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12546 	COPY_CARRY;
12547 	SET_NFLG (flgn != 0);
12548 	m68k_dreg(regs, dstreg) = (newv);
12549 }}}}}}m68k_incpc(2);
12550 return 8;
12551 }
CPUFUNC(op_5088_4)12552 unsigned long CPUFUNC(op_5088_4)(uint32_t opcode) /* ADDA */
12553 {
12554 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12555 	uint32_t dstreg = opcode & 7;
12556 	OpcodeFamily = 12; CurrentInstrCycles = 8;
12557 {{	uint32_t src = srcreg;
12558 {	int32_t dst = m68k_areg(regs, dstreg);
12559 {	uint32_t newv = dst + src;
12560 	m68k_areg(regs, dstreg) = (newv);
12561 }}}}m68k_incpc(2);
12562 return 8;
12563 }
CPUFUNC(op_5090_4)12564 unsigned long CPUFUNC(op_5090_4)(uint32_t opcode) /* ADD */
12565 {
12566 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12567 	uint32_t dstreg = opcode & 7;
12568 	OpcodeFamily = 11; CurrentInstrCycles = 20;
12569 {{	uint32_t src = srcreg;
12570 {	uint32_t dsta = m68k_areg(regs, dstreg);
12571 {	int32_t dst = m68k_read_memory_32(dsta);
12572 {	refill_prefetch (m68k_getpc(), 2);
12573 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12574 {	int flgs = ((int32_t)(src)) < 0;
12575 	int flgo = ((int32_t)(dst)) < 0;
12576 	int flgn = ((int32_t)(newv)) < 0;
12577 	SET_ZFLG (((int32_t)(newv)) == 0);
12578 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12579 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12580 	COPY_CARRY;
12581 	SET_NFLG (flgn != 0);
12582 	m68k_write_memory_32(dsta,newv);
12583 }}}}}}}m68k_incpc(2);
12584 return 20;
12585 }
CPUFUNC(op_5098_4)12586 unsigned long CPUFUNC(op_5098_4)(uint32_t opcode) /* ADD */
12587 {
12588 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12589 	uint32_t dstreg = opcode & 7;
12590 	OpcodeFamily = 11; CurrentInstrCycles = 20;
12591 {{	uint32_t src = srcreg;
12592 {	uint32_t dsta = m68k_areg(regs, dstreg);
12593 {	int32_t dst = m68k_read_memory_32(dsta);
12594 	m68k_areg(regs, dstreg) += 4;
12595 {	refill_prefetch (m68k_getpc(), 2);
12596 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12597 {	int flgs = ((int32_t)(src)) < 0;
12598 	int flgo = ((int32_t)(dst)) < 0;
12599 	int flgn = ((int32_t)(newv)) < 0;
12600 	SET_ZFLG (((int32_t)(newv)) == 0);
12601 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12602 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12603 	COPY_CARRY;
12604 	SET_NFLG (flgn != 0);
12605 	m68k_write_memory_32(dsta,newv);
12606 }}}}}}}m68k_incpc(2);
12607 return 20;
12608 }
CPUFUNC(op_50a0_4)12609 unsigned long CPUFUNC(op_50a0_4)(uint32_t opcode) /* ADD */
12610 {
12611 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12612 	uint32_t dstreg = opcode & 7;
12613 	OpcodeFamily = 11; CurrentInstrCycles = 22;
12614 {{	uint32_t src = srcreg;
12615 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
12616 {	int32_t dst = m68k_read_memory_32(dsta);
12617 	m68k_areg (regs, dstreg) = dsta;
12618 {	refill_prefetch (m68k_getpc(), 2);
12619 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12620 {	int flgs = ((int32_t)(src)) < 0;
12621 	int flgo = ((int32_t)(dst)) < 0;
12622 	int flgn = ((int32_t)(newv)) < 0;
12623 	SET_ZFLG (((int32_t)(newv)) == 0);
12624 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12625 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12626 	COPY_CARRY;
12627 	SET_NFLG (flgn != 0);
12628 	m68k_write_memory_32(dsta,newv);
12629 }}}}}}}m68k_incpc(2);
12630 return 22;
12631 }
CPUFUNC(op_50a8_4)12632 unsigned long CPUFUNC(op_50a8_4)(uint32_t opcode) /* ADD */
12633 {
12634 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12635 	uint32_t dstreg = opcode & 7;
12636 	OpcodeFamily = 11; CurrentInstrCycles = 24;
12637 {{	uint32_t src = srcreg;
12638 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
12639 {	int32_t dst = m68k_read_memory_32(dsta);
12640 {	refill_prefetch (m68k_getpc(), 2);
12641 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12642 {	int flgs = ((int32_t)(src)) < 0;
12643 	int flgo = ((int32_t)(dst)) < 0;
12644 	int flgn = ((int32_t)(newv)) < 0;
12645 	SET_ZFLG (((int32_t)(newv)) == 0);
12646 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12647 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12648 	COPY_CARRY;
12649 	SET_NFLG (flgn != 0);
12650 	m68k_write_memory_32(dsta,newv);
12651 }}}}}}}m68k_incpc(4);
12652 return 24;
12653 }
CPUFUNC(op_50b0_4)12654 unsigned long CPUFUNC(op_50b0_4)(uint32_t opcode) /* ADD */
12655 {
12656 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12657 	uint32_t dstreg = opcode & 7;
12658 	OpcodeFamily = 11; CurrentInstrCycles = 26;
12659 {{	uint32_t src = srcreg;
12660 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
12661 	BusCyclePenalty += 2;
12662 {	int32_t dst = m68k_read_memory_32(dsta);
12663 {	refill_prefetch (m68k_getpc(), 2);
12664 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12665 {	int flgs = ((int32_t)(src)) < 0;
12666 	int flgo = ((int32_t)(dst)) < 0;
12667 	int flgn = ((int32_t)(newv)) < 0;
12668 	SET_ZFLG (((int32_t)(newv)) == 0);
12669 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12670 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12671 	COPY_CARRY;
12672 	SET_NFLG (flgn != 0);
12673 	m68k_write_memory_32(dsta,newv);
12674 }}}}}}}m68k_incpc(4);
12675 return 26;
12676 }
CPUFUNC(op_50b8_4)12677 unsigned long CPUFUNC(op_50b8_4)(uint32_t opcode) /* ADD */
12678 {
12679 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12680 	OpcodeFamily = 11; CurrentInstrCycles = 24;
12681 {{	uint32_t src = srcreg;
12682 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
12683 {	int32_t dst = m68k_read_memory_32(dsta);
12684 {	refill_prefetch (m68k_getpc(), 2);
12685 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12686 {	int flgs = ((int32_t)(src)) < 0;
12687 	int flgo = ((int32_t)(dst)) < 0;
12688 	int flgn = ((int32_t)(newv)) < 0;
12689 	SET_ZFLG (((int32_t)(newv)) == 0);
12690 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12691 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12692 	COPY_CARRY;
12693 	SET_NFLG (flgn != 0);
12694 	m68k_write_memory_32(dsta,newv);
12695 }}}}}}}m68k_incpc(4);
12696 return 24;
12697 }
CPUFUNC(op_50b9_4)12698 unsigned long CPUFUNC(op_50b9_4)(uint32_t opcode) /* ADD */
12699 {
12700 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12701 	OpcodeFamily = 11; CurrentInstrCycles = 28;
12702 {{	uint32_t src = srcreg;
12703 {	uint32_t dsta = get_ilong(2);
12704 {	int32_t dst = m68k_read_memory_32(dsta);
12705 {	refill_prefetch (m68k_getpc(), 2);
12706 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
12707 {	int flgs = ((int32_t)(src)) < 0;
12708 	int flgo = ((int32_t)(dst)) < 0;
12709 	int flgn = ((int32_t)(newv)) < 0;
12710 	SET_ZFLG (((int32_t)(newv)) == 0);
12711 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
12712 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
12713 	COPY_CARRY;
12714 	SET_NFLG (flgn != 0);
12715 	m68k_write_memory_32(dsta,newv);
12716 }}}}}}}m68k_incpc(6);
12717 return 28;
12718 }
CPUFUNC(op_50c0_4)12719 unsigned long CPUFUNC(op_50c0_4)(uint32_t opcode) /* Scc */
12720 {
12721 	uint32_t srcreg = (opcode & 7);
12722 	OpcodeFamily = 59; CurrentInstrCycles = 4;
12723 {{{	int val = cctrue(0) ? 0xff : 0;
12724 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
12725 	if (val) { m68k_incpc(2) ; return 4+2; }
12726 }}}m68k_incpc(2);
12727 return 4;
12728 }
CPUFUNC(op_50c8_4)12729 unsigned long CPUFUNC(op_50c8_4)(uint32_t opcode) /* DBcc */
12730 {
12731 	uint32_t srcreg = (opcode & 7);
12732 	OpcodeFamily = 58; CurrentInstrCycles = 12;
12733 {{	int16_t src = m68k_dreg(regs, srcreg);
12734 {	int16_t offs = get_iword(2);
12735 	if (!cctrue(0)) {
12736 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
12737 		if (src) {
12738 			m68k_incpc((int32_t)offs + 2);
12739 			return 10;
12740 		} else {
12741 			m68k_incpc(4);
12742 			return 14;
12743 		}
12744 	}
12745 }}}m68k_incpc(4);
12746 #if 0
12747 endlabel842: ;
12748 #endif
12749 return 12;
12750 }
CPUFUNC(op_50d0_4)12751 unsigned long CPUFUNC(op_50d0_4)(uint32_t opcode) /* Scc */
12752 {
12753 	uint32_t srcreg = (opcode & 7);
12754 	OpcodeFamily = 59; CurrentInstrCycles = 12;
12755 {{	uint32_t srca = m68k_areg(regs, srcreg);
12756 {	int val = cctrue(0) ? 0xff : 0;
12757 	m68k_write_memory_8(srca,val);
12758 }}}m68k_incpc(2);
12759 return 12;
12760 }
CPUFUNC(op_50d8_4)12761 unsigned long CPUFUNC(op_50d8_4)(uint32_t opcode) /* Scc */
12762 {
12763 	uint32_t srcreg = (opcode & 7);
12764 	OpcodeFamily = 59; CurrentInstrCycles = 12;
12765 {{	uint32_t srca = m68k_areg(regs, srcreg);
12766 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
12767 {	int val = cctrue(0) ? 0xff : 0;
12768 	m68k_write_memory_8(srca,val);
12769 }}}m68k_incpc(2);
12770 return 12;
12771 }
CPUFUNC(op_50e0_4)12772 unsigned long CPUFUNC(op_50e0_4)(uint32_t opcode) /* Scc */
12773 {
12774 	uint32_t srcreg = (opcode & 7);
12775 	OpcodeFamily = 59; CurrentInstrCycles = 14;
12776 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
12777 	m68k_areg (regs, srcreg) = srca;
12778 {	int val = cctrue(0) ? 0xff : 0;
12779 	m68k_write_memory_8(srca,val);
12780 }}}m68k_incpc(2);
12781 return 14;
12782 }
CPUFUNC(op_50e8_4)12783 unsigned long CPUFUNC(op_50e8_4)(uint32_t opcode) /* Scc */
12784 {
12785 	uint32_t srcreg = (opcode & 7);
12786 	OpcodeFamily = 59; CurrentInstrCycles = 16;
12787 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
12788 {	int val = cctrue(0) ? 0xff : 0;
12789 	m68k_write_memory_8(srca,val);
12790 }}}m68k_incpc(4);
12791 return 16;
12792 }
CPUFUNC(op_50f0_4)12793 unsigned long CPUFUNC(op_50f0_4)(uint32_t opcode) /* Scc */
12794 {
12795 	uint32_t srcreg = (opcode & 7);
12796 	OpcodeFamily = 59; CurrentInstrCycles = 18;
12797 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
12798 	BusCyclePenalty += 2;
12799 {	int val = cctrue(0) ? 0xff : 0;
12800 	m68k_write_memory_8(srca,val);
12801 }}}m68k_incpc(4);
12802 return 18;
12803 }
CPUFUNC(op_50f8_4)12804 unsigned long CPUFUNC(op_50f8_4)(uint32_t opcode) /* Scc */
12805 {
12806 	OpcodeFamily = 59; CurrentInstrCycles = 16;
12807 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
12808 {	int val = cctrue(0) ? 0xff : 0;
12809 	m68k_write_memory_8(srca,val);
12810 }}}m68k_incpc(4);
12811 return 16;
12812 }
CPUFUNC(op_50f9_4)12813 unsigned long CPUFUNC(op_50f9_4)(uint32_t opcode) /* Scc */
12814 {
12815 	OpcodeFamily = 59; CurrentInstrCycles = 20;
12816 {{	uint32_t srca = get_ilong(2);
12817 {	int val = cctrue(0) ? 0xff : 0;
12818 	m68k_write_memory_8(srca,val);
12819 }}}m68k_incpc(6);
12820 return 20;
12821 }
CPUFUNC(op_5100_4)12822 unsigned long CPUFUNC(op_5100_4)(uint32_t opcode) /* SUB */
12823 {
12824 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12825 	uint32_t dstreg = opcode & 7;
12826 	OpcodeFamily = 7; CurrentInstrCycles = 4;
12827 {{	uint32_t src = srcreg;
12828 {	int8_t dst = m68k_dreg(regs, dstreg);
12829 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12830 {	int flgs = ((int8_t)(src)) < 0;
12831 	int flgo = ((int8_t)(dst)) < 0;
12832 	int flgn = ((int8_t)(newv)) < 0;
12833 	SET_ZFLG (((int8_t)(newv)) == 0);
12834 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12835 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12836 	COPY_CARRY;
12837 	SET_NFLG (flgn != 0);
12838 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
12839 }}}}}}m68k_incpc(2);
12840 return 4;
12841 }
CPUFUNC(op_5110_4)12842 unsigned long CPUFUNC(op_5110_4)(uint32_t opcode) /* SUB */
12843 {
12844 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12845 	uint32_t dstreg = opcode & 7;
12846 	OpcodeFamily = 7; CurrentInstrCycles = 12;
12847 {{	uint32_t src = srcreg;
12848 {	uint32_t dsta = m68k_areg(regs, dstreg);
12849 {	int8_t dst = m68k_read_memory_8(dsta);
12850 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12851 {	int flgs = ((int8_t)(src)) < 0;
12852 	int flgo = ((int8_t)(dst)) < 0;
12853 	int flgn = ((int8_t)(newv)) < 0;
12854 	SET_ZFLG (((int8_t)(newv)) == 0);
12855 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12856 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12857 	COPY_CARRY;
12858 	SET_NFLG (flgn != 0);
12859 	m68k_write_memory_8(dsta,newv);
12860 }}}}}}}m68k_incpc(2);
12861 return 12;
12862 }
CPUFUNC(op_5118_4)12863 unsigned long CPUFUNC(op_5118_4)(uint32_t opcode) /* SUB */
12864 {
12865 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12866 	uint32_t dstreg = opcode & 7;
12867 	OpcodeFamily = 7; CurrentInstrCycles = 12;
12868 {{	uint32_t src = srcreg;
12869 {	uint32_t dsta = m68k_areg(regs, dstreg);
12870 {	int8_t dst = m68k_read_memory_8(dsta);
12871 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
12872 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12873 {	int flgs = ((int8_t)(src)) < 0;
12874 	int flgo = ((int8_t)(dst)) < 0;
12875 	int flgn = ((int8_t)(newv)) < 0;
12876 	SET_ZFLG (((int8_t)(newv)) == 0);
12877 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12878 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12879 	COPY_CARRY;
12880 	SET_NFLG (flgn != 0);
12881 	m68k_write_memory_8(dsta,newv);
12882 }}}}}}}m68k_incpc(2);
12883 return 12;
12884 }
CPUFUNC(op_5120_4)12885 unsigned long CPUFUNC(op_5120_4)(uint32_t opcode) /* SUB */
12886 {
12887 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12888 	uint32_t dstreg = opcode & 7;
12889 	OpcodeFamily = 7; CurrentInstrCycles = 14;
12890 {{	uint32_t src = srcreg;
12891 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
12892 {	int8_t dst = m68k_read_memory_8(dsta);
12893 	m68k_areg (regs, dstreg) = dsta;
12894 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12895 {	int flgs = ((int8_t)(src)) < 0;
12896 	int flgo = ((int8_t)(dst)) < 0;
12897 	int flgn = ((int8_t)(newv)) < 0;
12898 	SET_ZFLG (((int8_t)(newv)) == 0);
12899 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12900 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12901 	COPY_CARRY;
12902 	SET_NFLG (flgn != 0);
12903 	m68k_write_memory_8(dsta,newv);
12904 }}}}}}}m68k_incpc(2);
12905 return 14;
12906 }
CPUFUNC(op_5128_4)12907 unsigned long CPUFUNC(op_5128_4)(uint32_t opcode) /* SUB */
12908 {
12909 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12910 	uint32_t dstreg = opcode & 7;
12911 	OpcodeFamily = 7; CurrentInstrCycles = 16;
12912 {{	uint32_t src = srcreg;
12913 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
12914 {	int8_t dst = m68k_read_memory_8(dsta);
12915 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12916 {	int flgs = ((int8_t)(src)) < 0;
12917 	int flgo = ((int8_t)(dst)) < 0;
12918 	int flgn = ((int8_t)(newv)) < 0;
12919 	SET_ZFLG (((int8_t)(newv)) == 0);
12920 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12921 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12922 	COPY_CARRY;
12923 	SET_NFLG (flgn != 0);
12924 	m68k_write_memory_8(dsta,newv);
12925 }}}}}}}m68k_incpc(4);
12926 return 16;
12927 }
CPUFUNC(op_5130_4)12928 unsigned long CPUFUNC(op_5130_4)(uint32_t opcode) /* SUB */
12929 {
12930 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12931 	uint32_t dstreg = opcode & 7;
12932 	OpcodeFamily = 7; CurrentInstrCycles = 18;
12933 {{	uint32_t src = srcreg;
12934 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
12935 	BusCyclePenalty += 2;
12936 {	int8_t dst = m68k_read_memory_8(dsta);
12937 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12938 {	int flgs = ((int8_t)(src)) < 0;
12939 	int flgo = ((int8_t)(dst)) < 0;
12940 	int flgn = ((int8_t)(newv)) < 0;
12941 	SET_ZFLG (((int8_t)(newv)) == 0);
12942 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12943 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12944 	COPY_CARRY;
12945 	SET_NFLG (flgn != 0);
12946 	m68k_write_memory_8(dsta,newv);
12947 }}}}}}}m68k_incpc(4);
12948 return 18;
12949 }
CPUFUNC(op_5138_4)12950 unsigned long CPUFUNC(op_5138_4)(uint32_t opcode) /* SUB */
12951 {
12952 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12953 	OpcodeFamily = 7; CurrentInstrCycles = 16;
12954 {{	uint32_t src = srcreg;
12955 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
12956 {	int8_t dst = m68k_read_memory_8(dsta);
12957 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12958 {	int flgs = ((int8_t)(src)) < 0;
12959 	int flgo = ((int8_t)(dst)) < 0;
12960 	int flgn = ((int8_t)(newv)) < 0;
12961 	SET_ZFLG (((int8_t)(newv)) == 0);
12962 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12963 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12964 	COPY_CARRY;
12965 	SET_NFLG (flgn != 0);
12966 	m68k_write_memory_8(dsta,newv);
12967 }}}}}}}m68k_incpc(4);
12968 return 16;
12969 }
CPUFUNC(op_5139_4)12970 unsigned long CPUFUNC(op_5139_4)(uint32_t opcode) /* SUB */
12971 {
12972 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12973 	OpcodeFamily = 7; CurrentInstrCycles = 20;
12974 {{	uint32_t src = srcreg;
12975 {	uint32_t dsta = get_ilong(2);
12976 {	int8_t dst = m68k_read_memory_8(dsta);
12977 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
12978 {	int flgs = ((int8_t)(src)) < 0;
12979 	int flgo = ((int8_t)(dst)) < 0;
12980 	int flgn = ((int8_t)(newv)) < 0;
12981 	SET_ZFLG (((int8_t)(newv)) == 0);
12982 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
12983 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
12984 	COPY_CARRY;
12985 	SET_NFLG (flgn != 0);
12986 	m68k_write_memory_8(dsta,newv);
12987 }}}}}}}m68k_incpc(6);
12988 return 20;
12989 }
CPUFUNC(op_5140_4)12990 unsigned long CPUFUNC(op_5140_4)(uint32_t opcode) /* SUB */
12991 {
12992 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
12993 	uint32_t dstreg = opcode & 7;
12994 	OpcodeFamily = 7; CurrentInstrCycles = 4;
12995 {{	uint32_t src = srcreg;
12996 {	int16_t dst = m68k_dreg(regs, dstreg);
12997 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
12998 {	int flgs = ((int16_t)(src)) < 0;
12999 	int flgo = ((int16_t)(dst)) < 0;
13000 	int flgn = ((int16_t)(newv)) < 0;
13001 	SET_ZFLG (((int16_t)(newv)) == 0);
13002 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13003 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13004 	COPY_CARRY;
13005 	SET_NFLG (flgn != 0);
13006 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
13007 }}}}}}m68k_incpc(2);
13008 return 4;
13009 }
CPUFUNC(op_5148_4)13010 unsigned long CPUFUNC(op_5148_4)(uint32_t opcode) /* SUBA */
13011 {
13012 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13013 	uint32_t dstreg = opcode & 7;
13014 	OpcodeFamily = 8; CurrentInstrCycles = 8;
13015 {{	uint32_t src = srcreg;
13016 {	int32_t dst = m68k_areg(regs, dstreg);
13017 {	uint32_t newv = dst - src;
13018 	m68k_areg(regs, dstreg) = (newv);
13019 }}}}m68k_incpc(2);
13020 return 8;
13021 }
CPUFUNC(op_5150_4)13022 unsigned long CPUFUNC(op_5150_4)(uint32_t opcode) /* SUB */
13023 {
13024 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13025 	uint32_t dstreg = opcode & 7;
13026 	OpcodeFamily = 7; CurrentInstrCycles = 12;
13027 {{	uint32_t src = srcreg;
13028 {	uint32_t dsta = m68k_areg(regs, dstreg);
13029 {	int16_t dst = m68k_read_memory_16(dsta);
13030 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
13031 {	int flgs = ((int16_t)(src)) < 0;
13032 	int flgo = ((int16_t)(dst)) < 0;
13033 	int flgn = ((int16_t)(newv)) < 0;
13034 	SET_ZFLG (((int16_t)(newv)) == 0);
13035 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13036 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13037 	COPY_CARRY;
13038 	SET_NFLG (flgn != 0);
13039 	m68k_write_memory_16(dsta,newv);
13040 }}}}}}}m68k_incpc(2);
13041 return 12;
13042 }
CPUFUNC(op_5158_4)13043 unsigned long CPUFUNC(op_5158_4)(uint32_t opcode) /* SUB */
13044 {
13045 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13046 	uint32_t dstreg = opcode & 7;
13047 	OpcodeFamily = 7; CurrentInstrCycles = 12;
13048 {{	uint32_t src = srcreg;
13049 {	uint32_t dsta = m68k_areg(regs, dstreg);
13050 {	int16_t dst = m68k_read_memory_16(dsta);
13051 	m68k_areg(regs, dstreg) += 2;
13052 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
13053 {	int flgs = ((int16_t)(src)) < 0;
13054 	int flgo = ((int16_t)(dst)) < 0;
13055 	int flgn = ((int16_t)(newv)) < 0;
13056 	SET_ZFLG (((int16_t)(newv)) == 0);
13057 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13058 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13059 	COPY_CARRY;
13060 	SET_NFLG (flgn != 0);
13061 	m68k_write_memory_16(dsta,newv);
13062 }}}}}}}m68k_incpc(2);
13063 return 12;
13064 }
CPUFUNC(op_5160_4)13065 unsigned long CPUFUNC(op_5160_4)(uint32_t opcode) /* SUB */
13066 {
13067 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13068 	uint32_t dstreg = opcode & 7;
13069 	OpcodeFamily = 7; CurrentInstrCycles = 14;
13070 {{	uint32_t src = srcreg;
13071 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
13072 {	int16_t dst = m68k_read_memory_16(dsta);
13073 	m68k_areg (regs, dstreg) = dsta;
13074 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
13075 {	int flgs = ((int16_t)(src)) < 0;
13076 	int flgo = ((int16_t)(dst)) < 0;
13077 	int flgn = ((int16_t)(newv)) < 0;
13078 	SET_ZFLG (((int16_t)(newv)) == 0);
13079 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13080 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13081 	COPY_CARRY;
13082 	SET_NFLG (flgn != 0);
13083 	m68k_write_memory_16(dsta,newv);
13084 }}}}}}}m68k_incpc(2);
13085 return 14;
13086 }
CPUFUNC(op_5168_4)13087 unsigned long CPUFUNC(op_5168_4)(uint32_t opcode) /* SUB */
13088 {
13089 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13090 	uint32_t dstreg = opcode & 7;
13091 	OpcodeFamily = 7; CurrentInstrCycles = 16;
13092 {{	uint32_t src = srcreg;
13093 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
13094 {	int16_t dst = m68k_read_memory_16(dsta);
13095 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
13096 {	int flgs = ((int16_t)(src)) < 0;
13097 	int flgo = ((int16_t)(dst)) < 0;
13098 	int flgn = ((int16_t)(newv)) < 0;
13099 	SET_ZFLG (((int16_t)(newv)) == 0);
13100 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13101 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13102 	COPY_CARRY;
13103 	SET_NFLG (flgn != 0);
13104 	m68k_write_memory_16(dsta,newv);
13105 }}}}}}}m68k_incpc(4);
13106 return 16;
13107 }
CPUFUNC(op_5170_4)13108 unsigned long CPUFUNC(op_5170_4)(uint32_t opcode) /* SUB */
13109 {
13110 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13111 	uint32_t dstreg = opcode & 7;
13112 	OpcodeFamily = 7; CurrentInstrCycles = 18;
13113 {{	uint32_t src = srcreg;
13114 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
13115 	BusCyclePenalty += 2;
13116 {	int16_t dst = m68k_read_memory_16(dsta);
13117 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
13118 {	int flgs = ((int16_t)(src)) < 0;
13119 	int flgo = ((int16_t)(dst)) < 0;
13120 	int flgn = ((int16_t)(newv)) < 0;
13121 	SET_ZFLG (((int16_t)(newv)) == 0);
13122 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13123 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13124 	COPY_CARRY;
13125 	SET_NFLG (flgn != 0);
13126 	m68k_write_memory_16(dsta,newv);
13127 }}}}}}}m68k_incpc(4);
13128 return 18;
13129 }
CPUFUNC(op_5178_4)13130 unsigned long CPUFUNC(op_5178_4)(uint32_t opcode) /* SUB */
13131 {
13132 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13133 	OpcodeFamily = 7; CurrentInstrCycles = 16;
13134 {{	uint32_t src = srcreg;
13135 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
13136 {	int16_t dst = m68k_read_memory_16(dsta);
13137 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
13138 {	int flgs = ((int16_t)(src)) < 0;
13139 	int flgo = ((int16_t)(dst)) < 0;
13140 	int flgn = ((int16_t)(newv)) < 0;
13141 	SET_ZFLG (((int16_t)(newv)) == 0);
13142 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13143 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13144 	COPY_CARRY;
13145 	SET_NFLG (flgn != 0);
13146 	m68k_write_memory_16(dsta,newv);
13147 }}}}}}}m68k_incpc(4);
13148 return 16;
13149 }
CPUFUNC(op_5179_4)13150 unsigned long CPUFUNC(op_5179_4)(uint32_t opcode) /* SUB */
13151 {
13152 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13153 	OpcodeFamily = 7; CurrentInstrCycles = 20;
13154 {{	uint32_t src = srcreg;
13155 {	uint32_t dsta = get_ilong(2);
13156 {	int16_t dst = m68k_read_memory_16(dsta);
13157 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
13158 {	int flgs = ((int16_t)(src)) < 0;
13159 	int flgo = ((int16_t)(dst)) < 0;
13160 	int flgn = ((int16_t)(newv)) < 0;
13161 	SET_ZFLG (((int16_t)(newv)) == 0);
13162 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13163 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
13164 	COPY_CARRY;
13165 	SET_NFLG (flgn != 0);
13166 	m68k_write_memory_16(dsta,newv);
13167 }}}}}}}m68k_incpc(6);
13168 return 20;
13169 }
CPUFUNC(op_5180_4)13170 unsigned long CPUFUNC(op_5180_4)(uint32_t opcode) /* SUB */
13171 {
13172 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13173 	uint32_t dstreg = opcode & 7;
13174 	OpcodeFamily = 7; CurrentInstrCycles = 8;
13175 {{	uint32_t src = srcreg;
13176 {	int32_t dst = m68k_dreg(regs, dstreg);
13177 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13178 {	int flgs = ((int32_t)(src)) < 0;
13179 	int flgo = ((int32_t)(dst)) < 0;
13180 	int flgn = ((int32_t)(newv)) < 0;
13181 	SET_ZFLG (((int32_t)(newv)) == 0);
13182 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13183 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13184 	COPY_CARRY;
13185 	SET_NFLG (flgn != 0);
13186 	m68k_dreg(regs, dstreg) = (newv);
13187 }}}}}}m68k_incpc(2);
13188 return 8;
13189 }
CPUFUNC(op_5188_4)13190 unsigned long CPUFUNC(op_5188_4)(uint32_t opcode) /* SUBA */
13191 {
13192 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13193 	uint32_t dstreg = opcode & 7;
13194 	OpcodeFamily = 8; CurrentInstrCycles = 8;
13195 {{	uint32_t src = srcreg;
13196 {	int32_t dst = m68k_areg(regs, dstreg);
13197 {	uint32_t newv = dst - src;
13198 	m68k_areg(regs, dstreg) = (newv);
13199 }}}}m68k_incpc(2);
13200 return 8;
13201 }
CPUFUNC(op_5190_4)13202 unsigned long CPUFUNC(op_5190_4)(uint32_t opcode) /* SUB */
13203 {
13204 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13205 	uint32_t dstreg = opcode & 7;
13206 	OpcodeFamily = 7; CurrentInstrCycles = 20;
13207 {{	uint32_t src = srcreg;
13208 {	uint32_t dsta = m68k_areg(regs, dstreg);
13209 {	int32_t dst = m68k_read_memory_32(dsta);
13210 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13211 {	int flgs = ((int32_t)(src)) < 0;
13212 	int flgo = ((int32_t)(dst)) < 0;
13213 	int flgn = ((int32_t)(newv)) < 0;
13214 	SET_ZFLG (((int32_t)(newv)) == 0);
13215 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13216 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13217 	COPY_CARRY;
13218 	SET_NFLG (flgn != 0);
13219 	m68k_write_memory_32(dsta,newv);
13220 }}}}}}}m68k_incpc(2);
13221 return 20;
13222 }
CPUFUNC(op_5198_4)13223 unsigned long CPUFUNC(op_5198_4)(uint32_t opcode) /* SUB */
13224 {
13225 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13226 	uint32_t dstreg = opcode & 7;
13227 	OpcodeFamily = 7; CurrentInstrCycles = 20;
13228 {{	uint32_t src = srcreg;
13229 {	uint32_t dsta = m68k_areg(regs, dstreg);
13230 {	int32_t dst = m68k_read_memory_32(dsta);
13231 	m68k_areg(regs, dstreg) += 4;
13232 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13233 {	int flgs = ((int32_t)(src)) < 0;
13234 	int flgo = ((int32_t)(dst)) < 0;
13235 	int flgn = ((int32_t)(newv)) < 0;
13236 	SET_ZFLG (((int32_t)(newv)) == 0);
13237 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13238 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13239 	COPY_CARRY;
13240 	SET_NFLG (flgn != 0);
13241 	m68k_write_memory_32(dsta,newv);
13242 }}}}}}}m68k_incpc(2);
13243 return 20;
13244 }
CPUFUNC(op_51a0_4)13245 unsigned long CPUFUNC(op_51a0_4)(uint32_t opcode) /* SUB */
13246 {
13247 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13248 	uint32_t dstreg = opcode & 7;
13249 	OpcodeFamily = 7; CurrentInstrCycles = 22;
13250 {{	uint32_t src = srcreg;
13251 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
13252 {	int32_t dst = m68k_read_memory_32(dsta);
13253 	m68k_areg (regs, dstreg) = dsta;
13254 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13255 {	int flgs = ((int32_t)(src)) < 0;
13256 	int flgo = ((int32_t)(dst)) < 0;
13257 	int flgn = ((int32_t)(newv)) < 0;
13258 	SET_ZFLG (((int32_t)(newv)) == 0);
13259 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13260 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13261 	COPY_CARRY;
13262 	SET_NFLG (flgn != 0);
13263 	m68k_write_memory_32(dsta,newv);
13264 }}}}}}}m68k_incpc(2);
13265 return 22;
13266 }
CPUFUNC(op_51a8_4)13267 unsigned long CPUFUNC(op_51a8_4)(uint32_t opcode) /* SUB */
13268 {
13269 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13270 	uint32_t dstreg = opcode & 7;
13271 	OpcodeFamily = 7; CurrentInstrCycles = 24;
13272 {{	uint32_t src = srcreg;
13273 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
13274 {	int32_t dst = m68k_read_memory_32(dsta);
13275 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13276 {	int flgs = ((int32_t)(src)) < 0;
13277 	int flgo = ((int32_t)(dst)) < 0;
13278 	int flgn = ((int32_t)(newv)) < 0;
13279 	SET_ZFLG (((int32_t)(newv)) == 0);
13280 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13281 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13282 	COPY_CARRY;
13283 	SET_NFLG (flgn != 0);
13284 	m68k_write_memory_32(dsta,newv);
13285 }}}}}}}m68k_incpc(4);
13286 return 24;
13287 }
CPUFUNC(op_51b0_4)13288 unsigned long CPUFUNC(op_51b0_4)(uint32_t opcode) /* SUB */
13289 {
13290 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13291 	uint32_t dstreg = opcode & 7;
13292 	OpcodeFamily = 7; CurrentInstrCycles = 26;
13293 {{	uint32_t src = srcreg;
13294 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
13295 	BusCyclePenalty += 2;
13296 {	int32_t dst = m68k_read_memory_32(dsta);
13297 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13298 {	int flgs = ((int32_t)(src)) < 0;
13299 	int flgo = ((int32_t)(dst)) < 0;
13300 	int flgn = ((int32_t)(newv)) < 0;
13301 	SET_ZFLG (((int32_t)(newv)) == 0);
13302 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13303 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13304 	COPY_CARRY;
13305 	SET_NFLG (flgn != 0);
13306 	m68k_write_memory_32(dsta,newv);
13307 }}}}}}}m68k_incpc(4);
13308 return 26;
13309 }
CPUFUNC(op_51b8_4)13310 unsigned long CPUFUNC(op_51b8_4)(uint32_t opcode) /* SUB */
13311 {
13312 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13313 	OpcodeFamily = 7; CurrentInstrCycles = 24;
13314 {{	uint32_t src = srcreg;
13315 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
13316 {	int32_t dst = m68k_read_memory_32(dsta);
13317 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13318 {	int flgs = ((int32_t)(src)) < 0;
13319 	int flgo = ((int32_t)(dst)) < 0;
13320 	int flgn = ((int32_t)(newv)) < 0;
13321 	SET_ZFLG (((int32_t)(newv)) == 0);
13322 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13323 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13324 	COPY_CARRY;
13325 	SET_NFLG (flgn != 0);
13326 	m68k_write_memory_32(dsta,newv);
13327 }}}}}}}m68k_incpc(4);
13328 return 24;
13329 }
CPUFUNC(op_51b9_4)13330 unsigned long CPUFUNC(op_51b9_4)(uint32_t opcode) /* SUB */
13331 {
13332 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
13333 	OpcodeFamily = 7; CurrentInstrCycles = 28;
13334 {{	uint32_t src = srcreg;
13335 {	uint32_t dsta = get_ilong(2);
13336 {	int32_t dst = m68k_read_memory_32(dsta);
13337 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
13338 {	int flgs = ((int32_t)(src)) < 0;
13339 	int flgo = ((int32_t)(dst)) < 0;
13340 	int flgn = ((int32_t)(newv)) < 0;
13341 	SET_ZFLG (((int32_t)(newv)) == 0);
13342 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
13343 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
13344 	COPY_CARRY;
13345 	SET_NFLG (flgn != 0);
13346 	m68k_write_memory_32(dsta,newv);
13347 }}}}}}}m68k_incpc(6);
13348 return 28;
13349 }
CPUFUNC(op_51c0_4)13350 unsigned long CPUFUNC(op_51c0_4)(uint32_t opcode) /* Scc */
13351 {
13352 	uint32_t srcreg = (opcode & 7);
13353 	OpcodeFamily = 59; CurrentInstrCycles = 4;
13354 {{{	int val = cctrue(1) ? 0xff : 0;
13355 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
13356 	if (val) { m68k_incpc(2) ; return 4+2; }
13357 }}}m68k_incpc(2);
13358 return 4;
13359 }
CPUFUNC(op_51c8_4)13360 unsigned long CPUFUNC(op_51c8_4)(uint32_t opcode) /* DBcc */
13361 {
13362 	uint32_t srcreg = (opcode & 7);
13363 	OpcodeFamily = 58; CurrentInstrCycles = 12;
13364 {{	int16_t src = m68k_dreg(regs, srcreg);
13365 {	int16_t offs = get_iword(2);
13366 	if (!cctrue(1)) {
13367 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
13368 		if (src) {
13369 			m68k_incpc((int32_t)offs + 2);
13370 			return 10;
13371 		} else {
13372 			m68k_incpc(4);
13373 			return 14;
13374 		}
13375 	}
13376 }}}m68k_incpc(4);
13377 #if 0
13378 endlabel877: ;
13379 #endif
13380 return 12;
13381 }
CPUFUNC(op_51d0_4)13382 unsigned long CPUFUNC(op_51d0_4)(uint32_t opcode) /* Scc */
13383 {
13384 	uint32_t srcreg = (opcode & 7);
13385 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13386 {{	uint32_t srca = m68k_areg(regs, srcreg);
13387 {	int val = cctrue(1) ? 0xff : 0;
13388 	m68k_write_memory_8(srca,val);
13389 }}}m68k_incpc(2);
13390 return 12;
13391 }
CPUFUNC(op_51d8_4)13392 unsigned long CPUFUNC(op_51d8_4)(uint32_t opcode) /* Scc */
13393 {
13394 	uint32_t srcreg = (opcode & 7);
13395 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13396 {{	uint32_t srca = m68k_areg(regs, srcreg);
13397 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
13398 {	int val = cctrue(1) ? 0xff : 0;
13399 	m68k_write_memory_8(srca,val);
13400 }}}m68k_incpc(2);
13401 return 12;
13402 }
CPUFUNC(op_51e0_4)13403 unsigned long CPUFUNC(op_51e0_4)(uint32_t opcode) /* Scc */
13404 {
13405 	uint32_t srcreg = (opcode & 7);
13406 	OpcodeFamily = 59; CurrentInstrCycles = 14;
13407 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
13408 	m68k_areg (regs, srcreg) = srca;
13409 {	int val = cctrue(1) ? 0xff : 0;
13410 	m68k_write_memory_8(srca,val);
13411 }}}m68k_incpc(2);
13412 return 14;
13413 }
CPUFUNC(op_51e8_4)13414 unsigned long CPUFUNC(op_51e8_4)(uint32_t opcode) /* Scc */
13415 {
13416 	uint32_t srcreg = (opcode & 7);
13417 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13418 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
13419 {	int val = cctrue(1) ? 0xff : 0;
13420 	m68k_write_memory_8(srca,val);
13421 }}}m68k_incpc(4);
13422 return 16;
13423 }
CPUFUNC(op_51f0_4)13424 unsigned long CPUFUNC(op_51f0_4)(uint32_t opcode) /* Scc */
13425 {
13426 	uint32_t srcreg = (opcode & 7);
13427 	OpcodeFamily = 59; CurrentInstrCycles = 18;
13428 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
13429 	BusCyclePenalty += 2;
13430 {	int val = cctrue(1) ? 0xff : 0;
13431 	m68k_write_memory_8(srca,val);
13432 }}}m68k_incpc(4);
13433 return 18;
13434 }
CPUFUNC(op_51f8_4)13435 unsigned long CPUFUNC(op_51f8_4)(uint32_t opcode) /* Scc */
13436 {
13437 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13438 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
13439 {	int val = cctrue(1) ? 0xff : 0;
13440 	m68k_write_memory_8(srca,val);
13441 }}}m68k_incpc(4);
13442 return 16;
13443 }
CPUFUNC(op_51f9_4)13444 unsigned long CPUFUNC(op_51f9_4)(uint32_t opcode) /* Scc */
13445 {
13446 	OpcodeFamily = 59; CurrentInstrCycles = 20;
13447 {{	uint32_t srca = get_ilong(2);
13448 {	int val = cctrue(1) ? 0xff : 0;
13449 	m68k_write_memory_8(srca,val);
13450 }}}m68k_incpc(6);
13451 return 20;
13452 }
CPUFUNC(op_52c0_4)13453 unsigned long CPUFUNC(op_52c0_4)(uint32_t opcode) /* Scc */
13454 {
13455 	uint32_t srcreg = (opcode & 7);
13456 	OpcodeFamily = 59; CurrentInstrCycles = 4;
13457 {{{	int val = cctrue(2) ? 0xff : 0;
13458 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
13459 	if (val) { m68k_incpc(2) ; return 4+2; }
13460 }}}m68k_incpc(2);
13461 return 4;
13462 }
CPUFUNC(op_52c8_4)13463 unsigned long CPUFUNC(op_52c8_4)(uint32_t opcode) /* DBcc */
13464 {
13465 	uint32_t srcreg = (opcode & 7);
13466 	OpcodeFamily = 58; CurrentInstrCycles = 12;
13467 {{	int16_t src = m68k_dreg(regs, srcreg);
13468 {	int16_t offs = get_iword(2);
13469 	if (!cctrue(2)) {
13470 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
13471 		if (src) {
13472 			m68k_incpc((int32_t)offs + 2);
13473 			return 10;
13474 		} else {
13475 			m68k_incpc(4);
13476 			return 14;
13477 		}
13478 	}
13479 }}}m68k_incpc(4);
13480 #if 0
13481 endlabel886: ;
13482 #endif
13483 return 12;
13484 }
CPUFUNC(op_52d0_4)13485 unsigned long CPUFUNC(op_52d0_4)(uint32_t opcode) /* Scc */
13486 {
13487 	uint32_t srcreg = (opcode & 7);
13488 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13489 {{	uint32_t srca = m68k_areg(regs, srcreg);
13490 {	int val = cctrue(2) ? 0xff : 0;
13491 	m68k_write_memory_8(srca,val);
13492 }}}m68k_incpc(2);
13493 return 12;
13494 }
CPUFUNC(op_52d8_4)13495 unsigned long CPUFUNC(op_52d8_4)(uint32_t opcode) /* Scc */
13496 {
13497 	uint32_t srcreg = (opcode & 7);
13498 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13499 {{	uint32_t srca = m68k_areg(regs, srcreg);
13500 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
13501 {	int val = cctrue(2) ? 0xff : 0;
13502 	m68k_write_memory_8(srca,val);
13503 }}}m68k_incpc(2);
13504 return 12;
13505 }
CPUFUNC(op_52e0_4)13506 unsigned long CPUFUNC(op_52e0_4)(uint32_t opcode) /* Scc */
13507 {
13508 	uint32_t srcreg = (opcode & 7);
13509 	OpcodeFamily = 59; CurrentInstrCycles = 14;
13510 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
13511 	m68k_areg (regs, srcreg) = srca;
13512 {	int val = cctrue(2) ? 0xff : 0;
13513 	m68k_write_memory_8(srca,val);
13514 }}}m68k_incpc(2);
13515 return 14;
13516 }
CPUFUNC(op_52e8_4)13517 unsigned long CPUFUNC(op_52e8_4)(uint32_t opcode) /* Scc */
13518 {
13519 	uint32_t srcreg = (opcode & 7);
13520 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13521 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
13522 {	int val = cctrue(2) ? 0xff : 0;
13523 	m68k_write_memory_8(srca,val);
13524 }}}m68k_incpc(4);
13525 return 16;
13526 }
CPUFUNC(op_52f0_4)13527 unsigned long CPUFUNC(op_52f0_4)(uint32_t opcode) /* Scc */
13528 {
13529 	uint32_t srcreg = (opcode & 7);
13530 	OpcodeFamily = 59; CurrentInstrCycles = 18;
13531 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
13532 	BusCyclePenalty += 2;
13533 {	int val = cctrue(2) ? 0xff : 0;
13534 	m68k_write_memory_8(srca,val);
13535 }}}m68k_incpc(4);
13536 return 18;
13537 }
CPUFUNC(op_52f8_4)13538 unsigned long CPUFUNC(op_52f8_4)(uint32_t opcode) /* Scc */
13539 {
13540 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13541 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
13542 {	int val = cctrue(2) ? 0xff : 0;
13543 	m68k_write_memory_8(srca,val);
13544 }}}m68k_incpc(4);
13545 return 16;
13546 }
CPUFUNC(op_52f9_4)13547 unsigned long CPUFUNC(op_52f9_4)(uint32_t opcode) /* Scc */
13548 {
13549 	OpcodeFamily = 59; CurrentInstrCycles = 20;
13550 {{	uint32_t srca = get_ilong(2);
13551 {	int val = cctrue(2) ? 0xff : 0;
13552 	m68k_write_memory_8(srca,val);
13553 }}}m68k_incpc(6);
13554 return 20;
13555 }
CPUFUNC(op_53c0_4)13556 unsigned long CPUFUNC(op_53c0_4)(uint32_t opcode) /* Scc */
13557 {
13558 	uint32_t srcreg = (opcode & 7);
13559 	OpcodeFamily = 59; CurrentInstrCycles = 4;
13560 {{{	int val = cctrue(3) ? 0xff : 0;
13561 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
13562 	if (val) { m68k_incpc(2) ; return 4+2; }
13563 }}}m68k_incpc(2);
13564 return 4;
13565 }
CPUFUNC(op_53c8_4)13566 unsigned long CPUFUNC(op_53c8_4)(uint32_t opcode) /* DBcc */
13567 {
13568 	uint32_t srcreg = (opcode & 7);
13569 	OpcodeFamily = 58; CurrentInstrCycles = 12;
13570 {{	int16_t src = m68k_dreg(regs, srcreg);
13571 {	int16_t offs = get_iword(2);
13572 	if (!cctrue(3)) {
13573 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
13574 		if (src) {
13575 			m68k_incpc((int32_t)offs + 2);
13576 			return 10;
13577 		} else {
13578 			m68k_incpc(4);
13579 			return 14;
13580 		}
13581 	}
13582 }}}m68k_incpc(4);
13583 #if 0
13584 endlabel895: ;
13585 #endif
13586 return 12;
13587 }
CPUFUNC(op_53d0_4)13588 unsigned long CPUFUNC(op_53d0_4)(uint32_t opcode) /* Scc */
13589 {
13590 	uint32_t srcreg = (opcode & 7);
13591 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13592 {{	uint32_t srca = m68k_areg(regs, srcreg);
13593 {	int val = cctrue(3) ? 0xff : 0;
13594 	m68k_write_memory_8(srca,val);
13595 }}}m68k_incpc(2);
13596 return 12;
13597 }
CPUFUNC(op_53d8_4)13598 unsigned long CPUFUNC(op_53d8_4)(uint32_t opcode) /* Scc */
13599 {
13600 	uint32_t srcreg = (opcode & 7);
13601 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13602 {{	uint32_t srca = m68k_areg(regs, srcreg);
13603 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
13604 {	int val = cctrue(3) ? 0xff : 0;
13605 	m68k_write_memory_8(srca,val);
13606 }}}m68k_incpc(2);
13607 return 12;
13608 }
CPUFUNC(op_53e0_4)13609 unsigned long CPUFUNC(op_53e0_4)(uint32_t opcode) /* Scc */
13610 {
13611 	uint32_t srcreg = (opcode & 7);
13612 	OpcodeFamily = 59; CurrentInstrCycles = 14;
13613 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
13614 	m68k_areg (regs, srcreg) = srca;
13615 {	int val = cctrue(3) ? 0xff : 0;
13616 	m68k_write_memory_8(srca,val);
13617 }}}m68k_incpc(2);
13618 return 14;
13619 }
CPUFUNC(op_53e8_4)13620 unsigned long CPUFUNC(op_53e8_4)(uint32_t opcode) /* Scc */
13621 {
13622 	uint32_t srcreg = (opcode & 7);
13623 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13624 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
13625 {	int val = cctrue(3) ? 0xff : 0;
13626 	m68k_write_memory_8(srca,val);
13627 }}}m68k_incpc(4);
13628 return 16;
13629 }
CPUFUNC(op_53f0_4)13630 unsigned long CPUFUNC(op_53f0_4)(uint32_t opcode) /* Scc */
13631 {
13632 	uint32_t srcreg = (opcode & 7);
13633 	OpcodeFamily = 59; CurrentInstrCycles = 18;
13634 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
13635 	BusCyclePenalty += 2;
13636 {	int val = cctrue(3) ? 0xff : 0;
13637 	m68k_write_memory_8(srca,val);
13638 }}}m68k_incpc(4);
13639 return 18;
13640 }
CPUFUNC(op_53f8_4)13641 unsigned long CPUFUNC(op_53f8_4)(uint32_t opcode) /* Scc */
13642 {
13643 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13644 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
13645 {	int val = cctrue(3) ? 0xff : 0;
13646 	m68k_write_memory_8(srca,val);
13647 }}}m68k_incpc(4);
13648 return 16;
13649 }
CPUFUNC(op_53f9_4)13650 unsigned long CPUFUNC(op_53f9_4)(uint32_t opcode) /* Scc */
13651 {
13652 	OpcodeFamily = 59; CurrentInstrCycles = 20;
13653 {{	uint32_t srca = get_ilong(2);
13654 {	int val = cctrue(3) ? 0xff : 0;
13655 	m68k_write_memory_8(srca,val);
13656 }}}m68k_incpc(6);
13657 return 20;
13658 }
CPUFUNC(op_54c0_4)13659 unsigned long CPUFUNC(op_54c0_4)(uint32_t opcode) /* Scc */
13660 {
13661 	uint32_t srcreg = (opcode & 7);
13662 	OpcodeFamily = 59; CurrentInstrCycles = 4;
13663 {{{	int val = cctrue(4) ? 0xff : 0;
13664 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
13665 	if (val) { m68k_incpc(2) ; return 4+2; }
13666 }}}m68k_incpc(2);
13667 return 4;
13668 }
CPUFUNC(op_54c8_4)13669 unsigned long CPUFUNC(op_54c8_4)(uint32_t opcode) /* DBcc */
13670 {
13671 	uint32_t srcreg = (opcode & 7);
13672 	OpcodeFamily = 58; CurrentInstrCycles = 12;
13673 {{	int16_t src = m68k_dreg(regs, srcreg);
13674 {	int16_t offs = get_iword(2);
13675 	if (!cctrue(4)) {
13676 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
13677 		if (src) {
13678 			m68k_incpc((int32_t)offs + 2);
13679 			return 10;
13680 		} else {
13681 			m68k_incpc(4);
13682 			return 14;
13683 		}
13684 	}
13685 }}}m68k_incpc(4);
13686 #if 0
13687 endlabel904: ;
13688 #endif
13689 return 12;
13690 }
13691 
CPUFUNC(op_54d0_4)13692 unsigned long CPUFUNC(op_54d0_4)(uint32_t opcode) /* Scc */
13693 {
13694 	uint32_t srcreg = (opcode & 7);
13695 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13696 {{	uint32_t srca = m68k_areg(regs, srcreg);
13697 {	int val = cctrue(4) ? 0xff : 0;
13698 	m68k_write_memory_8(srca,val);
13699 }}}m68k_incpc(2);
13700 return 12;
13701 }
CPUFUNC(op_54d8_4)13702 unsigned long CPUFUNC(op_54d8_4)(uint32_t opcode) /* Scc */
13703 {
13704 	uint32_t srcreg = (opcode & 7);
13705 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13706 {{	uint32_t srca = m68k_areg(regs, srcreg);
13707 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
13708 {	int val = cctrue(4) ? 0xff : 0;
13709 	m68k_write_memory_8(srca,val);
13710 }}}m68k_incpc(2);
13711 return 12;
13712 }
CPUFUNC(op_54e0_4)13713 unsigned long CPUFUNC(op_54e0_4)(uint32_t opcode) /* Scc */
13714 {
13715 	uint32_t srcreg = (opcode & 7);
13716 	OpcodeFamily = 59; CurrentInstrCycles = 14;
13717 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
13718 	m68k_areg (regs, srcreg) = srca;
13719 {	int val = cctrue(4) ? 0xff : 0;
13720 	m68k_write_memory_8(srca,val);
13721 }}}m68k_incpc(2);
13722 return 14;
13723 }
CPUFUNC(op_54e8_4)13724 unsigned long CPUFUNC(op_54e8_4)(uint32_t opcode) /* Scc */
13725 {
13726 	uint32_t srcreg = (opcode & 7);
13727 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13728 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
13729 {	int val = cctrue(4) ? 0xff : 0;
13730 	m68k_write_memory_8(srca,val);
13731 }}}m68k_incpc(4);
13732 return 16;
13733 }
CPUFUNC(op_54f0_4)13734 unsigned long CPUFUNC(op_54f0_4)(uint32_t opcode) /* Scc */
13735 {
13736 	uint32_t srcreg = (opcode & 7);
13737 	OpcodeFamily = 59; CurrentInstrCycles = 18;
13738 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
13739 	BusCyclePenalty += 2;
13740 {	int val = cctrue(4) ? 0xff : 0;
13741 	m68k_write_memory_8(srca,val);
13742 }}}m68k_incpc(4);
13743 return 18;
13744 }
CPUFUNC(op_54f8_4)13745 unsigned long CPUFUNC(op_54f8_4)(uint32_t opcode) /* Scc */
13746 {
13747 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13748 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
13749 {	int val = cctrue(4) ? 0xff : 0;
13750 	m68k_write_memory_8(srca,val);
13751 }}}m68k_incpc(4);
13752 return 16;
13753 }
CPUFUNC(op_54f9_4)13754 unsigned long CPUFUNC(op_54f9_4)(uint32_t opcode) /* Scc */
13755 {
13756 	OpcodeFamily = 59; CurrentInstrCycles = 20;
13757 {{	uint32_t srca = get_ilong(2);
13758 {	int val = cctrue(4) ? 0xff : 0;
13759 	m68k_write_memory_8(srca,val);
13760 }}}m68k_incpc(6);
13761 return 20;
13762 }
CPUFUNC(op_55c0_4)13763 unsigned long CPUFUNC(op_55c0_4)(uint32_t opcode) /* Scc */
13764 {
13765 	uint32_t srcreg = (opcode & 7);
13766 	OpcodeFamily = 59; CurrentInstrCycles = 4;
13767 {{{	int val = cctrue(5) ? 0xff : 0;
13768 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
13769 	if (val) { m68k_incpc(2) ; return 4+2; }
13770 }}}m68k_incpc(2);
13771 return 4;
13772 }
CPUFUNC(op_55c8_4)13773 unsigned long CPUFUNC(op_55c8_4)(uint32_t opcode) /* DBcc */
13774 {
13775 	uint32_t srcreg = (opcode & 7);
13776 	OpcodeFamily = 58; CurrentInstrCycles = 12;
13777 {{	int16_t src = m68k_dreg(regs, srcreg);
13778 {	int16_t offs = get_iword(2);
13779 	if (!cctrue(5)) {
13780 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
13781 		if (src) {
13782 			m68k_incpc((int32_t)offs + 2);
13783 			return 10;
13784 		} else {
13785 			m68k_incpc(4);
13786 			return 14;
13787 		}
13788 	}
13789 }}}m68k_incpc(4);
13790 #if 0
13791 endlabel913: ;
13792 #endif
13793 return 12;
13794 }
CPUFUNC(op_55d0_4)13795 unsigned long CPUFUNC(op_55d0_4)(uint32_t opcode) /* Scc */
13796 {
13797 	uint32_t srcreg = (opcode & 7);
13798 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13799 {{	uint32_t srca = m68k_areg(regs, srcreg);
13800 {	int val = cctrue(5) ? 0xff : 0;
13801 	m68k_write_memory_8(srca,val);
13802 }}}m68k_incpc(2);
13803 return 12;
13804 }
CPUFUNC(op_55d8_4)13805 unsigned long CPUFUNC(op_55d8_4)(uint32_t opcode) /* Scc */
13806 {
13807 	uint32_t srcreg = (opcode & 7);
13808 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13809 {{	uint32_t srca = m68k_areg(regs, srcreg);
13810 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
13811 {	int val = cctrue(5) ? 0xff : 0;
13812 	m68k_write_memory_8(srca,val);
13813 }}}m68k_incpc(2);
13814 return 12;
13815 }
CPUFUNC(op_55e0_4)13816 unsigned long CPUFUNC(op_55e0_4)(uint32_t opcode) /* Scc */
13817 {
13818 	uint32_t srcreg = (opcode & 7);
13819 	OpcodeFamily = 59; CurrentInstrCycles = 14;
13820 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
13821 	m68k_areg (regs, srcreg) = srca;
13822 {	int val = cctrue(5) ? 0xff : 0;
13823 	m68k_write_memory_8(srca,val);
13824 }}}m68k_incpc(2);
13825 return 14;
13826 }
CPUFUNC(op_55e8_4)13827 unsigned long CPUFUNC(op_55e8_4)(uint32_t opcode) /* Scc */
13828 {
13829 	uint32_t srcreg = (opcode & 7);
13830 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13831 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
13832 {	int val = cctrue(5) ? 0xff : 0;
13833 	m68k_write_memory_8(srca,val);
13834 }}}m68k_incpc(4);
13835 return 16;
13836 }
CPUFUNC(op_55f0_4)13837 unsigned long CPUFUNC(op_55f0_4)(uint32_t opcode) /* Scc */
13838 {
13839 	uint32_t srcreg = (opcode & 7);
13840 	OpcodeFamily = 59; CurrentInstrCycles = 18;
13841 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
13842 	BusCyclePenalty += 2;
13843 {	int val = cctrue(5) ? 0xff : 0;
13844 	m68k_write_memory_8(srca,val);
13845 }}}m68k_incpc(4);
13846 return 18;
13847 }
CPUFUNC(op_55f8_4)13848 unsigned long CPUFUNC(op_55f8_4)(uint32_t opcode) /* Scc */
13849 {
13850 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13851 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
13852 {	int val = cctrue(5) ? 0xff : 0;
13853 	m68k_write_memory_8(srca,val);
13854 }}}m68k_incpc(4);
13855 return 16;
13856 }
CPUFUNC(op_55f9_4)13857 unsigned long CPUFUNC(op_55f9_4)(uint32_t opcode) /* Scc */
13858 {
13859 	OpcodeFamily = 59; CurrentInstrCycles = 20;
13860 {{	uint32_t srca = get_ilong(2);
13861 {	int val = cctrue(5) ? 0xff : 0;
13862 	m68k_write_memory_8(srca,val);
13863 }}}m68k_incpc(6);
13864 return 20;
13865 }
CPUFUNC(op_56c0_4)13866 unsigned long CPUFUNC(op_56c0_4)(uint32_t opcode) /* Scc */
13867 {
13868 	uint32_t srcreg = (opcode & 7);
13869 	OpcodeFamily = 59; CurrentInstrCycles = 4;
13870 {{{	int val = cctrue(6) ? 0xff : 0;
13871 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
13872 	if (val) { m68k_incpc(2) ; return 4+2; }
13873 }}}m68k_incpc(2);
13874 return 4;
13875 }
CPUFUNC(op_56c8_4)13876 unsigned long CPUFUNC(op_56c8_4)(uint32_t opcode) /* DBcc */
13877 {
13878 	uint32_t srcreg = (opcode & 7);
13879 	OpcodeFamily = 58; CurrentInstrCycles = 12;
13880 {{	int16_t src = m68k_dreg(regs, srcreg);
13881 {	int16_t offs = get_iword(2);
13882 	if (!cctrue(6)) {
13883 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
13884 		if (src) {
13885 			m68k_incpc((int32_t)offs + 2);
13886 			return 10;
13887 		} else {
13888 			m68k_incpc(4);
13889 			return 14;
13890 		}
13891 	}
13892 }}}m68k_incpc(4);
13893 #if 0
13894 endlabel922: ;
13895 #endif
13896 return 12;
13897 }
CPUFUNC(op_56d0_4)13898 unsigned long CPUFUNC(op_56d0_4)(uint32_t opcode) /* Scc */
13899 {
13900 	uint32_t srcreg = (opcode & 7);
13901 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13902 {{	uint32_t srca = m68k_areg(regs, srcreg);
13903 {	int val = cctrue(6) ? 0xff : 0;
13904 	m68k_write_memory_8(srca,val);
13905 }}}m68k_incpc(2);
13906 return 12;
13907 }
CPUFUNC(op_56d8_4)13908 unsigned long CPUFUNC(op_56d8_4)(uint32_t opcode) /* Scc */
13909 {
13910 	uint32_t srcreg = (opcode & 7);
13911 	OpcodeFamily = 59; CurrentInstrCycles = 12;
13912 {{	uint32_t srca = m68k_areg(regs, srcreg);
13913 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
13914 {	int val = cctrue(6) ? 0xff : 0;
13915 	m68k_write_memory_8(srca,val);
13916 }}}m68k_incpc(2);
13917 return 12;
13918 }
CPUFUNC(op_56e0_4)13919 unsigned long CPUFUNC(op_56e0_4)(uint32_t opcode) /* Scc */
13920 {
13921 	uint32_t srcreg = (opcode & 7);
13922 	OpcodeFamily = 59; CurrentInstrCycles = 14;
13923 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
13924 	m68k_areg (regs, srcreg) = srca;
13925 {	int val = cctrue(6) ? 0xff : 0;
13926 	m68k_write_memory_8(srca,val);
13927 }}}m68k_incpc(2);
13928 return 14;
13929 }
CPUFUNC(op_56e8_4)13930 unsigned long CPUFUNC(op_56e8_4)(uint32_t opcode) /* Scc */
13931 {
13932 	uint32_t srcreg = (opcode & 7);
13933 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13934 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
13935 {	int val = cctrue(6) ? 0xff : 0;
13936 	m68k_write_memory_8(srca,val);
13937 }}}m68k_incpc(4);
13938 return 16;
13939 }
CPUFUNC(op_56f0_4)13940 unsigned long CPUFUNC(op_56f0_4)(uint32_t opcode) /* Scc */
13941 {
13942 	uint32_t srcreg = (opcode & 7);
13943 	OpcodeFamily = 59; CurrentInstrCycles = 18;
13944 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
13945 	BusCyclePenalty += 2;
13946 {	int val = cctrue(6) ? 0xff : 0;
13947 	m68k_write_memory_8(srca,val);
13948 }}}m68k_incpc(4);
13949 return 18;
13950 }
CPUFUNC(op_56f8_4)13951 unsigned long CPUFUNC(op_56f8_4)(uint32_t opcode) /* Scc */
13952 {
13953 	OpcodeFamily = 59; CurrentInstrCycles = 16;
13954 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
13955 {	int val = cctrue(6) ? 0xff : 0;
13956 	m68k_write_memory_8(srca,val);
13957 }}}m68k_incpc(4);
13958 return 16;
13959 }
CPUFUNC(op_56f9_4)13960 unsigned long CPUFUNC(op_56f9_4)(uint32_t opcode) /* Scc */
13961 {
13962 	OpcodeFamily = 59; CurrentInstrCycles = 20;
13963 {{	uint32_t srca = get_ilong(2);
13964 {	int val = cctrue(6) ? 0xff : 0;
13965 	m68k_write_memory_8(srca,val);
13966 }}}m68k_incpc(6);
13967 return 20;
13968 }
CPUFUNC(op_57c0_4)13969 unsigned long CPUFUNC(op_57c0_4)(uint32_t opcode) /* Scc */
13970 {
13971 	uint32_t srcreg = (opcode & 7);
13972 	OpcodeFamily = 59; CurrentInstrCycles = 4;
13973 {{{	int val = cctrue(7) ? 0xff : 0;
13974 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
13975 	if (val) { m68k_incpc(2) ; return 4+2; }
13976 }}}m68k_incpc(2);
13977 return 4;
13978 }
CPUFUNC(op_57c8_4)13979 unsigned long CPUFUNC(op_57c8_4)(uint32_t opcode) /* DBcc */
13980 {
13981 	uint32_t srcreg = (opcode & 7);
13982 	OpcodeFamily = 58; CurrentInstrCycles = 12;
13983 {{	int16_t src = m68k_dreg(regs, srcreg);
13984 {	int16_t offs = get_iword(2);
13985 	if (!cctrue(7)) {
13986 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
13987 		if (src) {
13988 			m68k_incpc((int32_t)offs + 2);
13989 			return 10;
13990 		} else {
13991 			m68k_incpc(4);
13992 			return 14;
13993 		}
13994 	}
13995 }}}m68k_incpc(4);
13996 #if 0
13997 endlabel931: ;
13998 #endif
13999 return 12;
14000 }
CPUFUNC(op_57d0_4)14001 unsigned long CPUFUNC(op_57d0_4)(uint32_t opcode) /* Scc */
14002 {
14003 	uint32_t srcreg = (opcode & 7);
14004 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14005 {{	uint32_t srca = m68k_areg(regs, srcreg);
14006 {	int val = cctrue(7) ? 0xff : 0;
14007 	m68k_write_memory_8(srca,val);
14008 }}}m68k_incpc(2);
14009 return 12;
14010 }
CPUFUNC(op_57d8_4)14011 unsigned long CPUFUNC(op_57d8_4)(uint32_t opcode) /* Scc */
14012 {
14013 	uint32_t srcreg = (opcode & 7);
14014 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14015 {{	uint32_t srca = m68k_areg(regs, srcreg);
14016 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14017 {	int val = cctrue(7) ? 0xff : 0;
14018 	m68k_write_memory_8(srca,val);
14019 }}}m68k_incpc(2);
14020 return 12;
14021 }
CPUFUNC(op_57e0_4)14022 unsigned long CPUFUNC(op_57e0_4)(uint32_t opcode) /* Scc */
14023 {
14024 	uint32_t srcreg = (opcode & 7);
14025 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14026 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14027 	m68k_areg (regs, srcreg) = srca;
14028 {	int val = cctrue(7) ? 0xff : 0;
14029 	m68k_write_memory_8(srca,val);
14030 }}}m68k_incpc(2);
14031 return 14;
14032 }
CPUFUNC(op_57e8_4)14033 unsigned long CPUFUNC(op_57e8_4)(uint32_t opcode) /* Scc */
14034 {
14035 	uint32_t srcreg = (opcode & 7);
14036 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14037 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14038 {	int val = cctrue(7) ? 0xff : 0;
14039 	m68k_write_memory_8(srca,val);
14040 }}}m68k_incpc(4);
14041 return 16;
14042 }
CPUFUNC(op_57f0_4)14043 unsigned long CPUFUNC(op_57f0_4)(uint32_t opcode) /* Scc */
14044 {
14045 	uint32_t srcreg = (opcode & 7);
14046 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14047 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14048 	BusCyclePenalty += 2;
14049 {	int val = cctrue(7) ? 0xff : 0;
14050 	m68k_write_memory_8(srca,val);
14051 }}}m68k_incpc(4);
14052 return 18;
14053 }
CPUFUNC(op_57f8_4)14054 unsigned long CPUFUNC(op_57f8_4)(uint32_t opcode) /* Scc */
14055 {
14056 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14057 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14058 {	int val = cctrue(7) ? 0xff : 0;
14059 	m68k_write_memory_8(srca,val);
14060 }}}m68k_incpc(4);
14061 return 16;
14062 }
CPUFUNC(op_57f9_4)14063 unsigned long CPUFUNC(op_57f9_4)(uint32_t opcode) /* Scc */
14064 {
14065 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14066 {{	uint32_t srca = get_ilong(2);
14067 {	int val = cctrue(7) ? 0xff : 0;
14068 	m68k_write_memory_8(srca,val);
14069 }}}m68k_incpc(6);
14070 return 20;
14071 }
CPUFUNC(op_58c0_4)14072 unsigned long CPUFUNC(op_58c0_4)(uint32_t opcode) /* Scc */
14073 {
14074 	uint32_t srcreg = (opcode & 7);
14075 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14076 {{{	int val = cctrue(8) ? 0xff : 0;
14077 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14078 	if (val) { m68k_incpc(2) ; return 4+2; }
14079 }}}m68k_incpc(2);
14080 return 4;
14081 }
CPUFUNC(op_58c8_4)14082 unsigned long CPUFUNC(op_58c8_4)(uint32_t opcode) /* DBcc */
14083 {
14084 	uint32_t srcreg = (opcode & 7);
14085 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14086 {{	int16_t src = m68k_dreg(regs, srcreg);
14087 {	int16_t offs = get_iword(2);
14088 	if (!cctrue(8)) {
14089 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14090 		if (src) {
14091 			m68k_incpc((int32_t)offs + 2);
14092 			return 10;
14093 		} else {
14094 			m68k_incpc(4);
14095 			return 14;
14096 		}
14097 	}
14098 }}}m68k_incpc(4);
14099 #if 0
14100 endlabel940: ;
14101 #endif
14102 return 12;
14103 }
CPUFUNC(op_58d0_4)14104 unsigned long CPUFUNC(op_58d0_4)(uint32_t opcode) /* Scc */
14105 {
14106 	uint32_t srcreg = (opcode & 7);
14107 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14108 {{	uint32_t srca = m68k_areg(regs, srcreg);
14109 {	int val = cctrue(8) ? 0xff : 0;
14110 	m68k_write_memory_8(srca,val);
14111 }}}m68k_incpc(2);
14112 return 12;
14113 }
CPUFUNC(op_58d8_4)14114 unsigned long CPUFUNC(op_58d8_4)(uint32_t opcode) /* Scc */
14115 {
14116 	uint32_t srcreg = (opcode & 7);
14117 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14118 {{	uint32_t srca = m68k_areg(regs, srcreg);
14119 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14120 {	int val = cctrue(8) ? 0xff : 0;
14121 	m68k_write_memory_8(srca,val);
14122 }}}m68k_incpc(2);
14123 return 12;
14124 }
CPUFUNC(op_58e0_4)14125 unsigned long CPUFUNC(op_58e0_4)(uint32_t opcode) /* Scc */
14126 {
14127 	uint32_t srcreg = (opcode & 7);
14128 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14129 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14130 	m68k_areg (regs, srcreg) = srca;
14131 {	int val = cctrue(8) ? 0xff : 0;
14132 	m68k_write_memory_8(srca,val);
14133 }}}m68k_incpc(2);
14134 return 14;
14135 }
CPUFUNC(op_58e8_4)14136 unsigned long CPUFUNC(op_58e8_4)(uint32_t opcode) /* Scc */
14137 {
14138 	uint32_t srcreg = (opcode & 7);
14139 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14140 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14141 {	int val = cctrue(8) ? 0xff : 0;
14142 	m68k_write_memory_8(srca,val);
14143 }}}m68k_incpc(4);
14144 return 16;
14145 }
CPUFUNC(op_58f0_4)14146 unsigned long CPUFUNC(op_58f0_4)(uint32_t opcode) /* Scc */
14147 {
14148 	uint32_t srcreg = (opcode & 7);
14149 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14150 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14151 	BusCyclePenalty += 2;
14152 {	int val = cctrue(8) ? 0xff : 0;
14153 	m68k_write_memory_8(srca,val);
14154 }}}m68k_incpc(4);
14155 return 18;
14156 }
CPUFUNC(op_58f8_4)14157 unsigned long CPUFUNC(op_58f8_4)(uint32_t opcode) /* Scc */
14158 {
14159 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14160 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14161 {	int val = cctrue(8) ? 0xff : 0;
14162 	m68k_write_memory_8(srca,val);
14163 }}}m68k_incpc(4);
14164 return 16;
14165 }
CPUFUNC(op_58f9_4)14166 unsigned long CPUFUNC(op_58f9_4)(uint32_t opcode) /* Scc */
14167 {
14168 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14169 {{	uint32_t srca = get_ilong(2);
14170 {	int val = cctrue(8) ? 0xff : 0;
14171 	m68k_write_memory_8(srca,val);
14172 }}}m68k_incpc(6);
14173 return 20;
14174 }
CPUFUNC(op_59c0_4)14175 unsigned long CPUFUNC(op_59c0_4)(uint32_t opcode) /* Scc */
14176 {
14177 	uint32_t srcreg = (opcode & 7);
14178 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14179 {{{	int val = cctrue(9) ? 0xff : 0;
14180 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14181 	if (val) { m68k_incpc(2) ; return 4+2; }
14182 }}}m68k_incpc(2);
14183 return 4;
14184 }
CPUFUNC(op_59c8_4)14185 unsigned long CPUFUNC(op_59c8_4)(uint32_t opcode) /* DBcc */
14186 {
14187 	uint32_t srcreg = (opcode & 7);
14188 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14189 {{	int16_t src = m68k_dreg(regs, srcreg);
14190 {	int16_t offs = get_iword(2);
14191 	if (!cctrue(9)) {
14192 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14193 		if (src) {
14194 			m68k_incpc((int32_t)offs + 2);
14195 			return 10;
14196 		} else {
14197 			m68k_incpc(4);
14198 			return 14;
14199 		}
14200 	}
14201 }}}m68k_incpc(4);
14202 #if 0
14203 endlabel949: ;
14204 #endif
14205 return 12;
14206 }
CPUFUNC(op_59d0_4)14207 unsigned long CPUFUNC(op_59d0_4)(uint32_t opcode) /* Scc */
14208 {
14209 	uint32_t srcreg = (opcode & 7);
14210 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14211 {{	uint32_t srca = m68k_areg(regs, srcreg);
14212 {	int val = cctrue(9) ? 0xff : 0;
14213 	m68k_write_memory_8(srca,val);
14214 }}}m68k_incpc(2);
14215 return 12;
14216 }
CPUFUNC(op_59d8_4)14217 unsigned long CPUFUNC(op_59d8_4)(uint32_t opcode) /* Scc */
14218 {
14219 	uint32_t srcreg = (opcode & 7);
14220 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14221 {{	uint32_t srca = m68k_areg(regs, srcreg);
14222 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14223 {	int val = cctrue(9) ? 0xff : 0;
14224 	m68k_write_memory_8(srca,val);
14225 }}}m68k_incpc(2);
14226 return 12;
14227 }
CPUFUNC(op_59e0_4)14228 unsigned long CPUFUNC(op_59e0_4)(uint32_t opcode) /* Scc */
14229 {
14230 	uint32_t srcreg = (opcode & 7);
14231 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14232 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14233 	m68k_areg (regs, srcreg) = srca;
14234 {	int val = cctrue(9) ? 0xff : 0;
14235 	m68k_write_memory_8(srca,val);
14236 }}}m68k_incpc(2);
14237 return 14;
14238 }
CPUFUNC(op_59e8_4)14239 unsigned long CPUFUNC(op_59e8_4)(uint32_t opcode) /* Scc */
14240 {
14241 	uint32_t srcreg = (opcode & 7);
14242 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14243 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14244 {	int val = cctrue(9) ? 0xff : 0;
14245 	m68k_write_memory_8(srca,val);
14246 }}}m68k_incpc(4);
14247 return 16;
14248 }
CPUFUNC(op_59f0_4)14249 unsigned long CPUFUNC(op_59f0_4)(uint32_t opcode) /* Scc */
14250 {
14251 	uint32_t srcreg = (opcode & 7);
14252 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14253 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14254 	BusCyclePenalty += 2;
14255 {	int val = cctrue(9) ? 0xff : 0;
14256 	m68k_write_memory_8(srca,val);
14257 }}}m68k_incpc(4);
14258 return 18;
14259 }
CPUFUNC(op_59f8_4)14260 unsigned long CPUFUNC(op_59f8_4)(uint32_t opcode) /* Scc */
14261 {
14262 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14263 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14264 {	int val = cctrue(9) ? 0xff : 0;
14265 	m68k_write_memory_8(srca,val);
14266 }}}m68k_incpc(4);
14267 return 16;
14268 }
CPUFUNC(op_59f9_4)14269 unsigned long CPUFUNC(op_59f9_4)(uint32_t opcode) /* Scc */
14270 {
14271 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14272 {{	uint32_t srca = get_ilong(2);
14273 {	int val = cctrue(9) ? 0xff : 0;
14274 	m68k_write_memory_8(srca,val);
14275 }}}m68k_incpc(6);
14276 return 20;
14277 }
CPUFUNC(op_5ac0_4)14278 unsigned long CPUFUNC(op_5ac0_4)(uint32_t opcode) /* Scc */
14279 {
14280 	uint32_t srcreg = (opcode & 7);
14281 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14282 {{{	int val = cctrue(10) ? 0xff : 0;
14283 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14284 	if (val) { m68k_incpc(2) ; return 4+2; }
14285 }}}m68k_incpc(2);
14286 return 4;
14287 }
CPUFUNC(op_5ac8_4)14288 unsigned long CPUFUNC(op_5ac8_4)(uint32_t opcode) /* DBcc */
14289 {
14290 	uint32_t srcreg = (opcode & 7);
14291 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14292 {{	int16_t src = m68k_dreg(regs, srcreg);
14293 {	int16_t offs = get_iword(2);
14294 	if (!cctrue(10)) {
14295 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14296 		if (src) {
14297 			m68k_incpc((int32_t)offs + 2);
14298 			return 10;
14299 		} else {
14300 			m68k_incpc(4);
14301 			return 14;
14302 		}
14303 	}
14304 }}}m68k_incpc(4);
14305 #if 0
14306 endlabel958: ;
14307 #endif
14308 return 12;
14309 }
CPUFUNC(op_5ad0_4)14310 unsigned long CPUFUNC(op_5ad0_4)(uint32_t opcode) /* Scc */
14311 {
14312 	uint32_t srcreg = (opcode & 7);
14313 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14314 {{	uint32_t srca = m68k_areg(regs, srcreg);
14315 {	int val = cctrue(10) ? 0xff : 0;
14316 	m68k_write_memory_8(srca,val);
14317 }}}m68k_incpc(2);
14318 return 12;
14319 }
CPUFUNC(op_5ad8_4)14320 unsigned long CPUFUNC(op_5ad8_4)(uint32_t opcode) /* Scc */
14321 {
14322 	uint32_t srcreg = (opcode & 7);
14323 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14324 {{	uint32_t srca = m68k_areg(regs, srcreg);
14325 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14326 {	int val = cctrue(10) ? 0xff : 0;
14327 	m68k_write_memory_8(srca,val);
14328 }}}m68k_incpc(2);
14329 return 12;
14330 }
CPUFUNC(op_5ae0_4)14331 unsigned long CPUFUNC(op_5ae0_4)(uint32_t opcode) /* Scc */
14332 {
14333 	uint32_t srcreg = (opcode & 7);
14334 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14335 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14336 	m68k_areg (regs, srcreg) = srca;
14337 {	int val = cctrue(10) ? 0xff : 0;
14338 	m68k_write_memory_8(srca,val);
14339 }}}m68k_incpc(2);
14340 return 14;
14341 }
CPUFUNC(op_5ae8_4)14342 unsigned long CPUFUNC(op_5ae8_4)(uint32_t opcode) /* Scc */
14343 {
14344 	uint32_t srcreg = (opcode & 7);
14345 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14346 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14347 {	int val = cctrue(10) ? 0xff : 0;
14348 	m68k_write_memory_8(srca,val);
14349 }}}m68k_incpc(4);
14350 return 16;
14351 }
CPUFUNC(op_5af0_4)14352 unsigned long CPUFUNC(op_5af0_4)(uint32_t opcode) /* Scc */
14353 {
14354 	uint32_t srcreg = (opcode & 7);
14355 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14356 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14357 	BusCyclePenalty += 2;
14358 {	int val = cctrue(10) ? 0xff : 0;
14359 	m68k_write_memory_8(srca,val);
14360 }}}m68k_incpc(4);
14361 return 18;
14362 }
CPUFUNC(op_5af8_4)14363 unsigned long CPUFUNC(op_5af8_4)(uint32_t opcode) /* Scc */
14364 {
14365 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14366 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14367 {	int val = cctrue(10) ? 0xff : 0;
14368 	m68k_write_memory_8(srca,val);
14369 }}}m68k_incpc(4);
14370 return 16;
14371 }
CPUFUNC(op_5af9_4)14372 unsigned long CPUFUNC(op_5af9_4)(uint32_t opcode) /* Scc */
14373 {
14374 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14375 {{	uint32_t srca = get_ilong(2);
14376 {	int val = cctrue(10) ? 0xff : 0;
14377 	m68k_write_memory_8(srca,val);
14378 }}}m68k_incpc(6);
14379 return 20;
14380 }
CPUFUNC(op_5bc0_4)14381 unsigned long CPUFUNC(op_5bc0_4)(uint32_t opcode) /* Scc */
14382 {
14383 	uint32_t srcreg = (opcode & 7);
14384 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14385 {{{	int val = cctrue(11) ? 0xff : 0;
14386 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14387 	if (val) { m68k_incpc(2) ; return 4+2; }
14388 }}}m68k_incpc(2);
14389 return 4;
14390 }
CPUFUNC(op_5bc8_4)14391 unsigned long CPUFUNC(op_5bc8_4)(uint32_t opcode) /* DBcc */
14392 {
14393 	uint32_t srcreg = (opcode & 7);
14394 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14395 {{	int16_t src = m68k_dreg(regs, srcreg);
14396 {	int16_t offs = get_iword(2);
14397 	if (!cctrue(11)) {
14398 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14399 		if (src) {
14400 			m68k_incpc((int32_t)offs + 2);
14401 			return 10;
14402 		} else {
14403 			m68k_incpc(4);
14404 			return 14;
14405 		}
14406 	}
14407 }}}m68k_incpc(4);
14408 #if 0
14409 endlabel967: ;
14410 #endif
14411 return 12;
14412 }
CPUFUNC(op_5bd0_4)14413 unsigned long CPUFUNC(op_5bd0_4)(uint32_t opcode) /* Scc */
14414 {
14415 	uint32_t srcreg = (opcode & 7);
14416 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14417 {{	uint32_t srca = m68k_areg(regs, srcreg);
14418 {	int val = cctrue(11) ? 0xff : 0;
14419 	m68k_write_memory_8(srca,val);
14420 }}}m68k_incpc(2);
14421 return 12;
14422 }
CPUFUNC(op_5bd8_4)14423 unsigned long CPUFUNC(op_5bd8_4)(uint32_t opcode) /* Scc */
14424 {
14425 	uint32_t srcreg = (opcode & 7);
14426 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14427 {{	uint32_t srca = m68k_areg(regs, srcreg);
14428 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14429 {	int val = cctrue(11) ? 0xff : 0;
14430 	m68k_write_memory_8(srca,val);
14431 }}}m68k_incpc(2);
14432 return 12;
14433 }
CPUFUNC(op_5be0_4)14434 unsigned long CPUFUNC(op_5be0_4)(uint32_t opcode) /* Scc */
14435 {
14436 	uint32_t srcreg = (opcode & 7);
14437 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14438 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14439 	m68k_areg (regs, srcreg) = srca;
14440 {	int val = cctrue(11) ? 0xff : 0;
14441 	m68k_write_memory_8(srca,val);
14442 }}}m68k_incpc(2);
14443 return 14;
14444 }
CPUFUNC(op_5be8_4)14445 unsigned long CPUFUNC(op_5be8_4)(uint32_t opcode) /* Scc */
14446 {
14447 	uint32_t srcreg = (opcode & 7);
14448 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14449 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14450 {	int val = cctrue(11) ? 0xff : 0;
14451 	m68k_write_memory_8(srca,val);
14452 }}}m68k_incpc(4);
14453 return 16;
14454 }
CPUFUNC(op_5bf0_4)14455 unsigned long CPUFUNC(op_5bf0_4)(uint32_t opcode) /* Scc */
14456 {
14457 	uint32_t srcreg = (opcode & 7);
14458 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14459 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14460 	BusCyclePenalty += 2;
14461 {	int val = cctrue(11) ? 0xff : 0;
14462 	m68k_write_memory_8(srca,val);
14463 }}}m68k_incpc(4);
14464 return 18;
14465 }
CPUFUNC(op_5bf8_4)14466 unsigned long CPUFUNC(op_5bf8_4)(uint32_t opcode) /* Scc */
14467 {
14468 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14469 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14470 {	int val = cctrue(11) ? 0xff : 0;
14471 	m68k_write_memory_8(srca,val);
14472 }}}m68k_incpc(4);
14473 return 16;
14474 }
CPUFUNC(op_5bf9_4)14475 unsigned long CPUFUNC(op_5bf9_4)(uint32_t opcode) /* Scc */
14476 {
14477 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14478 {{	uint32_t srca = get_ilong(2);
14479 {	int val = cctrue(11) ? 0xff : 0;
14480 	m68k_write_memory_8(srca,val);
14481 }}}m68k_incpc(6);
14482 return 20;
14483 }
CPUFUNC(op_5cc0_4)14484 unsigned long CPUFUNC(op_5cc0_4)(uint32_t opcode) /* Scc */
14485 {
14486 	uint32_t srcreg = (opcode & 7);
14487 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14488 {{{	int val = cctrue(12) ? 0xff : 0;
14489 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14490 	if (val) { m68k_incpc(2) ; return 4+2; }
14491 }}}m68k_incpc(2);
14492 return 4;
14493 }
CPUFUNC(op_5cc8_4)14494 unsigned long CPUFUNC(op_5cc8_4)(uint32_t opcode) /* DBcc */
14495 {
14496 	uint32_t srcreg = (opcode & 7);
14497 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14498 {{	int16_t src = m68k_dreg(regs, srcreg);
14499 {	int16_t offs = get_iword(2);
14500 	if (!cctrue(12)) {
14501 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14502 		if (src) {
14503 			m68k_incpc((int32_t)offs + 2);
14504 			return 10;
14505 		} else {
14506 			m68k_incpc(4);
14507 			return 14;
14508 		}
14509 	}
14510 }}}m68k_incpc(4);
14511 #if 0
14512 endlabel976: ;
14513 #endif
14514 return 12;
14515 }
CPUFUNC(op_5cd0_4)14516 unsigned long CPUFUNC(op_5cd0_4)(uint32_t opcode) /* Scc */
14517 {
14518 	uint32_t srcreg = (opcode & 7);
14519 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14520 {{	uint32_t srca = m68k_areg(regs, srcreg);
14521 {	int val = cctrue(12) ? 0xff : 0;
14522 	m68k_write_memory_8(srca,val);
14523 }}}m68k_incpc(2);
14524 return 12;
14525 }
CPUFUNC(op_5cd8_4)14526 unsigned long CPUFUNC(op_5cd8_4)(uint32_t opcode) /* Scc */
14527 {
14528 	uint32_t srcreg = (opcode & 7);
14529 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14530 {{	uint32_t srca = m68k_areg(regs, srcreg);
14531 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14532 {	int val = cctrue(12) ? 0xff : 0;
14533 	m68k_write_memory_8(srca,val);
14534 }}}m68k_incpc(2);
14535 return 12;
14536 }
CPUFUNC(op_5ce0_4)14537 unsigned long CPUFUNC(op_5ce0_4)(uint32_t opcode) /* Scc */
14538 {
14539 	uint32_t srcreg = (opcode & 7);
14540 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14541 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14542 	m68k_areg (regs, srcreg) = srca;
14543 {	int val = cctrue(12) ? 0xff : 0;
14544 	m68k_write_memory_8(srca,val);
14545 }}}m68k_incpc(2);
14546 return 14;
14547 }
CPUFUNC(op_5ce8_4)14548 unsigned long CPUFUNC(op_5ce8_4)(uint32_t opcode) /* Scc */
14549 {
14550 	uint32_t srcreg = (opcode & 7);
14551 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14552 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14553 {	int val = cctrue(12) ? 0xff : 0;
14554 	m68k_write_memory_8(srca,val);
14555 }}}m68k_incpc(4);
14556 return 16;
14557 }
CPUFUNC(op_5cf0_4)14558 unsigned long CPUFUNC(op_5cf0_4)(uint32_t opcode) /* Scc */
14559 {
14560 	uint32_t srcreg = (opcode & 7);
14561 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14562 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14563 	BusCyclePenalty += 2;
14564 {	int val = cctrue(12) ? 0xff : 0;
14565 	m68k_write_memory_8(srca,val);
14566 }}}m68k_incpc(4);
14567 return 18;
14568 }
CPUFUNC(op_5cf8_4)14569 unsigned long CPUFUNC(op_5cf8_4)(uint32_t opcode) /* Scc */
14570 {
14571 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14572 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14573 {	int val = cctrue(12) ? 0xff : 0;
14574 	m68k_write_memory_8(srca,val);
14575 }}}m68k_incpc(4);
14576 return 16;
14577 }
CPUFUNC(op_5cf9_4)14578 unsigned long CPUFUNC(op_5cf9_4)(uint32_t opcode) /* Scc */
14579 {
14580 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14581 {{	uint32_t srca = get_ilong(2);
14582 {	int val = cctrue(12) ? 0xff : 0;
14583 	m68k_write_memory_8(srca,val);
14584 }}}m68k_incpc(6);
14585 return 20;
14586 }
CPUFUNC(op_5dc0_4)14587 unsigned long CPUFUNC(op_5dc0_4)(uint32_t opcode) /* Scc */
14588 {
14589 	uint32_t srcreg = (opcode & 7);
14590 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14591 {{{	int val = cctrue(13) ? 0xff : 0;
14592 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14593 	if (val) { m68k_incpc(2) ; return 4+2; }
14594 }}}m68k_incpc(2);
14595 return 4;
14596 }
CPUFUNC(op_5dc8_4)14597 unsigned long CPUFUNC(op_5dc8_4)(uint32_t opcode) /* DBcc */
14598 {
14599 	uint32_t srcreg = (opcode & 7);
14600 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14601 {{	int16_t src = m68k_dreg(regs, srcreg);
14602 {	int16_t offs = get_iword(2);
14603 	if (!cctrue(13)) {
14604 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14605 		if (src) {
14606 			m68k_incpc((int32_t)offs + 2);
14607 			return 10;
14608 		} else {
14609 			m68k_incpc(4);
14610 			return 14;
14611 		}
14612 	}
14613 }}}m68k_incpc(4);
14614 #if 0
14615 endlabel985: ;
14616 #endif
14617 return 12;
14618 }
CPUFUNC(op_5dd0_4)14619 unsigned long CPUFUNC(op_5dd0_4)(uint32_t opcode) /* Scc */
14620 {
14621 	uint32_t srcreg = (opcode & 7);
14622 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14623 {{	uint32_t srca = m68k_areg(regs, srcreg);
14624 {	int val = cctrue(13) ? 0xff : 0;
14625 	m68k_write_memory_8(srca,val);
14626 }}}m68k_incpc(2);
14627 return 12;
14628 }
CPUFUNC(op_5dd8_4)14629 unsigned long CPUFUNC(op_5dd8_4)(uint32_t opcode) /* Scc */
14630 {
14631 	uint32_t srcreg = (opcode & 7);
14632 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14633 {{	uint32_t srca = m68k_areg(regs, srcreg);
14634 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14635 {	int val = cctrue(13) ? 0xff : 0;
14636 	m68k_write_memory_8(srca,val);
14637 }}}m68k_incpc(2);
14638 return 12;
14639 }
CPUFUNC(op_5de0_4)14640 unsigned long CPUFUNC(op_5de0_4)(uint32_t opcode) /* Scc */
14641 {
14642 	uint32_t srcreg = (opcode & 7);
14643 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14644 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14645 	m68k_areg (regs, srcreg) = srca;
14646 {	int val = cctrue(13) ? 0xff : 0;
14647 	m68k_write_memory_8(srca,val);
14648 }}}m68k_incpc(2);
14649 return 14;
14650 }
CPUFUNC(op_5de8_4)14651 unsigned long CPUFUNC(op_5de8_4)(uint32_t opcode) /* Scc */
14652 {
14653 	uint32_t srcreg = (opcode & 7);
14654 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14655 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14656 {	int val = cctrue(13) ? 0xff : 0;
14657 	m68k_write_memory_8(srca,val);
14658 }}}m68k_incpc(4);
14659 return 16;
14660 }
CPUFUNC(op_5df0_4)14661 unsigned long CPUFUNC(op_5df0_4)(uint32_t opcode) /* Scc */
14662 {
14663 	uint32_t srcreg = (opcode & 7);
14664 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14665 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14666 	BusCyclePenalty += 2;
14667 {	int val = cctrue(13) ? 0xff : 0;
14668 	m68k_write_memory_8(srca,val);
14669 }}}m68k_incpc(4);
14670 return 18;
14671 }
CPUFUNC(op_5df8_4)14672 unsigned long CPUFUNC(op_5df8_4)(uint32_t opcode) /* Scc */
14673 {
14674 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14675 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14676 {	int val = cctrue(13) ? 0xff : 0;
14677 	m68k_write_memory_8(srca,val);
14678 }}}m68k_incpc(4);
14679 return 16;
14680 }
CPUFUNC(op_5df9_4)14681 unsigned long CPUFUNC(op_5df9_4)(uint32_t opcode) /* Scc */
14682 {
14683 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14684 {{	uint32_t srca = get_ilong(2);
14685 {	int val = cctrue(13) ? 0xff : 0;
14686 	m68k_write_memory_8(srca,val);
14687 }}}m68k_incpc(6);
14688 return 20;
14689 }
CPUFUNC(op_5ec0_4)14690 unsigned long CPUFUNC(op_5ec0_4)(uint32_t opcode) /* Scc */
14691 {
14692 	uint32_t srcreg = (opcode & 7);
14693 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14694 {{{	int val = cctrue(14) ? 0xff : 0;
14695 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14696 	if (val) { m68k_incpc(2) ; return 4+2; }
14697 }}}m68k_incpc(2);
14698 return 4;
14699 }
CPUFUNC(op_5ec8_4)14700 unsigned long CPUFUNC(op_5ec8_4)(uint32_t opcode) /* DBcc */
14701 {
14702 	uint32_t srcreg = (opcode & 7);
14703 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14704 {{	int16_t src = m68k_dreg(regs, srcreg);
14705 {	int16_t offs = get_iword(2);
14706 	if (!cctrue(14)) {
14707 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14708 		if (src) {
14709 			m68k_incpc((int32_t)offs + 2);
14710 			return 10;
14711 		} else {
14712 			m68k_incpc(4);
14713 			return 14;
14714 		}
14715 	}
14716 }}}m68k_incpc(4);
14717 #if 0
14718 endlabel994: ;
14719 #endif
14720 return 12;
14721 }
CPUFUNC(op_5ed0_4)14722 unsigned long CPUFUNC(op_5ed0_4)(uint32_t opcode) /* Scc */
14723 {
14724 	uint32_t srcreg = (opcode & 7);
14725 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14726 {{	uint32_t srca = m68k_areg(regs, srcreg);
14727 {	int val = cctrue(14) ? 0xff : 0;
14728 	m68k_write_memory_8(srca,val);
14729 }}}m68k_incpc(2);
14730 return 12;
14731 }
CPUFUNC(op_5ed8_4)14732 unsigned long CPUFUNC(op_5ed8_4)(uint32_t opcode) /* Scc */
14733 {
14734 	uint32_t srcreg = (opcode & 7);
14735 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14736 {{	uint32_t srca = m68k_areg(regs, srcreg);
14737 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14738 {	int val = cctrue(14) ? 0xff : 0;
14739 	m68k_write_memory_8(srca,val);
14740 }}}m68k_incpc(2);
14741 return 12;
14742 }
CPUFUNC(op_5ee0_4)14743 unsigned long CPUFUNC(op_5ee0_4)(uint32_t opcode) /* Scc */
14744 {
14745 	uint32_t srcreg = (opcode & 7);
14746 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14747 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14748 	m68k_areg (regs, srcreg) = srca;
14749 {	int val = cctrue(14) ? 0xff : 0;
14750 	m68k_write_memory_8(srca,val);
14751 }}}m68k_incpc(2);
14752 return 14;
14753 }
CPUFUNC(op_5ee8_4)14754 unsigned long CPUFUNC(op_5ee8_4)(uint32_t opcode) /* Scc */
14755 {
14756 	uint32_t srcreg = (opcode & 7);
14757 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14758 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14759 {	int val = cctrue(14) ? 0xff : 0;
14760 	m68k_write_memory_8(srca,val);
14761 }}}m68k_incpc(4);
14762 return 16;
14763 }
CPUFUNC(op_5ef0_4)14764 unsigned long CPUFUNC(op_5ef0_4)(uint32_t opcode) /* Scc */
14765 {
14766 	uint32_t srcreg = (opcode & 7);
14767 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14768 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14769 	BusCyclePenalty += 2;
14770 {	int val = cctrue(14) ? 0xff : 0;
14771 	m68k_write_memory_8(srca,val);
14772 }}}m68k_incpc(4);
14773 return 18;
14774 }
CPUFUNC(op_5ef8_4)14775 unsigned long CPUFUNC(op_5ef8_4)(uint32_t opcode) /* Scc */
14776 {
14777 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14778 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14779 {	int val = cctrue(14) ? 0xff : 0;
14780 	m68k_write_memory_8(srca,val);
14781 }}}m68k_incpc(4);
14782 return 16;
14783 }
CPUFUNC(op_5ef9_4)14784 unsigned long CPUFUNC(op_5ef9_4)(uint32_t opcode) /* Scc */
14785 {
14786 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14787 {{	uint32_t srca = get_ilong(2);
14788 {	int val = cctrue(14) ? 0xff : 0;
14789 	m68k_write_memory_8(srca,val);
14790 }}}m68k_incpc(6);
14791 return 20;
14792 }
CPUFUNC(op_5fc0_4)14793 unsigned long CPUFUNC(op_5fc0_4)(uint32_t opcode) /* Scc */
14794 {
14795 	uint32_t srcreg = (opcode & 7);
14796 	OpcodeFamily = 59; CurrentInstrCycles = 4;
14797 {{{	int val = cctrue(15) ? 0xff : 0;
14798 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
14799 	if (val) { m68k_incpc(2) ; return 4+2; }
14800 }}}m68k_incpc(2);
14801 return 4;
14802 }
CPUFUNC(op_5fc8_4)14803 unsigned long CPUFUNC(op_5fc8_4)(uint32_t opcode) /* DBcc */
14804 {
14805 	uint32_t srcreg = (opcode & 7);
14806 	OpcodeFamily = 58; CurrentInstrCycles = 12;
14807 {{	int16_t src = m68k_dreg(regs, srcreg);
14808 {	int16_t offs = get_iword(2);
14809 	if (!cctrue(15)) {
14810 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
14811 		if (src) {
14812 			m68k_incpc((int32_t)offs + 2);
14813 			return 10;
14814 		} else {
14815 			m68k_incpc(4);
14816 			return 14;
14817 		}
14818 	}
14819 }}}m68k_incpc(4);
14820 #if 0
14821 endlabel1003: ;
14822 #endif
14823 return 12;
14824 }
CPUFUNC(op_5fd0_4)14825 unsigned long CPUFUNC(op_5fd0_4)(uint32_t opcode) /* Scc */
14826 {
14827 	uint32_t srcreg = (opcode & 7);
14828 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14829 {{	uint32_t srca = m68k_areg(regs, srcreg);
14830 {	int val = cctrue(15) ? 0xff : 0;
14831 	m68k_write_memory_8(srca,val);
14832 }}}m68k_incpc(2);
14833 return 12;
14834 }
CPUFUNC(op_5fd8_4)14835 unsigned long CPUFUNC(op_5fd8_4)(uint32_t opcode) /* Scc */
14836 {
14837 	uint32_t srcreg = (opcode & 7);
14838 	OpcodeFamily = 59; CurrentInstrCycles = 12;
14839 {{	uint32_t srca = m68k_areg(regs, srcreg);
14840 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
14841 {	int val = cctrue(15) ? 0xff : 0;
14842 	m68k_write_memory_8(srca,val);
14843 }}}m68k_incpc(2);
14844 return 12;
14845 }
CPUFUNC(op_5fe0_4)14846 unsigned long CPUFUNC(op_5fe0_4)(uint32_t opcode) /* Scc */
14847 {
14848 	uint32_t srcreg = (opcode & 7);
14849 	OpcodeFamily = 59; CurrentInstrCycles = 14;
14850 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
14851 	m68k_areg (regs, srcreg) = srca;
14852 {	int val = cctrue(15) ? 0xff : 0;
14853 	m68k_write_memory_8(srca,val);
14854 }}}m68k_incpc(2);
14855 return 14;
14856 }
14857 #endif
14858 
14859 #ifdef PART_6
CPUFUNC(op_5fe8_4)14860 unsigned long CPUFUNC(op_5fe8_4)(uint32_t opcode) /* Scc */
14861 {
14862 	uint32_t srcreg = (opcode & 7);
14863 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14864 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
14865 {	int val = cctrue(15) ? 0xff : 0;
14866 	m68k_write_memory_8(srca,val);
14867 }}}m68k_incpc(4);
14868 return 16;
14869 }
CPUFUNC(op_5ff0_4)14870 unsigned long CPUFUNC(op_5ff0_4)(uint32_t opcode) /* Scc */
14871 {
14872 	uint32_t srcreg = (opcode & 7);
14873 	OpcodeFamily = 59; CurrentInstrCycles = 18;
14874 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
14875 	BusCyclePenalty += 2;
14876 {	int val = cctrue(15) ? 0xff : 0;
14877 	m68k_write_memory_8(srca,val);
14878 }}}m68k_incpc(4);
14879 return 18;
14880 }
CPUFUNC(op_5ff8_4)14881 unsigned long CPUFUNC(op_5ff8_4)(uint32_t opcode) /* Scc */
14882 {
14883 	OpcodeFamily = 59; CurrentInstrCycles = 16;
14884 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
14885 {	int val = cctrue(15) ? 0xff : 0;
14886 	m68k_write_memory_8(srca,val);
14887 }}}m68k_incpc(4);
14888 return 16;
14889 }
CPUFUNC(op_5ff9_4)14890 unsigned long CPUFUNC(op_5ff9_4)(uint32_t opcode) /* Scc */
14891 {
14892 	OpcodeFamily = 59; CurrentInstrCycles = 20;
14893 {{	uint32_t srca = get_ilong(2);
14894 {	int val = cctrue(15) ? 0xff : 0;
14895 	m68k_write_memory_8(srca,val);
14896 }}}m68k_incpc(6);
14897 return 20;
14898 }
CPUFUNC(op_6000_4)14899 unsigned long CPUFUNC(op_6000_4)(uint32_t opcode) /* Bcc */
14900 {
14901 	OpcodeFamily = 55; CurrentInstrCycles = 12;
14902 {{	int16_t src = get_iword(2);
14903 	if (!cctrue(0)) goto didnt_jump;
14904 	m68k_incpc ((int32_t)src + 2);
14905 	return 10;
14906 didnt_jump:;
14907 }}m68k_incpc(4);
14908 #if 0
14909 endlabel1011: ;
14910 #endif
14911 return 12;
14912 }
CPUFUNC(op_6001_4)14913 unsigned long CPUFUNC(op_6001_4)(uint32_t opcode) /* Bcc */
14914 {
14915 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
14916 	OpcodeFamily = 55; CurrentInstrCycles = 8;
14917 {{	uint32_t src = srcreg;
14918 	if (!cctrue(0)) goto didnt_jump;
14919 	m68k_incpc ((int32_t)src + 2);
14920 	return 10;
14921 didnt_jump:;
14922 }}m68k_incpc(2);
14923 #if 0
14924 endlabel1012: ;
14925 #endif
14926 return 8;
14927 }
CPUFUNC(op_60ff_4)14928 unsigned long CPUFUNC(op_60ff_4)(uint32_t opcode) /* Bcc */
14929 {
14930 	OpcodeFamily = 55; CurrentInstrCycles = 12;
14931 {	m68k_incpc(2);
14932 	if (!cctrue(0)) goto endlabel1013;
14933 		last_addr_for_exception_3 = m68k_getpc() + 2;
14934 		last_fault_for_exception_3 = m68k_getpc() + 1;
14935 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1013;
14936 {	int32_t src = get_ilong(2);
14937 	if (!cctrue(0)) goto didnt_jump;
14938 	m68k_incpc ((int32_t)src + 2);
14939 	return 10;
14940 didnt_jump:;
14941 }}m68k_incpc(6);
14942 endlabel1013: ;
14943 return 12;
14944 }
CPUFUNC(op_6100_4)14945 unsigned long CPUFUNC(op_6100_4)(uint32_t opcode) /* BSR */
14946 {
14947 	OpcodeFamily = 54; CurrentInstrCycles = 18;
14948 {{	int16_t src = get_iword(2);
14949 	int32_t s = (int32_t)src + 2;
14950 	m68k_do_bsr(m68k_getpc() + 4, s);
14951 }}return 18;
14952 }
CPUFUNC(op_6101_4)14953 unsigned long CPUFUNC(op_6101_4)(uint32_t opcode) /* BSR */
14954 {
14955 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
14956 	OpcodeFamily = 54; CurrentInstrCycles = 18;
14957 {{	uint32_t src = srcreg;
14958 	int32_t s = (int32_t)src + 2;
14959 	m68k_do_bsr(m68k_getpc() + 2, s);
14960 }}return 18;
14961 }
CPUFUNC(op_61ff_4)14962 unsigned long CPUFUNC(op_61ff_4)(uint32_t opcode) /* BSR */
14963 {
14964 	OpcodeFamily = 54; CurrentInstrCycles = 18;
14965 {{	int32_t src = get_ilong(2);
14966 	int32_t s = (int32_t)src + 2;
14967 	m68k_do_bsr(m68k_getpc() + 6, s);
14968 }}return 18;
14969 }
CPUFUNC(op_6200_4)14970 unsigned long CPUFUNC(op_6200_4)(uint32_t opcode) /* Bcc */
14971 {
14972 	OpcodeFamily = 55; CurrentInstrCycles = 12;
14973 {{	int16_t src = get_iword(2);
14974 	if (!cctrue(2)) goto didnt_jump;
14975 	m68k_incpc ((int32_t)src + 2);
14976 	return 10;
14977 didnt_jump:;
14978 }}m68k_incpc(4);
14979 #if 0
14980 endlabel1017: ;
14981 #endif
14982 return 12;
14983 }
CPUFUNC(op_6201_4)14984 unsigned long CPUFUNC(op_6201_4)(uint32_t opcode) /* Bcc */
14985 {
14986 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
14987 	OpcodeFamily = 55; CurrentInstrCycles = 8;
14988 {{	uint32_t src = srcreg;
14989 	if (!cctrue(2)) goto didnt_jump;
14990 	m68k_incpc ((int32_t)src + 2);
14991 	return 10;
14992 didnt_jump:;
14993 }}m68k_incpc(2);
14994 #if 0
14995 endlabel1018: ;
14996 #endif
14997 return 8;
14998 }
CPUFUNC(op_62ff_4)14999 unsigned long CPUFUNC(op_62ff_4)(uint32_t opcode) /* Bcc */
15000 {
15001 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15002 {	m68k_incpc(2);
15003 	if (!cctrue(2)) goto endlabel1019;
15004 		last_addr_for_exception_3 = m68k_getpc() + 2;
15005 		last_fault_for_exception_3 = m68k_getpc() + 1;
15006 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1019;
15007 {	int32_t src = get_ilong(2);
15008 	if (!cctrue(2)) goto didnt_jump;
15009 	m68k_incpc ((int32_t)src + 2);
15010 	return 10;
15011 didnt_jump:;
15012 }}m68k_incpc(6);
15013 endlabel1019: ;
15014 return 12;
15015 }
CPUFUNC(op_6300_4)15016 unsigned long CPUFUNC(op_6300_4)(uint32_t opcode) /* Bcc */
15017 {
15018 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15019 {{	int16_t src = get_iword(2);
15020 	if (!cctrue(3)) goto didnt_jump;
15021 	m68k_incpc ((int32_t)src + 2);
15022 	return 10;
15023 didnt_jump:;
15024 }}m68k_incpc(4);
15025 #if 0
15026 endlabel1020: ;
15027 #endif
15028 return 12;
15029 }
CPUFUNC(op_6301_4)15030 unsigned long CPUFUNC(op_6301_4)(uint32_t opcode) /* Bcc */
15031 {
15032 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15033 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15034 {{	uint32_t src = srcreg;
15035 	if (!cctrue(3)) goto didnt_jump;
15036 	m68k_incpc ((int32_t)src + 2);
15037 	return 10;
15038 didnt_jump:;
15039 }}m68k_incpc(2);
15040 #if 0
15041 endlabel1021: ;
15042 #endif
15043 return 8;
15044 }
CPUFUNC(op_63ff_4)15045 unsigned long CPUFUNC(op_63ff_4)(uint32_t opcode) /* Bcc */
15046 {
15047 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15048 {	m68k_incpc(2);
15049 	if (!cctrue(3)) goto endlabel1022;
15050 		last_addr_for_exception_3 = m68k_getpc() + 2;
15051 		last_fault_for_exception_3 = m68k_getpc() + 1;
15052 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1022;
15053 {	int32_t src = get_ilong(2);
15054 	if (!cctrue(3)) goto didnt_jump;
15055 	m68k_incpc ((int32_t)src + 2);
15056 	return 10;
15057 didnt_jump:;
15058 }}m68k_incpc(6);
15059 endlabel1022: ;
15060 return 12;
15061 }
CPUFUNC(op_6400_4)15062 unsigned long CPUFUNC(op_6400_4)(uint32_t opcode) /* Bcc */
15063 {
15064 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15065 {{	int16_t src = get_iword(2);
15066 	if (!cctrue(4)) goto didnt_jump;
15067 	m68k_incpc ((int32_t)src + 2);
15068 	return 10;
15069 didnt_jump:;
15070 }}m68k_incpc(4);
15071 #if 0
15072 endlabel1023: ;
15073 #endif
15074 return 12;
15075 }
CPUFUNC(op_6401_4)15076 unsigned long CPUFUNC(op_6401_4)(uint32_t opcode) /* Bcc */
15077 {
15078 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15079 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15080 {{	uint32_t src = srcreg;
15081 	if (!cctrue(4)) goto didnt_jump;
15082 	m68k_incpc ((int32_t)src + 2);
15083 	return 10;
15084 didnt_jump:;
15085 }}m68k_incpc(2);
15086 #if 0
15087 endlabel1024: ;
15088 #endif
15089 return 8;
15090 }
CPUFUNC(op_64ff_4)15091 unsigned long CPUFUNC(op_64ff_4)(uint32_t opcode) /* Bcc */
15092 {
15093 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15094 {	m68k_incpc(2);
15095 	if (!cctrue(4)) goto endlabel1025;
15096 		last_addr_for_exception_3 = m68k_getpc() + 2;
15097 		last_fault_for_exception_3 = m68k_getpc() + 1;
15098 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1025;
15099 {	int32_t src = get_ilong(2);
15100 	if (!cctrue(4)) goto didnt_jump;
15101 	m68k_incpc ((int32_t)src + 2);
15102 	return 10;
15103 didnt_jump:;
15104 }}m68k_incpc(6);
15105 endlabel1025: ;
15106 return 12;
15107 }
CPUFUNC(op_6500_4)15108 unsigned long CPUFUNC(op_6500_4)(uint32_t opcode) /* Bcc */
15109 {
15110 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15111 {{	int16_t src = get_iword(2);
15112 	if (!cctrue(5)) goto didnt_jump;
15113 	m68k_incpc ((int32_t)src + 2);
15114 	return 10;
15115 didnt_jump:;
15116 }}m68k_incpc(4);
15117 #if 0
15118 endlabel1026: ;
15119 #endif
15120 return 12;
15121 }
CPUFUNC(op_6501_4)15122 unsigned long CPUFUNC(op_6501_4)(uint32_t opcode) /* Bcc */
15123 {
15124 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15125 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15126 {{	uint32_t src = srcreg;
15127 	if (!cctrue(5)) goto didnt_jump;
15128 	m68k_incpc ((int32_t)src + 2);
15129 	return 10;
15130 didnt_jump:;
15131 }}m68k_incpc(2);
15132 #if 0
15133 endlabel1027: ;
15134 #endif
15135 return 8;
15136 }
CPUFUNC(op_65ff_4)15137 unsigned long CPUFUNC(op_65ff_4)(uint32_t opcode) /* Bcc */
15138 {
15139 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15140 {	m68k_incpc(2);
15141 	if (!cctrue(5)) goto endlabel1028;
15142 		last_addr_for_exception_3 = m68k_getpc() + 2;
15143 		last_fault_for_exception_3 = m68k_getpc() + 1;
15144 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1028;
15145 {	int32_t src = get_ilong(2);
15146 	if (!cctrue(5)) goto didnt_jump;
15147 	m68k_incpc ((int32_t)src + 2);
15148 	return 10;
15149 didnt_jump:;
15150 }}m68k_incpc(6);
15151 endlabel1028: ;
15152 return 12;
15153 }
CPUFUNC(op_6600_4)15154 unsigned long CPUFUNC(op_6600_4)(uint32_t opcode) /* Bcc */
15155 {
15156 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15157 {{	int16_t src = get_iword(2);
15158 	if (!cctrue(6)) goto didnt_jump;
15159 	m68k_incpc ((int32_t)src + 2);
15160 	return 10;
15161 didnt_jump:;
15162 }}m68k_incpc(4);
15163 #if 0
15164 endlabel1029: ;
15165 #endif
15166 return 12;
15167 }
CPUFUNC(op_6601_4)15168 unsigned long CPUFUNC(op_6601_4)(uint32_t opcode) /* Bcc */
15169 {
15170 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15171 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15172 {{	uint32_t src = srcreg;
15173 	if (!cctrue(6)) goto didnt_jump;
15174 	m68k_incpc ((int32_t)src + 2);
15175 	return 10;
15176 didnt_jump:;
15177 }}m68k_incpc(2);
15178 #if 0
15179 endlabel1030: ;
15180 #endif
15181 return 8;
15182 }
CPUFUNC(op_66ff_4)15183 unsigned long CPUFUNC(op_66ff_4)(uint32_t opcode) /* Bcc */
15184 {
15185 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15186 {	m68k_incpc(2);
15187 	if (!cctrue(6)) goto endlabel1031;
15188 		last_addr_for_exception_3 = m68k_getpc() + 2;
15189 		last_fault_for_exception_3 = m68k_getpc() + 1;
15190 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1031;
15191 {	int32_t src = get_ilong(2);
15192 	if (!cctrue(6)) goto didnt_jump;
15193 	m68k_incpc ((int32_t)src + 2);
15194 	return 10;
15195 didnt_jump:;
15196 }}m68k_incpc(6);
15197 endlabel1031: ;
15198 return 12;
15199 }
CPUFUNC(op_6700_4)15200 unsigned long CPUFUNC(op_6700_4)(uint32_t opcode) /* Bcc */
15201 {
15202 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15203 {{	int16_t src = get_iword(2);
15204 	if (!cctrue(7)) goto didnt_jump;
15205 	m68k_incpc ((int32_t)src + 2);
15206 	return 10;
15207 didnt_jump:;
15208 }}m68k_incpc(4);
15209 #if 0
15210 endlabel1032: ;
15211 #endif
15212 return 12;
15213 }
CPUFUNC(op_6701_4)15214 unsigned long CPUFUNC(op_6701_4)(uint32_t opcode) /* Bcc */
15215 {
15216 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15217 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15218 {{	uint32_t src = srcreg;
15219 	if (!cctrue(7)) goto didnt_jump;
15220 	m68k_incpc ((int32_t)src + 2);
15221 	return 10;
15222 didnt_jump:;
15223 }}m68k_incpc(2);
15224 #if 0
15225 endlabel1033: ;
15226 #endif
15227 return 8;
15228 }
CPUFUNC(op_67ff_4)15229 unsigned long CPUFUNC(op_67ff_4)(uint32_t opcode) /* Bcc */
15230 {
15231 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15232 {	m68k_incpc(2);
15233 	if (!cctrue(7)) goto endlabel1034;
15234 		last_addr_for_exception_3 = m68k_getpc() + 2;
15235 		last_fault_for_exception_3 = m68k_getpc() + 1;
15236 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1034;
15237 {	int32_t src = get_ilong(2);
15238 	if (!cctrue(7)) goto didnt_jump;
15239 	m68k_incpc ((int32_t)src + 2);
15240 	return 10;
15241 didnt_jump:;
15242 }}m68k_incpc(6);
15243 endlabel1034: ;
15244 return 12;
15245 }
CPUFUNC(op_6800_4)15246 unsigned long CPUFUNC(op_6800_4)(uint32_t opcode) /* Bcc */
15247 {
15248 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15249 {{	int16_t src = get_iword(2);
15250 	if (!cctrue(8)) goto didnt_jump;
15251 	m68k_incpc ((int32_t)src + 2);
15252 	return 10;
15253 didnt_jump:;
15254 }}m68k_incpc(4);
15255 #if 0
15256 endlabel1035: ;
15257 #endif
15258 return 12;
15259 }
CPUFUNC(op_6801_4)15260 unsigned long CPUFUNC(op_6801_4)(uint32_t opcode) /* Bcc */
15261 {
15262 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15263 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15264 {{	uint32_t src = srcreg;
15265 	if (!cctrue(8)) goto didnt_jump;
15266 	m68k_incpc ((int32_t)src + 2);
15267 	return 10;
15268 didnt_jump:;
15269 }}m68k_incpc(2);
15270 #if 0
15271 endlabel1036: ;
15272 #endif
15273 return 8;
15274 }
CPUFUNC(op_68ff_4)15275 unsigned long CPUFUNC(op_68ff_4)(uint32_t opcode) /* Bcc */
15276 {
15277 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15278 {	m68k_incpc(2);
15279 	if (!cctrue(8)) goto endlabel1037;
15280 		last_addr_for_exception_3 = m68k_getpc() + 2;
15281 		last_fault_for_exception_3 = m68k_getpc() + 1;
15282 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1037;
15283 {	int32_t src = get_ilong(2);
15284 	if (!cctrue(8)) goto didnt_jump;
15285 	m68k_incpc ((int32_t)src + 2);
15286 	return 10;
15287 didnt_jump:;
15288 }}m68k_incpc(6);
15289 endlabel1037: ;
15290 return 12;
15291 }
CPUFUNC(op_6900_4)15292 unsigned long CPUFUNC(op_6900_4)(uint32_t opcode) /* Bcc */
15293 {
15294 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15295 {{	int16_t src = get_iword(2);
15296 	if (!cctrue(9)) goto didnt_jump;
15297 	m68k_incpc ((int32_t)src + 2);
15298 	return 10;
15299 didnt_jump:;
15300 }}m68k_incpc(4);
15301 #if 0
15302 endlabel1038: ;
15303 #endif
15304 return 12;
15305 }
CPUFUNC(op_6901_4)15306 unsigned long CPUFUNC(op_6901_4)(uint32_t opcode) /* Bcc */
15307 {
15308 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15309 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15310 {{	uint32_t src = srcreg;
15311 	if (!cctrue(9)) goto didnt_jump;
15312 	m68k_incpc ((int32_t)src + 2);
15313 	return 10;
15314 didnt_jump:;
15315 }}m68k_incpc(2);
15316 #if 0
15317 endlabel1039: ;
15318 #endif
15319 return 8;
15320 }
CPUFUNC(op_69ff_4)15321 unsigned long CPUFUNC(op_69ff_4)(uint32_t opcode) /* Bcc */
15322 {
15323 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15324 {	m68k_incpc(2);
15325 	if (!cctrue(9)) goto endlabel1040;
15326 		last_addr_for_exception_3 = m68k_getpc() + 2;
15327 		last_fault_for_exception_3 = m68k_getpc() + 1;
15328 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1040;
15329 {	int32_t src = get_ilong(2);
15330 	if (!cctrue(9)) goto didnt_jump;
15331 	m68k_incpc ((int32_t)src + 2);
15332 	return 10;
15333 didnt_jump:;
15334 }}m68k_incpc(6);
15335 endlabel1040: ;
15336 return 12;
15337 }
CPUFUNC(op_6a00_4)15338 unsigned long CPUFUNC(op_6a00_4)(uint32_t opcode) /* Bcc */
15339 {
15340 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15341 {{	int16_t src = get_iword(2);
15342 	if (!cctrue(10)) goto didnt_jump;
15343 	m68k_incpc ((int32_t)src + 2);
15344 	return 10;
15345 didnt_jump:;
15346 }}m68k_incpc(4);
15347 #if 0
15348 endlabel1041: ;
15349 #endif
15350 return 12;
15351 }
CPUFUNC(op_6a01_4)15352 unsigned long CPUFUNC(op_6a01_4)(uint32_t opcode) /* Bcc */
15353 {
15354 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15355 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15356 {{	uint32_t src = srcreg;
15357 	if (!cctrue(10)) goto didnt_jump;
15358 	m68k_incpc ((int32_t)src + 2);
15359 	return 10;
15360 didnt_jump:;
15361 }}m68k_incpc(2);
15362 #if 0
15363 endlabel1042: ;
15364 #endif
15365 return 8;
15366 }
CPUFUNC(op_6aff_4)15367 unsigned long CPUFUNC(op_6aff_4)(uint32_t opcode) /* Bcc */
15368 {
15369 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15370 {	m68k_incpc(2);
15371 	if (!cctrue(10)) goto endlabel1043;
15372 		last_addr_for_exception_3 = m68k_getpc() + 2;
15373 		last_fault_for_exception_3 = m68k_getpc() + 1;
15374 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1043;
15375 {	int32_t src = get_ilong(2);
15376 	if (!cctrue(10)) goto didnt_jump;
15377 	m68k_incpc ((int32_t)src + 2);
15378 	return 10;
15379 didnt_jump:;
15380 }}m68k_incpc(6);
15381 endlabel1043: ;
15382 return 12;
15383 }
CPUFUNC(op_6b00_4)15384 unsigned long CPUFUNC(op_6b00_4)(uint32_t opcode) /* Bcc */
15385 {
15386 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15387 {{	int16_t src = get_iword(2);
15388 	if (!cctrue(11)) goto didnt_jump;
15389 	m68k_incpc ((int32_t)src + 2);
15390 	return 10;
15391 didnt_jump:;
15392 }}m68k_incpc(4);
15393 #if 0
15394 endlabel1044: ;
15395 #endif
15396 return 12;
15397 }
CPUFUNC(op_6b01_4)15398 unsigned long CPUFUNC(op_6b01_4)(uint32_t opcode) /* Bcc */
15399 {
15400 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15401 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15402 {{	uint32_t src = srcreg;
15403 	if (!cctrue(11)) goto didnt_jump;
15404 	m68k_incpc ((int32_t)src + 2);
15405 	return 10;
15406 didnt_jump:;
15407 }}m68k_incpc(2);
15408 #if 0
15409 endlabel1045: ;
15410 #endif
15411 return 8;
15412 }
CPUFUNC(op_6bff_4)15413 unsigned long CPUFUNC(op_6bff_4)(uint32_t opcode) /* Bcc */
15414 {
15415 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15416 {	m68k_incpc(2);
15417 	if (!cctrue(11)) goto endlabel1046;
15418 		last_addr_for_exception_3 = m68k_getpc() + 2;
15419 		last_fault_for_exception_3 = m68k_getpc() + 1;
15420 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1046;
15421 {	int32_t src = get_ilong(2);
15422 	if (!cctrue(11)) goto didnt_jump;
15423 	m68k_incpc ((int32_t)src + 2);
15424 	return 10;
15425 didnt_jump:;
15426 }}m68k_incpc(6);
15427 endlabel1046: ;
15428 return 12;
15429 }
CPUFUNC(op_6c00_4)15430 unsigned long CPUFUNC(op_6c00_4)(uint32_t opcode) /* Bcc */
15431 {
15432 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15433 {{	int16_t src = get_iword(2);
15434 	if (!cctrue(12)) goto didnt_jump;
15435 	m68k_incpc ((int32_t)src + 2);
15436 	return 10;
15437 didnt_jump:;
15438 }}m68k_incpc(4);
15439 #if 0
15440 endlabel1047: ;
15441 #endif
15442 return 12;
15443 }
CPUFUNC(op_6c01_4)15444 unsigned long CPUFUNC(op_6c01_4)(uint32_t opcode) /* Bcc */
15445 {
15446 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15447 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15448 {{	uint32_t src = srcreg;
15449 	if (!cctrue(12)) goto didnt_jump;
15450 	m68k_incpc ((int32_t)src + 2);
15451 	return 10;
15452 didnt_jump:;
15453 }}m68k_incpc(2);
15454 #if 0
15455 endlabel1048: ;
15456 #endif
15457 return 8;
15458 }
CPUFUNC(op_6cff_4)15459 unsigned long CPUFUNC(op_6cff_4)(uint32_t opcode) /* Bcc */
15460 {
15461 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15462 {	m68k_incpc(2);
15463 	if (!cctrue(12)) goto endlabel1049;
15464 		last_addr_for_exception_3 = m68k_getpc() + 2;
15465 		last_fault_for_exception_3 = m68k_getpc() + 1;
15466 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1049;
15467 {	int32_t src = get_ilong(2);
15468 	if (!cctrue(12)) goto didnt_jump;
15469 	m68k_incpc ((int32_t)src + 2);
15470 	return 10;
15471 didnt_jump:;
15472 }}m68k_incpc(6);
15473 endlabel1049: ;
15474 return 12;
15475 }
CPUFUNC(op_6d00_4)15476 unsigned long CPUFUNC(op_6d00_4)(uint32_t opcode) /* Bcc */
15477 {
15478 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15479 {{	int16_t src = get_iword(2);
15480 	if (!cctrue(13)) goto didnt_jump;
15481 	m68k_incpc ((int32_t)src + 2);
15482 	return 10;
15483 didnt_jump:;
15484 }}m68k_incpc(4);
15485 #if 0
15486 endlabel1050: ;
15487 #endif
15488 return 12;
15489 }
CPUFUNC(op_6d01_4)15490 unsigned long CPUFUNC(op_6d01_4)(uint32_t opcode) /* Bcc */
15491 {
15492 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15493 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15494 {{	uint32_t src = srcreg;
15495 	if (!cctrue(13)) goto didnt_jump;
15496 	m68k_incpc ((int32_t)src + 2);
15497 	return 10;
15498 didnt_jump:;
15499 }}m68k_incpc(2);
15500 #if 0
15501 endlabel1051: ;
15502 #endif
15503 return 8;
15504 }
CPUFUNC(op_6dff_4)15505 unsigned long CPUFUNC(op_6dff_4)(uint32_t opcode) /* Bcc */
15506 {
15507 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15508 {	m68k_incpc(2);
15509 	if (!cctrue(13)) goto endlabel1052;
15510 		last_addr_for_exception_3 = m68k_getpc() + 2;
15511 		last_fault_for_exception_3 = m68k_getpc() + 1;
15512 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1052;
15513 {	int32_t src = get_ilong(2);
15514 	if (!cctrue(13)) goto didnt_jump;
15515 	m68k_incpc ((int32_t)src + 2);
15516 	return 10;
15517 didnt_jump:;
15518 }}m68k_incpc(6);
15519 endlabel1052: ;
15520 return 12;
15521 }
CPUFUNC(op_6e00_4)15522 unsigned long CPUFUNC(op_6e00_4)(uint32_t opcode) /* Bcc */
15523 {
15524 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15525 {{	int16_t src = get_iword(2);
15526 	if (!cctrue(14)) goto didnt_jump;
15527 	m68k_incpc ((int32_t)src + 2);
15528 	return 10;
15529 didnt_jump:;
15530 }}m68k_incpc(4);
15531 #if 0
15532 endlabel1053: ;
15533 #endif
15534 return 12;
15535 }
CPUFUNC(op_6e01_4)15536 unsigned long CPUFUNC(op_6e01_4)(uint32_t opcode) /* Bcc */
15537 {
15538 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15539 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15540 {{	uint32_t src = srcreg;
15541 	if (!cctrue(14)) goto didnt_jump;
15542 	m68k_incpc ((int32_t)src + 2);
15543 	return 10;
15544 didnt_jump:;
15545 }}m68k_incpc(2);
15546 #if 0
15547 endlabel1054: ;
15548 #endif
15549 return 8;
15550 }
CPUFUNC(op_6eff_4)15551 unsigned long CPUFUNC(op_6eff_4)(uint32_t opcode) /* Bcc */
15552 {
15553 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15554 {	m68k_incpc(2);
15555 	if (!cctrue(14)) goto endlabel1055;
15556 		last_addr_for_exception_3 = m68k_getpc() + 2;
15557 		last_fault_for_exception_3 = m68k_getpc() + 1;
15558 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1055;
15559 {	int32_t src = get_ilong(2);
15560 	if (!cctrue(14)) goto didnt_jump;
15561 	m68k_incpc ((int32_t)src + 2);
15562 	return 10;
15563 didnt_jump:;
15564 }}m68k_incpc(6);
15565 endlabel1055: ;
15566 return 12;
15567 }
CPUFUNC(op_6f00_4)15568 unsigned long CPUFUNC(op_6f00_4)(uint32_t opcode) /* Bcc */
15569 {
15570 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15571 {{	int16_t src = get_iword(2);
15572 	if (!cctrue(15)) goto didnt_jump;
15573 	m68k_incpc ((int32_t)src + 2);
15574 	return 10;
15575 didnt_jump:;
15576 }}m68k_incpc(4);
15577 #if 0
15578 endlabel1056: ;
15579 #endif
15580 return 12;
15581 }
CPUFUNC(op_6f01_4)15582 unsigned long CPUFUNC(op_6f01_4)(uint32_t opcode) /* Bcc */
15583 {
15584 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15585 	OpcodeFamily = 55; CurrentInstrCycles = 8;
15586 {{	uint32_t src = srcreg;
15587 	if (!cctrue(15)) goto didnt_jump;
15588 	m68k_incpc ((int32_t)src + 2);
15589 	return 10;
15590 didnt_jump:;
15591 }}m68k_incpc(2);
15592 #if 0
15593 endlabel1057: ;
15594 #endif
15595 return 8;
15596 }
CPUFUNC(op_6fff_4)15597 unsigned long CPUFUNC(op_6fff_4)(uint32_t opcode) /* Bcc */
15598 {
15599 	OpcodeFamily = 55; CurrentInstrCycles = 12;
15600 {	m68k_incpc(2);
15601 	if (!cctrue(15)) goto endlabel1058;
15602 		last_addr_for_exception_3 = m68k_getpc() + 2;
15603 		last_fault_for_exception_3 = m68k_getpc() + 1;
15604 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel1058;
15605 {	int32_t src = get_ilong(2);
15606 	if (!cctrue(15)) goto didnt_jump;
15607 	m68k_incpc ((int32_t)src + 2);
15608 	return 10;
15609 didnt_jump:;
15610 }}m68k_incpc(6);
15611 endlabel1058: ;
15612 return 12;
15613 }
CPUFUNC(op_7000_4)15614 unsigned long CPUFUNC(op_7000_4)(uint32_t opcode) /* MOVE */
15615 {
15616 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
15617 	uint32_t dstreg = (opcode >> 9) & 7;
15618 	OpcodeFamily = 30; CurrentInstrCycles = 4;
15619 {{	uint32_t src = srcreg;
15620 {	CLEAR_CZNV;
15621 	SET_ZFLG (((int32_t)(src)) == 0);
15622 	SET_NFLG (((int32_t)(src)) < 0);
15623 	m68k_dreg(regs, dstreg) = (src);
15624 }}}m68k_incpc(2);
15625 return 4;
15626 }
CPUFUNC(op_8000_4)15627 unsigned long CPUFUNC(op_8000_4)(uint32_t opcode) /* OR */
15628 {
15629 	uint32_t srcreg = (opcode & 7);
15630 	uint32_t dstreg = (opcode >> 9) & 7;
15631 	OpcodeFamily = 1; CurrentInstrCycles = 4;
15632 {{	int8_t src = m68k_dreg(regs, srcreg);
15633 {	int8_t dst = m68k_dreg(regs, dstreg);
15634 	src |= dst;
15635 	CLEAR_CZNV;
15636 	SET_ZFLG (((int8_t)(src)) == 0);
15637 	SET_NFLG (((int8_t)(src)) < 0);
15638 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15639 }}}m68k_incpc(2);
15640 return 4;
15641 }
CPUFUNC(op_8010_4)15642 unsigned long CPUFUNC(op_8010_4)(uint32_t opcode) /* OR */
15643 {
15644 	uint32_t srcreg = (opcode & 7);
15645 	uint32_t dstreg = (opcode >> 9) & 7;
15646 	OpcodeFamily = 1; CurrentInstrCycles = 8;
15647 {{	uint32_t srca = m68k_areg(regs, srcreg);
15648 {	int8_t src = m68k_read_memory_8(srca);
15649 {	int8_t dst = m68k_dreg(regs, dstreg);
15650 	src |= dst;
15651 	CLEAR_CZNV;
15652 	SET_ZFLG (((int8_t)(src)) == 0);
15653 	SET_NFLG (((int8_t)(src)) < 0);
15654 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15655 }}}}m68k_incpc(2);
15656 return 8;
15657 }
CPUFUNC(op_8018_4)15658 unsigned long CPUFUNC(op_8018_4)(uint32_t opcode) /* OR */
15659 {
15660 	uint32_t srcreg = (opcode & 7);
15661 	uint32_t dstreg = (opcode >> 9) & 7;
15662 	OpcodeFamily = 1; CurrentInstrCycles = 8;
15663 {{	uint32_t srca = m68k_areg(regs, srcreg);
15664 {	int8_t src = m68k_read_memory_8(srca);
15665 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
15666 {	int8_t dst = m68k_dreg(regs, dstreg);
15667 	src |= dst;
15668 	CLEAR_CZNV;
15669 	SET_ZFLG (((int8_t)(src)) == 0);
15670 	SET_NFLG (((int8_t)(src)) < 0);
15671 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15672 }}}}m68k_incpc(2);
15673 return 8;
15674 }
CPUFUNC(op_8020_4)15675 unsigned long CPUFUNC(op_8020_4)(uint32_t opcode) /* OR */
15676 {
15677 	uint32_t srcreg = (opcode & 7);
15678 	uint32_t dstreg = (opcode >> 9) & 7;
15679 	OpcodeFamily = 1; CurrentInstrCycles = 10;
15680 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
15681 {	int8_t src = m68k_read_memory_8(srca);
15682 	m68k_areg (regs, srcreg) = srca;
15683 {	int8_t dst = m68k_dreg(regs, dstreg);
15684 	src |= dst;
15685 	CLEAR_CZNV;
15686 	SET_ZFLG (((int8_t)(src)) == 0);
15687 	SET_NFLG (((int8_t)(src)) < 0);
15688 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15689 }}}}m68k_incpc(2);
15690 return 10;
15691 }
CPUFUNC(op_8028_4)15692 unsigned long CPUFUNC(op_8028_4)(uint32_t opcode) /* OR */
15693 {
15694 	uint32_t srcreg = (opcode & 7);
15695 	uint32_t dstreg = (opcode >> 9) & 7;
15696 	OpcodeFamily = 1; CurrentInstrCycles = 12;
15697 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
15698 {	int8_t src = m68k_read_memory_8(srca);
15699 {	int8_t dst = m68k_dreg(regs, dstreg);
15700 	src |= dst;
15701 	CLEAR_CZNV;
15702 	SET_ZFLG (((int8_t)(src)) == 0);
15703 	SET_NFLG (((int8_t)(src)) < 0);
15704 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15705 }}}}m68k_incpc(4);
15706 return 12;
15707 }
CPUFUNC(op_8030_4)15708 unsigned long CPUFUNC(op_8030_4)(uint32_t opcode) /* OR */
15709 {
15710 	uint32_t srcreg = (opcode & 7);
15711 	uint32_t dstreg = (opcode >> 9) & 7;
15712 	OpcodeFamily = 1; CurrentInstrCycles = 14;
15713 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
15714 	BusCyclePenalty += 2;
15715 {	int8_t src = m68k_read_memory_8(srca);
15716 {	int8_t dst = m68k_dreg(regs, dstreg);
15717 	src |= dst;
15718 	CLEAR_CZNV;
15719 	SET_ZFLG (((int8_t)(src)) == 0);
15720 	SET_NFLG (((int8_t)(src)) < 0);
15721 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15722 }}}}m68k_incpc(4);
15723 return 14;
15724 }
CPUFUNC(op_8038_4)15725 unsigned long CPUFUNC(op_8038_4)(uint32_t opcode) /* OR */
15726 {
15727 	uint32_t dstreg = (opcode >> 9) & 7;
15728 	OpcodeFamily = 1; CurrentInstrCycles = 12;
15729 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
15730 {	int8_t src = m68k_read_memory_8(srca);
15731 {	int8_t dst = m68k_dreg(regs, dstreg);
15732 	src |= dst;
15733 	CLEAR_CZNV;
15734 	SET_ZFLG (((int8_t)(src)) == 0);
15735 	SET_NFLG (((int8_t)(src)) < 0);
15736 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15737 }}}}m68k_incpc(4);
15738 return 12;
15739 }
CPUFUNC(op_8039_4)15740 unsigned long CPUFUNC(op_8039_4)(uint32_t opcode) /* OR */
15741 {
15742 	uint32_t dstreg = (opcode >> 9) & 7;
15743 	OpcodeFamily = 1; CurrentInstrCycles = 16;
15744 {{	uint32_t srca = get_ilong(2);
15745 {	int8_t src = m68k_read_memory_8(srca);
15746 {	int8_t dst = m68k_dreg(regs, dstreg);
15747 	src |= dst;
15748 	CLEAR_CZNV;
15749 	SET_ZFLG (((int8_t)(src)) == 0);
15750 	SET_NFLG (((int8_t)(src)) < 0);
15751 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15752 }}}}m68k_incpc(6);
15753 return 16;
15754 }
CPUFUNC(op_803a_4)15755 unsigned long CPUFUNC(op_803a_4)(uint32_t opcode) /* OR */
15756 {
15757 	uint32_t dstreg = (opcode >> 9) & 7;
15758 	OpcodeFamily = 1; CurrentInstrCycles = 12;
15759 {{	uint32_t srca = m68k_getpc () + 2;
15760 	srca += (int32_t)(int16_t)get_iword(2);
15761 {	int8_t src = m68k_read_memory_8(srca);
15762 {	int8_t dst = m68k_dreg(regs, dstreg);
15763 	src |= dst;
15764 	CLEAR_CZNV;
15765 	SET_ZFLG (((int8_t)(src)) == 0);
15766 	SET_NFLG (((int8_t)(src)) < 0);
15767 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15768 }}}}m68k_incpc(4);
15769 return 12;
15770 }
CPUFUNC(op_803b_4)15771 unsigned long CPUFUNC(op_803b_4)(uint32_t opcode) /* OR */
15772 {
15773 	uint32_t dstreg = (opcode >> 9) & 7;
15774 	OpcodeFamily = 1; CurrentInstrCycles = 14;
15775 {{	uint32_t tmppc = m68k_getpc() + 2;
15776 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
15777 	BusCyclePenalty += 2;
15778 {	int8_t src = m68k_read_memory_8(srca);
15779 {	int8_t dst = m68k_dreg(regs, dstreg);
15780 	src |= dst;
15781 	CLEAR_CZNV;
15782 	SET_ZFLG (((int8_t)(src)) == 0);
15783 	SET_NFLG (((int8_t)(src)) < 0);
15784 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15785 }}}}m68k_incpc(4);
15786 return 14;
15787 }
CPUFUNC(op_803c_4)15788 unsigned long CPUFUNC(op_803c_4)(uint32_t opcode) /* OR */
15789 {
15790 	uint32_t dstreg = (opcode >> 9) & 7;
15791 	OpcodeFamily = 1; CurrentInstrCycles = 8;
15792 {{	int8_t src = get_ibyte(2);
15793 {	int8_t dst = m68k_dreg(regs, dstreg);
15794 	src |= dst;
15795 	CLEAR_CZNV;
15796 	SET_ZFLG (((int8_t)(src)) == 0);
15797 	SET_NFLG (((int8_t)(src)) < 0);
15798 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
15799 }}}m68k_incpc(4);
15800 return 8;
15801 }
CPUFUNC(op_8040_4)15802 unsigned long CPUFUNC(op_8040_4)(uint32_t opcode) /* OR */
15803 {
15804 	uint32_t srcreg = (opcode & 7);
15805 	uint32_t dstreg = (opcode >> 9) & 7;
15806 	OpcodeFamily = 1; CurrentInstrCycles = 4;
15807 {{	int16_t src = m68k_dreg(regs, srcreg);
15808 {	int16_t dst = m68k_dreg(regs, dstreg);
15809 	src |= dst;
15810 	CLEAR_CZNV;
15811 	SET_ZFLG (((int16_t)(src)) == 0);
15812 	SET_NFLG (((int16_t)(src)) < 0);
15813 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15814 }}}m68k_incpc(2);
15815 return 4;
15816 }
CPUFUNC(op_8050_4)15817 unsigned long CPUFUNC(op_8050_4)(uint32_t opcode) /* OR */
15818 {
15819 	uint32_t srcreg = (opcode & 7);
15820 	uint32_t dstreg = (opcode >> 9) & 7;
15821 	OpcodeFamily = 1; CurrentInstrCycles = 8;
15822 {{	uint32_t srca = m68k_areg(regs, srcreg);
15823 {	int16_t src = m68k_read_memory_16(srca);
15824 {	int16_t dst = m68k_dreg(regs, dstreg);
15825 	src |= dst;
15826 	CLEAR_CZNV;
15827 	SET_ZFLG (((int16_t)(src)) == 0);
15828 	SET_NFLG (((int16_t)(src)) < 0);
15829 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15830 }}}}m68k_incpc(2);
15831 return 8;
15832 }
CPUFUNC(op_8058_4)15833 unsigned long CPUFUNC(op_8058_4)(uint32_t opcode) /* OR */
15834 {
15835 	uint32_t srcreg = (opcode & 7);
15836 	uint32_t dstreg = (opcode >> 9) & 7;
15837 	OpcodeFamily = 1; CurrentInstrCycles = 8;
15838 {{	uint32_t srca = m68k_areg(regs, srcreg);
15839 {	int16_t src = m68k_read_memory_16(srca);
15840 	m68k_areg(regs, srcreg) += 2;
15841 {	int16_t dst = m68k_dreg(regs, dstreg);
15842 	src |= dst;
15843 	CLEAR_CZNV;
15844 	SET_ZFLG (((int16_t)(src)) == 0);
15845 	SET_NFLG (((int16_t)(src)) < 0);
15846 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15847 }}}}m68k_incpc(2);
15848 return 8;
15849 }
CPUFUNC(op_8060_4)15850 unsigned long CPUFUNC(op_8060_4)(uint32_t opcode) /* OR */
15851 {
15852 	uint32_t srcreg = (opcode & 7);
15853 	uint32_t dstreg = (opcode >> 9) & 7;
15854 	OpcodeFamily = 1; CurrentInstrCycles = 10;
15855 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
15856 {	int16_t src = m68k_read_memory_16(srca);
15857 	m68k_areg (regs, srcreg) = srca;
15858 {	int16_t dst = m68k_dreg(regs, dstreg);
15859 	src |= dst;
15860 	CLEAR_CZNV;
15861 	SET_ZFLG (((int16_t)(src)) == 0);
15862 	SET_NFLG (((int16_t)(src)) < 0);
15863 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15864 }}}}m68k_incpc(2);
15865 return 10;
15866 }
CPUFUNC(op_8068_4)15867 unsigned long CPUFUNC(op_8068_4)(uint32_t opcode) /* OR */
15868 {
15869 	uint32_t srcreg = (opcode & 7);
15870 	uint32_t dstreg = (opcode >> 9) & 7;
15871 	OpcodeFamily = 1; CurrentInstrCycles = 12;
15872 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
15873 {	int16_t src = m68k_read_memory_16(srca);
15874 {	int16_t dst = m68k_dreg(regs, dstreg);
15875 	src |= dst;
15876 	CLEAR_CZNV;
15877 	SET_ZFLG (((int16_t)(src)) == 0);
15878 	SET_NFLG (((int16_t)(src)) < 0);
15879 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15880 }}}}m68k_incpc(4);
15881 return 12;
15882 }
CPUFUNC(op_8070_4)15883 unsigned long CPUFUNC(op_8070_4)(uint32_t opcode) /* OR */
15884 {
15885 	uint32_t srcreg = (opcode & 7);
15886 	uint32_t dstreg = (opcode >> 9) & 7;
15887 	OpcodeFamily = 1; CurrentInstrCycles = 14;
15888 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
15889 	BusCyclePenalty += 2;
15890 {	int16_t src = m68k_read_memory_16(srca);
15891 {	int16_t dst = m68k_dreg(regs, dstreg);
15892 	src |= dst;
15893 	CLEAR_CZNV;
15894 	SET_ZFLG (((int16_t)(src)) == 0);
15895 	SET_NFLG (((int16_t)(src)) < 0);
15896 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15897 }}}}m68k_incpc(4);
15898 return 14;
15899 }
CPUFUNC(op_8078_4)15900 unsigned long CPUFUNC(op_8078_4)(uint32_t opcode) /* OR */
15901 {
15902 	uint32_t dstreg = (opcode >> 9) & 7;
15903 	OpcodeFamily = 1; CurrentInstrCycles = 12;
15904 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
15905 {	int16_t src = m68k_read_memory_16(srca);
15906 {	int16_t dst = m68k_dreg(regs, dstreg);
15907 	src |= dst;
15908 	CLEAR_CZNV;
15909 	SET_ZFLG (((int16_t)(src)) == 0);
15910 	SET_NFLG (((int16_t)(src)) < 0);
15911 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15912 }}}}m68k_incpc(4);
15913 return 12;
15914 }
CPUFUNC(op_8079_4)15915 unsigned long CPUFUNC(op_8079_4)(uint32_t opcode) /* OR */
15916 {
15917 	uint32_t dstreg = (opcode >> 9) & 7;
15918 	OpcodeFamily = 1; CurrentInstrCycles = 16;
15919 {{	uint32_t srca = get_ilong(2);
15920 {	int16_t src = m68k_read_memory_16(srca);
15921 {	int16_t dst = m68k_dreg(regs, dstreg);
15922 	src |= dst;
15923 	CLEAR_CZNV;
15924 	SET_ZFLG (((int16_t)(src)) == 0);
15925 	SET_NFLG (((int16_t)(src)) < 0);
15926 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15927 }}}}m68k_incpc(6);
15928 return 16;
15929 }
CPUFUNC(op_807a_4)15930 unsigned long CPUFUNC(op_807a_4)(uint32_t opcode) /* OR */
15931 {
15932 	uint32_t dstreg = (opcode >> 9) & 7;
15933 	OpcodeFamily = 1; CurrentInstrCycles = 12;
15934 {{	uint32_t srca = m68k_getpc () + 2;
15935 	srca += (int32_t)(int16_t)get_iword(2);
15936 {	int16_t src = m68k_read_memory_16(srca);
15937 {	int16_t dst = m68k_dreg(regs, dstreg);
15938 	src |= dst;
15939 	CLEAR_CZNV;
15940 	SET_ZFLG (((int16_t)(src)) == 0);
15941 	SET_NFLG (((int16_t)(src)) < 0);
15942 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15943 }}}}m68k_incpc(4);
15944 return 12;
15945 }
CPUFUNC(op_807b_4)15946 unsigned long CPUFUNC(op_807b_4)(uint32_t opcode) /* OR */
15947 {
15948 	uint32_t dstreg = (opcode >> 9) & 7;
15949 	OpcodeFamily = 1; CurrentInstrCycles = 14;
15950 {{	uint32_t tmppc = m68k_getpc() + 2;
15951 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
15952 	BusCyclePenalty += 2;
15953 {	int16_t src = m68k_read_memory_16(srca);
15954 {	int16_t dst = m68k_dreg(regs, dstreg);
15955 	src |= dst;
15956 	CLEAR_CZNV;
15957 	SET_ZFLG (((int16_t)(src)) == 0);
15958 	SET_NFLG (((int16_t)(src)) < 0);
15959 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15960 }}}}m68k_incpc(4);
15961 return 14;
15962 }
CPUFUNC(op_807c_4)15963 unsigned long CPUFUNC(op_807c_4)(uint32_t opcode) /* OR */
15964 {
15965 	uint32_t dstreg = (opcode >> 9) & 7;
15966 	OpcodeFamily = 1; CurrentInstrCycles = 8;
15967 {{	int16_t src = get_iword(2);
15968 {	int16_t dst = m68k_dreg(regs, dstreg);
15969 	src |= dst;
15970 	CLEAR_CZNV;
15971 	SET_ZFLG (((int16_t)(src)) == 0);
15972 	SET_NFLG (((int16_t)(src)) < 0);
15973 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
15974 }}}m68k_incpc(4);
15975 return 8;
15976 }
CPUFUNC(op_8080_4)15977 unsigned long CPUFUNC(op_8080_4)(uint32_t opcode) /* OR */
15978 {
15979 	uint32_t srcreg = (opcode & 7);
15980 	uint32_t dstreg = (opcode >> 9) & 7;
15981 	OpcodeFamily = 1; CurrentInstrCycles = 8;
15982 {{	int32_t src = m68k_dreg(regs, srcreg);
15983 {	int32_t dst = m68k_dreg(regs, dstreg);
15984 	src |= dst;
15985 	CLEAR_CZNV;
15986 	SET_ZFLG (((int32_t)(src)) == 0);
15987 	SET_NFLG (((int32_t)(src)) < 0);
15988 	m68k_dreg(regs, dstreg) = (src);
15989 }}}m68k_incpc(2);
15990 return 8;
15991 }
CPUFUNC(op_8090_4)15992 unsigned long CPUFUNC(op_8090_4)(uint32_t opcode) /* OR */
15993 {
15994 	uint32_t srcreg = (opcode & 7);
15995 	uint32_t dstreg = (opcode >> 9) & 7;
15996 	OpcodeFamily = 1; CurrentInstrCycles = 14;
15997 {{	uint32_t srca = m68k_areg(regs, srcreg);
15998 {	int32_t src = m68k_read_memory_32(srca);
15999 {	int32_t dst = m68k_dreg(regs, dstreg);
16000 	src |= dst;
16001 	CLEAR_CZNV;
16002 	SET_ZFLG (((int32_t)(src)) == 0);
16003 	SET_NFLG (((int32_t)(src)) < 0);
16004 	m68k_dreg(regs, dstreg) = (src);
16005 }}}}m68k_incpc(2);
16006 return 14;
16007 }
CPUFUNC(op_8098_4)16008 unsigned long CPUFUNC(op_8098_4)(uint32_t opcode) /* OR */
16009 {
16010 	uint32_t srcreg = (opcode & 7);
16011 	uint32_t dstreg = (opcode >> 9) & 7;
16012 	OpcodeFamily = 1; CurrentInstrCycles = 14;
16013 {{	uint32_t srca = m68k_areg(regs, srcreg);
16014 {	int32_t src = m68k_read_memory_32(srca);
16015 	m68k_areg(regs, srcreg) += 4;
16016 {	int32_t dst = m68k_dreg(regs, dstreg);
16017 	src |= dst;
16018 	CLEAR_CZNV;
16019 	SET_ZFLG (((int32_t)(src)) == 0);
16020 	SET_NFLG (((int32_t)(src)) < 0);
16021 	m68k_dreg(regs, dstreg) = (src);
16022 }}}}m68k_incpc(2);
16023 return 14;
16024 }
CPUFUNC(op_80a0_4)16025 unsigned long CPUFUNC(op_80a0_4)(uint32_t opcode) /* OR */
16026 {
16027 	uint32_t srcreg = (opcode & 7);
16028 	uint32_t dstreg = (opcode >> 9) & 7;
16029 	OpcodeFamily = 1; CurrentInstrCycles = 16;
16030 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
16031 {	int32_t src = m68k_read_memory_32(srca);
16032 	m68k_areg (regs, srcreg) = srca;
16033 {	int32_t dst = m68k_dreg(regs, dstreg);
16034 	src |= dst;
16035 	CLEAR_CZNV;
16036 	SET_ZFLG (((int32_t)(src)) == 0);
16037 	SET_NFLG (((int32_t)(src)) < 0);
16038 	m68k_dreg(regs, dstreg) = (src);
16039 }}}}m68k_incpc(2);
16040 return 16;
16041 }
CPUFUNC(op_80a8_4)16042 unsigned long CPUFUNC(op_80a8_4)(uint32_t opcode) /* OR */
16043 {
16044 	uint32_t srcreg = (opcode & 7);
16045 	uint32_t dstreg = (opcode >> 9) & 7;
16046 	OpcodeFamily = 1; CurrentInstrCycles = 18;
16047 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
16048 {	int32_t src = m68k_read_memory_32(srca);
16049 {	int32_t dst = m68k_dreg(regs, dstreg);
16050 	src |= dst;
16051 	CLEAR_CZNV;
16052 	SET_ZFLG (((int32_t)(src)) == 0);
16053 	SET_NFLG (((int32_t)(src)) < 0);
16054 	m68k_dreg(regs, dstreg) = (src);
16055 }}}}m68k_incpc(4);
16056 return 18;
16057 }
CPUFUNC(op_80b0_4)16058 unsigned long CPUFUNC(op_80b0_4)(uint32_t opcode) /* OR */
16059 {
16060 	uint32_t srcreg = (opcode & 7);
16061 	uint32_t dstreg = (opcode >> 9) & 7;
16062 	OpcodeFamily = 1; CurrentInstrCycles = 20;
16063 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
16064 	BusCyclePenalty += 2;
16065 {	int32_t src = m68k_read_memory_32(srca);
16066 {	int32_t dst = m68k_dreg(regs, dstreg);
16067 	src |= dst;
16068 	CLEAR_CZNV;
16069 	SET_ZFLG (((int32_t)(src)) == 0);
16070 	SET_NFLG (((int32_t)(src)) < 0);
16071 	m68k_dreg(regs, dstreg) = (src);
16072 }}}}m68k_incpc(4);
16073 return 20;
16074 }
CPUFUNC(op_80b8_4)16075 unsigned long CPUFUNC(op_80b8_4)(uint32_t opcode) /* OR */
16076 {
16077 	uint32_t dstreg = (opcode >> 9) & 7;
16078 	OpcodeFamily = 1; CurrentInstrCycles = 18;
16079 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
16080 {	int32_t src = m68k_read_memory_32(srca);
16081 {	int32_t dst = m68k_dreg(regs, dstreg);
16082 	src |= dst;
16083 	CLEAR_CZNV;
16084 	SET_ZFLG (((int32_t)(src)) == 0);
16085 	SET_NFLG (((int32_t)(src)) < 0);
16086 	m68k_dreg(regs, dstreg) = (src);
16087 }}}}m68k_incpc(4);
16088 return 18;
16089 }
CPUFUNC(op_80b9_4)16090 unsigned long CPUFUNC(op_80b9_4)(uint32_t opcode) /* OR */
16091 {
16092 	uint32_t dstreg = (opcode >> 9) & 7;
16093 	OpcodeFamily = 1; CurrentInstrCycles = 22;
16094 {{	uint32_t srca = get_ilong(2);
16095 {	int32_t src = m68k_read_memory_32(srca);
16096 {	int32_t dst = m68k_dreg(regs, dstreg);
16097 	src |= dst;
16098 	CLEAR_CZNV;
16099 	SET_ZFLG (((int32_t)(src)) == 0);
16100 	SET_NFLG (((int32_t)(src)) < 0);
16101 	m68k_dreg(regs, dstreg) = (src);
16102 }}}}m68k_incpc(6);
16103 return 22;
16104 }
CPUFUNC(op_80ba_4)16105 unsigned long CPUFUNC(op_80ba_4)(uint32_t opcode) /* OR */
16106 {
16107 	uint32_t dstreg = (opcode >> 9) & 7;
16108 	OpcodeFamily = 1; CurrentInstrCycles = 18;
16109 {{	uint32_t srca = m68k_getpc () + 2;
16110 	srca += (int32_t)(int16_t)get_iword(2);
16111 {	int32_t src = m68k_read_memory_32(srca);
16112 {	int32_t dst = m68k_dreg(regs, dstreg);
16113 	src |= dst;
16114 	CLEAR_CZNV;
16115 	SET_ZFLG (((int32_t)(src)) == 0);
16116 	SET_NFLG (((int32_t)(src)) < 0);
16117 	m68k_dreg(regs, dstreg) = (src);
16118 }}}}m68k_incpc(4);
16119 return 18;
16120 }
CPUFUNC(op_80bb_4)16121 unsigned long CPUFUNC(op_80bb_4)(uint32_t opcode) /* OR */
16122 {
16123 	uint32_t dstreg = (opcode >> 9) & 7;
16124 	OpcodeFamily = 1; CurrentInstrCycles = 20;
16125 {{	uint32_t tmppc = m68k_getpc() + 2;
16126 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
16127 	BusCyclePenalty += 2;
16128 {	int32_t src = m68k_read_memory_32(srca);
16129 {	int32_t dst = m68k_dreg(regs, dstreg);
16130 	src |= dst;
16131 	CLEAR_CZNV;
16132 	SET_ZFLG (((int32_t)(src)) == 0);
16133 	SET_NFLG (((int32_t)(src)) < 0);
16134 	m68k_dreg(regs, dstreg) = (src);
16135 }}}}m68k_incpc(4);
16136 return 20;
16137 }
CPUFUNC(op_80bc_4)16138 unsigned long CPUFUNC(op_80bc_4)(uint32_t opcode) /* OR */
16139 {
16140 	uint32_t dstreg = (opcode >> 9) & 7;
16141 	OpcodeFamily = 1; CurrentInstrCycles = 16;
16142 {{	int32_t src = get_ilong(2);
16143 {	int32_t dst = m68k_dreg(regs, dstreg);
16144 	src |= dst;
16145 	CLEAR_CZNV;
16146 	SET_ZFLG (((int32_t)(src)) == 0);
16147 	SET_NFLG (((int32_t)(src)) < 0);
16148 	m68k_dreg(regs, dstreg) = (src);
16149 }}}m68k_incpc(6);
16150 return 16;
16151 }
CPUFUNC(op_80c0_4)16152 unsigned long CPUFUNC(op_80c0_4)(uint32_t opcode) /* DIVU */
16153 {
16154 	uint32_t srcreg = (opcode & 7);
16155 	uint32_t dstreg = (opcode >> 9) & 7;
16156 	unsigned int retcycles = 0;
16157 	OpcodeFamily = 60; CurrentInstrCycles = 4;
16158 {	uint32_t oldpc = m68k_getpc();
16159 {	int16_t src = m68k_dreg(regs, srcreg);
16160 {	int32_t dst = m68k_dreg(regs, dstreg);
16161 m68k_incpc(2);
16162 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1093; } else {
16163 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16164 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16165 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16166 	{
16167 	CLEAR_CZNV;
16168 	SET_ZFLG (((int16_t)(newv)) == 0);
16169 	SET_NFLG (((int16_t)(newv)) < 0);
16170 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16171 	m68k_dreg(regs, dstreg) = (newv);
16172 	}
16173 	}
16174 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16175 }}}endlabel1093: ;
16176  return (4+retcycles);
16177 }
CPUFUNC(op_80d0_4)16178 unsigned long CPUFUNC(op_80d0_4)(uint32_t opcode) /* DIVU */
16179 {
16180 	uint32_t srcreg = (opcode & 7);
16181 	uint32_t dstreg = (opcode >> 9) & 7;
16182 	unsigned int retcycles = 0;
16183 	OpcodeFamily = 60; CurrentInstrCycles = 8;
16184 {	uint32_t oldpc = m68k_getpc();
16185 {	uint32_t srca = m68k_areg(regs, srcreg);
16186 {	int16_t src = m68k_read_memory_16(srca);
16187 {	int32_t dst = m68k_dreg(regs, dstreg);
16188 m68k_incpc(2);
16189 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1094; } else {
16190 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16191 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16192 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16193 	{
16194 	CLEAR_CZNV;
16195 	SET_ZFLG (((int16_t)(newv)) == 0);
16196 	SET_NFLG (((int16_t)(newv)) < 0);
16197 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16198 	m68k_dreg(regs, dstreg) = (newv);
16199 	}
16200 	}
16201 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16202 }}}}endlabel1094: ;
16203  return (8+retcycles);
16204 }
CPUFUNC(op_80d8_4)16205 unsigned long CPUFUNC(op_80d8_4)(uint32_t opcode) /* DIVU */
16206 {
16207 	uint32_t srcreg = (opcode & 7);
16208 	uint32_t dstreg = (opcode >> 9) & 7;
16209 	unsigned int retcycles = 0;
16210 	OpcodeFamily = 60; CurrentInstrCycles = 8;
16211 {	uint32_t oldpc = m68k_getpc();
16212 {	uint32_t srca = m68k_areg(regs, srcreg);
16213 {	int16_t src = m68k_read_memory_16(srca);
16214 	m68k_areg(regs, srcreg) += 2;
16215 {	int32_t dst = m68k_dreg(regs, dstreg);
16216 m68k_incpc(2);
16217 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1095; } else {
16218 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16219 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16220 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16221 	{
16222 	CLEAR_CZNV;
16223 	SET_ZFLG (((int16_t)(newv)) == 0);
16224 	SET_NFLG (((int16_t)(newv)) < 0);
16225 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16226 	m68k_dreg(regs, dstreg) = (newv);
16227 	}
16228 	}
16229 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16230 }}}}endlabel1095: ;
16231  return (8+retcycles);
16232 }
CPUFUNC(op_80e0_4)16233 unsigned long CPUFUNC(op_80e0_4)(uint32_t opcode) /* DIVU */
16234 {
16235 	uint32_t srcreg = (opcode & 7);
16236 	uint32_t dstreg = (opcode >> 9) & 7;
16237 	unsigned int retcycles = 0;
16238 	OpcodeFamily = 60; CurrentInstrCycles = 10;
16239 {	uint32_t oldpc = m68k_getpc();
16240 {	uint32_t srca = m68k_areg(regs, srcreg) - 2;
16241 {	int16_t src = m68k_read_memory_16(srca);
16242 	m68k_areg (regs, srcreg) = srca;
16243 {	int32_t dst = m68k_dreg(regs, dstreg);
16244 m68k_incpc(2);
16245 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1096; } else {
16246 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16247 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16248 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16249 	{
16250 	CLEAR_CZNV;
16251 	SET_ZFLG (((int16_t)(newv)) == 0);
16252 	SET_NFLG (((int16_t)(newv)) < 0);
16253 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16254 	m68k_dreg(regs, dstreg) = (newv);
16255 	}
16256 	}
16257 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16258 }}}}endlabel1096: ;
16259  return (10+retcycles);
16260 }
CPUFUNC(op_80e8_4)16261 unsigned long CPUFUNC(op_80e8_4)(uint32_t opcode) /* DIVU */
16262 {
16263 	uint32_t srcreg = (opcode & 7);
16264 	uint32_t dstreg = (opcode >> 9) & 7;
16265 	unsigned int retcycles = 0;
16266 	OpcodeFamily = 60; CurrentInstrCycles = 12;
16267 {	uint32_t oldpc = m68k_getpc();
16268 {	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
16269 {	int16_t src = m68k_read_memory_16(srca);
16270 {	int32_t dst = m68k_dreg(regs, dstreg);
16271 m68k_incpc(4);
16272 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1097; } else {
16273 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16274 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16275 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16276 	{
16277 	CLEAR_CZNV;
16278 	SET_ZFLG (((int16_t)(newv)) == 0);
16279 	SET_NFLG (((int16_t)(newv)) < 0);
16280 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16281 	m68k_dreg(regs, dstreg) = (newv);
16282 	}
16283 	}
16284 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16285 }}}}endlabel1097: ;
16286  return (12+retcycles);
16287 }
CPUFUNC(op_80f0_4)16288 unsigned long CPUFUNC(op_80f0_4)(uint32_t opcode) /* DIVU */
16289 {
16290 	uint32_t srcreg = (opcode & 7);
16291 	uint32_t dstreg = (opcode >> 9) & 7;
16292 	unsigned int retcycles = 0;
16293 	OpcodeFamily = 60; CurrentInstrCycles = 14;
16294 {	uint32_t oldpc = m68k_getpc();
16295 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
16296 	BusCyclePenalty += 2;
16297 {	int16_t src = m68k_read_memory_16(srca);
16298 {	int32_t dst = m68k_dreg(regs, dstreg);
16299 m68k_incpc(4);
16300 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1098; } else {
16301 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16302 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16303 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16304 	{
16305 	CLEAR_CZNV;
16306 	SET_ZFLG (((int16_t)(newv)) == 0);
16307 	SET_NFLG (((int16_t)(newv)) < 0);
16308 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16309 	m68k_dreg(regs, dstreg) = (newv);
16310 	}
16311 	}
16312 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16313 }}}}endlabel1098: ;
16314  return (14+retcycles);
16315 }
CPUFUNC(op_80f8_4)16316 unsigned long CPUFUNC(op_80f8_4)(uint32_t opcode) /* DIVU */
16317 {
16318 	uint32_t dstreg = (opcode >> 9) & 7;
16319 	unsigned int retcycles = 0;
16320 	OpcodeFamily = 60; CurrentInstrCycles = 12;
16321 {	uint32_t oldpc = m68k_getpc();
16322 {	uint32_t srca = (int32_t)(int16_t)get_iword(2);
16323 {	int16_t src = m68k_read_memory_16(srca);
16324 {	int32_t dst = m68k_dreg(regs, dstreg);
16325 m68k_incpc(4);
16326 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1099; } else {
16327 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16328 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16329 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16330 	{
16331 	CLEAR_CZNV;
16332 	SET_ZFLG (((int16_t)(newv)) == 0);
16333 	SET_NFLG (((int16_t)(newv)) < 0);
16334 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16335 	m68k_dreg(regs, dstreg) = (newv);
16336 	}
16337 	}
16338 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16339 }}}}endlabel1099: ;
16340  return (12+retcycles);
16341 }
CPUFUNC(op_80f9_4)16342 unsigned long CPUFUNC(op_80f9_4)(uint32_t opcode) /* DIVU */
16343 {
16344 	uint32_t dstreg = (opcode >> 9) & 7;
16345 	unsigned int retcycles = 0;
16346 	OpcodeFamily = 60; CurrentInstrCycles = 16;
16347 {	uint32_t oldpc = m68k_getpc();
16348 {	uint32_t srca = get_ilong(2);
16349 {	int16_t src = m68k_read_memory_16(srca);
16350 {	int32_t dst = m68k_dreg(regs, dstreg);
16351 m68k_incpc(6);
16352 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1100; } else {
16353 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16354 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16355 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16356 	{
16357 	CLEAR_CZNV;
16358 	SET_ZFLG (((int16_t)(newv)) == 0);
16359 	SET_NFLG (((int16_t)(newv)) < 0);
16360 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16361 	m68k_dreg(regs, dstreg) = (newv);
16362 	}
16363 	}
16364 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16365 }}}}endlabel1100: ;
16366  return (16+retcycles);
16367 }
CPUFUNC(op_80fa_4)16368 unsigned long CPUFUNC(op_80fa_4)(uint32_t opcode) /* DIVU */
16369 {
16370 	uint32_t dstreg = (opcode >> 9) & 7;
16371 	unsigned int retcycles = 0;
16372 	OpcodeFamily = 60; CurrentInstrCycles = 12;
16373 {	uint32_t oldpc = m68k_getpc();
16374 {	uint32_t srca = m68k_getpc () + 2;
16375 	srca += (int32_t)(int16_t)get_iword(2);
16376 {	int16_t src = m68k_read_memory_16(srca);
16377 {	int32_t dst = m68k_dreg(regs, dstreg);
16378 m68k_incpc(4);
16379 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1101; } else {
16380 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16381 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16382 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16383 	{
16384 	CLEAR_CZNV;
16385 	SET_ZFLG (((int16_t)(newv)) == 0);
16386 	SET_NFLG (((int16_t)(newv)) < 0);
16387 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16388 	m68k_dreg(regs, dstreg) = (newv);
16389 	}
16390 	}
16391 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16392 }}}}endlabel1101: ;
16393  return (12+retcycles);
16394 }
CPUFUNC(op_80fb_4)16395 unsigned long CPUFUNC(op_80fb_4)(uint32_t opcode) /* DIVU */
16396 {
16397 	uint32_t dstreg = (opcode >> 9) & 7;
16398 	unsigned int retcycles = 0;
16399 	OpcodeFamily = 60; CurrentInstrCycles = 14;
16400 {	uint32_t oldpc = m68k_getpc();
16401 {	uint32_t tmppc = m68k_getpc() + 2;
16402 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
16403 	BusCyclePenalty += 2;
16404 {	int16_t src = m68k_read_memory_16(srca);
16405 {	int32_t dst = m68k_dreg(regs, dstreg);
16406 m68k_incpc(4);
16407 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1102; } else {
16408 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16409 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16410 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16411 	{
16412 	CLEAR_CZNV;
16413 	SET_ZFLG (((int16_t)(newv)) == 0);
16414 	SET_NFLG (((int16_t)(newv)) < 0);
16415 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16416 	m68k_dreg(regs, dstreg) = (newv);
16417 	}
16418 	}
16419 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16420 }}}}endlabel1102: ;
16421  return (14+retcycles);
16422 }
CPUFUNC(op_80fc_4)16423 unsigned long CPUFUNC(op_80fc_4)(uint32_t opcode) /* DIVU */
16424 {
16425 	uint32_t dstreg = (opcode >> 9) & 7;
16426 	unsigned int retcycles = 0;
16427 	OpcodeFamily = 60; CurrentInstrCycles = 8;
16428 {	uint32_t oldpc = m68k_getpc();
16429 {	int16_t src = get_iword(2);
16430 {	int32_t dst = m68k_dreg(regs, dstreg);
16431 m68k_incpc(4);
16432 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel1103; } else {
16433 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
16434 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
16435 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16436 	{
16437 	CLEAR_CZNV;
16438 	SET_ZFLG (((int16_t)(newv)) == 0);
16439 	SET_NFLG (((int16_t)(newv)) < 0);
16440 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16441 	m68k_dreg(regs, dstreg) = (newv);
16442 	}
16443 	}
16444 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
16445 }}}endlabel1103: ;
16446  return (8+retcycles);
16447 }
CPUFUNC(op_8100_4)16448 unsigned long CPUFUNC(op_8100_4)(uint32_t opcode) /* SBCD */
16449 {
16450 	uint32_t srcreg = (opcode & 7);
16451 	uint32_t dstreg = (opcode >> 9) & 7;
16452 	OpcodeFamily = 10; CurrentInstrCycles = 6;
16453 {{	int8_t src = m68k_dreg(regs, srcreg);
16454 {	int8_t dst = m68k_dreg(regs, dstreg);
16455 {	uint16_t newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0);
16456 	uint16_t newv_hi = (dst & 0xF0) - (src & 0xF0);
16457 	uint16_t newv, tmp_newv;
16458 	int bcd = 0;
16459 	newv = tmp_newv = newv_hi + newv_lo;
16460 	if (newv_lo & 0xF0) { newv -= 6; bcd = 6; };
16461 	if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; }
16462 	SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF);
16463 	COPY_CARRY;
16464 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
16465 	SET_NFLG (((int8_t)(newv)) < 0);
16466 	SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0);
16467 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
16468 }}}}m68k_incpc(2);
16469 return 6;
16470 }
CPUFUNC(op_8108_4)16471 unsigned long CPUFUNC(op_8108_4)(uint32_t opcode) /* SBCD */
16472 {
16473 	uint32_t srcreg = (opcode & 7);
16474 	uint32_t dstreg = (opcode >> 9) & 7;
16475 	OpcodeFamily = 10; CurrentInstrCycles = 18;
16476 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
16477 {	int8_t src = m68k_read_memory_8(srca);
16478 	m68k_areg (regs, srcreg) = srca;
16479 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
16480 {	int8_t dst = m68k_read_memory_8(dsta);
16481 	m68k_areg (regs, dstreg) = dsta;
16482 {	uint16_t newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0);
16483 	uint16_t newv_hi = (dst & 0xF0) - (src & 0xF0);
16484 	uint16_t newv, tmp_newv;
16485 	int bcd = 0;
16486 	newv = tmp_newv = newv_hi + newv_lo;
16487 	if (newv_lo & 0xF0) { newv -= 6; bcd = 6; };
16488 	if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; }
16489 	SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF);
16490 	COPY_CARRY;
16491 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
16492 	SET_NFLG (((int8_t)(newv)) < 0);
16493 	SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0);
16494 	m68k_write_memory_8(dsta,newv);
16495 }}}}}}m68k_incpc(2);
16496 return 18;
16497 }
CPUFUNC(op_8110_4)16498 unsigned long CPUFUNC(op_8110_4)(uint32_t opcode) /* OR */
16499 {
16500 	uint32_t srcreg = ((opcode >> 9) & 7);
16501 	uint32_t dstreg = opcode & 7;
16502 	OpcodeFamily = 1; CurrentInstrCycles = 12;
16503 {{	int8_t src = m68k_dreg(regs, srcreg);
16504 {	uint32_t dsta = m68k_areg(regs, dstreg);
16505 {	int8_t dst = m68k_read_memory_8(dsta);
16506 	src |= dst;
16507 	CLEAR_CZNV;
16508 	SET_ZFLG (((int8_t)(src)) == 0);
16509 	SET_NFLG (((int8_t)(src)) < 0);
16510 	m68k_write_memory_8(dsta,src);
16511 }}}}m68k_incpc(2);
16512 return 12;
16513 }
CPUFUNC(op_8118_4)16514 unsigned long CPUFUNC(op_8118_4)(uint32_t opcode) /* OR */
16515 {
16516 	uint32_t srcreg = ((opcode >> 9) & 7);
16517 	uint32_t dstreg = opcode & 7;
16518 	OpcodeFamily = 1; CurrentInstrCycles = 12;
16519 {{	int8_t src = m68k_dreg(regs, srcreg);
16520 {	uint32_t dsta = m68k_areg(regs, dstreg);
16521 {	int8_t dst = m68k_read_memory_8(dsta);
16522 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
16523 	src |= dst;
16524 	CLEAR_CZNV;
16525 	SET_ZFLG (((int8_t)(src)) == 0);
16526 	SET_NFLG (((int8_t)(src)) < 0);
16527 	m68k_write_memory_8(dsta,src);
16528 }}}}m68k_incpc(2);
16529 return 12;
16530 }
CPUFUNC(op_8120_4)16531 unsigned long CPUFUNC(op_8120_4)(uint32_t opcode) /* OR */
16532 {
16533 	uint32_t srcreg = ((opcode >> 9) & 7);
16534 	uint32_t dstreg = opcode & 7;
16535 	OpcodeFamily = 1; CurrentInstrCycles = 14;
16536 {{	int8_t src = m68k_dreg(regs, srcreg);
16537 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
16538 {	int8_t dst = m68k_read_memory_8(dsta);
16539 	m68k_areg (regs, dstreg) = dsta;
16540 	src |= dst;
16541 	CLEAR_CZNV;
16542 	SET_ZFLG (((int8_t)(src)) == 0);
16543 	SET_NFLG (((int8_t)(src)) < 0);
16544 	m68k_write_memory_8(dsta,src);
16545 }}}}m68k_incpc(2);
16546 return 14;
16547 }
CPUFUNC(op_8128_4)16548 unsigned long CPUFUNC(op_8128_4)(uint32_t opcode) /* OR */
16549 {
16550 	uint32_t srcreg = ((opcode >> 9) & 7);
16551 	uint32_t dstreg = opcode & 7;
16552 	OpcodeFamily = 1; CurrentInstrCycles = 16;
16553 {{	int8_t src = m68k_dreg(regs, srcreg);
16554 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
16555 {	int8_t dst = m68k_read_memory_8(dsta);
16556 	src |= dst;
16557 	CLEAR_CZNV;
16558 	SET_ZFLG (((int8_t)(src)) == 0);
16559 	SET_NFLG (((int8_t)(src)) < 0);
16560 	m68k_write_memory_8(dsta,src);
16561 }}}}m68k_incpc(4);
16562 return 16;
16563 }
CPUFUNC(op_8130_4)16564 unsigned long CPUFUNC(op_8130_4)(uint32_t opcode) /* OR */
16565 {
16566 	uint32_t srcreg = ((opcode >> 9) & 7);
16567 	uint32_t dstreg = opcode & 7;
16568 	OpcodeFamily = 1; CurrentInstrCycles = 18;
16569 {{	int8_t src = m68k_dreg(regs, srcreg);
16570 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
16571 	BusCyclePenalty += 2;
16572 {	int8_t dst = m68k_read_memory_8(dsta);
16573 	src |= dst;
16574 	CLEAR_CZNV;
16575 	SET_ZFLG (((int8_t)(src)) == 0);
16576 	SET_NFLG (((int8_t)(src)) < 0);
16577 	m68k_write_memory_8(dsta,src);
16578 }}}}m68k_incpc(4);
16579 return 18;
16580 }
CPUFUNC(op_8138_4)16581 unsigned long CPUFUNC(op_8138_4)(uint32_t opcode) /* OR */
16582 {
16583 	uint32_t srcreg = ((opcode >> 9) & 7);
16584 	OpcodeFamily = 1; CurrentInstrCycles = 16;
16585 {{	int8_t src = m68k_dreg(regs, srcreg);
16586 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
16587 {	int8_t dst = m68k_read_memory_8(dsta);
16588 	src |= dst;
16589 	CLEAR_CZNV;
16590 	SET_ZFLG (((int8_t)(src)) == 0);
16591 	SET_NFLG (((int8_t)(src)) < 0);
16592 	m68k_write_memory_8(dsta,src);
16593 }}}}m68k_incpc(4);
16594 return 16;
16595 }
CPUFUNC(op_8139_4)16596 unsigned long CPUFUNC(op_8139_4)(uint32_t opcode) /* OR */
16597 {
16598 	uint32_t srcreg = ((opcode >> 9) & 7);
16599 	OpcodeFamily = 1; CurrentInstrCycles = 20;
16600 {{	int8_t src = m68k_dreg(regs, srcreg);
16601 {	uint32_t dsta = get_ilong(2);
16602 {	int8_t dst = m68k_read_memory_8(dsta);
16603 	src |= dst;
16604 	CLEAR_CZNV;
16605 	SET_ZFLG (((int8_t)(src)) == 0);
16606 	SET_NFLG (((int8_t)(src)) < 0);
16607 	m68k_write_memory_8(dsta,src);
16608 }}}}m68k_incpc(6);
16609 return 20;
16610 }
CPUFUNC(op_8150_4)16611 unsigned long CPUFUNC(op_8150_4)(uint32_t opcode) /* OR */
16612 {
16613 	uint32_t srcreg = ((opcode >> 9) & 7);
16614 	uint32_t dstreg = opcode & 7;
16615 	OpcodeFamily = 1; CurrentInstrCycles = 12;
16616 {{	int16_t src = m68k_dreg(regs, srcreg);
16617 {	uint32_t dsta = m68k_areg(regs, dstreg);
16618 {	int16_t dst = m68k_read_memory_16(dsta);
16619 	src |= dst;
16620 	CLEAR_CZNV;
16621 	SET_ZFLG (((int16_t)(src)) == 0);
16622 	SET_NFLG (((int16_t)(src)) < 0);
16623 	m68k_write_memory_16(dsta,src);
16624 }}}}m68k_incpc(2);
16625 return 12;
16626 }
CPUFUNC(op_8158_4)16627 unsigned long CPUFUNC(op_8158_4)(uint32_t opcode) /* OR */
16628 {
16629 	uint32_t srcreg = ((opcode >> 9) & 7);
16630 	uint32_t dstreg = opcode & 7;
16631 	OpcodeFamily = 1; CurrentInstrCycles = 12;
16632 {{	int16_t src = m68k_dreg(regs, srcreg);
16633 {	uint32_t dsta = m68k_areg(regs, dstreg);
16634 {	int16_t dst = m68k_read_memory_16(dsta);
16635 	m68k_areg(regs, dstreg) += 2;
16636 	src |= dst;
16637 	CLEAR_CZNV;
16638 	SET_ZFLG (((int16_t)(src)) == 0);
16639 	SET_NFLG (((int16_t)(src)) < 0);
16640 	m68k_write_memory_16(dsta,src);
16641 }}}}m68k_incpc(2);
16642 return 12;
16643 }
CPUFUNC(op_8160_4)16644 unsigned long CPUFUNC(op_8160_4)(uint32_t opcode) /* OR */
16645 {
16646 	uint32_t srcreg = ((opcode >> 9) & 7);
16647 	uint32_t dstreg = opcode & 7;
16648 	OpcodeFamily = 1; CurrentInstrCycles = 14;
16649 {{	int16_t src = m68k_dreg(regs, srcreg);
16650 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
16651 {	int16_t dst = m68k_read_memory_16(dsta);
16652 	m68k_areg (regs, dstreg) = dsta;
16653 	src |= dst;
16654 	CLEAR_CZNV;
16655 	SET_ZFLG (((int16_t)(src)) == 0);
16656 	SET_NFLG (((int16_t)(src)) < 0);
16657 	m68k_write_memory_16(dsta,src);
16658 }}}}m68k_incpc(2);
16659 return 14;
16660 }
CPUFUNC(op_8168_4)16661 unsigned long CPUFUNC(op_8168_4)(uint32_t opcode) /* OR */
16662 {
16663 	uint32_t srcreg = ((opcode >> 9) & 7);
16664 	uint32_t dstreg = opcode & 7;
16665 	OpcodeFamily = 1; CurrentInstrCycles = 16;
16666 {{	int16_t src = m68k_dreg(regs, srcreg);
16667 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
16668 {	int16_t dst = m68k_read_memory_16(dsta);
16669 	src |= dst;
16670 	CLEAR_CZNV;
16671 	SET_ZFLG (((int16_t)(src)) == 0);
16672 	SET_NFLG (((int16_t)(src)) < 0);
16673 	m68k_write_memory_16(dsta,src);
16674 }}}}m68k_incpc(4);
16675 return 16;
16676 }
CPUFUNC(op_8170_4)16677 unsigned long CPUFUNC(op_8170_4)(uint32_t opcode) /* OR */
16678 {
16679 	uint32_t srcreg = ((opcode >> 9) & 7);
16680 	uint32_t dstreg = opcode & 7;
16681 	OpcodeFamily = 1; CurrentInstrCycles = 18;
16682 {{	int16_t src = m68k_dreg(regs, srcreg);
16683 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
16684 	BusCyclePenalty += 2;
16685 {	int16_t dst = m68k_read_memory_16(dsta);
16686 	src |= dst;
16687 	CLEAR_CZNV;
16688 	SET_ZFLG (((int16_t)(src)) == 0);
16689 	SET_NFLG (((int16_t)(src)) < 0);
16690 	m68k_write_memory_16(dsta,src);
16691 }}}}m68k_incpc(4);
16692 return 18;
16693 }
CPUFUNC(op_8178_4)16694 unsigned long CPUFUNC(op_8178_4)(uint32_t opcode) /* OR */
16695 {
16696 	uint32_t srcreg = ((opcode >> 9) & 7);
16697 	OpcodeFamily = 1; CurrentInstrCycles = 16;
16698 {{	int16_t src = m68k_dreg(regs, srcreg);
16699 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
16700 {	int16_t dst = m68k_read_memory_16(dsta);
16701 	src |= dst;
16702 	CLEAR_CZNV;
16703 	SET_ZFLG (((int16_t)(src)) == 0);
16704 	SET_NFLG (((int16_t)(src)) < 0);
16705 	m68k_write_memory_16(dsta,src);
16706 }}}}m68k_incpc(4);
16707 return 16;
16708 }
CPUFUNC(op_8179_4)16709 unsigned long CPUFUNC(op_8179_4)(uint32_t opcode) /* OR */
16710 {
16711 	uint32_t srcreg = ((opcode >> 9) & 7);
16712 	OpcodeFamily = 1; CurrentInstrCycles = 20;
16713 {{	int16_t src = m68k_dreg(regs, srcreg);
16714 {	uint32_t dsta = get_ilong(2);
16715 {	int16_t dst = m68k_read_memory_16(dsta);
16716 	src |= dst;
16717 	CLEAR_CZNV;
16718 	SET_ZFLG (((int16_t)(src)) == 0);
16719 	SET_NFLG (((int16_t)(src)) < 0);
16720 	m68k_write_memory_16(dsta,src);
16721 }}}}m68k_incpc(6);
16722 return 20;
16723 }
CPUFUNC(op_8190_4)16724 unsigned long CPUFUNC(op_8190_4)(uint32_t opcode) /* OR */
16725 {
16726 	uint32_t srcreg = ((opcode >> 9) & 7);
16727 	uint32_t dstreg = opcode & 7;
16728 	OpcodeFamily = 1; CurrentInstrCycles = 20;
16729 {{	int32_t src = m68k_dreg(regs, srcreg);
16730 {	uint32_t dsta = m68k_areg(regs, dstreg);
16731 {	int32_t dst = m68k_read_memory_32(dsta);
16732 	src |= dst;
16733 	CLEAR_CZNV;
16734 	SET_ZFLG (((int32_t)(src)) == 0);
16735 	SET_NFLG (((int32_t)(src)) < 0);
16736 	m68k_write_memory_32(dsta,src);
16737 }}}}m68k_incpc(2);
16738 return 20;
16739 }
CPUFUNC(op_8198_4)16740 unsigned long CPUFUNC(op_8198_4)(uint32_t opcode) /* OR */
16741 {
16742 	uint32_t srcreg = ((opcode >> 9) & 7);
16743 	uint32_t dstreg = opcode & 7;
16744 	OpcodeFamily = 1; CurrentInstrCycles = 20;
16745 {{	int32_t src = m68k_dreg(regs, srcreg);
16746 {	uint32_t dsta = m68k_areg(regs, dstreg);
16747 {	int32_t dst = m68k_read_memory_32(dsta);
16748 	m68k_areg(regs, dstreg) += 4;
16749 	src |= dst;
16750 	CLEAR_CZNV;
16751 	SET_ZFLG (((int32_t)(src)) == 0);
16752 	SET_NFLG (((int32_t)(src)) < 0);
16753 	m68k_write_memory_32(dsta,src);
16754 }}}}m68k_incpc(2);
16755 return 20;
16756 }
CPUFUNC(op_81a0_4)16757 unsigned long CPUFUNC(op_81a0_4)(uint32_t opcode) /* OR */
16758 {
16759 	uint32_t srcreg = ((opcode >> 9) & 7);
16760 	uint32_t dstreg = opcode & 7;
16761 	OpcodeFamily = 1; CurrentInstrCycles = 22;
16762 {{	int32_t src = m68k_dreg(regs, srcreg);
16763 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
16764 {	int32_t dst = m68k_read_memory_32(dsta);
16765 	m68k_areg (regs, dstreg) = dsta;
16766 	src |= dst;
16767 	CLEAR_CZNV;
16768 	SET_ZFLG (((int32_t)(src)) == 0);
16769 	SET_NFLG (((int32_t)(src)) < 0);
16770 	m68k_write_memory_32(dsta,src);
16771 }}}}m68k_incpc(2);
16772 return 22;
16773 }
CPUFUNC(op_81a8_4)16774 unsigned long CPUFUNC(op_81a8_4)(uint32_t opcode) /* OR */
16775 {
16776 	uint32_t srcreg = ((opcode >> 9) & 7);
16777 	uint32_t dstreg = opcode & 7;
16778 	OpcodeFamily = 1; CurrentInstrCycles = 24;
16779 {{	int32_t src = m68k_dreg(regs, srcreg);
16780 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
16781 {	int32_t dst = m68k_read_memory_32(dsta);
16782 	src |= dst;
16783 	CLEAR_CZNV;
16784 	SET_ZFLG (((int32_t)(src)) == 0);
16785 	SET_NFLG (((int32_t)(src)) < 0);
16786 	m68k_write_memory_32(dsta,src);
16787 }}}}m68k_incpc(4);
16788 return 24;
16789 }
CPUFUNC(op_81b0_4)16790 unsigned long CPUFUNC(op_81b0_4)(uint32_t opcode) /* OR */
16791 {
16792 	uint32_t srcreg = ((opcode >> 9) & 7);
16793 	uint32_t dstreg = opcode & 7;
16794 	OpcodeFamily = 1; CurrentInstrCycles = 26;
16795 {{	int32_t src = m68k_dreg(regs, srcreg);
16796 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
16797 	BusCyclePenalty += 2;
16798 {	int32_t dst = m68k_read_memory_32(dsta);
16799 	src |= dst;
16800 	CLEAR_CZNV;
16801 	SET_ZFLG (((int32_t)(src)) == 0);
16802 	SET_NFLG (((int32_t)(src)) < 0);
16803 	m68k_write_memory_32(dsta,src);
16804 }}}}m68k_incpc(4);
16805 return 26;
16806 }
CPUFUNC(op_81b8_4)16807 unsigned long CPUFUNC(op_81b8_4)(uint32_t opcode) /* OR */
16808 {
16809 	uint32_t srcreg = ((opcode >> 9) & 7);
16810 	OpcodeFamily = 1; CurrentInstrCycles = 24;
16811 {{	int32_t src = m68k_dreg(regs, srcreg);
16812 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
16813 {	int32_t dst = m68k_read_memory_32(dsta);
16814 	src |= dst;
16815 	CLEAR_CZNV;
16816 	SET_ZFLG (((int32_t)(src)) == 0);
16817 	SET_NFLG (((int32_t)(src)) < 0);
16818 	m68k_write_memory_32(dsta,src);
16819 }}}}m68k_incpc(4);
16820 return 24;
16821 }
CPUFUNC(op_81b9_4)16822 unsigned long CPUFUNC(op_81b9_4)(uint32_t opcode) /* OR */
16823 {
16824 	uint32_t srcreg = ((opcode >> 9) & 7);
16825 	OpcodeFamily = 1; CurrentInstrCycles = 28;
16826 {{	int32_t src = m68k_dreg(regs, srcreg);
16827 {	uint32_t dsta = get_ilong(2);
16828 {	int32_t dst = m68k_read_memory_32(dsta);
16829 	src |= dst;
16830 	CLEAR_CZNV;
16831 	SET_ZFLG (((int32_t)(src)) == 0);
16832 	SET_NFLG (((int32_t)(src)) < 0);
16833 	m68k_write_memory_32(dsta,src);
16834 }}}}m68k_incpc(6);
16835 return 28;
16836 }
CPUFUNC(op_81c0_4)16837 unsigned long CPUFUNC(op_81c0_4)(uint32_t opcode) /* DIVS */
16838 {
16839 	uint32_t srcreg = (opcode & 7);
16840 	uint32_t dstreg = (opcode >> 9) & 7;
16841 	unsigned int retcycles = 0;
16842 	OpcodeFamily = 61; CurrentInstrCycles = 4;
16843 {	uint32_t oldpc = m68k_getpc();
16844 {	int16_t src = m68k_dreg(regs, srcreg);
16845 {	int32_t dst = m68k_dreg(regs, dstreg);
16846 m68k_incpc(2);
16847 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1127; } else {
16848 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
16849 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
16850 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16851 	{
16852 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
16853 	CLEAR_CZNV;
16854 	SET_ZFLG (((int16_t)(newv)) == 0);
16855 	SET_NFLG (((int16_t)(newv)) < 0);
16856 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16857 	m68k_dreg(regs, dstreg) = (newv);
16858 	}
16859 	}
16860 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
16861 }}}endlabel1127: ;
16862  return (4+retcycles);
16863 }
CPUFUNC(op_81d0_4)16864 unsigned long CPUFUNC(op_81d0_4)(uint32_t opcode) /* DIVS */
16865 {
16866 	uint32_t srcreg = (opcode & 7);
16867 	uint32_t dstreg = (opcode >> 9) & 7;
16868 	unsigned int retcycles = 0;
16869 	OpcodeFamily = 61; CurrentInstrCycles = 8;
16870 {	uint32_t oldpc = m68k_getpc();
16871 {	uint32_t srca = m68k_areg(regs, srcreg);
16872 {	int16_t src = m68k_read_memory_16(srca);
16873 {	int32_t dst = m68k_dreg(regs, dstreg);
16874 m68k_incpc(2);
16875 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1128; } else {
16876 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
16877 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
16878 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16879 	{
16880 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
16881 	CLEAR_CZNV;
16882 	SET_ZFLG (((int16_t)(newv)) == 0);
16883 	SET_NFLG (((int16_t)(newv)) < 0);
16884 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16885 	m68k_dreg(regs, dstreg) = (newv);
16886 	}
16887 	}
16888 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
16889 }}}}endlabel1128: ;
16890  return (8+retcycles);
16891 }
CPUFUNC(op_81d8_4)16892 unsigned long CPUFUNC(op_81d8_4)(uint32_t opcode) /* DIVS */
16893 {
16894 	uint32_t srcreg = (opcode & 7);
16895 	uint32_t dstreg = (opcode >> 9) & 7;
16896 	unsigned int retcycles = 0;
16897 	OpcodeFamily = 61; CurrentInstrCycles = 8;
16898 {	uint32_t oldpc = m68k_getpc();
16899 {	uint32_t srca = m68k_areg(regs, srcreg);
16900 {	int16_t src = m68k_read_memory_16(srca);
16901 	m68k_areg(regs, srcreg) += 2;
16902 {	int32_t dst = m68k_dreg(regs, dstreg);
16903 m68k_incpc(2);
16904 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1129; } else {
16905 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
16906 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
16907 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16908 	{
16909 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
16910 	CLEAR_CZNV;
16911 	SET_ZFLG (((int16_t)(newv)) == 0);
16912 	SET_NFLG (((int16_t)(newv)) < 0);
16913 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16914 	m68k_dreg(regs, dstreg) = (newv);
16915 	}
16916 	}
16917 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
16918 }}}}endlabel1129: ;
16919  return (8+retcycles);
16920 }
CPUFUNC(op_81e0_4)16921 unsigned long CPUFUNC(op_81e0_4)(uint32_t opcode) /* DIVS */
16922 {
16923 	uint32_t srcreg = (opcode & 7);
16924 	uint32_t dstreg = (opcode >> 9) & 7;
16925 	unsigned int retcycles = 0;
16926 	OpcodeFamily = 61; CurrentInstrCycles = 10;
16927 {	uint32_t oldpc = m68k_getpc();
16928 {	uint32_t srca = m68k_areg(regs, srcreg) - 2;
16929 {	int16_t src = m68k_read_memory_16(srca);
16930 	m68k_areg (regs, srcreg) = srca;
16931 {	int32_t dst = m68k_dreg(regs, dstreg);
16932 m68k_incpc(2);
16933 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1130; } else {
16934 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
16935 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
16936 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16937 	{
16938 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
16939 	CLEAR_CZNV;
16940 	SET_ZFLG (((int16_t)(newv)) == 0);
16941 	SET_NFLG (((int16_t)(newv)) < 0);
16942 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16943 	m68k_dreg(regs, dstreg) = (newv);
16944 	}
16945 	}
16946 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
16947 }}}}endlabel1130: ;
16948  return (10+retcycles);
16949 }
CPUFUNC(op_81e8_4)16950 unsigned long CPUFUNC(op_81e8_4)(uint32_t opcode) /* DIVS */
16951 {
16952 	uint32_t srcreg = (opcode & 7);
16953 	uint32_t dstreg = (opcode >> 9) & 7;
16954 	unsigned int retcycles = 0;
16955 	OpcodeFamily = 61; CurrentInstrCycles = 12;
16956 {	uint32_t oldpc = m68k_getpc();
16957 {	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
16958 {	int16_t src = m68k_read_memory_16(srca);
16959 {	int32_t dst = m68k_dreg(regs, dstreg);
16960 m68k_incpc(4);
16961 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1131; } else {
16962 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
16963 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
16964 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16965 	{
16966 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
16967 	CLEAR_CZNV;
16968 	SET_ZFLG (((int16_t)(newv)) == 0);
16969 	SET_NFLG (((int16_t)(newv)) < 0);
16970 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
16971 	m68k_dreg(regs, dstreg) = (newv);
16972 	}
16973 	}
16974 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
16975 }}}}endlabel1131: ;
16976  return (12+retcycles);
16977 }
CPUFUNC(op_81f0_4)16978 unsigned long CPUFUNC(op_81f0_4)(uint32_t opcode) /* DIVS */
16979 {
16980 	uint32_t srcreg = (opcode & 7);
16981 	uint32_t dstreg = (opcode >> 9) & 7;
16982 	unsigned int retcycles = 0;
16983 	OpcodeFamily = 61; CurrentInstrCycles = 14;
16984 {	uint32_t oldpc = m68k_getpc();
16985 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
16986 	BusCyclePenalty += 2;
16987 {	int16_t src = m68k_read_memory_16(srca);
16988 {	int32_t dst = m68k_dreg(regs, dstreg);
16989 m68k_incpc(4);
16990 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1132; } else {
16991 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
16992 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
16993 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
16994 	{
16995 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
16996 	CLEAR_CZNV;
16997 	SET_ZFLG (((int16_t)(newv)) == 0);
16998 	SET_NFLG (((int16_t)(newv)) < 0);
16999 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
17000 	m68k_dreg(regs, dstreg) = (newv);
17001 	}
17002 	}
17003 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
17004 }}}}endlabel1132: ;
17005  return (14+retcycles);
17006 }
CPUFUNC(op_81f8_4)17007 unsigned long CPUFUNC(op_81f8_4)(uint32_t opcode) /* DIVS */
17008 {
17009 	uint32_t dstreg = (opcode >> 9) & 7;
17010 	unsigned int retcycles = 0;
17011 	OpcodeFamily = 61; CurrentInstrCycles = 12;
17012 {	uint32_t oldpc = m68k_getpc();
17013 {	uint32_t srca = (int32_t)(int16_t)get_iword(2);
17014 {	int16_t src = m68k_read_memory_16(srca);
17015 {	int32_t dst = m68k_dreg(regs, dstreg);
17016 m68k_incpc(4);
17017 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1133; } else {
17018 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
17019 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
17020 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
17021 	{
17022 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
17023 	CLEAR_CZNV;
17024 	SET_ZFLG (((int16_t)(newv)) == 0);
17025 	SET_NFLG (((int16_t)(newv)) < 0);
17026 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
17027 	m68k_dreg(regs, dstreg) = (newv);
17028 	}
17029 	}
17030 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
17031 }}}}endlabel1133: ;
17032  return (12+retcycles);
17033 }
CPUFUNC(op_81f9_4)17034 unsigned long CPUFUNC(op_81f9_4)(uint32_t opcode) /* DIVS */
17035 {
17036 	uint32_t dstreg = (opcode >> 9) & 7;
17037 	unsigned int retcycles = 0;
17038 	OpcodeFamily = 61; CurrentInstrCycles = 16;
17039 {	uint32_t oldpc = m68k_getpc();
17040 {	uint32_t srca = get_ilong(2);
17041 {	int16_t src = m68k_read_memory_16(srca);
17042 {	int32_t dst = m68k_dreg(regs, dstreg);
17043 m68k_incpc(6);
17044 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1134; } else {
17045 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
17046 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
17047 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
17048 	{
17049 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
17050 	CLEAR_CZNV;
17051 	SET_ZFLG (((int16_t)(newv)) == 0);
17052 	SET_NFLG (((int16_t)(newv)) < 0);
17053 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
17054 	m68k_dreg(regs, dstreg) = (newv);
17055 	}
17056 	}
17057 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
17058 }}}}endlabel1134: ;
17059  return (16+retcycles);
17060 }
CPUFUNC(op_81fa_4)17061 unsigned long CPUFUNC(op_81fa_4)(uint32_t opcode) /* DIVS */
17062 {
17063 	uint32_t dstreg = (opcode >> 9) & 7;
17064 	unsigned int retcycles = 0;
17065 	OpcodeFamily = 61; CurrentInstrCycles = 12;
17066 {	uint32_t oldpc = m68k_getpc();
17067 {	uint32_t srca = m68k_getpc () + 2;
17068 	srca += (int32_t)(int16_t)get_iword(2);
17069 {	int16_t src = m68k_read_memory_16(srca);
17070 {	int32_t dst = m68k_dreg(regs, dstreg);
17071 m68k_incpc(4);
17072 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1135; } else {
17073 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
17074 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
17075 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
17076 	{
17077 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
17078 	CLEAR_CZNV;
17079 	SET_ZFLG (((int16_t)(newv)) == 0);
17080 	SET_NFLG (((int16_t)(newv)) < 0);
17081 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
17082 	m68k_dreg(regs, dstreg) = (newv);
17083 	}
17084 	}
17085 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
17086 }}}}endlabel1135: ;
17087  return (12+retcycles);
17088 }
CPUFUNC(op_81fb_4)17089 unsigned long CPUFUNC(op_81fb_4)(uint32_t opcode) /* DIVS */
17090 {
17091 	uint32_t dstreg = (opcode >> 9) & 7;
17092 	unsigned int retcycles = 0;
17093 	OpcodeFamily = 61; CurrentInstrCycles = 14;
17094 {	uint32_t oldpc = m68k_getpc();
17095 {	uint32_t tmppc = m68k_getpc() + 2;
17096 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
17097 	BusCyclePenalty += 2;
17098 {	int16_t src = m68k_read_memory_16(srca);
17099 {	int32_t dst = m68k_dreg(regs, dstreg);
17100 m68k_incpc(4);
17101 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1136; } else {
17102 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
17103 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
17104 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
17105 	{
17106 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
17107 	CLEAR_CZNV;
17108 	SET_ZFLG (((int16_t)(newv)) == 0);
17109 	SET_NFLG (((int16_t)(newv)) < 0);
17110 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
17111 	m68k_dreg(regs, dstreg) = (newv);
17112 	}
17113 	}
17114 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
17115 }}}}endlabel1136: ;
17116  return (14+retcycles);
17117 }
CPUFUNC(op_81fc_4)17118 unsigned long CPUFUNC(op_81fc_4)(uint32_t opcode) /* DIVS */
17119 {
17120 	uint32_t dstreg = (opcode >> 9) & 7;
17121 	unsigned int retcycles = 0;
17122 	OpcodeFamily = 61; CurrentInstrCycles = 8;
17123 {	uint32_t oldpc = m68k_getpc();
17124 {	int16_t src = get_iword(2);
17125 {	int32_t dst = m68k_dreg(regs, dstreg);
17126 m68k_incpc(4);
17127 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel1137; } else {
17128 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
17129 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
17130 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
17131 	{
17132 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
17133 	CLEAR_CZNV;
17134 	SET_ZFLG (((int16_t)(newv)) == 0);
17135 	SET_NFLG (((int16_t)(newv)) < 0);
17136 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
17137 	m68k_dreg(regs, dstreg) = (newv);
17138 	}
17139 	}
17140 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
17141 }}}endlabel1137: ;
17142  return (8+retcycles);
17143 }
CPUFUNC(op_9000_4)17144 unsigned long CPUFUNC(op_9000_4)(uint32_t opcode) /* SUB */
17145 {
17146 	uint32_t srcreg = (opcode & 7);
17147 	uint32_t dstreg = (opcode >> 9) & 7;
17148 	OpcodeFamily = 7; CurrentInstrCycles = 4;
17149 {{	int8_t src = m68k_dreg(regs, srcreg);
17150 {	int8_t dst = m68k_dreg(regs, dstreg);
17151 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17152 {	int flgs = ((int8_t)(src)) < 0;
17153 	int flgo = ((int8_t)(dst)) < 0;
17154 	int flgn = ((int8_t)(newv)) < 0;
17155 	SET_ZFLG (((int8_t)(newv)) == 0);
17156 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17157 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17158 	COPY_CARRY;
17159 	SET_NFLG (flgn != 0);
17160 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17161 }}}}}}m68k_incpc(2);
17162 return 4;
17163 }
CPUFUNC(op_9010_4)17164 unsigned long CPUFUNC(op_9010_4)(uint32_t opcode) /* SUB */
17165 {
17166 	uint32_t srcreg = (opcode & 7);
17167 	uint32_t dstreg = (opcode >> 9) & 7;
17168 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17169 {{	uint32_t srca = m68k_areg(regs, srcreg);
17170 {	int8_t src = m68k_read_memory_8(srca);
17171 {	int8_t dst = m68k_dreg(regs, dstreg);
17172 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17173 {	int flgs = ((int8_t)(src)) < 0;
17174 	int flgo = ((int8_t)(dst)) < 0;
17175 	int flgn = ((int8_t)(newv)) < 0;
17176 	SET_ZFLG (((int8_t)(newv)) == 0);
17177 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17178 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17179 	COPY_CARRY;
17180 	SET_NFLG (flgn != 0);
17181 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17182 }}}}}}}m68k_incpc(2);
17183 return 8;
17184 }
CPUFUNC(op_9018_4)17185 unsigned long CPUFUNC(op_9018_4)(uint32_t opcode) /* SUB */
17186 {
17187 	uint32_t srcreg = (opcode & 7);
17188 	uint32_t dstreg = (opcode >> 9) & 7;
17189 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17190 {{	uint32_t srca = m68k_areg(regs, srcreg);
17191 {	int8_t src = m68k_read_memory_8(srca);
17192 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
17193 {	int8_t dst = m68k_dreg(regs, dstreg);
17194 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17195 {	int flgs = ((int8_t)(src)) < 0;
17196 	int flgo = ((int8_t)(dst)) < 0;
17197 	int flgn = ((int8_t)(newv)) < 0;
17198 	SET_ZFLG (((int8_t)(newv)) == 0);
17199 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17200 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17201 	COPY_CARRY;
17202 	SET_NFLG (flgn != 0);
17203 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17204 }}}}}}}m68k_incpc(2);
17205 return 8;
17206 }
CPUFUNC(op_9020_4)17207 unsigned long CPUFUNC(op_9020_4)(uint32_t opcode) /* SUB */
17208 {
17209 	uint32_t srcreg = (opcode & 7);
17210 	uint32_t dstreg = (opcode >> 9) & 7;
17211 	OpcodeFamily = 7; CurrentInstrCycles = 10;
17212 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
17213 {	int8_t src = m68k_read_memory_8(srca);
17214 	m68k_areg (regs, srcreg) = srca;
17215 {	int8_t dst = m68k_dreg(regs, dstreg);
17216 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17217 {	int flgs = ((int8_t)(src)) < 0;
17218 	int flgo = ((int8_t)(dst)) < 0;
17219 	int flgn = ((int8_t)(newv)) < 0;
17220 	SET_ZFLG (((int8_t)(newv)) == 0);
17221 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17222 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17223 	COPY_CARRY;
17224 	SET_NFLG (flgn != 0);
17225 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17226 }}}}}}}m68k_incpc(2);
17227 return 10;
17228 }
CPUFUNC(op_9028_4)17229 unsigned long CPUFUNC(op_9028_4)(uint32_t opcode) /* SUB */
17230 {
17231 	uint32_t srcreg = (opcode & 7);
17232 	uint32_t dstreg = (opcode >> 9) & 7;
17233 	OpcodeFamily = 7; CurrentInstrCycles = 12;
17234 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
17235 {	int8_t src = m68k_read_memory_8(srca);
17236 {	int8_t dst = m68k_dreg(regs, dstreg);
17237 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17238 {	int flgs = ((int8_t)(src)) < 0;
17239 	int flgo = ((int8_t)(dst)) < 0;
17240 	int flgn = ((int8_t)(newv)) < 0;
17241 	SET_ZFLG (((int8_t)(newv)) == 0);
17242 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17243 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17244 	COPY_CARRY;
17245 	SET_NFLG (flgn != 0);
17246 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17247 }}}}}}}m68k_incpc(4);
17248 return 12;
17249 }
CPUFUNC(op_9030_4)17250 unsigned long CPUFUNC(op_9030_4)(uint32_t opcode) /* SUB */
17251 {
17252 	uint32_t srcreg = (opcode & 7);
17253 	uint32_t dstreg = (opcode >> 9) & 7;
17254 	OpcodeFamily = 7; CurrentInstrCycles = 14;
17255 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
17256 	BusCyclePenalty += 2;
17257 {	int8_t src = m68k_read_memory_8(srca);
17258 {	int8_t dst = m68k_dreg(regs, dstreg);
17259 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17260 {	int flgs = ((int8_t)(src)) < 0;
17261 	int flgo = ((int8_t)(dst)) < 0;
17262 	int flgn = ((int8_t)(newv)) < 0;
17263 	SET_ZFLG (((int8_t)(newv)) == 0);
17264 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17265 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17266 	COPY_CARRY;
17267 	SET_NFLG (flgn != 0);
17268 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17269 }}}}}}}m68k_incpc(4);
17270 return 14;
17271 }
CPUFUNC(op_9038_4)17272 unsigned long CPUFUNC(op_9038_4)(uint32_t opcode) /* SUB */
17273 {
17274 	uint32_t dstreg = (opcode >> 9) & 7;
17275 	OpcodeFamily = 7; CurrentInstrCycles = 12;
17276 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
17277 {	int8_t src = m68k_read_memory_8(srca);
17278 {	int8_t dst = m68k_dreg(regs, dstreg);
17279 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17280 {	int flgs = ((int8_t)(src)) < 0;
17281 	int flgo = ((int8_t)(dst)) < 0;
17282 	int flgn = ((int8_t)(newv)) < 0;
17283 	SET_ZFLG (((int8_t)(newv)) == 0);
17284 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17285 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17286 	COPY_CARRY;
17287 	SET_NFLG (flgn != 0);
17288 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17289 }}}}}}}m68k_incpc(4);
17290 return 12;
17291 }
CPUFUNC(op_9039_4)17292 unsigned long CPUFUNC(op_9039_4)(uint32_t opcode) /* SUB */
17293 {
17294 	uint32_t dstreg = (opcode >> 9) & 7;
17295 	OpcodeFamily = 7; CurrentInstrCycles = 16;
17296 {{	uint32_t srca = get_ilong(2);
17297 {	int8_t src = m68k_read_memory_8(srca);
17298 {	int8_t dst = m68k_dreg(regs, dstreg);
17299 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17300 {	int flgs = ((int8_t)(src)) < 0;
17301 	int flgo = ((int8_t)(dst)) < 0;
17302 	int flgn = ((int8_t)(newv)) < 0;
17303 	SET_ZFLG (((int8_t)(newv)) == 0);
17304 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17305 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17306 	COPY_CARRY;
17307 	SET_NFLG (flgn != 0);
17308 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17309 }}}}}}}m68k_incpc(6);
17310 return 16;
17311 }
CPUFUNC(op_903a_4)17312 unsigned long CPUFUNC(op_903a_4)(uint32_t opcode) /* SUB */
17313 {
17314 	uint32_t dstreg = (opcode >> 9) & 7;
17315 	OpcodeFamily = 7; CurrentInstrCycles = 12;
17316 {{	uint32_t srca = m68k_getpc () + 2;
17317 	srca += (int32_t)(int16_t)get_iword(2);
17318 {	int8_t src = m68k_read_memory_8(srca);
17319 {	int8_t dst = m68k_dreg(regs, dstreg);
17320 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17321 {	int flgs = ((int8_t)(src)) < 0;
17322 	int flgo = ((int8_t)(dst)) < 0;
17323 	int flgn = ((int8_t)(newv)) < 0;
17324 	SET_ZFLG (((int8_t)(newv)) == 0);
17325 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17326 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17327 	COPY_CARRY;
17328 	SET_NFLG (flgn != 0);
17329 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17330 }}}}}}}m68k_incpc(4);
17331 return 12;
17332 }
CPUFUNC(op_903b_4)17333 unsigned long CPUFUNC(op_903b_4)(uint32_t opcode) /* SUB */
17334 {
17335 	uint32_t dstreg = (opcode >> 9) & 7;
17336 	OpcodeFamily = 7; CurrentInstrCycles = 14;
17337 {{	uint32_t tmppc = m68k_getpc() + 2;
17338 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
17339 	BusCyclePenalty += 2;
17340 {	int8_t src = m68k_read_memory_8(srca);
17341 {	int8_t dst = m68k_dreg(regs, dstreg);
17342 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17343 {	int flgs = ((int8_t)(src)) < 0;
17344 	int flgo = ((int8_t)(dst)) < 0;
17345 	int flgn = ((int8_t)(newv)) < 0;
17346 	SET_ZFLG (((int8_t)(newv)) == 0);
17347 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17348 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17349 	COPY_CARRY;
17350 	SET_NFLG (flgn != 0);
17351 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17352 }}}}}}}m68k_incpc(4);
17353 return 14;
17354 }
CPUFUNC(op_903c_4)17355 unsigned long CPUFUNC(op_903c_4)(uint32_t opcode) /* SUB */
17356 {
17357 	uint32_t dstreg = (opcode >> 9) & 7;
17358 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17359 {{	int8_t src = get_ibyte(2);
17360 {	int8_t dst = m68k_dreg(regs, dstreg);
17361 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
17362 {	int flgs = ((int8_t)(src)) < 0;
17363 	int flgo = ((int8_t)(dst)) < 0;
17364 	int flgn = ((int8_t)(newv)) < 0;
17365 	SET_ZFLG (((int8_t)(newv)) == 0);
17366 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17367 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
17368 	COPY_CARRY;
17369 	SET_NFLG (flgn != 0);
17370 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
17371 }}}}}}m68k_incpc(4);
17372 return 8;
17373 }
CPUFUNC(op_9040_4)17374 unsigned long CPUFUNC(op_9040_4)(uint32_t opcode) /* SUB */
17375 {
17376 	uint32_t srcreg = (opcode & 7);
17377 	uint32_t dstreg = (opcode >> 9) & 7;
17378 	OpcodeFamily = 7; CurrentInstrCycles = 4;
17379 {{	int16_t src = m68k_dreg(regs, srcreg);
17380 {	int16_t dst = m68k_dreg(regs, dstreg);
17381 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17382 {	int flgs = ((int16_t)(src)) < 0;
17383 	int flgo = ((int16_t)(dst)) < 0;
17384 	int flgn = ((int16_t)(newv)) < 0;
17385 	SET_ZFLG (((int16_t)(newv)) == 0);
17386 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17387 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17388 	COPY_CARRY;
17389 	SET_NFLG (flgn != 0);
17390 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17391 }}}}}}m68k_incpc(2);
17392 return 4;
17393 }
CPUFUNC(op_9048_4)17394 unsigned long CPUFUNC(op_9048_4)(uint32_t opcode) /* SUB */
17395 {
17396 	uint32_t srcreg = (opcode & 7);
17397 	uint32_t dstreg = (opcode >> 9) & 7;
17398 	OpcodeFamily = 7; CurrentInstrCycles = 4;
17399 {{	int16_t src = m68k_areg(regs, srcreg);
17400 {	int16_t dst = m68k_dreg(regs, dstreg);
17401 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17402 {	int flgs = ((int16_t)(src)) < 0;
17403 	int flgo = ((int16_t)(dst)) < 0;
17404 	int flgn = ((int16_t)(newv)) < 0;
17405 	SET_ZFLG (((int16_t)(newv)) == 0);
17406 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17407 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17408 	COPY_CARRY;
17409 	SET_NFLG (flgn != 0);
17410 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17411 }}}}}}m68k_incpc(2);
17412 return 4;
17413 }
CPUFUNC(op_9050_4)17414 unsigned long CPUFUNC(op_9050_4)(uint32_t opcode) /* SUB */
17415 {
17416 	uint32_t srcreg = (opcode & 7);
17417 	uint32_t dstreg = (opcode >> 9) & 7;
17418 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17419 {{	uint32_t srca = m68k_areg(regs, srcreg);
17420 {	int16_t src = m68k_read_memory_16(srca);
17421 {	int16_t dst = m68k_dreg(regs, dstreg);
17422 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17423 {	int flgs = ((int16_t)(src)) < 0;
17424 	int flgo = ((int16_t)(dst)) < 0;
17425 	int flgn = ((int16_t)(newv)) < 0;
17426 	SET_ZFLG (((int16_t)(newv)) == 0);
17427 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17428 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17429 	COPY_CARRY;
17430 	SET_NFLG (flgn != 0);
17431 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17432 }}}}}}}m68k_incpc(2);
17433 return 8;
17434 }
CPUFUNC(op_9058_4)17435 unsigned long CPUFUNC(op_9058_4)(uint32_t opcode) /* SUB */
17436 {
17437 	uint32_t srcreg = (opcode & 7);
17438 	uint32_t dstreg = (opcode >> 9) & 7;
17439 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17440 {{	uint32_t srca = m68k_areg(regs, srcreg);
17441 {	int16_t src = m68k_read_memory_16(srca);
17442 	m68k_areg(regs, srcreg) += 2;
17443 {	int16_t dst = m68k_dreg(regs, dstreg);
17444 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17445 {	int flgs = ((int16_t)(src)) < 0;
17446 	int flgo = ((int16_t)(dst)) < 0;
17447 	int flgn = ((int16_t)(newv)) < 0;
17448 	SET_ZFLG (((int16_t)(newv)) == 0);
17449 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17450 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17451 	COPY_CARRY;
17452 	SET_NFLG (flgn != 0);
17453 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17454 }}}}}}}m68k_incpc(2);
17455 return 8;
17456 }
CPUFUNC(op_9060_4)17457 unsigned long CPUFUNC(op_9060_4)(uint32_t opcode) /* SUB */
17458 {
17459 	uint32_t srcreg = (opcode & 7);
17460 	uint32_t dstreg = (opcode >> 9) & 7;
17461 	OpcodeFamily = 7; CurrentInstrCycles = 10;
17462 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
17463 {	int16_t src = m68k_read_memory_16(srca);
17464 	m68k_areg (regs, srcreg) = srca;
17465 {	int16_t dst = m68k_dreg(regs, dstreg);
17466 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17467 {	int flgs = ((int16_t)(src)) < 0;
17468 	int flgo = ((int16_t)(dst)) < 0;
17469 	int flgn = ((int16_t)(newv)) < 0;
17470 	SET_ZFLG (((int16_t)(newv)) == 0);
17471 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17472 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17473 	COPY_CARRY;
17474 	SET_NFLG (flgn != 0);
17475 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17476 }}}}}}}m68k_incpc(2);
17477 return 10;
17478 }
CPUFUNC(op_9068_4)17479 unsigned long CPUFUNC(op_9068_4)(uint32_t opcode) /* SUB */
17480 {
17481 	uint32_t srcreg = (opcode & 7);
17482 	uint32_t dstreg = (opcode >> 9) & 7;
17483 	OpcodeFamily = 7; CurrentInstrCycles = 12;
17484 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
17485 {	int16_t src = m68k_read_memory_16(srca);
17486 {	int16_t dst = m68k_dreg(regs, dstreg);
17487 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17488 {	int flgs = ((int16_t)(src)) < 0;
17489 	int flgo = ((int16_t)(dst)) < 0;
17490 	int flgn = ((int16_t)(newv)) < 0;
17491 	SET_ZFLG (((int16_t)(newv)) == 0);
17492 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17493 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17494 	COPY_CARRY;
17495 	SET_NFLG (flgn != 0);
17496 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17497 }}}}}}}m68k_incpc(4);
17498 return 12;
17499 }
CPUFUNC(op_9070_4)17500 unsigned long CPUFUNC(op_9070_4)(uint32_t opcode) /* SUB */
17501 {
17502 	uint32_t srcreg = (opcode & 7);
17503 	uint32_t dstreg = (opcode >> 9) & 7;
17504 	OpcodeFamily = 7; CurrentInstrCycles = 14;
17505 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
17506 	BusCyclePenalty += 2;
17507 {	int16_t src = m68k_read_memory_16(srca);
17508 {	int16_t dst = m68k_dreg(regs, dstreg);
17509 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17510 {	int flgs = ((int16_t)(src)) < 0;
17511 	int flgo = ((int16_t)(dst)) < 0;
17512 	int flgn = ((int16_t)(newv)) < 0;
17513 	SET_ZFLG (((int16_t)(newv)) == 0);
17514 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17515 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17516 	COPY_CARRY;
17517 	SET_NFLG (flgn != 0);
17518 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17519 }}}}}}}m68k_incpc(4);
17520 return 14;
17521 }
CPUFUNC(op_9078_4)17522 unsigned long CPUFUNC(op_9078_4)(uint32_t opcode) /* SUB */
17523 {
17524 	uint32_t dstreg = (opcode >> 9) & 7;
17525 	OpcodeFamily = 7; CurrentInstrCycles = 12;
17526 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
17527 {	int16_t src = m68k_read_memory_16(srca);
17528 {	int16_t dst = m68k_dreg(regs, dstreg);
17529 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17530 {	int flgs = ((int16_t)(src)) < 0;
17531 	int flgo = ((int16_t)(dst)) < 0;
17532 	int flgn = ((int16_t)(newv)) < 0;
17533 	SET_ZFLG (((int16_t)(newv)) == 0);
17534 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17535 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17536 	COPY_CARRY;
17537 	SET_NFLG (flgn != 0);
17538 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17539 }}}}}}}m68k_incpc(4);
17540 return 12;
17541 }
CPUFUNC(op_9079_4)17542 unsigned long CPUFUNC(op_9079_4)(uint32_t opcode) /* SUB */
17543 {
17544 	uint32_t dstreg = (opcode >> 9) & 7;
17545 	OpcodeFamily = 7; CurrentInstrCycles = 16;
17546 {{	uint32_t srca = get_ilong(2);
17547 {	int16_t src = m68k_read_memory_16(srca);
17548 {	int16_t dst = m68k_dreg(regs, dstreg);
17549 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17550 {	int flgs = ((int16_t)(src)) < 0;
17551 	int flgo = ((int16_t)(dst)) < 0;
17552 	int flgn = ((int16_t)(newv)) < 0;
17553 	SET_ZFLG (((int16_t)(newv)) == 0);
17554 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17555 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17556 	COPY_CARRY;
17557 	SET_NFLG (flgn != 0);
17558 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17559 }}}}}}}m68k_incpc(6);
17560 return 16;
17561 }
CPUFUNC(op_907a_4)17562 unsigned long CPUFUNC(op_907a_4)(uint32_t opcode) /* SUB */
17563 {
17564 	uint32_t dstreg = (opcode >> 9) & 7;
17565 	OpcodeFamily = 7; CurrentInstrCycles = 12;
17566 {{	uint32_t srca = m68k_getpc () + 2;
17567 	srca += (int32_t)(int16_t)get_iword(2);
17568 {	int16_t src = m68k_read_memory_16(srca);
17569 {	int16_t dst = m68k_dreg(regs, dstreg);
17570 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17571 {	int flgs = ((int16_t)(src)) < 0;
17572 	int flgo = ((int16_t)(dst)) < 0;
17573 	int flgn = ((int16_t)(newv)) < 0;
17574 	SET_ZFLG (((int16_t)(newv)) == 0);
17575 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17576 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17577 	COPY_CARRY;
17578 	SET_NFLG (flgn != 0);
17579 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17580 }}}}}}}m68k_incpc(4);
17581 return 12;
17582 }
CPUFUNC(op_907b_4)17583 unsigned long CPUFUNC(op_907b_4)(uint32_t opcode) /* SUB */
17584 {
17585 	uint32_t dstreg = (opcode >> 9) & 7;
17586 	OpcodeFamily = 7; CurrentInstrCycles = 14;
17587 {{	uint32_t tmppc = m68k_getpc() + 2;
17588 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
17589 	BusCyclePenalty += 2;
17590 {	int16_t src = m68k_read_memory_16(srca);
17591 {	int16_t dst = m68k_dreg(regs, dstreg);
17592 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17593 {	int flgs = ((int16_t)(src)) < 0;
17594 	int flgo = ((int16_t)(dst)) < 0;
17595 	int flgn = ((int16_t)(newv)) < 0;
17596 	SET_ZFLG (((int16_t)(newv)) == 0);
17597 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17598 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17599 	COPY_CARRY;
17600 	SET_NFLG (flgn != 0);
17601 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17602 }}}}}}}m68k_incpc(4);
17603 return 14;
17604 }
CPUFUNC(op_907c_4)17605 unsigned long CPUFUNC(op_907c_4)(uint32_t opcode) /* SUB */
17606 {
17607 	uint32_t dstreg = (opcode >> 9) & 7;
17608 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17609 {{	int16_t src = get_iword(2);
17610 {	int16_t dst = m68k_dreg(regs, dstreg);
17611 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
17612 {	int flgs = ((int16_t)(src)) < 0;
17613 	int flgo = ((int16_t)(dst)) < 0;
17614 	int flgn = ((int16_t)(newv)) < 0;
17615 	SET_ZFLG (((int16_t)(newv)) == 0);
17616 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17617 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
17618 	COPY_CARRY;
17619 	SET_NFLG (flgn != 0);
17620 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
17621 }}}}}}m68k_incpc(4);
17622 return 8;
17623 }
CPUFUNC(op_9080_4)17624 unsigned long CPUFUNC(op_9080_4)(uint32_t opcode) /* SUB */
17625 {
17626 	uint32_t srcreg = (opcode & 7);
17627 	uint32_t dstreg = (opcode >> 9) & 7;
17628 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17629 {{	int32_t src = m68k_dreg(regs, srcreg);
17630 {	int32_t dst = m68k_dreg(regs, dstreg);
17631 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17632 {	int flgs = ((int32_t)(src)) < 0;
17633 	int flgo = ((int32_t)(dst)) < 0;
17634 	int flgn = ((int32_t)(newv)) < 0;
17635 	SET_ZFLG (((int32_t)(newv)) == 0);
17636 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17637 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17638 	COPY_CARRY;
17639 	SET_NFLG (flgn != 0);
17640 	m68k_dreg(regs, dstreg) = (newv);
17641 }}}}}}m68k_incpc(2);
17642 return 8;
17643 }
CPUFUNC(op_9088_4)17644 unsigned long CPUFUNC(op_9088_4)(uint32_t opcode) /* SUB */
17645 {
17646 	uint32_t srcreg = (opcode & 7);
17647 	uint32_t dstreg = (opcode >> 9) & 7;
17648 	OpcodeFamily = 7; CurrentInstrCycles = 8;
17649 {{	int32_t src = m68k_areg(regs, srcreg);
17650 {	int32_t dst = m68k_dreg(regs, dstreg);
17651 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17652 {	int flgs = ((int32_t)(src)) < 0;
17653 	int flgo = ((int32_t)(dst)) < 0;
17654 	int flgn = ((int32_t)(newv)) < 0;
17655 	SET_ZFLG (((int32_t)(newv)) == 0);
17656 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17657 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17658 	COPY_CARRY;
17659 	SET_NFLG (flgn != 0);
17660 	m68k_dreg(regs, dstreg) = (newv);
17661 }}}}}}m68k_incpc(2);
17662 return 8;
17663 }
CPUFUNC(op_9090_4)17664 unsigned long CPUFUNC(op_9090_4)(uint32_t opcode) /* SUB */
17665 {
17666 	uint32_t srcreg = (opcode & 7);
17667 	uint32_t dstreg = (opcode >> 9) & 7;
17668 	OpcodeFamily = 7; CurrentInstrCycles = 14;
17669 {{	uint32_t srca = m68k_areg(regs, srcreg);
17670 {	int32_t src = m68k_read_memory_32(srca);
17671 {	int32_t dst = m68k_dreg(regs, dstreg);
17672 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17673 {	int flgs = ((int32_t)(src)) < 0;
17674 	int flgo = ((int32_t)(dst)) < 0;
17675 	int flgn = ((int32_t)(newv)) < 0;
17676 	SET_ZFLG (((int32_t)(newv)) == 0);
17677 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17678 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17679 	COPY_CARRY;
17680 	SET_NFLG (flgn != 0);
17681 	m68k_dreg(regs, dstreg) = (newv);
17682 }}}}}}}m68k_incpc(2);
17683 return 14;
17684 }
CPUFUNC(op_9098_4)17685 unsigned long CPUFUNC(op_9098_4)(uint32_t opcode) /* SUB */
17686 {
17687 	uint32_t srcreg = (opcode & 7);
17688 	uint32_t dstreg = (opcode >> 9) & 7;
17689 	OpcodeFamily = 7; CurrentInstrCycles = 14;
17690 {{	uint32_t srca = m68k_areg(regs, srcreg);
17691 {	int32_t src = m68k_read_memory_32(srca);
17692 	m68k_areg(regs, srcreg) += 4;
17693 {	int32_t dst = m68k_dreg(regs, dstreg);
17694 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17695 {	int flgs = ((int32_t)(src)) < 0;
17696 	int flgo = ((int32_t)(dst)) < 0;
17697 	int flgn = ((int32_t)(newv)) < 0;
17698 	SET_ZFLG (((int32_t)(newv)) == 0);
17699 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17700 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17701 	COPY_CARRY;
17702 	SET_NFLG (flgn != 0);
17703 	m68k_dreg(regs, dstreg) = (newv);
17704 }}}}}}}m68k_incpc(2);
17705 return 14;
17706 }
CPUFUNC(op_90a0_4)17707 unsigned long CPUFUNC(op_90a0_4)(uint32_t opcode) /* SUB */
17708 {
17709 	uint32_t srcreg = (opcode & 7);
17710 	uint32_t dstreg = (opcode >> 9) & 7;
17711 	OpcodeFamily = 7; CurrentInstrCycles = 16;
17712 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
17713 {	int32_t src = m68k_read_memory_32(srca);
17714 	m68k_areg (regs, srcreg) = srca;
17715 {	int32_t dst = m68k_dreg(regs, dstreg);
17716 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17717 {	int flgs = ((int32_t)(src)) < 0;
17718 	int flgo = ((int32_t)(dst)) < 0;
17719 	int flgn = ((int32_t)(newv)) < 0;
17720 	SET_ZFLG (((int32_t)(newv)) == 0);
17721 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17722 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17723 	COPY_CARRY;
17724 	SET_NFLG (flgn != 0);
17725 	m68k_dreg(regs, dstreg) = (newv);
17726 }}}}}}}m68k_incpc(2);
17727 return 16;
17728 }
CPUFUNC(op_90a8_4)17729 unsigned long CPUFUNC(op_90a8_4)(uint32_t opcode) /* SUB */
17730 {
17731 	uint32_t srcreg = (opcode & 7);
17732 	uint32_t dstreg = (opcode >> 9) & 7;
17733 	OpcodeFamily = 7; CurrentInstrCycles = 18;
17734 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
17735 {	int32_t src = m68k_read_memory_32(srca);
17736 {	int32_t dst = m68k_dreg(regs, dstreg);
17737 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17738 {	int flgs = ((int32_t)(src)) < 0;
17739 	int flgo = ((int32_t)(dst)) < 0;
17740 	int flgn = ((int32_t)(newv)) < 0;
17741 	SET_ZFLG (((int32_t)(newv)) == 0);
17742 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17743 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17744 	COPY_CARRY;
17745 	SET_NFLG (flgn != 0);
17746 	m68k_dreg(regs, dstreg) = (newv);
17747 }}}}}}}m68k_incpc(4);
17748 return 18;
17749 }
CPUFUNC(op_90b0_4)17750 unsigned long CPUFUNC(op_90b0_4)(uint32_t opcode) /* SUB */
17751 {
17752 	uint32_t srcreg = (opcode & 7);
17753 	uint32_t dstreg = (opcode >> 9) & 7;
17754 	OpcodeFamily = 7; CurrentInstrCycles = 20;
17755 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
17756 	BusCyclePenalty += 2;
17757 {	int32_t src = m68k_read_memory_32(srca);
17758 {	int32_t dst = m68k_dreg(regs, dstreg);
17759 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17760 {	int flgs = ((int32_t)(src)) < 0;
17761 	int flgo = ((int32_t)(dst)) < 0;
17762 	int flgn = ((int32_t)(newv)) < 0;
17763 	SET_ZFLG (((int32_t)(newv)) == 0);
17764 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17765 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17766 	COPY_CARRY;
17767 	SET_NFLG (flgn != 0);
17768 	m68k_dreg(regs, dstreg) = (newv);
17769 }}}}}}}m68k_incpc(4);
17770 return 20;
17771 }
CPUFUNC(op_90b8_4)17772 unsigned long CPUFUNC(op_90b8_4)(uint32_t opcode) /* SUB */
17773 {
17774 	uint32_t dstreg = (opcode >> 9) & 7;
17775 	OpcodeFamily = 7; CurrentInstrCycles = 18;
17776 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
17777 {	int32_t src = m68k_read_memory_32(srca);
17778 {	int32_t dst = m68k_dreg(regs, dstreg);
17779 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17780 {	int flgs = ((int32_t)(src)) < 0;
17781 	int flgo = ((int32_t)(dst)) < 0;
17782 	int flgn = ((int32_t)(newv)) < 0;
17783 	SET_ZFLG (((int32_t)(newv)) == 0);
17784 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17785 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17786 	COPY_CARRY;
17787 	SET_NFLG (flgn != 0);
17788 	m68k_dreg(regs, dstreg) = (newv);
17789 }}}}}}}m68k_incpc(4);
17790 return 18;
17791 }
CPUFUNC(op_90b9_4)17792 unsigned long CPUFUNC(op_90b9_4)(uint32_t opcode) /* SUB */
17793 {
17794 	uint32_t dstreg = (opcode >> 9) & 7;
17795 	OpcodeFamily = 7; CurrentInstrCycles = 22;
17796 {{	uint32_t srca = get_ilong(2);
17797 {	int32_t src = m68k_read_memory_32(srca);
17798 {	int32_t dst = m68k_dreg(regs, dstreg);
17799 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17800 {	int flgs = ((int32_t)(src)) < 0;
17801 	int flgo = ((int32_t)(dst)) < 0;
17802 	int flgn = ((int32_t)(newv)) < 0;
17803 	SET_ZFLG (((int32_t)(newv)) == 0);
17804 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17805 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17806 	COPY_CARRY;
17807 	SET_NFLG (flgn != 0);
17808 	m68k_dreg(regs, dstreg) = (newv);
17809 }}}}}}}m68k_incpc(6);
17810 return 22;
17811 }
CPUFUNC(op_90ba_4)17812 unsigned long CPUFUNC(op_90ba_4)(uint32_t opcode) /* SUB */
17813 {
17814 	uint32_t dstreg = (opcode >> 9) & 7;
17815 	OpcodeFamily = 7; CurrentInstrCycles = 18;
17816 {{	uint32_t srca = m68k_getpc () + 2;
17817 	srca += (int32_t)(int16_t)get_iword(2);
17818 {	int32_t src = m68k_read_memory_32(srca);
17819 {	int32_t dst = m68k_dreg(regs, dstreg);
17820 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17821 {	int flgs = ((int32_t)(src)) < 0;
17822 	int flgo = ((int32_t)(dst)) < 0;
17823 	int flgn = ((int32_t)(newv)) < 0;
17824 	SET_ZFLG (((int32_t)(newv)) == 0);
17825 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17826 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17827 	COPY_CARRY;
17828 	SET_NFLG (flgn != 0);
17829 	m68k_dreg(regs, dstreg) = (newv);
17830 }}}}}}}m68k_incpc(4);
17831 return 18;
17832 }
CPUFUNC(op_90bb_4)17833 unsigned long CPUFUNC(op_90bb_4)(uint32_t opcode) /* SUB */
17834 {
17835 	uint32_t dstreg = (opcode >> 9) & 7;
17836 	OpcodeFamily = 7; CurrentInstrCycles = 20;
17837 {{	uint32_t tmppc = m68k_getpc() + 2;
17838 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
17839 	BusCyclePenalty += 2;
17840 {	int32_t src = m68k_read_memory_32(srca);
17841 {	int32_t dst = m68k_dreg(regs, dstreg);
17842 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17843 {	int flgs = ((int32_t)(src)) < 0;
17844 	int flgo = ((int32_t)(dst)) < 0;
17845 	int flgn = ((int32_t)(newv)) < 0;
17846 	SET_ZFLG (((int32_t)(newv)) == 0);
17847 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17848 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17849 	COPY_CARRY;
17850 	SET_NFLG (flgn != 0);
17851 	m68k_dreg(regs, dstreg) = (newv);
17852 }}}}}}}m68k_incpc(4);
17853 return 20;
17854 }
CPUFUNC(op_90bc_4)17855 unsigned long CPUFUNC(op_90bc_4)(uint32_t opcode) /* SUB */
17856 {
17857 	uint32_t dstreg = (opcode >> 9) & 7;
17858 	OpcodeFamily = 7; CurrentInstrCycles = 16;
17859 {{	int32_t src = get_ilong(2);
17860 {	int32_t dst = m68k_dreg(regs, dstreg);
17861 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
17862 {	int flgs = ((int32_t)(src)) < 0;
17863 	int flgo = ((int32_t)(dst)) < 0;
17864 	int flgn = ((int32_t)(newv)) < 0;
17865 	SET_ZFLG (((int32_t)(newv)) == 0);
17866 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
17867 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
17868 	COPY_CARRY;
17869 	SET_NFLG (flgn != 0);
17870 	m68k_dreg(regs, dstreg) = (newv);
17871 }}}}}}m68k_incpc(6);
17872 return 16;
17873 }
CPUFUNC(op_90c0_4)17874 unsigned long CPUFUNC(op_90c0_4)(uint32_t opcode) /* SUBA */
17875 {
17876 	uint32_t srcreg = (opcode & 7);
17877 	uint32_t dstreg = (opcode >> 9) & 7;
17878 	OpcodeFamily = 8; CurrentInstrCycles = 8;
17879 {{	int16_t src = m68k_dreg(regs, srcreg);
17880 {	int32_t dst = m68k_areg(regs, dstreg);
17881 {	uint32_t newv = dst - src;
17882 	m68k_areg(regs, dstreg) = (newv);
17883 }}}}m68k_incpc(2);
17884 return 8;
17885 }
CPUFUNC(op_90c8_4)17886 unsigned long CPUFUNC(op_90c8_4)(uint32_t opcode) /* SUBA */
17887 {
17888 	uint32_t srcreg = (opcode & 7);
17889 	uint32_t dstreg = (opcode >> 9) & 7;
17890 	OpcodeFamily = 8; CurrentInstrCycles = 8;
17891 {{	int16_t src = m68k_areg(regs, srcreg);
17892 {	int32_t dst = m68k_areg(regs, dstreg);
17893 {	uint32_t newv = dst - src;
17894 	m68k_areg(regs, dstreg) = (newv);
17895 }}}}m68k_incpc(2);
17896 return 8;
17897 }
CPUFUNC(op_90d0_4)17898 unsigned long CPUFUNC(op_90d0_4)(uint32_t opcode) /* SUBA */
17899 {
17900 	uint32_t srcreg = (opcode & 7);
17901 	uint32_t dstreg = (opcode >> 9) & 7;
17902 	OpcodeFamily = 8; CurrentInstrCycles = 12;
17903 {{	uint32_t srca = m68k_areg(regs, srcreg);
17904 {	int16_t src = m68k_read_memory_16(srca);
17905 {	int32_t dst = m68k_areg(regs, dstreg);
17906 {	uint32_t newv = dst - src;
17907 	m68k_areg(regs, dstreg) = (newv);
17908 }}}}}m68k_incpc(2);
17909 return 12;
17910 }
CPUFUNC(op_90d8_4)17911 unsigned long CPUFUNC(op_90d8_4)(uint32_t opcode) /* SUBA */
17912 {
17913 	uint32_t srcreg = (opcode & 7);
17914 	uint32_t dstreg = (opcode >> 9) & 7;
17915 	OpcodeFamily = 8; CurrentInstrCycles = 12;
17916 {{	uint32_t srca = m68k_areg(regs, srcreg);
17917 {	int16_t src = m68k_read_memory_16(srca);
17918 	m68k_areg(regs, srcreg) += 2;
17919 {	int32_t dst = m68k_areg(regs, dstreg);
17920 {	uint32_t newv = dst - src;
17921 	m68k_areg(regs, dstreg) = (newv);
17922 }}}}}m68k_incpc(2);
17923 return 12;
17924 }
CPUFUNC(op_90e0_4)17925 unsigned long CPUFUNC(op_90e0_4)(uint32_t opcode) /* SUBA */
17926 {
17927 	uint32_t srcreg = (opcode & 7);
17928 	uint32_t dstreg = (opcode >> 9) & 7;
17929 	OpcodeFamily = 8; CurrentInstrCycles = 14;
17930 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
17931 {	int16_t src = m68k_read_memory_16(srca);
17932 	m68k_areg (regs, srcreg) = srca;
17933 {	int32_t dst = m68k_areg(regs, dstreg);
17934 {	uint32_t newv = dst - src;
17935 	m68k_areg(regs, dstreg) = (newv);
17936 }}}}}m68k_incpc(2);
17937 return 14;
17938 }
CPUFUNC(op_90e8_4)17939 unsigned long CPUFUNC(op_90e8_4)(uint32_t opcode) /* SUBA */
17940 {
17941 	uint32_t srcreg = (opcode & 7);
17942 	uint32_t dstreg = (opcode >> 9) & 7;
17943 	OpcodeFamily = 8; CurrentInstrCycles = 16;
17944 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
17945 {	int16_t src = m68k_read_memory_16(srca);
17946 {	int32_t dst = m68k_areg(regs, dstreg);
17947 {	uint32_t newv = dst - src;
17948 	m68k_areg(regs, dstreg) = (newv);
17949 }}}}}m68k_incpc(4);
17950 return 16;
17951 }
CPUFUNC(op_90f0_4)17952 unsigned long CPUFUNC(op_90f0_4)(uint32_t opcode) /* SUBA */
17953 {
17954 	uint32_t srcreg = (opcode & 7);
17955 	uint32_t dstreg = (opcode >> 9) & 7;
17956 	OpcodeFamily = 8; CurrentInstrCycles = 18;
17957 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
17958 	BusCyclePenalty += 2;
17959 {	int16_t src = m68k_read_memory_16(srca);
17960 {	int32_t dst = m68k_areg(regs, dstreg);
17961 {	uint32_t newv = dst - src;
17962 	m68k_areg(regs, dstreg) = (newv);
17963 }}}}}m68k_incpc(4);
17964 return 18;
17965 }
CPUFUNC(op_90f8_4)17966 unsigned long CPUFUNC(op_90f8_4)(uint32_t opcode) /* SUBA */
17967 {
17968 	uint32_t dstreg = (opcode >> 9) & 7;
17969 	OpcodeFamily = 8; CurrentInstrCycles = 16;
17970 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
17971 {	int16_t src = m68k_read_memory_16(srca);
17972 {	int32_t dst = m68k_areg(regs, dstreg);
17973 {	uint32_t newv = dst - src;
17974 	m68k_areg(regs, dstreg) = (newv);
17975 }}}}}m68k_incpc(4);
17976 return 16;
17977 }
CPUFUNC(op_90f9_4)17978 unsigned long CPUFUNC(op_90f9_4)(uint32_t opcode) /* SUBA */
17979 {
17980 	uint32_t dstreg = (opcode >> 9) & 7;
17981 	OpcodeFamily = 8; CurrentInstrCycles = 20;
17982 {{	uint32_t srca = get_ilong(2);
17983 {	int16_t src = m68k_read_memory_16(srca);
17984 {	int32_t dst = m68k_areg(regs, dstreg);
17985 {	uint32_t newv = dst - src;
17986 	m68k_areg(regs, dstreg) = (newv);
17987 }}}}}m68k_incpc(6);
17988 return 20;
17989 }
CPUFUNC(op_90fa_4)17990 unsigned long CPUFUNC(op_90fa_4)(uint32_t opcode) /* SUBA */
17991 {
17992 	uint32_t dstreg = (opcode >> 9) & 7;
17993 	OpcodeFamily = 8; CurrentInstrCycles = 16;
17994 {{	uint32_t srca = m68k_getpc () + 2;
17995 	srca += (int32_t)(int16_t)get_iword(2);
17996 {	int16_t src = m68k_read_memory_16(srca);
17997 {	int32_t dst = m68k_areg(regs, dstreg);
17998 {	uint32_t newv = dst - src;
17999 	m68k_areg(regs, dstreg) = (newv);
18000 }}}}}m68k_incpc(4);
18001 return 16;
18002 }
CPUFUNC(op_90fb_4)18003 unsigned long CPUFUNC(op_90fb_4)(uint32_t opcode) /* SUBA */
18004 {
18005 	uint32_t dstreg = (opcode >> 9) & 7;
18006 	OpcodeFamily = 8; CurrentInstrCycles = 18;
18007 {{	uint32_t tmppc = m68k_getpc() + 2;
18008 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
18009 	BusCyclePenalty += 2;
18010 {	int16_t src = m68k_read_memory_16(srca);
18011 {	int32_t dst = m68k_areg(regs, dstreg);
18012 {	uint32_t newv = dst - src;
18013 	m68k_areg(regs, dstreg) = (newv);
18014 }}}}}m68k_incpc(4);
18015 return 18;
18016 }
CPUFUNC(op_90fc_4)18017 unsigned long CPUFUNC(op_90fc_4)(uint32_t opcode) /* SUBA */
18018 {
18019 	uint32_t dstreg = (opcode >> 9) & 7;
18020 	OpcodeFamily = 8; CurrentInstrCycles = 12;
18021 {{	int16_t src = get_iword(2);
18022 {	int32_t dst = m68k_areg(regs, dstreg);
18023 {	uint32_t newv = dst - src;
18024 	m68k_areg(regs, dstreg) = (newv);
18025 }}}}m68k_incpc(4);
18026 return 12;
18027 }
CPUFUNC(op_9100_4)18028 unsigned long CPUFUNC(op_9100_4)(uint32_t opcode) /* SUBX */
18029 {
18030 	uint32_t srcreg = (opcode & 7);
18031 	uint32_t dstreg = (opcode >> 9) & 7;
18032 	OpcodeFamily = 9; CurrentInstrCycles = 4;
18033 {{	int8_t src = m68k_dreg(regs, srcreg);
18034 {	int8_t dst = m68k_dreg(regs, dstreg);
18035 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
18036 {	int flgs = ((int8_t)(src)) < 0;
18037 	int flgo = ((int8_t)(dst)) < 0;
18038 	int flgn = ((int8_t)(newv)) < 0;
18039 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
18040 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
18041 	COPY_CARRY;
18042 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
18043 	SET_NFLG (((int8_t)(newv)) < 0);
18044 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
18045 }}}}}m68k_incpc(2);
18046 return 4;
18047 }
CPUFUNC(op_9108_4)18048 unsigned long CPUFUNC(op_9108_4)(uint32_t opcode) /* SUBX */
18049 {
18050 	uint32_t srcreg = (opcode & 7);
18051 	uint32_t dstreg = (opcode >> 9) & 7;
18052 	OpcodeFamily = 9; CurrentInstrCycles = 18;
18053 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
18054 {	int8_t src = m68k_read_memory_8(srca);
18055 	m68k_areg (regs, srcreg) = srca;
18056 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
18057 {	int8_t dst = m68k_read_memory_8(dsta);
18058 	m68k_areg (regs, dstreg) = dsta;
18059 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
18060 {	int flgs = ((int8_t)(src)) < 0;
18061 	int flgo = ((int8_t)(dst)) < 0;
18062 	int flgn = ((int8_t)(newv)) < 0;
18063 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
18064 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
18065 	COPY_CARRY;
18066 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
18067 	SET_NFLG (((int8_t)(newv)) < 0);
18068 	m68k_write_memory_8(dsta,newv);
18069 }}}}}}}m68k_incpc(2);
18070 return 18;
18071 }
CPUFUNC(op_9110_4)18072 unsigned long CPUFUNC(op_9110_4)(uint32_t opcode) /* SUB */
18073 {
18074 	uint32_t srcreg = ((opcode >> 9) & 7);
18075 	uint32_t dstreg = opcode & 7;
18076 	OpcodeFamily = 7; CurrentInstrCycles = 12;
18077 {{	int8_t src = m68k_dreg(regs, srcreg);
18078 {	uint32_t dsta = m68k_areg(regs, dstreg);
18079 {	int8_t dst = m68k_read_memory_8(dsta);
18080 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18081 {	int flgs = ((int8_t)(src)) < 0;
18082 	int flgo = ((int8_t)(dst)) < 0;
18083 	int flgn = ((int8_t)(newv)) < 0;
18084 	SET_ZFLG (((int8_t)(newv)) == 0);
18085 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18086 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18087 	COPY_CARRY;
18088 	SET_NFLG (flgn != 0);
18089 	m68k_write_memory_8(dsta,newv);
18090 }}}}}}}m68k_incpc(2);
18091 return 12;
18092 }
CPUFUNC(op_9118_4)18093 unsigned long CPUFUNC(op_9118_4)(uint32_t opcode) /* SUB */
18094 {
18095 	uint32_t srcreg = ((opcode >> 9) & 7);
18096 	uint32_t dstreg = opcode & 7;
18097 	OpcodeFamily = 7; CurrentInstrCycles = 12;
18098 {{	int8_t src = m68k_dreg(regs, srcreg);
18099 {	uint32_t dsta = m68k_areg(regs, dstreg);
18100 {	int8_t dst = m68k_read_memory_8(dsta);
18101 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
18102 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18103 {	int flgs = ((int8_t)(src)) < 0;
18104 	int flgo = ((int8_t)(dst)) < 0;
18105 	int flgn = ((int8_t)(newv)) < 0;
18106 	SET_ZFLG (((int8_t)(newv)) == 0);
18107 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18108 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18109 	COPY_CARRY;
18110 	SET_NFLG (flgn != 0);
18111 	m68k_write_memory_8(dsta,newv);
18112 }}}}}}}m68k_incpc(2);
18113 return 12;
18114 }
CPUFUNC(op_9120_4)18115 unsigned long CPUFUNC(op_9120_4)(uint32_t opcode) /* SUB */
18116 {
18117 	uint32_t srcreg = ((opcode >> 9) & 7);
18118 	uint32_t dstreg = opcode & 7;
18119 	OpcodeFamily = 7; CurrentInstrCycles = 14;
18120 {{	int8_t src = m68k_dreg(regs, srcreg);
18121 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
18122 {	int8_t dst = m68k_read_memory_8(dsta);
18123 	m68k_areg (regs, dstreg) = dsta;
18124 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18125 {	int flgs = ((int8_t)(src)) < 0;
18126 	int flgo = ((int8_t)(dst)) < 0;
18127 	int flgn = ((int8_t)(newv)) < 0;
18128 	SET_ZFLG (((int8_t)(newv)) == 0);
18129 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18130 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18131 	COPY_CARRY;
18132 	SET_NFLG (flgn != 0);
18133 	m68k_write_memory_8(dsta,newv);
18134 }}}}}}}m68k_incpc(2);
18135 return 14;
18136 }
CPUFUNC(op_9128_4)18137 unsigned long CPUFUNC(op_9128_4)(uint32_t opcode) /* SUB */
18138 {
18139 	uint32_t srcreg = ((opcode >> 9) & 7);
18140 	uint32_t dstreg = opcode & 7;
18141 	OpcodeFamily = 7; CurrentInstrCycles = 16;
18142 {{	int8_t src = m68k_dreg(regs, srcreg);
18143 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
18144 {	int8_t dst = m68k_read_memory_8(dsta);
18145 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18146 {	int flgs = ((int8_t)(src)) < 0;
18147 	int flgo = ((int8_t)(dst)) < 0;
18148 	int flgn = ((int8_t)(newv)) < 0;
18149 	SET_ZFLG (((int8_t)(newv)) == 0);
18150 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18151 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18152 	COPY_CARRY;
18153 	SET_NFLG (flgn != 0);
18154 	m68k_write_memory_8(dsta,newv);
18155 }}}}}}}m68k_incpc(4);
18156 return 16;
18157 }
CPUFUNC(op_9130_4)18158 unsigned long CPUFUNC(op_9130_4)(uint32_t opcode) /* SUB */
18159 {
18160 	uint32_t srcreg = ((opcode >> 9) & 7);
18161 	uint32_t dstreg = opcode & 7;
18162 	OpcodeFamily = 7; CurrentInstrCycles = 18;
18163 {{	int8_t src = m68k_dreg(regs, srcreg);
18164 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
18165 	BusCyclePenalty += 2;
18166 {	int8_t dst = m68k_read_memory_8(dsta);
18167 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18168 {	int flgs = ((int8_t)(src)) < 0;
18169 	int flgo = ((int8_t)(dst)) < 0;
18170 	int flgn = ((int8_t)(newv)) < 0;
18171 	SET_ZFLG (((int8_t)(newv)) == 0);
18172 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18173 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18174 	COPY_CARRY;
18175 	SET_NFLG (flgn != 0);
18176 	m68k_write_memory_8(dsta,newv);
18177 }}}}}}}m68k_incpc(4);
18178 return 18;
18179 }
CPUFUNC(op_9138_4)18180 unsigned long CPUFUNC(op_9138_4)(uint32_t opcode) /* SUB */
18181 {
18182 	uint32_t srcreg = ((opcode >> 9) & 7);
18183 	OpcodeFamily = 7; CurrentInstrCycles = 16;
18184 {{	int8_t src = m68k_dreg(regs, srcreg);
18185 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
18186 {	int8_t dst = m68k_read_memory_8(dsta);
18187 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18188 {	int flgs = ((int8_t)(src)) < 0;
18189 	int flgo = ((int8_t)(dst)) < 0;
18190 	int flgn = ((int8_t)(newv)) < 0;
18191 	SET_ZFLG (((int8_t)(newv)) == 0);
18192 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18193 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18194 	COPY_CARRY;
18195 	SET_NFLG (flgn != 0);
18196 	m68k_write_memory_8(dsta,newv);
18197 }}}}}}}m68k_incpc(4);
18198 return 16;
18199 }
CPUFUNC(op_9139_4)18200 unsigned long CPUFUNC(op_9139_4)(uint32_t opcode) /* SUB */
18201 {
18202 	uint32_t srcreg = ((opcode >> 9) & 7);
18203 	OpcodeFamily = 7; CurrentInstrCycles = 20;
18204 {{	int8_t src = m68k_dreg(regs, srcreg);
18205 {	uint32_t dsta = get_ilong(2);
18206 {	int8_t dst = m68k_read_memory_8(dsta);
18207 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18208 {	int flgs = ((int8_t)(src)) < 0;
18209 	int flgo = ((int8_t)(dst)) < 0;
18210 	int flgn = ((int8_t)(newv)) < 0;
18211 	SET_ZFLG (((int8_t)(newv)) == 0);
18212 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18213 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18214 	COPY_CARRY;
18215 	SET_NFLG (flgn != 0);
18216 	m68k_write_memory_8(dsta,newv);
18217 }}}}}}}m68k_incpc(6);
18218 return 20;
18219 }
CPUFUNC(op_9140_4)18220 unsigned long CPUFUNC(op_9140_4)(uint32_t opcode) /* SUBX */
18221 {
18222 	uint32_t srcreg = (opcode & 7);
18223 	uint32_t dstreg = (opcode >> 9) & 7;
18224 	OpcodeFamily = 9; CurrentInstrCycles = 4;
18225 {{	int16_t src = m68k_dreg(regs, srcreg);
18226 {	int16_t dst = m68k_dreg(regs, dstreg);
18227 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
18228 {	int flgs = ((int16_t)(src)) < 0;
18229 	int flgo = ((int16_t)(dst)) < 0;
18230 	int flgn = ((int16_t)(newv)) < 0;
18231 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
18232 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
18233 	COPY_CARRY;
18234 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
18235 	SET_NFLG (((int16_t)(newv)) < 0);
18236 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
18237 }}}}}m68k_incpc(2);
18238 return 4;
18239 }
CPUFUNC(op_9148_4)18240 unsigned long CPUFUNC(op_9148_4)(uint32_t opcode) /* SUBX */
18241 {
18242 	uint32_t srcreg = (opcode & 7);
18243 	uint32_t dstreg = (opcode >> 9) & 7;
18244 	OpcodeFamily = 9; CurrentInstrCycles = 18;
18245 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
18246 {	int16_t src = m68k_read_memory_16(srca);
18247 	m68k_areg (regs, srcreg) = srca;
18248 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
18249 {	int16_t dst = m68k_read_memory_16(dsta);
18250 	m68k_areg (regs, dstreg) = dsta;
18251 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
18252 {	int flgs = ((int16_t)(src)) < 0;
18253 	int flgo = ((int16_t)(dst)) < 0;
18254 	int flgn = ((int16_t)(newv)) < 0;
18255 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
18256 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
18257 	COPY_CARRY;
18258 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
18259 	SET_NFLG (((int16_t)(newv)) < 0);
18260 	m68k_write_memory_16(dsta,newv);
18261 }}}}}}}m68k_incpc(2);
18262 return 18;
18263 }
CPUFUNC(op_9150_4)18264 unsigned long CPUFUNC(op_9150_4)(uint32_t opcode) /* SUB */
18265 {
18266 	uint32_t srcreg = ((opcode >> 9) & 7);
18267 	uint32_t dstreg = opcode & 7;
18268 	OpcodeFamily = 7; CurrentInstrCycles = 12;
18269 {{	int16_t src = m68k_dreg(regs, srcreg);
18270 {	uint32_t dsta = m68k_areg(regs, dstreg);
18271 {	int16_t dst = m68k_read_memory_16(dsta);
18272 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18273 {	int flgs = ((int16_t)(src)) < 0;
18274 	int flgo = ((int16_t)(dst)) < 0;
18275 	int flgn = ((int16_t)(newv)) < 0;
18276 	SET_ZFLG (((int16_t)(newv)) == 0);
18277 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18278 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18279 	COPY_CARRY;
18280 	SET_NFLG (flgn != 0);
18281 	m68k_write_memory_16(dsta,newv);
18282 }}}}}}}m68k_incpc(2);
18283 return 12;
18284 }
CPUFUNC(op_9158_4)18285 unsigned long CPUFUNC(op_9158_4)(uint32_t opcode) /* SUB */
18286 {
18287 	uint32_t srcreg = ((opcode >> 9) & 7);
18288 	uint32_t dstreg = opcode & 7;
18289 	OpcodeFamily = 7; CurrentInstrCycles = 12;
18290 {{	int16_t src = m68k_dreg(regs, srcreg);
18291 {	uint32_t dsta = m68k_areg(regs, dstreg);
18292 {	int16_t dst = m68k_read_memory_16(dsta);
18293 	m68k_areg(regs, dstreg) += 2;
18294 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18295 {	int flgs = ((int16_t)(src)) < 0;
18296 	int flgo = ((int16_t)(dst)) < 0;
18297 	int flgn = ((int16_t)(newv)) < 0;
18298 	SET_ZFLG (((int16_t)(newv)) == 0);
18299 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18300 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18301 	COPY_CARRY;
18302 	SET_NFLG (flgn != 0);
18303 	m68k_write_memory_16(dsta,newv);
18304 }}}}}}}m68k_incpc(2);
18305 return 12;
18306 }
CPUFUNC(op_9160_4)18307 unsigned long CPUFUNC(op_9160_4)(uint32_t opcode) /* SUB */
18308 {
18309 	uint32_t srcreg = ((opcode >> 9) & 7);
18310 	uint32_t dstreg = opcode & 7;
18311 	OpcodeFamily = 7; CurrentInstrCycles = 14;
18312 {{	int16_t src = m68k_dreg(regs, srcreg);
18313 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
18314 {	int16_t dst = m68k_read_memory_16(dsta);
18315 	m68k_areg (regs, dstreg) = dsta;
18316 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18317 {	int flgs = ((int16_t)(src)) < 0;
18318 	int flgo = ((int16_t)(dst)) < 0;
18319 	int flgn = ((int16_t)(newv)) < 0;
18320 	SET_ZFLG (((int16_t)(newv)) == 0);
18321 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18322 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18323 	COPY_CARRY;
18324 	SET_NFLG (flgn != 0);
18325 	m68k_write_memory_16(dsta,newv);
18326 }}}}}}}m68k_incpc(2);
18327 return 14;
18328 }
CPUFUNC(op_9168_4)18329 unsigned long CPUFUNC(op_9168_4)(uint32_t opcode) /* SUB */
18330 {
18331 	uint32_t srcreg = ((opcode >> 9) & 7);
18332 	uint32_t dstreg = opcode & 7;
18333 	OpcodeFamily = 7; CurrentInstrCycles = 16;
18334 {{	int16_t src = m68k_dreg(regs, srcreg);
18335 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
18336 {	int16_t dst = m68k_read_memory_16(dsta);
18337 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18338 {	int flgs = ((int16_t)(src)) < 0;
18339 	int flgo = ((int16_t)(dst)) < 0;
18340 	int flgn = ((int16_t)(newv)) < 0;
18341 	SET_ZFLG (((int16_t)(newv)) == 0);
18342 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18343 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18344 	COPY_CARRY;
18345 	SET_NFLG (flgn != 0);
18346 	m68k_write_memory_16(dsta,newv);
18347 }}}}}}}m68k_incpc(4);
18348 return 16;
18349 }
CPUFUNC(op_9170_4)18350 unsigned long CPUFUNC(op_9170_4)(uint32_t opcode) /* SUB */
18351 {
18352 	uint32_t srcreg = ((opcode >> 9) & 7);
18353 	uint32_t dstreg = opcode & 7;
18354 	OpcodeFamily = 7; CurrentInstrCycles = 18;
18355 {{	int16_t src = m68k_dreg(regs, srcreg);
18356 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
18357 	BusCyclePenalty += 2;
18358 {	int16_t dst = m68k_read_memory_16(dsta);
18359 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18360 {	int flgs = ((int16_t)(src)) < 0;
18361 	int flgo = ((int16_t)(dst)) < 0;
18362 	int flgn = ((int16_t)(newv)) < 0;
18363 	SET_ZFLG (((int16_t)(newv)) == 0);
18364 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18365 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18366 	COPY_CARRY;
18367 	SET_NFLG (flgn != 0);
18368 	m68k_write_memory_16(dsta,newv);
18369 }}}}}}}m68k_incpc(4);
18370 return 18;
18371 }
CPUFUNC(op_9178_4)18372 unsigned long CPUFUNC(op_9178_4)(uint32_t opcode) /* SUB */
18373 {
18374 	uint32_t srcreg = ((opcode >> 9) & 7);
18375 	OpcodeFamily = 7; CurrentInstrCycles = 16;
18376 {{	int16_t src = m68k_dreg(regs, srcreg);
18377 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
18378 {	int16_t dst = m68k_read_memory_16(dsta);
18379 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18380 {	int flgs = ((int16_t)(src)) < 0;
18381 	int flgo = ((int16_t)(dst)) < 0;
18382 	int flgn = ((int16_t)(newv)) < 0;
18383 	SET_ZFLG (((int16_t)(newv)) == 0);
18384 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18385 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18386 	COPY_CARRY;
18387 	SET_NFLG (flgn != 0);
18388 	m68k_write_memory_16(dsta,newv);
18389 }}}}}}}m68k_incpc(4);
18390 return 16;
18391 }
CPUFUNC(op_9179_4)18392 unsigned long CPUFUNC(op_9179_4)(uint32_t opcode) /* SUB */
18393 {
18394 	uint32_t srcreg = ((opcode >> 9) & 7);
18395 	OpcodeFamily = 7; CurrentInstrCycles = 20;
18396 {{	int16_t src = m68k_dreg(regs, srcreg);
18397 {	uint32_t dsta = get_ilong(2);
18398 {	int16_t dst = m68k_read_memory_16(dsta);
18399 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18400 {	int flgs = ((int16_t)(src)) < 0;
18401 	int flgo = ((int16_t)(dst)) < 0;
18402 	int flgn = ((int16_t)(newv)) < 0;
18403 	SET_ZFLG (((int16_t)(newv)) == 0);
18404 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18405 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18406 	COPY_CARRY;
18407 	SET_NFLG (flgn != 0);
18408 	m68k_write_memory_16(dsta,newv);
18409 }}}}}}}m68k_incpc(6);
18410 return 20;
18411 }
CPUFUNC(op_9180_4)18412 unsigned long CPUFUNC(op_9180_4)(uint32_t opcode) /* SUBX */
18413 {
18414 	uint32_t srcreg = (opcode & 7);
18415 	uint32_t dstreg = (opcode >> 9) & 7;
18416 	OpcodeFamily = 9; CurrentInstrCycles = 8;
18417 {{	int32_t src = m68k_dreg(regs, srcreg);
18418 {	int32_t dst = m68k_dreg(regs, dstreg);
18419 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
18420 {	int flgs = ((int32_t)(src)) < 0;
18421 	int flgo = ((int32_t)(dst)) < 0;
18422 	int flgn = ((int32_t)(newv)) < 0;
18423 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
18424 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
18425 	COPY_CARRY;
18426 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
18427 	SET_NFLG (((int32_t)(newv)) < 0);
18428 	m68k_dreg(regs, dstreg) = (newv);
18429 }}}}}m68k_incpc(2);
18430 return 8;
18431 }
CPUFUNC(op_9188_4)18432 unsigned long CPUFUNC(op_9188_4)(uint32_t opcode) /* SUBX */
18433 {
18434 	uint32_t srcreg = (opcode & 7);
18435 	uint32_t dstreg = (opcode >> 9) & 7;
18436 	OpcodeFamily = 9; CurrentInstrCycles = 30;
18437 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
18438 {	int32_t src = m68k_read_memory_32(srca);
18439 	m68k_areg (regs, srcreg) = srca;
18440 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
18441 {	int32_t dst = m68k_read_memory_32(dsta);
18442 	m68k_areg (regs, dstreg) = dsta;
18443 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
18444 {	int flgs = ((int32_t)(src)) < 0;
18445 	int flgo = ((int32_t)(dst)) < 0;
18446 	int flgn = ((int32_t)(newv)) < 0;
18447 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
18448 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
18449 	COPY_CARRY;
18450 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
18451 	SET_NFLG (((int32_t)(newv)) < 0);
18452 	m68k_write_memory_32(dsta,newv);
18453 }}}}}}}m68k_incpc(2);
18454 return 30;
18455 }
CPUFUNC(op_9190_4)18456 unsigned long CPUFUNC(op_9190_4)(uint32_t opcode) /* SUB */
18457 {
18458 	uint32_t srcreg = ((opcode >> 9) & 7);
18459 	uint32_t dstreg = opcode & 7;
18460 	OpcodeFamily = 7; CurrentInstrCycles = 20;
18461 {{	int32_t src = m68k_dreg(regs, srcreg);
18462 {	uint32_t dsta = m68k_areg(regs, dstreg);
18463 {	int32_t dst = m68k_read_memory_32(dsta);
18464 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
18465 {	int flgs = ((int32_t)(src)) < 0;
18466 	int flgo = ((int32_t)(dst)) < 0;
18467 	int flgn = ((int32_t)(newv)) < 0;
18468 	SET_ZFLG (((int32_t)(newv)) == 0);
18469 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18470 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
18471 	COPY_CARRY;
18472 	SET_NFLG (flgn != 0);
18473 	m68k_write_memory_32(dsta,newv);
18474 }}}}}}}m68k_incpc(2);
18475 return 20;
18476 }
CPUFUNC(op_9198_4)18477 unsigned long CPUFUNC(op_9198_4)(uint32_t opcode) /* SUB */
18478 {
18479 	uint32_t srcreg = ((opcode >> 9) & 7);
18480 	uint32_t dstreg = opcode & 7;
18481 	OpcodeFamily = 7; CurrentInstrCycles = 20;
18482 {{	int32_t src = m68k_dreg(regs, srcreg);
18483 {	uint32_t dsta = m68k_areg(regs, dstreg);
18484 {	int32_t dst = m68k_read_memory_32(dsta);
18485 	m68k_areg(regs, dstreg) += 4;
18486 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
18487 {	int flgs = ((int32_t)(src)) < 0;
18488 	int flgo = ((int32_t)(dst)) < 0;
18489 	int flgn = ((int32_t)(newv)) < 0;
18490 	SET_ZFLG (((int32_t)(newv)) == 0);
18491 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18492 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
18493 	COPY_CARRY;
18494 	SET_NFLG (flgn != 0);
18495 	m68k_write_memory_32(dsta,newv);
18496 }}}}}}}m68k_incpc(2);
18497 return 20;
18498 }
CPUFUNC(op_91a0_4)18499 unsigned long CPUFUNC(op_91a0_4)(uint32_t opcode) /* SUB */
18500 {
18501 	uint32_t srcreg = ((opcode >> 9) & 7);
18502 	uint32_t dstreg = opcode & 7;
18503 	OpcodeFamily = 7; CurrentInstrCycles = 22;
18504 {{	int32_t src = m68k_dreg(regs, srcreg);
18505 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
18506 {	int32_t dst = m68k_read_memory_32(dsta);
18507 	m68k_areg (regs, dstreg) = dsta;
18508 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
18509 {	int flgs = ((int32_t)(src)) < 0;
18510 	int flgo = ((int32_t)(dst)) < 0;
18511 	int flgn = ((int32_t)(newv)) < 0;
18512 	SET_ZFLG (((int32_t)(newv)) == 0);
18513 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18514 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
18515 	COPY_CARRY;
18516 	SET_NFLG (flgn != 0);
18517 	m68k_write_memory_32(dsta,newv);
18518 }}}}}}}m68k_incpc(2);
18519 return 22;
18520 }
CPUFUNC(op_91a8_4)18521 unsigned long CPUFUNC(op_91a8_4)(uint32_t opcode) /* SUB */
18522 {
18523 	uint32_t srcreg = ((opcode >> 9) & 7);
18524 	uint32_t dstreg = opcode & 7;
18525 	OpcodeFamily = 7; CurrentInstrCycles = 24;
18526 {{	int32_t src = m68k_dreg(regs, srcreg);
18527 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
18528 {	int32_t dst = m68k_read_memory_32(dsta);
18529 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
18530 {	int flgs = ((int32_t)(src)) < 0;
18531 	int flgo = ((int32_t)(dst)) < 0;
18532 	int flgn = ((int32_t)(newv)) < 0;
18533 	SET_ZFLG (((int32_t)(newv)) == 0);
18534 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18535 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
18536 	COPY_CARRY;
18537 	SET_NFLG (flgn != 0);
18538 	m68k_write_memory_32(dsta,newv);
18539 }}}}}}}m68k_incpc(4);
18540 return 24;
18541 }
CPUFUNC(op_91b0_4)18542 unsigned long CPUFUNC(op_91b0_4)(uint32_t opcode) /* SUB */
18543 {
18544 	uint32_t srcreg = ((opcode >> 9) & 7);
18545 	uint32_t dstreg = opcode & 7;
18546 	OpcodeFamily = 7; CurrentInstrCycles = 26;
18547 {{	int32_t src = m68k_dreg(regs, srcreg);
18548 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
18549 	BusCyclePenalty += 2;
18550 {	int32_t dst = m68k_read_memory_32(dsta);
18551 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
18552 {	int flgs = ((int32_t)(src)) < 0;
18553 	int flgo = ((int32_t)(dst)) < 0;
18554 	int flgn = ((int32_t)(newv)) < 0;
18555 	SET_ZFLG (((int32_t)(newv)) == 0);
18556 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18557 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
18558 	COPY_CARRY;
18559 	SET_NFLG (flgn != 0);
18560 	m68k_write_memory_32(dsta,newv);
18561 }}}}}}}m68k_incpc(4);
18562 return 26;
18563 }
CPUFUNC(op_91b8_4)18564 unsigned long CPUFUNC(op_91b8_4)(uint32_t opcode) /* SUB */
18565 {
18566 	uint32_t srcreg = ((opcode >> 9) & 7);
18567 	OpcodeFamily = 7; CurrentInstrCycles = 24;
18568 {{	int32_t src = m68k_dreg(regs, srcreg);
18569 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
18570 {	int32_t dst = m68k_read_memory_32(dsta);
18571 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
18572 {	int flgs = ((int32_t)(src)) < 0;
18573 	int flgo = ((int32_t)(dst)) < 0;
18574 	int flgn = ((int32_t)(newv)) < 0;
18575 	SET_ZFLG (((int32_t)(newv)) == 0);
18576 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18577 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
18578 	COPY_CARRY;
18579 	SET_NFLG (flgn != 0);
18580 	m68k_write_memory_32(dsta,newv);
18581 }}}}}}}m68k_incpc(4);
18582 return 24;
18583 }
CPUFUNC(op_91b9_4)18584 unsigned long CPUFUNC(op_91b9_4)(uint32_t opcode) /* SUB */
18585 {
18586 	uint32_t srcreg = ((opcode >> 9) & 7);
18587 	OpcodeFamily = 7; CurrentInstrCycles = 28;
18588 {{	int32_t src = m68k_dreg(regs, srcreg);
18589 {	uint32_t dsta = get_ilong(2);
18590 {	int32_t dst = m68k_read_memory_32(dsta);
18591 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
18592 {	int flgs = ((int32_t)(src)) < 0;
18593 	int flgo = ((int32_t)(dst)) < 0;
18594 	int flgn = ((int32_t)(newv)) < 0;
18595 	SET_ZFLG (((int32_t)(newv)) == 0);
18596 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
18597 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
18598 	COPY_CARRY;
18599 	SET_NFLG (flgn != 0);
18600 	m68k_write_memory_32(dsta,newv);
18601 }}}}}}}m68k_incpc(6);
18602 return 28;
18603 }
CPUFUNC(op_91c0_4)18604 unsigned long CPUFUNC(op_91c0_4)(uint32_t opcode) /* SUBA */
18605 {
18606 	uint32_t srcreg = (opcode & 7);
18607 	uint32_t dstreg = (opcode >> 9) & 7;
18608 	OpcodeFamily = 8; CurrentInstrCycles = 8;
18609 {{	int32_t src = m68k_dreg(regs, srcreg);
18610 {	int32_t dst = m68k_areg(regs, dstreg);
18611 {	uint32_t newv = dst - src;
18612 	m68k_areg(regs, dstreg) = (newv);
18613 }}}}m68k_incpc(2);
18614 return 8;
18615 }
CPUFUNC(op_91c8_4)18616 unsigned long CPUFUNC(op_91c8_4)(uint32_t opcode) /* SUBA */
18617 {
18618 	uint32_t srcreg = (opcode & 7);
18619 	uint32_t dstreg = (opcode >> 9) & 7;
18620 	OpcodeFamily = 8; CurrentInstrCycles = 8;
18621 {{	int32_t src = m68k_areg(regs, srcreg);
18622 {	int32_t dst = m68k_areg(regs, dstreg);
18623 {	uint32_t newv = dst - src;
18624 	m68k_areg(regs, dstreg) = (newv);
18625 }}}}m68k_incpc(2);
18626 return 8;
18627 }
CPUFUNC(op_91d0_4)18628 unsigned long CPUFUNC(op_91d0_4)(uint32_t opcode) /* SUBA */
18629 {
18630 	uint32_t srcreg = (opcode & 7);
18631 	uint32_t dstreg = (opcode >> 9) & 7;
18632 	OpcodeFamily = 8; CurrentInstrCycles = 14;
18633 {{	uint32_t srca = m68k_areg(regs, srcreg);
18634 {	int32_t src = m68k_read_memory_32(srca);
18635 {	int32_t dst = m68k_areg(regs, dstreg);
18636 {	uint32_t newv = dst - src;
18637 	m68k_areg(regs, dstreg) = (newv);
18638 }}}}}m68k_incpc(2);
18639 return 14;
18640 }
CPUFUNC(op_91d8_4)18641 unsigned long CPUFUNC(op_91d8_4)(uint32_t opcode) /* SUBA */
18642 {
18643 	uint32_t srcreg = (opcode & 7);
18644 	uint32_t dstreg = (opcode >> 9) & 7;
18645 	OpcodeFamily = 8; CurrentInstrCycles = 14;
18646 {{	uint32_t srca = m68k_areg(regs, srcreg);
18647 {	int32_t src = m68k_read_memory_32(srca);
18648 	m68k_areg(regs, srcreg) += 4;
18649 {	int32_t dst = m68k_areg(regs, dstreg);
18650 {	uint32_t newv = dst - src;
18651 	m68k_areg(regs, dstreg) = (newv);
18652 }}}}}m68k_incpc(2);
18653 return 14;
18654 }
CPUFUNC(op_91e0_4)18655 unsigned long CPUFUNC(op_91e0_4)(uint32_t opcode) /* SUBA */
18656 {
18657 	uint32_t srcreg = (opcode & 7);
18658 	uint32_t dstreg = (opcode >> 9) & 7;
18659 	OpcodeFamily = 8; CurrentInstrCycles = 16;
18660 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
18661 {	int32_t src = m68k_read_memory_32(srca);
18662 	m68k_areg (regs, srcreg) = srca;
18663 {	int32_t dst = m68k_areg(regs, dstreg);
18664 {	uint32_t newv = dst - src;
18665 	m68k_areg(regs, dstreg) = (newv);
18666 }}}}}m68k_incpc(2);
18667 return 16;
18668 }
CPUFUNC(op_91e8_4)18669 unsigned long CPUFUNC(op_91e8_4)(uint32_t opcode) /* SUBA */
18670 {
18671 	uint32_t srcreg = (opcode & 7);
18672 	uint32_t dstreg = (opcode >> 9) & 7;
18673 	OpcodeFamily = 8; CurrentInstrCycles = 18;
18674 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
18675 {	int32_t src = m68k_read_memory_32(srca);
18676 {	int32_t dst = m68k_areg(regs, dstreg);
18677 {	uint32_t newv = dst - src;
18678 	m68k_areg(regs, dstreg) = (newv);
18679 }}}}}m68k_incpc(4);
18680 return 18;
18681 }
CPUFUNC(op_91f0_4)18682 unsigned long CPUFUNC(op_91f0_4)(uint32_t opcode) /* SUBA */
18683 {
18684 	uint32_t srcreg = (opcode & 7);
18685 	uint32_t dstreg = (opcode >> 9) & 7;
18686 	OpcodeFamily = 8; CurrentInstrCycles = 20;
18687 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
18688 	BusCyclePenalty += 2;
18689 {	int32_t src = m68k_read_memory_32(srca);
18690 {	int32_t dst = m68k_areg(regs, dstreg);
18691 {	uint32_t newv = dst - src;
18692 	m68k_areg(regs, dstreg) = (newv);
18693 }}}}}m68k_incpc(4);
18694 return 20;
18695 }
CPUFUNC(op_91f8_4)18696 unsigned long CPUFUNC(op_91f8_4)(uint32_t opcode) /* SUBA */
18697 {
18698 	uint32_t dstreg = (opcode >> 9) & 7;
18699 	OpcodeFamily = 8; CurrentInstrCycles = 18;
18700 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
18701 {	int32_t src = m68k_read_memory_32(srca);
18702 {	int32_t dst = m68k_areg(regs, dstreg);
18703 {	uint32_t newv = dst - src;
18704 	m68k_areg(regs, dstreg) = (newv);
18705 }}}}}m68k_incpc(4);
18706 return 18;
18707 }
CPUFUNC(op_91f9_4)18708 unsigned long CPUFUNC(op_91f9_4)(uint32_t opcode) /* SUBA */
18709 {
18710 	uint32_t dstreg = (opcode >> 9) & 7;
18711 	OpcodeFamily = 8; CurrentInstrCycles = 22;
18712 {{	uint32_t srca = get_ilong(2);
18713 {	int32_t src = m68k_read_memory_32(srca);
18714 {	int32_t dst = m68k_areg(regs, dstreg);
18715 {	uint32_t newv = dst - src;
18716 	m68k_areg(regs, dstreg) = (newv);
18717 }}}}}m68k_incpc(6);
18718 return 22;
18719 }
CPUFUNC(op_91fa_4)18720 unsigned long CPUFUNC(op_91fa_4)(uint32_t opcode) /* SUBA */
18721 {
18722 	uint32_t dstreg = (opcode >> 9) & 7;
18723 	OpcodeFamily = 8; CurrentInstrCycles = 18;
18724 {{	uint32_t srca = m68k_getpc () + 2;
18725 	srca += (int32_t)(int16_t)get_iword(2);
18726 {	int32_t src = m68k_read_memory_32(srca);
18727 {	int32_t dst = m68k_areg(regs, dstreg);
18728 {	uint32_t newv = dst - src;
18729 	m68k_areg(regs, dstreg) = (newv);
18730 }}}}}m68k_incpc(4);
18731 return 18;
18732 }
CPUFUNC(op_91fb_4)18733 unsigned long CPUFUNC(op_91fb_4)(uint32_t opcode) /* SUBA */
18734 {
18735 	uint32_t dstreg = (opcode >> 9) & 7;
18736 	OpcodeFamily = 8; CurrentInstrCycles = 20;
18737 {{	uint32_t tmppc = m68k_getpc() + 2;
18738 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
18739 	BusCyclePenalty += 2;
18740 {	int32_t src = m68k_read_memory_32(srca);
18741 {	int32_t dst = m68k_areg(regs, dstreg);
18742 {	uint32_t newv = dst - src;
18743 	m68k_areg(regs, dstreg) = (newv);
18744 }}}}}m68k_incpc(4);
18745 return 20;
18746 }
CPUFUNC(op_91fc_4)18747 unsigned long CPUFUNC(op_91fc_4)(uint32_t opcode) /* SUBA */
18748 {
18749 	uint32_t dstreg = (opcode >> 9) & 7;
18750 	OpcodeFamily = 8; CurrentInstrCycles = 16;
18751 {{	int32_t src = get_ilong(2);
18752 {	int32_t dst = m68k_areg(regs, dstreg);
18753 {	uint32_t newv = dst - src;
18754 	m68k_areg(regs, dstreg) = (newv);
18755 }}}}m68k_incpc(6);
18756 return 16;
18757 }
CPUFUNC(op_b000_4)18758 unsigned long CPUFUNC(op_b000_4)(uint32_t opcode) /* CMP */
18759 {
18760 	uint32_t srcreg = (opcode & 7);
18761 	uint32_t dstreg = (opcode >> 9) & 7;
18762 	OpcodeFamily = 25; CurrentInstrCycles = 4;
18763 {{	int8_t src = m68k_dreg(regs, srcreg);
18764 {	int8_t dst = m68k_dreg(regs, dstreg);
18765 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18766 {	int flgs = ((int8_t)(src)) < 0;
18767 	int flgo = ((int8_t)(dst)) < 0;
18768 	int flgn = ((int8_t)(newv)) < 0;
18769 	SET_ZFLG (((int8_t)(newv)) == 0);
18770 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18771 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18772 	SET_NFLG (flgn != 0);
18773 }}}}}}m68k_incpc(2);
18774 return 4;
18775 }
CPUFUNC(op_b010_4)18776 unsigned long CPUFUNC(op_b010_4)(uint32_t opcode) /* CMP */
18777 {
18778 	uint32_t srcreg = (opcode & 7);
18779 	uint32_t dstreg = (opcode >> 9) & 7;
18780 	OpcodeFamily = 25; CurrentInstrCycles = 8;
18781 {{	uint32_t srca = m68k_areg(regs, srcreg);
18782 {	int8_t src = m68k_read_memory_8(srca);
18783 {	int8_t dst = m68k_dreg(regs, dstreg);
18784 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18785 {	int flgs = ((int8_t)(src)) < 0;
18786 	int flgo = ((int8_t)(dst)) < 0;
18787 	int flgn = ((int8_t)(newv)) < 0;
18788 	SET_ZFLG (((int8_t)(newv)) == 0);
18789 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18790 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18791 	SET_NFLG (flgn != 0);
18792 }}}}}}}m68k_incpc(2);
18793 return 8;
18794 }
CPUFUNC(op_b018_4)18795 unsigned long CPUFUNC(op_b018_4)(uint32_t opcode) /* CMP */
18796 {
18797 	uint32_t srcreg = (opcode & 7);
18798 	uint32_t dstreg = (opcode >> 9) & 7;
18799 	OpcodeFamily = 25; CurrentInstrCycles = 8;
18800 {{	uint32_t srca = m68k_areg(regs, srcreg);
18801 {	int8_t src = m68k_read_memory_8(srca);
18802 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
18803 {	int8_t dst = m68k_dreg(regs, dstreg);
18804 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18805 {	int flgs = ((int8_t)(src)) < 0;
18806 	int flgo = ((int8_t)(dst)) < 0;
18807 	int flgn = ((int8_t)(newv)) < 0;
18808 	SET_ZFLG (((int8_t)(newv)) == 0);
18809 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18810 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18811 	SET_NFLG (flgn != 0);
18812 }}}}}}}m68k_incpc(2);
18813 return 8;
18814 }
CPUFUNC(op_b020_4)18815 unsigned long CPUFUNC(op_b020_4)(uint32_t opcode) /* CMP */
18816 {
18817 	uint32_t srcreg = (opcode & 7);
18818 	uint32_t dstreg = (opcode >> 9) & 7;
18819 	OpcodeFamily = 25; CurrentInstrCycles = 10;
18820 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
18821 {	int8_t src = m68k_read_memory_8(srca);
18822 	m68k_areg (regs, srcreg) = srca;
18823 {	int8_t dst = m68k_dreg(regs, dstreg);
18824 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18825 {	int flgs = ((int8_t)(src)) < 0;
18826 	int flgo = ((int8_t)(dst)) < 0;
18827 	int flgn = ((int8_t)(newv)) < 0;
18828 	SET_ZFLG (((int8_t)(newv)) == 0);
18829 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18830 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18831 	SET_NFLG (flgn != 0);
18832 }}}}}}}m68k_incpc(2);
18833 return 10;
18834 }
CPUFUNC(op_b028_4)18835 unsigned long CPUFUNC(op_b028_4)(uint32_t opcode) /* CMP */
18836 {
18837 	uint32_t srcreg = (opcode & 7);
18838 	uint32_t dstreg = (opcode >> 9) & 7;
18839 	OpcodeFamily = 25; CurrentInstrCycles = 12;
18840 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
18841 {	int8_t src = m68k_read_memory_8(srca);
18842 {	int8_t dst = m68k_dreg(regs, dstreg);
18843 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18844 {	int flgs = ((int8_t)(src)) < 0;
18845 	int flgo = ((int8_t)(dst)) < 0;
18846 	int flgn = ((int8_t)(newv)) < 0;
18847 	SET_ZFLG (((int8_t)(newv)) == 0);
18848 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18849 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18850 	SET_NFLG (flgn != 0);
18851 }}}}}}}m68k_incpc(4);
18852 return 12;
18853 }
CPUFUNC(op_b030_4)18854 unsigned long CPUFUNC(op_b030_4)(uint32_t opcode) /* CMP */
18855 {
18856 	uint32_t srcreg = (opcode & 7);
18857 	uint32_t dstreg = (opcode >> 9) & 7;
18858 	OpcodeFamily = 25; CurrentInstrCycles = 14;
18859 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
18860 	BusCyclePenalty += 2;
18861 {	int8_t src = m68k_read_memory_8(srca);
18862 {	int8_t dst = m68k_dreg(regs, dstreg);
18863 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18864 {	int flgs = ((int8_t)(src)) < 0;
18865 	int flgo = ((int8_t)(dst)) < 0;
18866 	int flgn = ((int8_t)(newv)) < 0;
18867 	SET_ZFLG (((int8_t)(newv)) == 0);
18868 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18869 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18870 	SET_NFLG (flgn != 0);
18871 }}}}}}}m68k_incpc(4);
18872 return 14;
18873 }
CPUFUNC(op_b038_4)18874 unsigned long CPUFUNC(op_b038_4)(uint32_t opcode) /* CMP */
18875 {
18876 	uint32_t dstreg = (opcode >> 9) & 7;
18877 	OpcodeFamily = 25; CurrentInstrCycles = 12;
18878 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
18879 {	int8_t src = m68k_read_memory_8(srca);
18880 {	int8_t dst = m68k_dreg(regs, dstreg);
18881 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18882 {	int flgs = ((int8_t)(src)) < 0;
18883 	int flgo = ((int8_t)(dst)) < 0;
18884 	int flgn = ((int8_t)(newv)) < 0;
18885 	SET_ZFLG (((int8_t)(newv)) == 0);
18886 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18887 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18888 	SET_NFLG (flgn != 0);
18889 }}}}}}}m68k_incpc(4);
18890 return 12;
18891 }
CPUFUNC(op_b039_4)18892 unsigned long CPUFUNC(op_b039_4)(uint32_t opcode) /* CMP */
18893 {
18894 	uint32_t dstreg = (opcode >> 9) & 7;
18895 	OpcodeFamily = 25; CurrentInstrCycles = 16;
18896 {{	uint32_t srca = get_ilong(2);
18897 {	int8_t src = m68k_read_memory_8(srca);
18898 {	int8_t dst = m68k_dreg(regs, dstreg);
18899 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18900 {	int flgs = ((int8_t)(src)) < 0;
18901 	int flgo = ((int8_t)(dst)) < 0;
18902 	int flgn = ((int8_t)(newv)) < 0;
18903 	SET_ZFLG (((int8_t)(newv)) == 0);
18904 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18905 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18906 	SET_NFLG (flgn != 0);
18907 }}}}}}}m68k_incpc(6);
18908 return 16;
18909 }
CPUFUNC(op_b03a_4)18910 unsigned long CPUFUNC(op_b03a_4)(uint32_t opcode) /* CMP */
18911 {
18912 	uint32_t dstreg = (opcode >> 9) & 7;
18913 	OpcodeFamily = 25; CurrentInstrCycles = 12;
18914 {{	uint32_t srca = m68k_getpc () + 2;
18915 	srca += (int32_t)(int16_t)get_iword(2);
18916 {	int8_t src = m68k_read_memory_8(srca);
18917 {	int8_t dst = m68k_dreg(regs, dstreg);
18918 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18919 {	int flgs = ((int8_t)(src)) < 0;
18920 	int flgo = ((int8_t)(dst)) < 0;
18921 	int flgn = ((int8_t)(newv)) < 0;
18922 	SET_ZFLG (((int8_t)(newv)) == 0);
18923 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18924 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18925 	SET_NFLG (flgn != 0);
18926 }}}}}}}m68k_incpc(4);
18927 return 12;
18928 }
CPUFUNC(op_b03b_4)18929 unsigned long CPUFUNC(op_b03b_4)(uint32_t opcode) /* CMP */
18930 {
18931 	uint32_t dstreg = (opcode >> 9) & 7;
18932 	OpcodeFamily = 25; CurrentInstrCycles = 14;
18933 {{	uint32_t tmppc = m68k_getpc() + 2;
18934 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
18935 	BusCyclePenalty += 2;
18936 {	int8_t src = m68k_read_memory_8(srca);
18937 {	int8_t dst = m68k_dreg(regs, dstreg);
18938 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18939 {	int flgs = ((int8_t)(src)) < 0;
18940 	int flgo = ((int8_t)(dst)) < 0;
18941 	int flgn = ((int8_t)(newv)) < 0;
18942 	SET_ZFLG (((int8_t)(newv)) == 0);
18943 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18944 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18945 	SET_NFLG (flgn != 0);
18946 }}}}}}}m68k_incpc(4);
18947 return 14;
18948 }
18949 #endif
18950 
18951 #ifdef PART_7
CPUFUNC(op_b03c_4)18952 unsigned long CPUFUNC(op_b03c_4)(uint32_t opcode) /* CMP */
18953 {
18954 	uint32_t dstreg = (opcode >> 9) & 7;
18955 	OpcodeFamily = 25; CurrentInstrCycles = 8;
18956 {{	int8_t src = get_ibyte(2);
18957 {	int8_t dst = m68k_dreg(regs, dstreg);
18958 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
18959 {	int flgs = ((int8_t)(src)) < 0;
18960 	int flgo = ((int8_t)(dst)) < 0;
18961 	int flgn = ((int8_t)(newv)) < 0;
18962 	SET_ZFLG (((int8_t)(newv)) == 0);
18963 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18964 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
18965 	SET_NFLG (flgn != 0);
18966 }}}}}}m68k_incpc(4);
18967 return 8;
18968 }
CPUFUNC(op_b040_4)18969 unsigned long CPUFUNC(op_b040_4)(uint32_t opcode) /* CMP */
18970 {
18971 	uint32_t srcreg = (opcode & 7);
18972 	uint32_t dstreg = (opcode >> 9) & 7;
18973 	OpcodeFamily = 25; CurrentInstrCycles = 4;
18974 {{	int16_t src = m68k_dreg(regs, srcreg);
18975 {	int16_t dst = m68k_dreg(regs, dstreg);
18976 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18977 {	int flgs = ((int16_t)(src)) < 0;
18978 	int flgo = ((int16_t)(dst)) < 0;
18979 	int flgn = ((int16_t)(newv)) < 0;
18980 	SET_ZFLG (((int16_t)(newv)) == 0);
18981 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
18982 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
18983 	SET_NFLG (flgn != 0);
18984 }}}}}}m68k_incpc(2);
18985 return 4;
18986 }
CPUFUNC(op_b048_4)18987 unsigned long CPUFUNC(op_b048_4)(uint32_t opcode) /* CMP */
18988 {
18989 	uint32_t srcreg = (opcode & 7);
18990 	uint32_t dstreg = (opcode >> 9) & 7;
18991 	OpcodeFamily = 25; CurrentInstrCycles = 4;
18992 {{	int16_t src = m68k_areg(regs, srcreg);
18993 {	int16_t dst = m68k_dreg(regs, dstreg);
18994 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
18995 {	int flgs = ((int16_t)(src)) < 0;
18996 	int flgo = ((int16_t)(dst)) < 0;
18997 	int flgn = ((int16_t)(newv)) < 0;
18998 	SET_ZFLG (((int16_t)(newv)) == 0);
18999 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19000 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19001 	SET_NFLG (flgn != 0);
19002 }}}}}}m68k_incpc(2);
19003 return 4;
19004 }
CPUFUNC(op_b050_4)19005 unsigned long CPUFUNC(op_b050_4)(uint32_t opcode) /* CMP */
19006 {
19007 	uint32_t srcreg = (opcode & 7);
19008 	uint32_t dstreg = (opcode >> 9) & 7;
19009 	OpcodeFamily = 25; CurrentInstrCycles = 8;
19010 {{	uint32_t srca = m68k_areg(regs, srcreg);
19011 {	int16_t src = m68k_read_memory_16(srca);
19012 {	int16_t dst = m68k_dreg(regs, dstreg);
19013 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19014 {	int flgs = ((int16_t)(src)) < 0;
19015 	int flgo = ((int16_t)(dst)) < 0;
19016 	int flgn = ((int16_t)(newv)) < 0;
19017 	SET_ZFLG (((int16_t)(newv)) == 0);
19018 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19019 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19020 	SET_NFLG (flgn != 0);
19021 }}}}}}}m68k_incpc(2);
19022 return 8;
19023 }
CPUFUNC(op_b058_4)19024 unsigned long CPUFUNC(op_b058_4)(uint32_t opcode) /* CMP */
19025 {
19026 	uint32_t srcreg = (opcode & 7);
19027 	uint32_t dstreg = (opcode >> 9) & 7;
19028 	OpcodeFamily = 25; CurrentInstrCycles = 8;
19029 {{	uint32_t srca = m68k_areg(regs, srcreg);
19030 {	int16_t src = m68k_read_memory_16(srca);
19031 	m68k_areg(regs, srcreg) += 2;
19032 {	int16_t dst = m68k_dreg(regs, dstreg);
19033 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19034 {	int flgs = ((int16_t)(src)) < 0;
19035 	int flgo = ((int16_t)(dst)) < 0;
19036 	int flgn = ((int16_t)(newv)) < 0;
19037 	SET_ZFLG (((int16_t)(newv)) == 0);
19038 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19039 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19040 	SET_NFLG (flgn != 0);
19041 }}}}}}}m68k_incpc(2);
19042 return 8;
19043 }
CPUFUNC(op_b060_4)19044 unsigned long CPUFUNC(op_b060_4)(uint32_t opcode) /* CMP */
19045 {
19046 	uint32_t srcreg = (opcode & 7);
19047 	uint32_t dstreg = (opcode >> 9) & 7;
19048 	OpcodeFamily = 25; CurrentInstrCycles = 10;
19049 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
19050 {	int16_t src = m68k_read_memory_16(srca);
19051 	m68k_areg (regs, srcreg) = srca;
19052 {	int16_t dst = m68k_dreg(regs, dstreg);
19053 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19054 {	int flgs = ((int16_t)(src)) < 0;
19055 	int flgo = ((int16_t)(dst)) < 0;
19056 	int flgn = ((int16_t)(newv)) < 0;
19057 	SET_ZFLG (((int16_t)(newv)) == 0);
19058 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19059 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19060 	SET_NFLG (flgn != 0);
19061 }}}}}}}m68k_incpc(2);
19062 return 10;
19063 }
CPUFUNC(op_b068_4)19064 unsigned long CPUFUNC(op_b068_4)(uint32_t opcode) /* CMP */
19065 {
19066 	uint32_t srcreg = (opcode & 7);
19067 	uint32_t dstreg = (opcode >> 9) & 7;
19068 	OpcodeFamily = 25; CurrentInstrCycles = 12;
19069 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
19070 {	int16_t src = m68k_read_memory_16(srca);
19071 {	int16_t dst = m68k_dreg(regs, dstreg);
19072 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19073 {	int flgs = ((int16_t)(src)) < 0;
19074 	int flgo = ((int16_t)(dst)) < 0;
19075 	int flgn = ((int16_t)(newv)) < 0;
19076 	SET_ZFLG (((int16_t)(newv)) == 0);
19077 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19078 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19079 	SET_NFLG (flgn != 0);
19080 }}}}}}}m68k_incpc(4);
19081 return 12;
19082 }
CPUFUNC(op_b070_4)19083 unsigned long CPUFUNC(op_b070_4)(uint32_t opcode) /* CMP */
19084 {
19085 	uint32_t srcreg = (opcode & 7);
19086 	uint32_t dstreg = (opcode >> 9) & 7;
19087 	OpcodeFamily = 25; CurrentInstrCycles = 14;
19088 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
19089 	BusCyclePenalty += 2;
19090 {	int16_t src = m68k_read_memory_16(srca);
19091 {	int16_t dst = m68k_dreg(regs, dstreg);
19092 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19093 {	int flgs = ((int16_t)(src)) < 0;
19094 	int flgo = ((int16_t)(dst)) < 0;
19095 	int flgn = ((int16_t)(newv)) < 0;
19096 	SET_ZFLG (((int16_t)(newv)) == 0);
19097 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19098 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19099 	SET_NFLG (flgn != 0);
19100 }}}}}}}m68k_incpc(4);
19101 return 14;
19102 }
CPUFUNC(op_b078_4)19103 unsigned long CPUFUNC(op_b078_4)(uint32_t opcode) /* CMP */
19104 {
19105 	uint32_t dstreg = (opcode >> 9) & 7;
19106 	OpcodeFamily = 25; CurrentInstrCycles = 12;
19107 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
19108 {	int16_t src = m68k_read_memory_16(srca);
19109 {	int16_t dst = m68k_dreg(regs, dstreg);
19110 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19111 {	int flgs = ((int16_t)(src)) < 0;
19112 	int flgo = ((int16_t)(dst)) < 0;
19113 	int flgn = ((int16_t)(newv)) < 0;
19114 	SET_ZFLG (((int16_t)(newv)) == 0);
19115 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19116 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19117 	SET_NFLG (flgn != 0);
19118 }}}}}}}m68k_incpc(4);
19119 return 12;
19120 }
CPUFUNC(op_b079_4)19121 unsigned long CPUFUNC(op_b079_4)(uint32_t opcode) /* CMP */
19122 {
19123 	uint32_t dstreg = (opcode >> 9) & 7;
19124 	OpcodeFamily = 25; CurrentInstrCycles = 16;
19125 {{	uint32_t srca = get_ilong(2);
19126 {	int16_t src = m68k_read_memory_16(srca);
19127 {	int16_t dst = m68k_dreg(regs, dstreg);
19128 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19129 {	int flgs = ((int16_t)(src)) < 0;
19130 	int flgo = ((int16_t)(dst)) < 0;
19131 	int flgn = ((int16_t)(newv)) < 0;
19132 	SET_ZFLG (((int16_t)(newv)) == 0);
19133 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19134 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19135 	SET_NFLG (flgn != 0);
19136 }}}}}}}m68k_incpc(6);
19137 return 16;
19138 }
CPUFUNC(op_b07a_4)19139 unsigned long CPUFUNC(op_b07a_4)(uint32_t opcode) /* CMP */
19140 {
19141 	uint32_t dstreg = (opcode >> 9) & 7;
19142 	OpcodeFamily = 25; CurrentInstrCycles = 12;
19143 {{	uint32_t srca = m68k_getpc () + 2;
19144 	srca += (int32_t)(int16_t)get_iword(2);
19145 {	int16_t src = m68k_read_memory_16(srca);
19146 {	int16_t dst = m68k_dreg(regs, dstreg);
19147 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19148 {	int flgs = ((int16_t)(src)) < 0;
19149 	int flgo = ((int16_t)(dst)) < 0;
19150 	int flgn = ((int16_t)(newv)) < 0;
19151 	SET_ZFLG (((int16_t)(newv)) == 0);
19152 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19153 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19154 	SET_NFLG (flgn != 0);
19155 }}}}}}}m68k_incpc(4);
19156 return 12;
19157 }
CPUFUNC(op_b07b_4)19158 unsigned long CPUFUNC(op_b07b_4)(uint32_t opcode) /* CMP */
19159 {
19160 	uint32_t dstreg = (opcode >> 9) & 7;
19161 	OpcodeFamily = 25; CurrentInstrCycles = 14;
19162 {{	uint32_t tmppc = m68k_getpc() + 2;
19163 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
19164 	BusCyclePenalty += 2;
19165 {	int16_t src = m68k_read_memory_16(srca);
19166 {	int16_t dst = m68k_dreg(regs, dstreg);
19167 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19168 {	int flgs = ((int16_t)(src)) < 0;
19169 	int flgo = ((int16_t)(dst)) < 0;
19170 	int flgn = ((int16_t)(newv)) < 0;
19171 	SET_ZFLG (((int16_t)(newv)) == 0);
19172 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19173 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19174 	SET_NFLG (flgn != 0);
19175 }}}}}}}m68k_incpc(4);
19176 return 14;
19177 }
CPUFUNC(op_b07c_4)19178 unsigned long CPUFUNC(op_b07c_4)(uint32_t opcode) /* CMP */
19179 {
19180 	uint32_t dstreg = (opcode >> 9) & 7;
19181 	OpcodeFamily = 25; CurrentInstrCycles = 8;
19182 {{	int16_t src = get_iword(2);
19183 {	int16_t dst = m68k_dreg(regs, dstreg);
19184 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19185 {	int flgs = ((int16_t)(src)) < 0;
19186 	int flgo = ((int16_t)(dst)) < 0;
19187 	int flgn = ((int16_t)(newv)) < 0;
19188 	SET_ZFLG (((int16_t)(newv)) == 0);
19189 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19190 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19191 	SET_NFLG (flgn != 0);
19192 }}}}}}m68k_incpc(4);
19193 return 8;
19194 }
CPUFUNC(op_b080_4)19195 unsigned long CPUFUNC(op_b080_4)(uint32_t opcode) /* CMP */
19196 {
19197 	uint32_t srcreg = (opcode & 7);
19198 	uint32_t dstreg = (opcode >> 9) & 7;
19199 	OpcodeFamily = 25; CurrentInstrCycles = 6;
19200 {{	int32_t src = m68k_dreg(regs, srcreg);
19201 {	int32_t dst = m68k_dreg(regs, dstreg);
19202 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19203 {	int flgs = ((int32_t)(src)) < 0;
19204 	int flgo = ((int32_t)(dst)) < 0;
19205 	int flgn = ((int32_t)(newv)) < 0;
19206 	SET_ZFLG (((int32_t)(newv)) == 0);
19207 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19208 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19209 	SET_NFLG (flgn != 0);
19210 }}}}}}m68k_incpc(2);
19211 return 6;
19212 }
CPUFUNC(op_b088_4)19213 unsigned long CPUFUNC(op_b088_4)(uint32_t opcode) /* CMP */
19214 {
19215 	uint32_t srcreg = (opcode & 7);
19216 	uint32_t dstreg = (opcode >> 9) & 7;
19217 	OpcodeFamily = 25; CurrentInstrCycles = 6;
19218 {{	int32_t src = m68k_areg(regs, srcreg);
19219 {	int32_t dst = m68k_dreg(regs, dstreg);
19220 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19221 {	int flgs = ((int32_t)(src)) < 0;
19222 	int flgo = ((int32_t)(dst)) < 0;
19223 	int flgn = ((int32_t)(newv)) < 0;
19224 	SET_ZFLG (((int32_t)(newv)) == 0);
19225 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19226 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19227 	SET_NFLG (flgn != 0);
19228 }}}}}}m68k_incpc(2);
19229 return 6;
19230 }
CPUFUNC(op_b090_4)19231 unsigned long CPUFUNC(op_b090_4)(uint32_t opcode) /* CMP */
19232 {
19233 	uint32_t srcreg = (opcode & 7);
19234 	uint32_t dstreg = (opcode >> 9) & 7;
19235 	OpcodeFamily = 25; CurrentInstrCycles = 14;
19236 {{	uint32_t srca = m68k_areg(regs, srcreg);
19237 {	int32_t src = m68k_read_memory_32(srca);
19238 {	int32_t dst = m68k_dreg(regs, dstreg);
19239 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19240 {	int flgs = ((int32_t)(src)) < 0;
19241 	int flgo = ((int32_t)(dst)) < 0;
19242 	int flgn = ((int32_t)(newv)) < 0;
19243 	SET_ZFLG (((int32_t)(newv)) == 0);
19244 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19245 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19246 	SET_NFLG (flgn != 0);
19247 }}}}}}}m68k_incpc(2);
19248 return 14;
19249 }
CPUFUNC(op_b098_4)19250 unsigned long CPUFUNC(op_b098_4)(uint32_t opcode) /* CMP */
19251 {
19252 	uint32_t srcreg = (opcode & 7);
19253 	uint32_t dstreg = (opcode >> 9) & 7;
19254 	OpcodeFamily = 25; CurrentInstrCycles = 14;
19255 {{	uint32_t srca = m68k_areg(regs, srcreg);
19256 {	int32_t src = m68k_read_memory_32(srca);
19257 	m68k_areg(regs, srcreg) += 4;
19258 {	int32_t dst = m68k_dreg(regs, dstreg);
19259 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19260 {	int flgs = ((int32_t)(src)) < 0;
19261 	int flgo = ((int32_t)(dst)) < 0;
19262 	int flgn = ((int32_t)(newv)) < 0;
19263 	SET_ZFLG (((int32_t)(newv)) == 0);
19264 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19265 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19266 	SET_NFLG (flgn != 0);
19267 }}}}}}}m68k_incpc(2);
19268 return 14;
19269 }
CPUFUNC(op_b0a0_4)19270 unsigned long CPUFUNC(op_b0a0_4)(uint32_t opcode) /* CMP */
19271 {
19272 	uint32_t srcreg = (opcode & 7);
19273 	uint32_t dstreg = (opcode >> 9) & 7;
19274 	OpcodeFamily = 25; CurrentInstrCycles = 16;
19275 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
19276 {	int32_t src = m68k_read_memory_32(srca);
19277 	m68k_areg (regs, srcreg) = srca;
19278 {	int32_t dst = m68k_dreg(regs, dstreg);
19279 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19280 {	int flgs = ((int32_t)(src)) < 0;
19281 	int flgo = ((int32_t)(dst)) < 0;
19282 	int flgn = ((int32_t)(newv)) < 0;
19283 	SET_ZFLG (((int32_t)(newv)) == 0);
19284 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19285 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19286 	SET_NFLG (flgn != 0);
19287 }}}}}}}m68k_incpc(2);
19288 return 16;
19289 }
CPUFUNC(op_b0a8_4)19290 unsigned long CPUFUNC(op_b0a8_4)(uint32_t opcode) /* CMP */
19291 {
19292 	uint32_t srcreg = (opcode & 7);
19293 	uint32_t dstreg = (opcode >> 9) & 7;
19294 	OpcodeFamily = 25; CurrentInstrCycles = 18;
19295 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
19296 {	int32_t src = m68k_read_memory_32(srca);
19297 {	int32_t dst = m68k_dreg(regs, dstreg);
19298 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19299 {	int flgs = ((int32_t)(src)) < 0;
19300 	int flgo = ((int32_t)(dst)) < 0;
19301 	int flgn = ((int32_t)(newv)) < 0;
19302 	SET_ZFLG (((int32_t)(newv)) == 0);
19303 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19304 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19305 	SET_NFLG (flgn != 0);
19306 }}}}}}}m68k_incpc(4);
19307 return 18;
19308 }
CPUFUNC(op_b0b0_4)19309 unsigned long CPUFUNC(op_b0b0_4)(uint32_t opcode) /* CMP */
19310 {
19311 	uint32_t srcreg = (opcode & 7);
19312 	uint32_t dstreg = (opcode >> 9) & 7;
19313 	OpcodeFamily = 25; CurrentInstrCycles = 20;
19314 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
19315 	BusCyclePenalty += 2;
19316 {	int32_t src = m68k_read_memory_32(srca);
19317 {	int32_t dst = m68k_dreg(regs, dstreg);
19318 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19319 {	int flgs = ((int32_t)(src)) < 0;
19320 	int flgo = ((int32_t)(dst)) < 0;
19321 	int flgn = ((int32_t)(newv)) < 0;
19322 	SET_ZFLG (((int32_t)(newv)) == 0);
19323 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19324 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19325 	SET_NFLG (flgn != 0);
19326 }}}}}}}m68k_incpc(4);
19327 return 20;
19328 }
CPUFUNC(op_b0b8_4)19329 unsigned long CPUFUNC(op_b0b8_4)(uint32_t opcode) /* CMP */
19330 {
19331 	uint32_t dstreg = (opcode >> 9) & 7;
19332 	OpcodeFamily = 25; CurrentInstrCycles = 18;
19333 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
19334 {	int32_t src = m68k_read_memory_32(srca);
19335 {	int32_t dst = m68k_dreg(regs, dstreg);
19336 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19337 {	int flgs = ((int32_t)(src)) < 0;
19338 	int flgo = ((int32_t)(dst)) < 0;
19339 	int flgn = ((int32_t)(newv)) < 0;
19340 	SET_ZFLG (((int32_t)(newv)) == 0);
19341 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19342 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19343 	SET_NFLG (flgn != 0);
19344 }}}}}}}m68k_incpc(4);
19345 return 18;
19346 }
CPUFUNC(op_b0b9_4)19347 unsigned long CPUFUNC(op_b0b9_4)(uint32_t opcode) /* CMP */
19348 {
19349 	uint32_t dstreg = (opcode >> 9) & 7;
19350 	OpcodeFamily = 25; CurrentInstrCycles = 22;
19351 {{	uint32_t srca = get_ilong(2);
19352 {	int32_t src = m68k_read_memory_32(srca);
19353 {	int32_t dst = m68k_dreg(regs, dstreg);
19354 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19355 {	int flgs = ((int32_t)(src)) < 0;
19356 	int flgo = ((int32_t)(dst)) < 0;
19357 	int flgn = ((int32_t)(newv)) < 0;
19358 	SET_ZFLG (((int32_t)(newv)) == 0);
19359 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19360 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19361 	SET_NFLG (flgn != 0);
19362 }}}}}}}m68k_incpc(6);
19363 return 22;
19364 }
CPUFUNC(op_b0ba_4)19365 unsigned long CPUFUNC(op_b0ba_4)(uint32_t opcode) /* CMP */
19366 {
19367 	uint32_t dstreg = (opcode >> 9) & 7;
19368 	OpcodeFamily = 25; CurrentInstrCycles = 18;
19369 {{	uint32_t srca = m68k_getpc () + 2;
19370 	srca += (int32_t)(int16_t)get_iword(2);
19371 {	int32_t src = m68k_read_memory_32(srca);
19372 {	int32_t dst = m68k_dreg(regs, dstreg);
19373 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19374 {	int flgs = ((int32_t)(src)) < 0;
19375 	int flgo = ((int32_t)(dst)) < 0;
19376 	int flgn = ((int32_t)(newv)) < 0;
19377 	SET_ZFLG (((int32_t)(newv)) == 0);
19378 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19379 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19380 	SET_NFLG (flgn != 0);
19381 }}}}}}}m68k_incpc(4);
19382 return 18;
19383 }
CPUFUNC(op_b0bb_4)19384 unsigned long CPUFUNC(op_b0bb_4)(uint32_t opcode) /* CMP */
19385 {
19386 	uint32_t dstreg = (opcode >> 9) & 7;
19387 	OpcodeFamily = 25; CurrentInstrCycles = 20;
19388 {{	uint32_t tmppc = m68k_getpc() + 2;
19389 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
19390 	BusCyclePenalty += 2;
19391 {	int32_t src = m68k_read_memory_32(srca);
19392 {	int32_t dst = m68k_dreg(regs, dstreg);
19393 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19394 {	int flgs = ((int32_t)(src)) < 0;
19395 	int flgo = ((int32_t)(dst)) < 0;
19396 	int flgn = ((int32_t)(newv)) < 0;
19397 	SET_ZFLG (((int32_t)(newv)) == 0);
19398 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19399 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19400 	SET_NFLG (flgn != 0);
19401 }}}}}}}m68k_incpc(4);
19402 return 20;
19403 }
CPUFUNC(op_b0bc_4)19404 unsigned long CPUFUNC(op_b0bc_4)(uint32_t opcode) /* CMP */
19405 {
19406 	uint32_t dstreg = (opcode >> 9) & 7;
19407 	OpcodeFamily = 25; CurrentInstrCycles = 14;
19408 {{	int32_t src = get_ilong(2);
19409 {	int32_t dst = m68k_dreg(regs, dstreg);
19410 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19411 {	int flgs = ((int32_t)(src)) < 0;
19412 	int flgo = ((int32_t)(dst)) < 0;
19413 	int flgn = ((int32_t)(newv)) < 0;
19414 	SET_ZFLG (((int32_t)(newv)) == 0);
19415 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19416 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19417 	SET_NFLG (flgn != 0);
19418 }}}}}}m68k_incpc(6);
19419 return 14;
19420 }
CPUFUNC(op_b0c0_4)19421 unsigned long CPUFUNC(op_b0c0_4)(uint32_t opcode) /* CMPA */
19422 {
19423 	uint32_t srcreg = (opcode & 7);
19424 	uint32_t dstreg = (opcode >> 9) & 7;
19425 	OpcodeFamily = 27; CurrentInstrCycles = 6;
19426 {{	int16_t src = m68k_dreg(regs, srcreg);
19427 {	int32_t dst = m68k_areg(regs, dstreg);
19428 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19429 {	int flgs = ((int32_t)(src)) < 0;
19430 	int flgo = ((int32_t)(dst)) < 0;
19431 	int flgn = ((int32_t)(newv)) < 0;
19432 	SET_ZFLG (((int32_t)(newv)) == 0);
19433 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19434 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19435 	SET_NFLG (flgn != 0);
19436 }}}}}}m68k_incpc(2);
19437 return 6;
19438 }
CPUFUNC(op_b0c8_4)19439 unsigned long CPUFUNC(op_b0c8_4)(uint32_t opcode) /* CMPA */
19440 {
19441 	uint32_t srcreg = (opcode & 7);
19442 	uint32_t dstreg = (opcode >> 9) & 7;
19443 	OpcodeFamily = 27; CurrentInstrCycles = 6;
19444 {{	int16_t src = m68k_areg(regs, srcreg);
19445 {	int32_t dst = m68k_areg(regs, dstreg);
19446 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19447 {	int flgs = ((int32_t)(src)) < 0;
19448 	int flgo = ((int32_t)(dst)) < 0;
19449 	int flgn = ((int32_t)(newv)) < 0;
19450 	SET_ZFLG (((int32_t)(newv)) == 0);
19451 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19452 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19453 	SET_NFLG (flgn != 0);
19454 }}}}}}m68k_incpc(2);
19455 return 6;
19456 }
CPUFUNC(op_b0d0_4)19457 unsigned long CPUFUNC(op_b0d0_4)(uint32_t opcode) /* CMPA */
19458 {
19459 	uint32_t srcreg = (opcode & 7);
19460 	uint32_t dstreg = (opcode >> 9) & 7;
19461 	OpcodeFamily = 27; CurrentInstrCycles = 10;
19462 {{	uint32_t srca = m68k_areg(regs, srcreg);
19463 {	int16_t src = m68k_read_memory_16(srca);
19464 {	int32_t dst = m68k_areg(regs, dstreg);
19465 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19466 {	int flgs = ((int32_t)(src)) < 0;
19467 	int flgo = ((int32_t)(dst)) < 0;
19468 	int flgn = ((int32_t)(newv)) < 0;
19469 	SET_ZFLG (((int32_t)(newv)) == 0);
19470 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19471 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19472 	SET_NFLG (flgn != 0);
19473 }}}}}}}m68k_incpc(2);
19474 return 10;
19475 }
CPUFUNC(op_b0d8_4)19476 unsigned long CPUFUNC(op_b0d8_4)(uint32_t opcode) /* CMPA */
19477 {
19478 	uint32_t srcreg = (opcode & 7);
19479 	uint32_t dstreg = (opcode >> 9) & 7;
19480 	OpcodeFamily = 27; CurrentInstrCycles = 10;
19481 {{	uint32_t srca = m68k_areg(regs, srcreg);
19482 {	int16_t src = m68k_read_memory_16(srca);
19483 	m68k_areg(regs, srcreg) += 2;
19484 {	int32_t dst = m68k_areg(regs, dstreg);
19485 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19486 {	int flgs = ((int32_t)(src)) < 0;
19487 	int flgo = ((int32_t)(dst)) < 0;
19488 	int flgn = ((int32_t)(newv)) < 0;
19489 	SET_ZFLG (((int32_t)(newv)) == 0);
19490 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19491 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19492 	SET_NFLG (flgn != 0);
19493 }}}}}}}m68k_incpc(2);
19494 return 10;
19495 }
CPUFUNC(op_b0e0_4)19496 unsigned long CPUFUNC(op_b0e0_4)(uint32_t opcode) /* CMPA */
19497 {
19498 	uint32_t srcreg = (opcode & 7);
19499 	uint32_t dstreg = (opcode >> 9) & 7;
19500 	OpcodeFamily = 27; CurrentInstrCycles = 12;
19501 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
19502 {	int16_t src = m68k_read_memory_16(srca);
19503 	m68k_areg (regs, srcreg) = srca;
19504 {	int32_t dst = m68k_areg(regs, dstreg);
19505 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19506 {	int flgs = ((int32_t)(src)) < 0;
19507 	int flgo = ((int32_t)(dst)) < 0;
19508 	int flgn = ((int32_t)(newv)) < 0;
19509 	SET_ZFLG (((int32_t)(newv)) == 0);
19510 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19511 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19512 	SET_NFLG (flgn != 0);
19513 }}}}}}}m68k_incpc(2);
19514 return 12;
19515 }
CPUFUNC(op_b0e8_4)19516 unsigned long CPUFUNC(op_b0e8_4)(uint32_t opcode) /* CMPA */
19517 {
19518 	uint32_t srcreg = (opcode & 7);
19519 	uint32_t dstreg = (opcode >> 9) & 7;
19520 	OpcodeFamily = 27; CurrentInstrCycles = 14;
19521 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
19522 {	int16_t src = m68k_read_memory_16(srca);
19523 {	int32_t dst = m68k_areg(regs, dstreg);
19524 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19525 {	int flgs = ((int32_t)(src)) < 0;
19526 	int flgo = ((int32_t)(dst)) < 0;
19527 	int flgn = ((int32_t)(newv)) < 0;
19528 	SET_ZFLG (((int32_t)(newv)) == 0);
19529 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19530 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19531 	SET_NFLG (flgn != 0);
19532 }}}}}}}m68k_incpc(4);
19533 return 14;
19534 }
CPUFUNC(op_b0f0_4)19535 unsigned long CPUFUNC(op_b0f0_4)(uint32_t opcode) /* CMPA */
19536 {
19537 	uint32_t srcreg = (opcode & 7);
19538 	uint32_t dstreg = (opcode >> 9) & 7;
19539 	OpcodeFamily = 27; CurrentInstrCycles = 16;
19540 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
19541 	BusCyclePenalty += 2;
19542 {	int16_t src = m68k_read_memory_16(srca);
19543 {	int32_t dst = m68k_areg(regs, dstreg);
19544 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19545 {	int flgs = ((int32_t)(src)) < 0;
19546 	int flgo = ((int32_t)(dst)) < 0;
19547 	int flgn = ((int32_t)(newv)) < 0;
19548 	SET_ZFLG (((int32_t)(newv)) == 0);
19549 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19550 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19551 	SET_NFLG (flgn != 0);
19552 }}}}}}}m68k_incpc(4);
19553 return 16;
19554 }
CPUFUNC(op_b0f8_4)19555 unsigned long CPUFUNC(op_b0f8_4)(uint32_t opcode) /* CMPA */
19556 {
19557 	uint32_t dstreg = (opcode >> 9) & 7;
19558 	OpcodeFamily = 27; CurrentInstrCycles = 14;
19559 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
19560 {	int16_t src = m68k_read_memory_16(srca);
19561 {	int32_t dst = m68k_areg(regs, dstreg);
19562 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19563 {	int flgs = ((int32_t)(src)) < 0;
19564 	int flgo = ((int32_t)(dst)) < 0;
19565 	int flgn = ((int32_t)(newv)) < 0;
19566 	SET_ZFLG (((int32_t)(newv)) == 0);
19567 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19568 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19569 	SET_NFLG (flgn != 0);
19570 }}}}}}}m68k_incpc(4);
19571 return 14;
19572 }
CPUFUNC(op_b0f9_4)19573 unsigned long CPUFUNC(op_b0f9_4)(uint32_t opcode) /* CMPA */
19574 {
19575 	uint32_t dstreg = (opcode >> 9) & 7;
19576 	OpcodeFamily = 27; CurrentInstrCycles = 18;
19577 {{	uint32_t srca = get_ilong(2);
19578 {	int16_t src = m68k_read_memory_16(srca);
19579 {	int32_t dst = m68k_areg(regs, dstreg);
19580 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19581 {	int flgs = ((int32_t)(src)) < 0;
19582 	int flgo = ((int32_t)(dst)) < 0;
19583 	int flgn = ((int32_t)(newv)) < 0;
19584 	SET_ZFLG (((int32_t)(newv)) == 0);
19585 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19586 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19587 	SET_NFLG (flgn != 0);
19588 }}}}}}}m68k_incpc(6);
19589 return 18;
19590 }
CPUFUNC(op_b0fa_4)19591 unsigned long CPUFUNC(op_b0fa_4)(uint32_t opcode) /* CMPA */
19592 {
19593 	uint32_t dstreg = (opcode >> 9) & 7;
19594 	OpcodeFamily = 27; CurrentInstrCycles = 14;
19595 {{	uint32_t srca = m68k_getpc () + 2;
19596 	srca += (int32_t)(int16_t)get_iword(2);
19597 {	int16_t src = m68k_read_memory_16(srca);
19598 {	int32_t dst = m68k_areg(regs, dstreg);
19599 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19600 {	int flgs = ((int32_t)(src)) < 0;
19601 	int flgo = ((int32_t)(dst)) < 0;
19602 	int flgn = ((int32_t)(newv)) < 0;
19603 	SET_ZFLG (((int32_t)(newv)) == 0);
19604 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19605 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19606 	SET_NFLG (flgn != 0);
19607 }}}}}}}m68k_incpc(4);
19608 return 14;
19609 }
CPUFUNC(op_b0fb_4)19610 unsigned long CPUFUNC(op_b0fb_4)(uint32_t opcode) /* CMPA */
19611 {
19612 	uint32_t dstreg = (opcode >> 9) & 7;
19613 	OpcodeFamily = 27; CurrentInstrCycles = 16;
19614 {{	uint32_t tmppc = m68k_getpc() + 2;
19615 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
19616 	BusCyclePenalty += 2;
19617 {	int16_t src = m68k_read_memory_16(srca);
19618 {	int32_t dst = m68k_areg(regs, dstreg);
19619 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19620 {	int flgs = ((int32_t)(src)) < 0;
19621 	int flgo = ((int32_t)(dst)) < 0;
19622 	int flgn = ((int32_t)(newv)) < 0;
19623 	SET_ZFLG (((int32_t)(newv)) == 0);
19624 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19625 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19626 	SET_NFLG (flgn != 0);
19627 }}}}}}}m68k_incpc(4);
19628 return 16;
19629 }
CPUFUNC(op_b0fc_4)19630 unsigned long CPUFUNC(op_b0fc_4)(uint32_t opcode) /* CMPA */
19631 {
19632 	uint32_t dstreg = (opcode >> 9) & 7;
19633 	OpcodeFamily = 27; CurrentInstrCycles = 10;
19634 {{	int16_t src = get_iword(2);
19635 {	int32_t dst = m68k_areg(regs, dstreg);
19636 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19637 {	int flgs = ((int32_t)(src)) < 0;
19638 	int flgo = ((int32_t)(dst)) < 0;
19639 	int flgn = ((int32_t)(newv)) < 0;
19640 	SET_ZFLG (((int32_t)(newv)) == 0);
19641 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19642 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19643 	SET_NFLG (flgn != 0);
19644 }}}}}}m68k_incpc(4);
19645 return 10;
19646 }
CPUFUNC(op_b100_4)19647 unsigned long CPUFUNC(op_b100_4)(uint32_t opcode) /* EOR */
19648 {
19649 	uint32_t srcreg = ((opcode >> 9) & 7);
19650 	uint32_t dstreg = opcode & 7;
19651 	OpcodeFamily = 3; CurrentInstrCycles = 4;
19652 {{	int8_t src = m68k_dreg(regs, srcreg);
19653 {	int8_t dst = m68k_dreg(regs, dstreg);
19654 	src ^= dst;
19655 	CLEAR_CZNV;
19656 	SET_ZFLG (((int8_t)(src)) == 0);
19657 	SET_NFLG (((int8_t)(src)) < 0);
19658 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
19659 }}}m68k_incpc(2);
19660 return 4;
19661 }
CPUFUNC(op_b108_4)19662 unsigned long CPUFUNC(op_b108_4)(uint32_t opcode) /* CMPM */
19663 {
19664 	uint32_t srcreg = (opcode & 7);
19665 	uint32_t dstreg = (opcode >> 9) & 7;
19666 	OpcodeFamily = 26; CurrentInstrCycles = 12;
19667 {{	uint32_t srca = m68k_areg(regs, srcreg);
19668 {	int8_t src = m68k_read_memory_8(srca);
19669 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
19670 {	uint32_t dsta = m68k_areg(regs, dstreg);
19671 {	int8_t dst = m68k_read_memory_8(dsta);
19672 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
19673 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
19674 {	int flgs = ((int8_t)(src)) < 0;
19675 	int flgo = ((int8_t)(dst)) < 0;
19676 	int flgn = ((int8_t)(newv)) < 0;
19677 	SET_ZFLG (((int8_t)(newv)) == 0);
19678 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19679 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
19680 	SET_NFLG (flgn != 0);
19681 }}}}}}}}m68k_incpc(2);
19682 return 12;
19683 }
CPUFUNC(op_b110_4)19684 unsigned long CPUFUNC(op_b110_4)(uint32_t opcode) /* EOR */
19685 {
19686 	uint32_t srcreg = ((opcode >> 9) & 7);
19687 	uint32_t dstreg = opcode & 7;
19688 	OpcodeFamily = 3; CurrentInstrCycles = 12;
19689 {{	int8_t src = m68k_dreg(regs, srcreg);
19690 {	uint32_t dsta = m68k_areg(regs, dstreg);
19691 {	int8_t dst = m68k_read_memory_8(dsta);
19692 	src ^= dst;
19693 	CLEAR_CZNV;
19694 	SET_ZFLG (((int8_t)(src)) == 0);
19695 	SET_NFLG (((int8_t)(src)) < 0);
19696 	m68k_write_memory_8(dsta,src);
19697 }}}}m68k_incpc(2);
19698 return 12;
19699 }
CPUFUNC(op_b118_4)19700 unsigned long CPUFUNC(op_b118_4)(uint32_t opcode) /* EOR */
19701 {
19702 	uint32_t srcreg = ((opcode >> 9) & 7);
19703 	uint32_t dstreg = opcode & 7;
19704 	OpcodeFamily = 3; CurrentInstrCycles = 12;
19705 {{	int8_t src = m68k_dreg(regs, srcreg);
19706 {	uint32_t dsta = m68k_areg(regs, dstreg);
19707 {	int8_t dst = m68k_read_memory_8(dsta);
19708 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
19709 	src ^= dst;
19710 	CLEAR_CZNV;
19711 	SET_ZFLG (((int8_t)(src)) == 0);
19712 	SET_NFLG (((int8_t)(src)) < 0);
19713 	m68k_write_memory_8(dsta,src);
19714 }}}}m68k_incpc(2);
19715 return 12;
19716 }
CPUFUNC(op_b120_4)19717 unsigned long CPUFUNC(op_b120_4)(uint32_t opcode) /* EOR */
19718 {
19719 	uint32_t srcreg = ((opcode >> 9) & 7);
19720 	uint32_t dstreg = opcode & 7;
19721 	OpcodeFamily = 3; CurrentInstrCycles = 14;
19722 {{	int8_t src = m68k_dreg(regs, srcreg);
19723 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
19724 {	int8_t dst = m68k_read_memory_8(dsta);
19725 	m68k_areg (regs, dstreg) = dsta;
19726 	src ^= dst;
19727 	CLEAR_CZNV;
19728 	SET_ZFLG (((int8_t)(src)) == 0);
19729 	SET_NFLG (((int8_t)(src)) < 0);
19730 	m68k_write_memory_8(dsta,src);
19731 }}}}m68k_incpc(2);
19732 return 14;
19733 }
CPUFUNC(op_b128_4)19734 unsigned long CPUFUNC(op_b128_4)(uint32_t opcode) /* EOR */
19735 {
19736 	uint32_t srcreg = ((opcode >> 9) & 7);
19737 	uint32_t dstreg = opcode & 7;
19738 	OpcodeFamily = 3; CurrentInstrCycles = 16;
19739 {{	int8_t src = m68k_dreg(regs, srcreg);
19740 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
19741 {	int8_t dst = m68k_read_memory_8(dsta);
19742 	src ^= dst;
19743 	CLEAR_CZNV;
19744 	SET_ZFLG (((int8_t)(src)) == 0);
19745 	SET_NFLG (((int8_t)(src)) < 0);
19746 	m68k_write_memory_8(dsta,src);
19747 }}}}m68k_incpc(4);
19748 return 16;
19749 }
CPUFUNC(op_b130_4)19750 unsigned long CPUFUNC(op_b130_4)(uint32_t opcode) /* EOR */
19751 {
19752 	uint32_t srcreg = ((opcode >> 9) & 7);
19753 	uint32_t dstreg = opcode & 7;
19754 	OpcodeFamily = 3; CurrentInstrCycles = 18;
19755 {{	int8_t src = m68k_dreg(regs, srcreg);
19756 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
19757 	BusCyclePenalty += 2;
19758 {	int8_t dst = m68k_read_memory_8(dsta);
19759 	src ^= dst;
19760 	CLEAR_CZNV;
19761 	SET_ZFLG (((int8_t)(src)) == 0);
19762 	SET_NFLG (((int8_t)(src)) < 0);
19763 	m68k_write_memory_8(dsta,src);
19764 }}}}m68k_incpc(4);
19765 return 18;
19766 }
CPUFUNC(op_b138_4)19767 unsigned long CPUFUNC(op_b138_4)(uint32_t opcode) /* EOR */
19768 {
19769 	uint32_t srcreg = ((opcode >> 9) & 7);
19770 	OpcodeFamily = 3; CurrentInstrCycles = 16;
19771 {{	int8_t src = m68k_dreg(regs, srcreg);
19772 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
19773 {	int8_t dst = m68k_read_memory_8(dsta);
19774 	src ^= dst;
19775 	CLEAR_CZNV;
19776 	SET_ZFLG (((int8_t)(src)) == 0);
19777 	SET_NFLG (((int8_t)(src)) < 0);
19778 	m68k_write_memory_8(dsta,src);
19779 }}}}m68k_incpc(4);
19780 return 16;
19781 }
CPUFUNC(op_b139_4)19782 unsigned long CPUFUNC(op_b139_4)(uint32_t opcode) /* EOR */
19783 {
19784 	uint32_t srcreg = ((opcode >> 9) & 7);
19785 	OpcodeFamily = 3; CurrentInstrCycles = 20;
19786 {{	int8_t src = m68k_dreg(regs, srcreg);
19787 {	uint32_t dsta = get_ilong(2);
19788 {	int8_t dst = m68k_read_memory_8(dsta);
19789 	src ^= dst;
19790 	CLEAR_CZNV;
19791 	SET_ZFLG (((int8_t)(src)) == 0);
19792 	SET_NFLG (((int8_t)(src)) < 0);
19793 	m68k_write_memory_8(dsta,src);
19794 }}}}m68k_incpc(6);
19795 return 20;
19796 }
CPUFUNC(op_b140_4)19797 unsigned long CPUFUNC(op_b140_4)(uint32_t opcode) /* EOR */
19798 {
19799 	uint32_t srcreg = ((opcode >> 9) & 7);
19800 	uint32_t dstreg = opcode & 7;
19801 	OpcodeFamily = 3; CurrentInstrCycles = 4;
19802 {{	int16_t src = m68k_dreg(regs, srcreg);
19803 {	int16_t dst = m68k_dreg(regs, dstreg);
19804 	src ^= dst;
19805 	CLEAR_CZNV;
19806 	SET_ZFLG (((int16_t)(src)) == 0);
19807 	SET_NFLG (((int16_t)(src)) < 0);
19808 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
19809 }}}m68k_incpc(2);
19810 return 4;
19811 }
CPUFUNC(op_b148_4)19812 unsigned long CPUFUNC(op_b148_4)(uint32_t opcode) /* CMPM */
19813 {
19814 	uint32_t srcreg = (opcode & 7);
19815 	uint32_t dstreg = (opcode >> 9) & 7;
19816 	OpcodeFamily = 26; CurrentInstrCycles = 12;
19817 {{	uint32_t srca = m68k_areg(regs, srcreg);
19818 {	int16_t src = m68k_read_memory_16(srca);
19819 	m68k_areg(regs, srcreg) += 2;
19820 {	uint32_t dsta = m68k_areg(regs, dstreg);
19821 {	int16_t dst = m68k_read_memory_16(dsta);
19822 	m68k_areg(regs, dstreg) += 2;
19823 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
19824 {	int flgs = ((int16_t)(src)) < 0;
19825 	int flgo = ((int16_t)(dst)) < 0;
19826 	int flgn = ((int16_t)(newv)) < 0;
19827 	SET_ZFLG (((int16_t)(newv)) == 0);
19828 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19829 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
19830 	SET_NFLG (flgn != 0);
19831 }}}}}}}}m68k_incpc(2);
19832 return 12;
19833 }
CPUFUNC(op_b150_4)19834 unsigned long CPUFUNC(op_b150_4)(uint32_t opcode) /* EOR */
19835 {
19836 	uint32_t srcreg = ((opcode >> 9) & 7);
19837 	uint32_t dstreg = opcode & 7;
19838 	OpcodeFamily = 3; CurrentInstrCycles = 12;
19839 {{	int16_t src = m68k_dreg(regs, srcreg);
19840 {	uint32_t dsta = m68k_areg(regs, dstreg);
19841 {	int16_t dst = m68k_read_memory_16(dsta);
19842 	src ^= dst;
19843 	CLEAR_CZNV;
19844 	SET_ZFLG (((int16_t)(src)) == 0);
19845 	SET_NFLG (((int16_t)(src)) < 0);
19846 	m68k_write_memory_16(dsta,src);
19847 }}}}m68k_incpc(2);
19848 return 12;
19849 }
CPUFUNC(op_b158_4)19850 unsigned long CPUFUNC(op_b158_4)(uint32_t opcode) /* EOR */
19851 {
19852 	uint32_t srcreg = ((opcode >> 9) & 7);
19853 	uint32_t dstreg = opcode & 7;
19854 	OpcodeFamily = 3; CurrentInstrCycles = 12;
19855 {{	int16_t src = m68k_dreg(regs, srcreg);
19856 {	uint32_t dsta = m68k_areg(regs, dstreg);
19857 {	int16_t dst = m68k_read_memory_16(dsta);
19858 	m68k_areg(regs, dstreg) += 2;
19859 	src ^= dst;
19860 	CLEAR_CZNV;
19861 	SET_ZFLG (((int16_t)(src)) == 0);
19862 	SET_NFLG (((int16_t)(src)) < 0);
19863 	m68k_write_memory_16(dsta,src);
19864 }}}}m68k_incpc(2);
19865 return 12;
19866 }
CPUFUNC(op_b160_4)19867 unsigned long CPUFUNC(op_b160_4)(uint32_t opcode) /* EOR */
19868 {
19869 	uint32_t srcreg = ((opcode >> 9) & 7);
19870 	uint32_t dstreg = opcode & 7;
19871 	OpcodeFamily = 3; CurrentInstrCycles = 14;
19872 {{	int16_t src = m68k_dreg(regs, srcreg);
19873 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
19874 {	int16_t dst = m68k_read_memory_16(dsta);
19875 	m68k_areg (regs, dstreg) = dsta;
19876 	src ^= dst;
19877 	CLEAR_CZNV;
19878 	SET_ZFLG (((int16_t)(src)) == 0);
19879 	SET_NFLG (((int16_t)(src)) < 0);
19880 	m68k_write_memory_16(dsta,src);
19881 }}}}m68k_incpc(2);
19882 return 14;
19883 }
CPUFUNC(op_b168_4)19884 unsigned long CPUFUNC(op_b168_4)(uint32_t opcode) /* EOR */
19885 {
19886 	uint32_t srcreg = ((opcode >> 9) & 7);
19887 	uint32_t dstreg = opcode & 7;
19888 	OpcodeFamily = 3; CurrentInstrCycles = 16;
19889 {{	int16_t src = m68k_dreg(regs, srcreg);
19890 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
19891 {	int16_t dst = m68k_read_memory_16(dsta);
19892 	src ^= dst;
19893 	CLEAR_CZNV;
19894 	SET_ZFLG (((int16_t)(src)) == 0);
19895 	SET_NFLG (((int16_t)(src)) < 0);
19896 	m68k_write_memory_16(dsta,src);
19897 }}}}m68k_incpc(4);
19898 return 16;
19899 }
CPUFUNC(op_b170_4)19900 unsigned long CPUFUNC(op_b170_4)(uint32_t opcode) /* EOR */
19901 {
19902 	uint32_t srcreg = ((opcode >> 9) & 7);
19903 	uint32_t dstreg = opcode & 7;
19904 	OpcodeFamily = 3; CurrentInstrCycles = 18;
19905 {{	int16_t src = m68k_dreg(regs, srcreg);
19906 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
19907 	BusCyclePenalty += 2;
19908 {	int16_t dst = m68k_read_memory_16(dsta);
19909 	src ^= dst;
19910 	CLEAR_CZNV;
19911 	SET_ZFLG (((int16_t)(src)) == 0);
19912 	SET_NFLG (((int16_t)(src)) < 0);
19913 	m68k_write_memory_16(dsta,src);
19914 }}}}m68k_incpc(4);
19915 return 18;
19916 }
CPUFUNC(op_b178_4)19917 unsigned long CPUFUNC(op_b178_4)(uint32_t opcode) /* EOR */
19918 {
19919 	uint32_t srcreg = ((opcode >> 9) & 7);
19920 	OpcodeFamily = 3; CurrentInstrCycles = 16;
19921 {{	int16_t src = m68k_dreg(regs, srcreg);
19922 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
19923 {	int16_t dst = m68k_read_memory_16(dsta);
19924 	src ^= dst;
19925 	CLEAR_CZNV;
19926 	SET_ZFLG (((int16_t)(src)) == 0);
19927 	SET_NFLG (((int16_t)(src)) < 0);
19928 	m68k_write_memory_16(dsta,src);
19929 }}}}m68k_incpc(4);
19930 return 16;
19931 }
CPUFUNC(op_b179_4)19932 unsigned long CPUFUNC(op_b179_4)(uint32_t opcode) /* EOR */
19933 {
19934 	uint32_t srcreg = ((opcode >> 9) & 7);
19935 	OpcodeFamily = 3; CurrentInstrCycles = 20;
19936 {{	int16_t src = m68k_dreg(regs, srcreg);
19937 {	uint32_t dsta = get_ilong(2);
19938 {	int16_t dst = m68k_read_memory_16(dsta);
19939 	src ^= dst;
19940 	CLEAR_CZNV;
19941 	SET_ZFLG (((int16_t)(src)) == 0);
19942 	SET_NFLG (((int16_t)(src)) < 0);
19943 	m68k_write_memory_16(dsta,src);
19944 }}}}m68k_incpc(6);
19945 return 20;
19946 }
CPUFUNC(op_b180_4)19947 unsigned long CPUFUNC(op_b180_4)(uint32_t opcode) /* EOR */
19948 {
19949 	uint32_t srcreg = ((opcode >> 9) & 7);
19950 	uint32_t dstreg = opcode & 7;
19951 	OpcodeFamily = 3; CurrentInstrCycles = 8;
19952 {{	int32_t src = m68k_dreg(regs, srcreg);
19953 {	int32_t dst = m68k_dreg(regs, dstreg);
19954 	src ^= dst;
19955 	CLEAR_CZNV;
19956 	SET_ZFLG (((int32_t)(src)) == 0);
19957 	SET_NFLG (((int32_t)(src)) < 0);
19958 	m68k_dreg(regs, dstreg) = (src);
19959 }}}m68k_incpc(2);
19960 return 8;
19961 }
CPUFUNC(op_b188_4)19962 unsigned long CPUFUNC(op_b188_4)(uint32_t opcode) /* CMPM */
19963 {
19964 	uint32_t srcreg = (opcode & 7);
19965 	uint32_t dstreg = (opcode >> 9) & 7;
19966 	OpcodeFamily = 26; CurrentInstrCycles = 20;
19967 {{	uint32_t srca = m68k_areg(regs, srcreg);
19968 {	int32_t src = m68k_read_memory_32(srca);
19969 	m68k_areg(regs, srcreg) += 4;
19970 {	uint32_t dsta = m68k_areg(regs, dstreg);
19971 {	int32_t dst = m68k_read_memory_32(dsta);
19972 	m68k_areg(regs, dstreg) += 4;
19973 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
19974 {	int flgs = ((int32_t)(src)) < 0;
19975 	int flgo = ((int32_t)(dst)) < 0;
19976 	int flgn = ((int32_t)(newv)) < 0;
19977 	SET_ZFLG (((int32_t)(newv)) == 0);
19978 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
19979 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
19980 	SET_NFLG (flgn != 0);
19981 }}}}}}}}m68k_incpc(2);
19982 return 20;
19983 }
CPUFUNC(op_b190_4)19984 unsigned long CPUFUNC(op_b190_4)(uint32_t opcode) /* EOR */
19985 {
19986 	uint32_t srcreg = ((opcode >> 9) & 7);
19987 	uint32_t dstreg = opcode & 7;
19988 	OpcodeFamily = 3; CurrentInstrCycles = 20;
19989 {{	int32_t src = m68k_dreg(regs, srcreg);
19990 {	uint32_t dsta = m68k_areg(regs, dstreg);
19991 {	int32_t dst = m68k_read_memory_32(dsta);
19992 	src ^= dst;
19993 	CLEAR_CZNV;
19994 	SET_ZFLG (((int32_t)(src)) == 0);
19995 	SET_NFLG (((int32_t)(src)) < 0);
19996 	m68k_write_memory_32(dsta,src);
19997 }}}}m68k_incpc(2);
19998 return 20;
19999 }
CPUFUNC(op_b198_4)20000 unsigned long CPUFUNC(op_b198_4)(uint32_t opcode) /* EOR */
20001 {
20002 	uint32_t srcreg = ((opcode >> 9) & 7);
20003 	uint32_t dstreg = opcode & 7;
20004 	OpcodeFamily = 3; CurrentInstrCycles = 20;
20005 {{	int32_t src = m68k_dreg(regs, srcreg);
20006 {	uint32_t dsta = m68k_areg(regs, dstreg);
20007 {	int32_t dst = m68k_read_memory_32(dsta);
20008 	m68k_areg(regs, dstreg) += 4;
20009 	src ^= dst;
20010 	CLEAR_CZNV;
20011 	SET_ZFLG (((int32_t)(src)) == 0);
20012 	SET_NFLG (((int32_t)(src)) < 0);
20013 	m68k_write_memory_32(dsta,src);
20014 }}}}m68k_incpc(2);
20015 return 20;
20016 }
CPUFUNC(op_b1a0_4)20017 unsigned long CPUFUNC(op_b1a0_4)(uint32_t opcode) /* EOR */
20018 {
20019 	uint32_t srcreg = ((opcode >> 9) & 7);
20020 	uint32_t dstreg = opcode & 7;
20021 	OpcodeFamily = 3; CurrentInstrCycles = 22;
20022 {{	int32_t src = m68k_dreg(regs, srcreg);
20023 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
20024 {	int32_t dst = m68k_read_memory_32(dsta);
20025 	m68k_areg (regs, dstreg) = dsta;
20026 	src ^= dst;
20027 	CLEAR_CZNV;
20028 	SET_ZFLG (((int32_t)(src)) == 0);
20029 	SET_NFLG (((int32_t)(src)) < 0);
20030 	m68k_write_memory_32(dsta,src);
20031 }}}}m68k_incpc(2);
20032 return 22;
20033 }
CPUFUNC(op_b1a8_4)20034 unsigned long CPUFUNC(op_b1a8_4)(uint32_t opcode) /* EOR */
20035 {
20036 	uint32_t srcreg = ((opcode >> 9) & 7);
20037 	uint32_t dstreg = opcode & 7;
20038 	OpcodeFamily = 3; CurrentInstrCycles = 24;
20039 {{	int32_t src = m68k_dreg(regs, srcreg);
20040 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
20041 {	int32_t dst = m68k_read_memory_32(dsta);
20042 	src ^= dst;
20043 	CLEAR_CZNV;
20044 	SET_ZFLG (((int32_t)(src)) == 0);
20045 	SET_NFLG (((int32_t)(src)) < 0);
20046 	m68k_write_memory_32(dsta,src);
20047 }}}}m68k_incpc(4);
20048 return 24;
20049 }
CPUFUNC(op_b1b0_4)20050 unsigned long CPUFUNC(op_b1b0_4)(uint32_t opcode) /* EOR */
20051 {
20052 	uint32_t srcreg = ((opcode >> 9) & 7);
20053 	uint32_t dstreg = opcode & 7;
20054 	OpcodeFamily = 3; CurrentInstrCycles = 26;
20055 {{	int32_t src = m68k_dreg(regs, srcreg);
20056 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
20057 	BusCyclePenalty += 2;
20058 {	int32_t dst = m68k_read_memory_32(dsta);
20059 	src ^= dst;
20060 	CLEAR_CZNV;
20061 	SET_ZFLG (((int32_t)(src)) == 0);
20062 	SET_NFLG (((int32_t)(src)) < 0);
20063 	m68k_write_memory_32(dsta,src);
20064 }}}}m68k_incpc(4);
20065 return 26;
20066 }
CPUFUNC(op_b1b8_4)20067 unsigned long CPUFUNC(op_b1b8_4)(uint32_t opcode) /* EOR */
20068 {
20069 	uint32_t srcreg = ((opcode >> 9) & 7);
20070 	OpcodeFamily = 3; CurrentInstrCycles = 24;
20071 {{	int32_t src = m68k_dreg(regs, srcreg);
20072 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
20073 {	int32_t dst = m68k_read_memory_32(dsta);
20074 	src ^= dst;
20075 	CLEAR_CZNV;
20076 	SET_ZFLG (((int32_t)(src)) == 0);
20077 	SET_NFLG (((int32_t)(src)) < 0);
20078 	m68k_write_memory_32(dsta,src);
20079 }}}}m68k_incpc(4);
20080 return 24;
20081 }
CPUFUNC(op_b1b9_4)20082 unsigned long CPUFUNC(op_b1b9_4)(uint32_t opcode) /* EOR */
20083 {
20084 	uint32_t srcreg = ((opcode >> 9) & 7);
20085 	OpcodeFamily = 3; CurrentInstrCycles = 28;
20086 {{	int32_t src = m68k_dreg(regs, srcreg);
20087 {	uint32_t dsta = get_ilong(2);
20088 {	int32_t dst = m68k_read_memory_32(dsta);
20089 	src ^= dst;
20090 	CLEAR_CZNV;
20091 	SET_ZFLG (((int32_t)(src)) == 0);
20092 	SET_NFLG (((int32_t)(src)) < 0);
20093 	m68k_write_memory_32(dsta,src);
20094 }}}}m68k_incpc(6);
20095 return 28;
20096 }
CPUFUNC(op_b1c0_4)20097 unsigned long CPUFUNC(op_b1c0_4)(uint32_t opcode) /* CMPA */
20098 {
20099 	uint32_t srcreg = (opcode & 7);
20100 	uint32_t dstreg = (opcode >> 9) & 7;
20101 	OpcodeFamily = 27; CurrentInstrCycles = 6;
20102 {{	int32_t src = m68k_dreg(regs, srcreg);
20103 {	int32_t dst = m68k_areg(regs, dstreg);
20104 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20105 {	int flgs = ((int32_t)(src)) < 0;
20106 	int flgo = ((int32_t)(dst)) < 0;
20107 	int flgn = ((int32_t)(newv)) < 0;
20108 	SET_ZFLG (((int32_t)(newv)) == 0);
20109 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20110 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20111 	SET_NFLG (flgn != 0);
20112 }}}}}}m68k_incpc(2);
20113 return 6;
20114 }
CPUFUNC(op_b1c8_4)20115 unsigned long CPUFUNC(op_b1c8_4)(uint32_t opcode) /* CMPA */
20116 {
20117 	uint32_t srcreg = (opcode & 7);
20118 	uint32_t dstreg = (opcode >> 9) & 7;
20119 	OpcodeFamily = 27; CurrentInstrCycles = 6;
20120 {{	int32_t src = m68k_areg(regs, srcreg);
20121 {	int32_t dst = m68k_areg(regs, dstreg);
20122 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20123 {	int flgs = ((int32_t)(src)) < 0;
20124 	int flgo = ((int32_t)(dst)) < 0;
20125 	int flgn = ((int32_t)(newv)) < 0;
20126 	SET_ZFLG (((int32_t)(newv)) == 0);
20127 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20128 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20129 	SET_NFLG (flgn != 0);
20130 }}}}}}m68k_incpc(2);
20131 return 6;
20132 }
CPUFUNC(op_b1d0_4)20133 unsigned long CPUFUNC(op_b1d0_4)(uint32_t opcode) /* CMPA */
20134 {
20135 	uint32_t srcreg = (opcode & 7);
20136 	uint32_t dstreg = (opcode >> 9) & 7;
20137 	OpcodeFamily = 27; CurrentInstrCycles = 14;
20138 {{	uint32_t srca = m68k_areg(regs, srcreg);
20139 {	int32_t src = m68k_read_memory_32(srca);
20140 {	int32_t dst = m68k_areg(regs, dstreg);
20141 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20142 {	int flgs = ((int32_t)(src)) < 0;
20143 	int flgo = ((int32_t)(dst)) < 0;
20144 	int flgn = ((int32_t)(newv)) < 0;
20145 	SET_ZFLG (((int32_t)(newv)) == 0);
20146 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20147 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20148 	SET_NFLG (flgn != 0);
20149 }}}}}}}m68k_incpc(2);
20150 return 14;
20151 }
CPUFUNC(op_b1d8_4)20152 unsigned long CPUFUNC(op_b1d8_4)(uint32_t opcode) /* CMPA */
20153 {
20154 	uint32_t srcreg = (opcode & 7);
20155 	uint32_t dstreg = (opcode >> 9) & 7;
20156 	OpcodeFamily = 27; CurrentInstrCycles = 14;
20157 {{	uint32_t srca = m68k_areg(regs, srcreg);
20158 {	int32_t src = m68k_read_memory_32(srca);
20159 	m68k_areg(regs, srcreg) += 4;
20160 {	int32_t dst = m68k_areg(regs, dstreg);
20161 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20162 {	int flgs = ((int32_t)(src)) < 0;
20163 	int flgo = ((int32_t)(dst)) < 0;
20164 	int flgn = ((int32_t)(newv)) < 0;
20165 	SET_ZFLG (((int32_t)(newv)) == 0);
20166 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20167 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20168 	SET_NFLG (flgn != 0);
20169 }}}}}}}m68k_incpc(2);
20170 return 14;
20171 }
CPUFUNC(op_b1e0_4)20172 unsigned long CPUFUNC(op_b1e0_4)(uint32_t opcode) /* CMPA */
20173 {
20174 	uint32_t srcreg = (opcode & 7);
20175 	uint32_t dstreg = (opcode >> 9) & 7;
20176 	OpcodeFamily = 27; CurrentInstrCycles = 16;
20177 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
20178 {	int32_t src = m68k_read_memory_32(srca);
20179 	m68k_areg (regs, srcreg) = srca;
20180 {	int32_t dst = m68k_areg(regs, dstreg);
20181 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20182 {	int flgs = ((int32_t)(src)) < 0;
20183 	int flgo = ((int32_t)(dst)) < 0;
20184 	int flgn = ((int32_t)(newv)) < 0;
20185 	SET_ZFLG (((int32_t)(newv)) == 0);
20186 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20187 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20188 	SET_NFLG (flgn != 0);
20189 }}}}}}}m68k_incpc(2);
20190 return 16;
20191 }
CPUFUNC(op_b1e8_4)20192 unsigned long CPUFUNC(op_b1e8_4)(uint32_t opcode) /* CMPA */
20193 {
20194 	uint32_t srcreg = (opcode & 7);
20195 	uint32_t dstreg = (opcode >> 9) & 7;
20196 	OpcodeFamily = 27; CurrentInstrCycles = 18;
20197 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
20198 {	int32_t src = m68k_read_memory_32(srca);
20199 {	int32_t dst = m68k_areg(regs, dstreg);
20200 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20201 {	int flgs = ((int32_t)(src)) < 0;
20202 	int flgo = ((int32_t)(dst)) < 0;
20203 	int flgn = ((int32_t)(newv)) < 0;
20204 	SET_ZFLG (((int32_t)(newv)) == 0);
20205 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20206 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20207 	SET_NFLG (flgn != 0);
20208 }}}}}}}m68k_incpc(4);
20209 return 18;
20210 }
CPUFUNC(op_b1f0_4)20211 unsigned long CPUFUNC(op_b1f0_4)(uint32_t opcode) /* CMPA */
20212 {
20213 	uint32_t srcreg = (opcode & 7);
20214 	uint32_t dstreg = (opcode >> 9) & 7;
20215 	OpcodeFamily = 27; CurrentInstrCycles = 20;
20216 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
20217 	BusCyclePenalty += 2;
20218 {	int32_t src = m68k_read_memory_32(srca);
20219 {	int32_t dst = m68k_areg(regs, dstreg);
20220 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20221 {	int flgs = ((int32_t)(src)) < 0;
20222 	int flgo = ((int32_t)(dst)) < 0;
20223 	int flgn = ((int32_t)(newv)) < 0;
20224 	SET_ZFLG (((int32_t)(newv)) == 0);
20225 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20226 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20227 	SET_NFLG (flgn != 0);
20228 }}}}}}}m68k_incpc(4);
20229 return 20;
20230 }
CPUFUNC(op_b1f8_4)20231 unsigned long CPUFUNC(op_b1f8_4)(uint32_t opcode) /* CMPA */
20232 {
20233 	uint32_t dstreg = (opcode >> 9) & 7;
20234 	OpcodeFamily = 27; CurrentInstrCycles = 18;
20235 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
20236 {	int32_t src = m68k_read_memory_32(srca);
20237 {	int32_t dst = m68k_areg(regs, dstreg);
20238 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20239 {	int flgs = ((int32_t)(src)) < 0;
20240 	int flgo = ((int32_t)(dst)) < 0;
20241 	int flgn = ((int32_t)(newv)) < 0;
20242 	SET_ZFLG (((int32_t)(newv)) == 0);
20243 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20244 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20245 	SET_NFLG (flgn != 0);
20246 }}}}}}}m68k_incpc(4);
20247 return 18;
20248 }
CPUFUNC(op_b1f9_4)20249 unsigned long CPUFUNC(op_b1f9_4)(uint32_t opcode) /* CMPA */
20250 {
20251 	uint32_t dstreg = (opcode >> 9) & 7;
20252 	OpcodeFamily = 27; CurrentInstrCycles = 22;
20253 {{	uint32_t srca = get_ilong(2);
20254 {	int32_t src = m68k_read_memory_32(srca);
20255 {	int32_t dst = m68k_areg(regs, dstreg);
20256 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20257 {	int flgs = ((int32_t)(src)) < 0;
20258 	int flgo = ((int32_t)(dst)) < 0;
20259 	int flgn = ((int32_t)(newv)) < 0;
20260 	SET_ZFLG (((int32_t)(newv)) == 0);
20261 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20262 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20263 	SET_NFLG (flgn != 0);
20264 }}}}}}}m68k_incpc(6);
20265 return 22;
20266 }
CPUFUNC(op_b1fa_4)20267 unsigned long CPUFUNC(op_b1fa_4)(uint32_t opcode) /* CMPA */
20268 {
20269 	uint32_t dstreg = (opcode >> 9) & 7;
20270 	OpcodeFamily = 27; CurrentInstrCycles = 18;
20271 {{	uint32_t srca = m68k_getpc () + 2;
20272 	srca += (int32_t)(int16_t)get_iword(2);
20273 {	int32_t src = m68k_read_memory_32(srca);
20274 {	int32_t dst = m68k_areg(regs, dstreg);
20275 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20276 {	int flgs = ((int32_t)(src)) < 0;
20277 	int flgo = ((int32_t)(dst)) < 0;
20278 	int flgn = ((int32_t)(newv)) < 0;
20279 	SET_ZFLG (((int32_t)(newv)) == 0);
20280 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20281 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20282 	SET_NFLG (flgn != 0);
20283 }}}}}}}m68k_incpc(4);
20284 return 18;
20285 }
CPUFUNC(op_b1fb_4)20286 unsigned long CPUFUNC(op_b1fb_4)(uint32_t opcode) /* CMPA */
20287 {
20288 	uint32_t dstreg = (opcode >> 9) & 7;
20289 	OpcodeFamily = 27; CurrentInstrCycles = 20;
20290 {{	uint32_t tmppc = m68k_getpc() + 2;
20291 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
20292 	BusCyclePenalty += 2;
20293 {	int32_t src = m68k_read_memory_32(srca);
20294 {	int32_t dst = m68k_areg(regs, dstreg);
20295 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20296 {	int flgs = ((int32_t)(src)) < 0;
20297 	int flgo = ((int32_t)(dst)) < 0;
20298 	int flgn = ((int32_t)(newv)) < 0;
20299 	SET_ZFLG (((int32_t)(newv)) == 0);
20300 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20301 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20302 	SET_NFLG (flgn != 0);
20303 }}}}}}}m68k_incpc(4);
20304 return 20;
20305 }
CPUFUNC(op_b1fc_4)20306 unsigned long CPUFUNC(op_b1fc_4)(uint32_t opcode) /* CMPA */
20307 {
20308 	uint32_t dstreg = (opcode >> 9) & 7;
20309 	OpcodeFamily = 27; CurrentInstrCycles = 14;
20310 {{	int32_t src = get_ilong(2);
20311 {	int32_t dst = m68k_areg(regs, dstreg);
20312 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
20313 {	int flgs = ((int32_t)(src)) < 0;
20314 	int flgo = ((int32_t)(dst)) < 0;
20315 	int flgn = ((int32_t)(newv)) < 0;
20316 	SET_ZFLG (((int32_t)(newv)) == 0);
20317 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
20318 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
20319 	SET_NFLG (flgn != 0);
20320 }}}}}}m68k_incpc(6);
20321 return 14;
20322 }
CPUFUNC(op_c000_4)20323 unsigned long CPUFUNC(op_c000_4)(uint32_t opcode) /* AND */
20324 {
20325 	uint32_t srcreg = (opcode & 7);
20326 	uint32_t dstreg = (opcode >> 9) & 7;
20327 	OpcodeFamily = 2; CurrentInstrCycles = 4;
20328 {{	int8_t src = m68k_dreg(regs, srcreg);
20329 {	int8_t dst = m68k_dreg(regs, dstreg);
20330 	src &= dst;
20331 	CLEAR_CZNV;
20332 	SET_ZFLG (((int8_t)(src)) == 0);
20333 	SET_NFLG (((int8_t)(src)) < 0);
20334 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20335 }}}m68k_incpc(2);
20336 return 4;
20337 }
CPUFUNC(op_c010_4)20338 unsigned long CPUFUNC(op_c010_4)(uint32_t opcode) /* AND */
20339 {
20340 	uint32_t srcreg = (opcode & 7);
20341 	uint32_t dstreg = (opcode >> 9) & 7;
20342 	OpcodeFamily = 2; CurrentInstrCycles = 8;
20343 {{	uint32_t srca = m68k_areg(regs, srcreg);
20344 {	int8_t src = m68k_read_memory_8(srca);
20345 {	int8_t dst = m68k_dreg(regs, dstreg);
20346 	src &= dst;
20347 	CLEAR_CZNV;
20348 	SET_ZFLG (((int8_t)(src)) == 0);
20349 	SET_NFLG (((int8_t)(src)) < 0);
20350 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20351 }}}}m68k_incpc(2);
20352 return 8;
20353 }
CPUFUNC(op_c018_4)20354 unsigned long CPUFUNC(op_c018_4)(uint32_t opcode) /* AND */
20355 {
20356 	uint32_t srcreg = (opcode & 7);
20357 	uint32_t dstreg = (opcode >> 9) & 7;
20358 	OpcodeFamily = 2; CurrentInstrCycles = 8;
20359 {{	uint32_t srca = m68k_areg(regs, srcreg);
20360 {	int8_t src = m68k_read_memory_8(srca);
20361 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
20362 {	int8_t dst = m68k_dreg(regs, dstreg);
20363 	src &= dst;
20364 	CLEAR_CZNV;
20365 	SET_ZFLG (((int8_t)(src)) == 0);
20366 	SET_NFLG (((int8_t)(src)) < 0);
20367 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20368 }}}}m68k_incpc(2);
20369 return 8;
20370 }
CPUFUNC(op_c020_4)20371 unsigned long CPUFUNC(op_c020_4)(uint32_t opcode) /* AND */
20372 {
20373 	uint32_t srcreg = (opcode & 7);
20374 	uint32_t dstreg = (opcode >> 9) & 7;
20375 	OpcodeFamily = 2; CurrentInstrCycles = 10;
20376 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
20377 {	int8_t src = m68k_read_memory_8(srca);
20378 	m68k_areg (regs, srcreg) = srca;
20379 {	int8_t dst = m68k_dreg(regs, dstreg);
20380 	src &= dst;
20381 	CLEAR_CZNV;
20382 	SET_ZFLG (((int8_t)(src)) == 0);
20383 	SET_NFLG (((int8_t)(src)) < 0);
20384 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20385 }}}}m68k_incpc(2);
20386 return 10;
20387 }
CPUFUNC(op_c028_4)20388 unsigned long CPUFUNC(op_c028_4)(uint32_t opcode) /* AND */
20389 {
20390 	uint32_t srcreg = (opcode & 7);
20391 	uint32_t dstreg = (opcode >> 9) & 7;
20392 	OpcodeFamily = 2; CurrentInstrCycles = 12;
20393 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
20394 {	int8_t src = m68k_read_memory_8(srca);
20395 {	int8_t dst = m68k_dreg(regs, dstreg);
20396 	src &= dst;
20397 	CLEAR_CZNV;
20398 	SET_ZFLG (((int8_t)(src)) == 0);
20399 	SET_NFLG (((int8_t)(src)) < 0);
20400 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20401 }}}}m68k_incpc(4);
20402 return 12;
20403 }
CPUFUNC(op_c030_4)20404 unsigned long CPUFUNC(op_c030_4)(uint32_t opcode) /* AND */
20405 {
20406 	uint32_t srcreg = (opcode & 7);
20407 	uint32_t dstreg = (opcode >> 9) & 7;
20408 	OpcodeFamily = 2; CurrentInstrCycles = 14;
20409 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
20410 	BusCyclePenalty += 2;
20411 {	int8_t src = m68k_read_memory_8(srca);
20412 {	int8_t dst = m68k_dreg(regs, dstreg);
20413 	src &= dst;
20414 	CLEAR_CZNV;
20415 	SET_ZFLG (((int8_t)(src)) == 0);
20416 	SET_NFLG (((int8_t)(src)) < 0);
20417 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20418 }}}}m68k_incpc(4);
20419 return 14;
20420 }
CPUFUNC(op_c038_4)20421 unsigned long CPUFUNC(op_c038_4)(uint32_t opcode) /* AND */
20422 {
20423 	uint32_t dstreg = (opcode >> 9) & 7;
20424 	OpcodeFamily = 2; CurrentInstrCycles = 12;
20425 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
20426 {	int8_t src = m68k_read_memory_8(srca);
20427 {	int8_t dst = m68k_dreg(regs, dstreg);
20428 	src &= dst;
20429 	CLEAR_CZNV;
20430 	SET_ZFLG (((int8_t)(src)) == 0);
20431 	SET_NFLG (((int8_t)(src)) < 0);
20432 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20433 }}}}m68k_incpc(4);
20434 return 12;
20435 }
CPUFUNC(op_c039_4)20436 unsigned long CPUFUNC(op_c039_4)(uint32_t opcode) /* AND */
20437 {
20438 	uint32_t dstreg = (opcode >> 9) & 7;
20439 	OpcodeFamily = 2; CurrentInstrCycles = 16;
20440 {{	uint32_t srca = get_ilong(2);
20441 {	int8_t src = m68k_read_memory_8(srca);
20442 {	int8_t dst = m68k_dreg(regs, dstreg);
20443 	src &= dst;
20444 	CLEAR_CZNV;
20445 	SET_ZFLG (((int8_t)(src)) == 0);
20446 	SET_NFLG (((int8_t)(src)) < 0);
20447 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20448 }}}}m68k_incpc(6);
20449 return 16;
20450 }
CPUFUNC(op_c03a_4)20451 unsigned long CPUFUNC(op_c03a_4)(uint32_t opcode) /* AND */
20452 {
20453 	uint32_t dstreg = (opcode >> 9) & 7;
20454 	OpcodeFamily = 2; CurrentInstrCycles = 12;
20455 {{	uint32_t srca = m68k_getpc () + 2;
20456 	srca += (int32_t)(int16_t)get_iword(2);
20457 {	int8_t src = m68k_read_memory_8(srca);
20458 {	int8_t dst = m68k_dreg(regs, dstreg);
20459 	src &= dst;
20460 	CLEAR_CZNV;
20461 	SET_ZFLG (((int8_t)(src)) == 0);
20462 	SET_NFLG (((int8_t)(src)) < 0);
20463 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20464 }}}}m68k_incpc(4);
20465 return 12;
20466 }
CPUFUNC(op_c03b_4)20467 unsigned long CPUFUNC(op_c03b_4)(uint32_t opcode) /* AND */
20468 {
20469 	uint32_t dstreg = (opcode >> 9) & 7;
20470 	OpcodeFamily = 2; CurrentInstrCycles = 14;
20471 {{	uint32_t tmppc = m68k_getpc() + 2;
20472 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
20473 	BusCyclePenalty += 2;
20474 {	int8_t src = m68k_read_memory_8(srca);
20475 {	int8_t dst = m68k_dreg(regs, dstreg);
20476 	src &= dst;
20477 	CLEAR_CZNV;
20478 	SET_ZFLG (((int8_t)(src)) == 0);
20479 	SET_NFLG (((int8_t)(src)) < 0);
20480 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20481 }}}}m68k_incpc(4);
20482 return 14;
20483 }
CPUFUNC(op_c03c_4)20484 unsigned long CPUFUNC(op_c03c_4)(uint32_t opcode) /* AND */
20485 {
20486 	uint32_t dstreg = (opcode >> 9) & 7;
20487 	OpcodeFamily = 2; CurrentInstrCycles = 8;
20488 {{	int8_t src = get_ibyte(2);
20489 {	int8_t dst = m68k_dreg(regs, dstreg);
20490 	src &= dst;
20491 	CLEAR_CZNV;
20492 	SET_ZFLG (((int8_t)(src)) == 0);
20493 	SET_NFLG (((int8_t)(src)) < 0);
20494 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
20495 }}}m68k_incpc(4);
20496 return 8;
20497 }
CPUFUNC(op_c040_4)20498 unsigned long CPUFUNC(op_c040_4)(uint32_t opcode) /* AND */
20499 {
20500 	uint32_t srcreg = (opcode & 7);
20501 	uint32_t dstreg = (opcode >> 9) & 7;
20502 	OpcodeFamily = 2; CurrentInstrCycles = 4;
20503 {{	int16_t src = m68k_dreg(regs, srcreg);
20504 {	int16_t dst = m68k_dreg(regs, dstreg);
20505 	src &= dst;
20506 	CLEAR_CZNV;
20507 	SET_ZFLG (((int16_t)(src)) == 0);
20508 	SET_NFLG (((int16_t)(src)) < 0);
20509 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20510 }}}m68k_incpc(2);
20511 return 4;
20512 }
CPUFUNC(op_c050_4)20513 unsigned long CPUFUNC(op_c050_4)(uint32_t opcode) /* AND */
20514 {
20515 	uint32_t srcreg = (opcode & 7);
20516 	uint32_t dstreg = (opcode >> 9) & 7;
20517 	OpcodeFamily = 2; CurrentInstrCycles = 8;
20518 {{	uint32_t srca = m68k_areg(regs, srcreg);
20519 {	int16_t src = m68k_read_memory_16(srca);
20520 {	int16_t dst = m68k_dreg(regs, dstreg);
20521 	src &= dst;
20522 	CLEAR_CZNV;
20523 	SET_ZFLG (((int16_t)(src)) == 0);
20524 	SET_NFLG (((int16_t)(src)) < 0);
20525 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20526 }}}}m68k_incpc(2);
20527 return 8;
20528 }
CPUFUNC(op_c058_4)20529 unsigned long CPUFUNC(op_c058_4)(uint32_t opcode) /* AND */
20530 {
20531 	uint32_t srcreg = (opcode & 7);
20532 	uint32_t dstreg = (opcode >> 9) & 7;
20533 	OpcodeFamily = 2; CurrentInstrCycles = 8;
20534 {{	uint32_t srca = m68k_areg(regs, srcreg);
20535 {	int16_t src = m68k_read_memory_16(srca);
20536 	m68k_areg(regs, srcreg) += 2;
20537 {	int16_t dst = m68k_dreg(regs, dstreg);
20538 	src &= dst;
20539 	CLEAR_CZNV;
20540 	SET_ZFLG (((int16_t)(src)) == 0);
20541 	SET_NFLG (((int16_t)(src)) < 0);
20542 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20543 }}}}m68k_incpc(2);
20544 return 8;
20545 }
CPUFUNC(op_c060_4)20546 unsigned long CPUFUNC(op_c060_4)(uint32_t opcode) /* AND */
20547 {
20548 	uint32_t srcreg = (opcode & 7);
20549 	uint32_t dstreg = (opcode >> 9) & 7;
20550 	OpcodeFamily = 2; CurrentInstrCycles = 10;
20551 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
20552 {	int16_t src = m68k_read_memory_16(srca);
20553 	m68k_areg (regs, srcreg) = srca;
20554 {	int16_t dst = m68k_dreg(regs, dstreg);
20555 	src &= dst;
20556 	CLEAR_CZNV;
20557 	SET_ZFLG (((int16_t)(src)) == 0);
20558 	SET_NFLG (((int16_t)(src)) < 0);
20559 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20560 }}}}m68k_incpc(2);
20561 return 10;
20562 }
CPUFUNC(op_c068_4)20563 unsigned long CPUFUNC(op_c068_4)(uint32_t opcode) /* AND */
20564 {
20565 	uint32_t srcreg = (opcode & 7);
20566 	uint32_t dstreg = (opcode >> 9) & 7;
20567 	OpcodeFamily = 2; CurrentInstrCycles = 12;
20568 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
20569 {	int16_t src = m68k_read_memory_16(srca);
20570 {	int16_t dst = m68k_dreg(regs, dstreg);
20571 	src &= dst;
20572 	CLEAR_CZNV;
20573 	SET_ZFLG (((int16_t)(src)) == 0);
20574 	SET_NFLG (((int16_t)(src)) < 0);
20575 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20576 }}}}m68k_incpc(4);
20577 return 12;
20578 }
CPUFUNC(op_c070_4)20579 unsigned long CPUFUNC(op_c070_4)(uint32_t opcode) /* AND */
20580 {
20581 	uint32_t srcreg = (opcode & 7);
20582 	uint32_t dstreg = (opcode >> 9) & 7;
20583 	OpcodeFamily = 2; CurrentInstrCycles = 14;
20584 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
20585 	BusCyclePenalty += 2;
20586 {	int16_t src = m68k_read_memory_16(srca);
20587 {	int16_t dst = m68k_dreg(regs, dstreg);
20588 	src &= dst;
20589 	CLEAR_CZNV;
20590 	SET_ZFLG (((int16_t)(src)) == 0);
20591 	SET_NFLG (((int16_t)(src)) < 0);
20592 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20593 }}}}m68k_incpc(4);
20594 return 14;
20595 }
CPUFUNC(op_c078_4)20596 unsigned long CPUFUNC(op_c078_4)(uint32_t opcode) /* AND */
20597 {
20598 	uint32_t dstreg = (opcode >> 9) & 7;
20599 	OpcodeFamily = 2; CurrentInstrCycles = 12;
20600 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
20601 {	int16_t src = m68k_read_memory_16(srca);
20602 {	int16_t dst = m68k_dreg(regs, dstreg);
20603 	src &= dst;
20604 	CLEAR_CZNV;
20605 	SET_ZFLG (((int16_t)(src)) == 0);
20606 	SET_NFLG (((int16_t)(src)) < 0);
20607 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20608 }}}}m68k_incpc(4);
20609 return 12;
20610 }
CPUFUNC(op_c079_4)20611 unsigned long CPUFUNC(op_c079_4)(uint32_t opcode) /* AND */
20612 {
20613 	uint32_t dstreg = (opcode >> 9) & 7;
20614 	OpcodeFamily = 2; CurrentInstrCycles = 16;
20615 {{	uint32_t srca = get_ilong(2);
20616 {	int16_t src = m68k_read_memory_16(srca);
20617 {	int16_t dst = m68k_dreg(regs, dstreg);
20618 	src &= dst;
20619 	CLEAR_CZNV;
20620 	SET_ZFLG (((int16_t)(src)) == 0);
20621 	SET_NFLG (((int16_t)(src)) < 0);
20622 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20623 }}}}m68k_incpc(6);
20624 return 16;
20625 }
CPUFUNC(op_c07a_4)20626 unsigned long CPUFUNC(op_c07a_4)(uint32_t opcode) /* AND */
20627 {
20628 	uint32_t dstreg = (opcode >> 9) & 7;
20629 	OpcodeFamily = 2; CurrentInstrCycles = 12;
20630 {{	uint32_t srca = m68k_getpc () + 2;
20631 	srca += (int32_t)(int16_t)get_iword(2);
20632 {	int16_t src = m68k_read_memory_16(srca);
20633 {	int16_t dst = m68k_dreg(regs, dstreg);
20634 	src &= dst;
20635 	CLEAR_CZNV;
20636 	SET_ZFLG (((int16_t)(src)) == 0);
20637 	SET_NFLG (((int16_t)(src)) < 0);
20638 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20639 }}}}m68k_incpc(4);
20640 return 12;
20641 }
CPUFUNC(op_c07b_4)20642 unsigned long CPUFUNC(op_c07b_4)(uint32_t opcode) /* AND */
20643 {
20644 	uint32_t dstreg = (opcode >> 9) & 7;
20645 	OpcodeFamily = 2; CurrentInstrCycles = 14;
20646 {{	uint32_t tmppc = m68k_getpc() + 2;
20647 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
20648 	BusCyclePenalty += 2;
20649 {	int16_t src = m68k_read_memory_16(srca);
20650 {	int16_t dst = m68k_dreg(regs, dstreg);
20651 	src &= dst;
20652 	CLEAR_CZNV;
20653 	SET_ZFLG (((int16_t)(src)) == 0);
20654 	SET_NFLG (((int16_t)(src)) < 0);
20655 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20656 }}}}m68k_incpc(4);
20657 return 14;
20658 }
CPUFUNC(op_c07c_4)20659 unsigned long CPUFUNC(op_c07c_4)(uint32_t opcode) /* AND */
20660 {
20661 	uint32_t dstreg = (opcode >> 9) & 7;
20662 	OpcodeFamily = 2; CurrentInstrCycles = 8;
20663 {{	int16_t src = get_iword(2);
20664 {	int16_t dst = m68k_dreg(regs, dstreg);
20665 	src &= dst;
20666 	CLEAR_CZNV;
20667 	SET_ZFLG (((int16_t)(src)) == 0);
20668 	SET_NFLG (((int16_t)(src)) < 0);
20669 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
20670 }}}m68k_incpc(4);
20671 return 8;
20672 }
CPUFUNC(op_c080_4)20673 unsigned long CPUFUNC(op_c080_4)(uint32_t opcode) /* AND */
20674 {
20675 	uint32_t srcreg = (opcode & 7);
20676 	uint32_t dstreg = (opcode >> 9) & 7;
20677 	OpcodeFamily = 2; CurrentInstrCycles = 8;
20678 {{	int32_t src = m68k_dreg(regs, srcreg);
20679 {	int32_t dst = m68k_dreg(regs, dstreg);
20680 	src &= dst;
20681 	CLEAR_CZNV;
20682 	SET_ZFLG (((int32_t)(src)) == 0);
20683 	SET_NFLG (((int32_t)(src)) < 0);
20684 	m68k_dreg(regs, dstreg) = (src);
20685 }}}m68k_incpc(2);
20686 return 8;
20687 }
CPUFUNC(op_c090_4)20688 unsigned long CPUFUNC(op_c090_4)(uint32_t opcode) /* AND */
20689 {
20690 	uint32_t srcreg = (opcode & 7);
20691 	uint32_t dstreg = (opcode >> 9) & 7;
20692 	OpcodeFamily = 2; CurrentInstrCycles = 14;
20693 {{	uint32_t srca = m68k_areg(regs, srcreg);
20694 {	int32_t src = m68k_read_memory_32(srca);
20695 {	int32_t dst = m68k_dreg(regs, dstreg);
20696 	src &= dst;
20697 	CLEAR_CZNV;
20698 	SET_ZFLG (((int32_t)(src)) == 0);
20699 	SET_NFLG (((int32_t)(src)) < 0);
20700 	m68k_dreg(regs, dstreg) = (src);
20701 }}}}m68k_incpc(2);
20702 return 14;
20703 }
CPUFUNC(op_c098_4)20704 unsigned long CPUFUNC(op_c098_4)(uint32_t opcode) /* AND */
20705 {
20706 	uint32_t srcreg = (opcode & 7);
20707 	uint32_t dstreg = (opcode >> 9) & 7;
20708 	OpcodeFamily = 2; CurrentInstrCycles = 14;
20709 {{	uint32_t srca = m68k_areg(regs, srcreg);
20710 {	int32_t src = m68k_read_memory_32(srca);
20711 	m68k_areg(regs, srcreg) += 4;
20712 {	int32_t dst = m68k_dreg(regs, dstreg);
20713 	src &= dst;
20714 	CLEAR_CZNV;
20715 	SET_ZFLG (((int32_t)(src)) == 0);
20716 	SET_NFLG (((int32_t)(src)) < 0);
20717 	m68k_dreg(regs, dstreg) = (src);
20718 }}}}m68k_incpc(2);
20719 return 14;
20720 }
CPUFUNC(op_c0a0_4)20721 unsigned long CPUFUNC(op_c0a0_4)(uint32_t opcode) /* AND */
20722 {
20723 	uint32_t srcreg = (opcode & 7);
20724 	uint32_t dstreg = (opcode >> 9) & 7;
20725 	OpcodeFamily = 2; CurrentInstrCycles = 16;
20726 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
20727 {	int32_t src = m68k_read_memory_32(srca);
20728 	m68k_areg (regs, srcreg) = srca;
20729 {	int32_t dst = m68k_dreg(regs, dstreg);
20730 	src &= dst;
20731 	CLEAR_CZNV;
20732 	SET_ZFLG (((int32_t)(src)) == 0);
20733 	SET_NFLG (((int32_t)(src)) < 0);
20734 	m68k_dreg(regs, dstreg) = (src);
20735 }}}}m68k_incpc(2);
20736 return 16;
20737 }
CPUFUNC(op_c0a8_4)20738 unsigned long CPUFUNC(op_c0a8_4)(uint32_t opcode) /* AND */
20739 {
20740 	uint32_t srcreg = (opcode & 7);
20741 	uint32_t dstreg = (opcode >> 9) & 7;
20742 	OpcodeFamily = 2; CurrentInstrCycles = 18;
20743 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
20744 {	int32_t src = m68k_read_memory_32(srca);
20745 {	int32_t dst = m68k_dreg(regs, dstreg);
20746 	src &= dst;
20747 	CLEAR_CZNV;
20748 	SET_ZFLG (((int32_t)(src)) == 0);
20749 	SET_NFLG (((int32_t)(src)) < 0);
20750 	m68k_dreg(regs, dstreg) = (src);
20751 }}}}m68k_incpc(4);
20752 return 18;
20753 }
CPUFUNC(op_c0b0_4)20754 unsigned long CPUFUNC(op_c0b0_4)(uint32_t opcode) /* AND */
20755 {
20756 	uint32_t srcreg = (opcode & 7);
20757 	uint32_t dstreg = (opcode >> 9) & 7;
20758 	OpcodeFamily = 2; CurrentInstrCycles = 20;
20759 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
20760 	BusCyclePenalty += 2;
20761 {	int32_t src = m68k_read_memory_32(srca);
20762 {	int32_t dst = m68k_dreg(regs, dstreg);
20763 	src &= dst;
20764 	CLEAR_CZNV;
20765 	SET_ZFLG (((int32_t)(src)) == 0);
20766 	SET_NFLG (((int32_t)(src)) < 0);
20767 	m68k_dreg(regs, dstreg) = (src);
20768 }}}}m68k_incpc(4);
20769 return 20;
20770 }
CPUFUNC(op_c0b8_4)20771 unsigned long CPUFUNC(op_c0b8_4)(uint32_t opcode) /* AND */
20772 {
20773 	uint32_t dstreg = (opcode >> 9) & 7;
20774 	OpcodeFamily = 2; CurrentInstrCycles = 18;
20775 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
20776 {	int32_t src = m68k_read_memory_32(srca);
20777 {	int32_t dst = m68k_dreg(regs, dstreg);
20778 	src &= dst;
20779 	CLEAR_CZNV;
20780 	SET_ZFLG (((int32_t)(src)) == 0);
20781 	SET_NFLG (((int32_t)(src)) < 0);
20782 	m68k_dreg(regs, dstreg) = (src);
20783 }}}}m68k_incpc(4);
20784 return 18;
20785 }
CPUFUNC(op_c0b9_4)20786 unsigned long CPUFUNC(op_c0b9_4)(uint32_t opcode) /* AND */
20787 {
20788 	uint32_t dstreg = (opcode >> 9) & 7;
20789 	OpcodeFamily = 2; CurrentInstrCycles = 22;
20790 {{	uint32_t srca = get_ilong(2);
20791 {	int32_t src = m68k_read_memory_32(srca);
20792 {	int32_t dst = m68k_dreg(regs, dstreg);
20793 	src &= dst;
20794 	CLEAR_CZNV;
20795 	SET_ZFLG (((int32_t)(src)) == 0);
20796 	SET_NFLG (((int32_t)(src)) < 0);
20797 	m68k_dreg(regs, dstreg) = (src);
20798 }}}}m68k_incpc(6);
20799 return 22;
20800 }
CPUFUNC(op_c0ba_4)20801 unsigned long CPUFUNC(op_c0ba_4)(uint32_t opcode) /* AND */
20802 {
20803 	uint32_t dstreg = (opcode >> 9) & 7;
20804 	OpcodeFamily = 2; CurrentInstrCycles = 18;
20805 {{	uint32_t srca = m68k_getpc () + 2;
20806 	srca += (int32_t)(int16_t)get_iword(2);
20807 {	int32_t src = m68k_read_memory_32(srca);
20808 {	int32_t dst = m68k_dreg(regs, dstreg);
20809 	src &= dst;
20810 	CLEAR_CZNV;
20811 	SET_ZFLG (((int32_t)(src)) == 0);
20812 	SET_NFLG (((int32_t)(src)) < 0);
20813 	m68k_dreg(regs, dstreg) = (src);
20814 }}}}m68k_incpc(4);
20815 return 18;
20816 }
CPUFUNC(op_c0bb_4)20817 unsigned long CPUFUNC(op_c0bb_4)(uint32_t opcode) /* AND */
20818 {
20819 	uint32_t dstreg = (opcode >> 9) & 7;
20820 	OpcodeFamily = 2; CurrentInstrCycles = 20;
20821 {{	uint32_t tmppc = m68k_getpc() + 2;
20822 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
20823 	BusCyclePenalty += 2;
20824 {	int32_t src = m68k_read_memory_32(srca);
20825 {	int32_t dst = m68k_dreg(regs, dstreg);
20826 	src &= dst;
20827 	CLEAR_CZNV;
20828 	SET_ZFLG (((int32_t)(src)) == 0);
20829 	SET_NFLG (((int32_t)(src)) < 0);
20830 	m68k_dreg(regs, dstreg) = (src);
20831 }}}}m68k_incpc(4);
20832 return 20;
20833 }
CPUFUNC(op_c0bc_4)20834 unsigned long CPUFUNC(op_c0bc_4)(uint32_t opcode) /* AND */
20835 {
20836 	uint32_t dstreg = (opcode >> 9) & 7;
20837 	OpcodeFamily = 2; CurrentInstrCycles = 16;
20838 {{	int32_t src = get_ilong(2);
20839 {	int32_t dst = m68k_dreg(regs, dstreg);
20840 	src &= dst;
20841 	CLEAR_CZNV;
20842 	SET_ZFLG (((int32_t)(src)) == 0);
20843 	SET_NFLG (((int32_t)(src)) < 0);
20844 	m68k_dreg(regs, dstreg) = (src);
20845 }}}m68k_incpc(6);
20846 return 16;
20847 }
CPUFUNC(op_c0c0_4)20848 unsigned long CPUFUNC(op_c0c0_4)(uint32_t opcode) /* MULU */
20849 {
20850 	uint32_t srcreg = (opcode & 7);
20851 	uint32_t dstreg = (opcode >> 9) & 7;
20852 	unsigned int retcycles = 0;
20853 	OpcodeFamily = 62; CurrentInstrCycles = 38;
20854 {{	int16_t src = m68k_dreg(regs, srcreg);
20855 {	int16_t dst = m68k_dreg(regs, dstreg);
20856 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20857 	CLEAR_CZNV;
20858 	SET_ZFLG (((int32_t)(newv)) == 0);
20859 	SET_NFLG (((int32_t)(newv)) < 0);
20860 	m68k_dreg(regs, dstreg) = (newv);
20861 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20862 }}}}m68k_incpc(2);
20863  return (38+retcycles*2);
20864 }
CPUFUNC(op_c0d0_4)20865 unsigned long CPUFUNC(op_c0d0_4)(uint32_t opcode) /* MULU */
20866 {
20867 	uint32_t srcreg = (opcode & 7);
20868 	uint32_t dstreg = (opcode >> 9) & 7;
20869 	unsigned int retcycles = 0;
20870 	OpcodeFamily = 62; CurrentInstrCycles = 42;
20871 {{	uint32_t srca = m68k_areg(regs, srcreg);
20872 {	int16_t src = m68k_read_memory_16(srca);
20873 {	int16_t dst = m68k_dreg(regs, dstreg);
20874 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20875 	CLEAR_CZNV;
20876 	SET_ZFLG (((int32_t)(newv)) == 0);
20877 	SET_NFLG (((int32_t)(newv)) < 0);
20878 	m68k_dreg(regs, dstreg) = (newv);
20879 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20880 }}}}}m68k_incpc(2);
20881  return (42+retcycles*2);
20882 }
CPUFUNC(op_c0d8_4)20883 unsigned long CPUFUNC(op_c0d8_4)(uint32_t opcode) /* MULU */
20884 {
20885 	uint32_t srcreg = (opcode & 7);
20886 	uint32_t dstreg = (opcode >> 9) & 7;
20887 	unsigned int retcycles = 0;
20888 	OpcodeFamily = 62; CurrentInstrCycles = 42;
20889 {{	uint32_t srca = m68k_areg(regs, srcreg);
20890 {	int16_t src = m68k_read_memory_16(srca);
20891 	m68k_areg(regs, srcreg) += 2;
20892 {	int16_t dst = m68k_dreg(regs, dstreg);
20893 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20894 	CLEAR_CZNV;
20895 	SET_ZFLG (((int32_t)(newv)) == 0);
20896 	SET_NFLG (((int32_t)(newv)) < 0);
20897 	m68k_dreg(regs, dstreg) = (newv);
20898 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20899 }}}}}m68k_incpc(2);
20900  return (42+retcycles*2);
20901 }
CPUFUNC(op_c0e0_4)20902 unsigned long CPUFUNC(op_c0e0_4)(uint32_t opcode) /* MULU */
20903 {
20904 	uint32_t srcreg = (opcode & 7);
20905 	uint32_t dstreg = (opcode >> 9) & 7;
20906 	unsigned int retcycles = 0;
20907 	OpcodeFamily = 62; CurrentInstrCycles = 44;
20908 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
20909 {	int16_t src = m68k_read_memory_16(srca);
20910 	m68k_areg (regs, srcreg) = srca;
20911 {	int16_t dst = m68k_dreg(regs, dstreg);
20912 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20913 	CLEAR_CZNV;
20914 	SET_ZFLG (((int32_t)(newv)) == 0);
20915 	SET_NFLG (((int32_t)(newv)) < 0);
20916 	m68k_dreg(regs, dstreg) = (newv);
20917 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20918 }}}}}m68k_incpc(2);
20919  return (44+retcycles*2);
20920 }
CPUFUNC(op_c0e8_4)20921 unsigned long CPUFUNC(op_c0e8_4)(uint32_t opcode) /* MULU */
20922 {
20923 	uint32_t srcreg = (opcode & 7);
20924 	uint32_t dstreg = (opcode >> 9) & 7;
20925 	unsigned int retcycles = 0;
20926 	OpcodeFamily = 62; CurrentInstrCycles = 46;
20927 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
20928 {	int16_t src = m68k_read_memory_16(srca);
20929 {	int16_t dst = m68k_dreg(regs, dstreg);
20930 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20931 	CLEAR_CZNV;
20932 	SET_ZFLG (((int32_t)(newv)) == 0);
20933 	SET_NFLG (((int32_t)(newv)) < 0);
20934 	m68k_dreg(regs, dstreg) = (newv);
20935 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20936 }}}}}m68k_incpc(4);
20937  return (46+retcycles*2);
20938 }
CPUFUNC(op_c0f0_4)20939 unsigned long CPUFUNC(op_c0f0_4)(uint32_t opcode) /* MULU */
20940 {
20941 	uint32_t srcreg = (opcode & 7);
20942 	uint32_t dstreg = (opcode >> 9) & 7;
20943 	unsigned int retcycles = 0;
20944 	OpcodeFamily = 62; CurrentInstrCycles = 48;
20945 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
20946 	BusCyclePenalty += 2;
20947 {	int16_t src = m68k_read_memory_16(srca);
20948 {	int16_t dst = m68k_dreg(regs, dstreg);
20949 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20950 	CLEAR_CZNV;
20951 	SET_ZFLG (((int32_t)(newv)) == 0);
20952 	SET_NFLG (((int32_t)(newv)) < 0);
20953 	m68k_dreg(regs, dstreg) = (newv);
20954 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20955 }}}}}m68k_incpc(4);
20956  return (48+retcycles*2);
20957 }
CPUFUNC(op_c0f8_4)20958 unsigned long CPUFUNC(op_c0f8_4)(uint32_t opcode) /* MULU */
20959 {
20960 	uint32_t dstreg = (opcode >> 9) & 7;
20961 	unsigned int retcycles = 0;
20962 	OpcodeFamily = 62; CurrentInstrCycles = 46;
20963 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
20964 {	int16_t src = m68k_read_memory_16(srca);
20965 {	int16_t dst = m68k_dreg(regs, dstreg);
20966 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20967 	CLEAR_CZNV;
20968 	SET_ZFLG (((int32_t)(newv)) == 0);
20969 	SET_NFLG (((int32_t)(newv)) < 0);
20970 	m68k_dreg(regs, dstreg) = (newv);
20971 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20972 }}}}}m68k_incpc(4);
20973  return (46+retcycles*2);
20974 }
CPUFUNC(op_c0f9_4)20975 unsigned long CPUFUNC(op_c0f9_4)(uint32_t opcode) /* MULU */
20976 {
20977 	uint32_t dstreg = (opcode >> 9) & 7;
20978 	unsigned int retcycles = 0;
20979 	OpcodeFamily = 62; CurrentInstrCycles = 50;
20980 {{	uint32_t srca = get_ilong(2);
20981 {	int16_t src = m68k_read_memory_16(srca);
20982 {	int16_t dst = m68k_dreg(regs, dstreg);
20983 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
20984 	CLEAR_CZNV;
20985 	SET_ZFLG (((int32_t)(newv)) == 0);
20986 	SET_NFLG (((int32_t)(newv)) < 0);
20987 	m68k_dreg(regs, dstreg) = (newv);
20988 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
20989 }}}}}m68k_incpc(6);
20990  return (50+retcycles*2);
20991 }
CPUFUNC(op_c0fa_4)20992 unsigned long CPUFUNC(op_c0fa_4)(uint32_t opcode) /* MULU */
20993 {
20994 	uint32_t dstreg = (opcode >> 9) & 7;
20995 	unsigned int retcycles = 0;
20996 	OpcodeFamily = 62; CurrentInstrCycles = 46;
20997 {{	uint32_t srca = m68k_getpc () + 2;
20998 	srca += (int32_t)(int16_t)get_iword(2);
20999 {	int16_t src = m68k_read_memory_16(srca);
21000 {	int16_t dst = m68k_dreg(regs, dstreg);
21001 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
21002 	CLEAR_CZNV;
21003 	SET_ZFLG (((int32_t)(newv)) == 0);
21004 	SET_NFLG (((int32_t)(newv)) < 0);
21005 	m68k_dreg(regs, dstreg) = (newv);
21006 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
21007 }}}}}m68k_incpc(4);
21008  return (46+retcycles*2);
21009 }
CPUFUNC(op_c0fb_4)21010 unsigned long CPUFUNC(op_c0fb_4)(uint32_t opcode) /* MULU */
21011 {
21012 	uint32_t dstreg = (opcode >> 9) & 7;
21013 	unsigned int retcycles = 0;
21014 	OpcodeFamily = 62; CurrentInstrCycles = 48;
21015 {{	uint32_t tmppc = m68k_getpc() + 2;
21016 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
21017 	BusCyclePenalty += 2;
21018 {	int16_t src = m68k_read_memory_16(srca);
21019 {	int16_t dst = m68k_dreg(regs, dstreg);
21020 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
21021 	CLEAR_CZNV;
21022 	SET_ZFLG (((int32_t)(newv)) == 0);
21023 	SET_NFLG (((int32_t)(newv)) < 0);
21024 	m68k_dreg(regs, dstreg) = (newv);
21025 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
21026 }}}}}m68k_incpc(4);
21027  return (48+retcycles*2);
21028 }
CPUFUNC(op_c0fc_4)21029 unsigned long CPUFUNC(op_c0fc_4)(uint32_t opcode) /* MULU */
21030 {
21031 	uint32_t dstreg = (opcode >> 9) & 7;
21032 	unsigned int retcycles = 0;
21033 	OpcodeFamily = 62; CurrentInstrCycles = 42;
21034 {{	int16_t src = get_iword(2);
21035 {	int16_t dst = m68k_dreg(regs, dstreg);
21036 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
21037 	CLEAR_CZNV;
21038 	SET_ZFLG (((int32_t)(newv)) == 0);
21039 	SET_NFLG (((int32_t)(newv)) < 0);
21040 	m68k_dreg(regs, dstreg) = (newv);
21041 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
21042 }}}}m68k_incpc(4);
21043  return (42+retcycles*2);
21044 }
CPUFUNC(op_c100_4)21045 unsigned long CPUFUNC(op_c100_4)(uint32_t opcode) /* ABCD */
21046 {
21047 	uint32_t srcreg = (opcode & 7);
21048 	uint32_t dstreg = (opcode >> 9) & 7;
21049 	OpcodeFamily = 14; CurrentInstrCycles = 6;
21050 {{	int8_t src = m68k_dreg(regs, srcreg);
21051 {	int8_t dst = m68k_dreg(regs, dstreg);
21052 {	uint16_t newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0);
21053 	uint16_t newv_hi = (src & 0xF0) + (dst & 0xF0);
21054 	uint16_t newv, tmp_newv;
21055 	int cflg;
21056 	newv = tmp_newv = newv_hi + newv_lo;	if (newv_lo > 9) { newv += 6; }
21057 	cflg = (newv & 0x3F0) > 0x90;
21058 	if (cflg) newv += 0x60;
21059 	SET_CFLG (cflg);
21060 	COPY_CARRY;
21061 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
21062 	SET_NFLG (((int8_t)(newv)) < 0);
21063 	SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0);
21064 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21065 }}}}m68k_incpc(2);
21066 return 6;
21067 }
CPUFUNC(op_c108_4)21068 unsigned long CPUFUNC(op_c108_4)(uint32_t opcode) /* ABCD */
21069 {
21070 	uint32_t srcreg = (opcode & 7);
21071 	uint32_t dstreg = (opcode >> 9) & 7;
21072 	OpcodeFamily = 14; CurrentInstrCycles = 18;
21073 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
21074 {	int8_t src = m68k_read_memory_8(srca);
21075 	m68k_areg (regs, srcreg) = srca;
21076 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
21077 {	int8_t dst = m68k_read_memory_8(dsta);
21078 	m68k_areg (regs, dstreg) = dsta;
21079 {	uint16_t newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0);
21080 	uint16_t newv_hi = (src & 0xF0) + (dst & 0xF0);
21081 	uint16_t newv, tmp_newv;
21082 	int cflg;
21083 	newv = tmp_newv = newv_hi + newv_lo;	if (newv_lo > 9) { newv += 6; }
21084 	cflg = (newv & 0x3F0) > 0x90;
21085 	if (cflg) newv += 0x60;
21086 	SET_CFLG (cflg);
21087 	COPY_CARRY;
21088 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
21089 	SET_NFLG (((int8_t)(newv)) < 0);
21090 	SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0);
21091 	m68k_write_memory_8(dsta,newv);
21092 }}}}}}m68k_incpc(2);
21093 return 18;
21094 }
CPUFUNC(op_c110_4)21095 unsigned long CPUFUNC(op_c110_4)(uint32_t opcode) /* AND */
21096 {
21097 	uint32_t srcreg = ((opcode >> 9) & 7);
21098 	uint32_t dstreg = opcode & 7;
21099 	OpcodeFamily = 2; CurrentInstrCycles = 12;
21100 {{	int8_t src = m68k_dreg(regs, srcreg);
21101 {	uint32_t dsta = m68k_areg(regs, dstreg);
21102 {	int8_t dst = m68k_read_memory_8(dsta);
21103 	src &= dst;
21104 	CLEAR_CZNV;
21105 	SET_ZFLG (((int8_t)(src)) == 0);
21106 	SET_NFLG (((int8_t)(src)) < 0);
21107 	m68k_write_memory_8(dsta,src);
21108 }}}}m68k_incpc(2);
21109 return 12;
21110 }
CPUFUNC(op_c118_4)21111 unsigned long CPUFUNC(op_c118_4)(uint32_t opcode) /* AND */
21112 {
21113 	uint32_t srcreg = ((opcode >> 9) & 7);
21114 	uint32_t dstreg = opcode & 7;
21115 	OpcodeFamily = 2; CurrentInstrCycles = 12;
21116 {{	int8_t src = m68k_dreg(regs, srcreg);
21117 {	uint32_t dsta = m68k_areg(regs, dstreg);
21118 {	int8_t dst = m68k_read_memory_8(dsta);
21119 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
21120 	src &= dst;
21121 	CLEAR_CZNV;
21122 	SET_ZFLG (((int8_t)(src)) == 0);
21123 	SET_NFLG (((int8_t)(src)) < 0);
21124 	m68k_write_memory_8(dsta,src);
21125 }}}}m68k_incpc(2);
21126 return 12;
21127 }
CPUFUNC(op_c120_4)21128 unsigned long CPUFUNC(op_c120_4)(uint32_t opcode) /* AND */
21129 {
21130 	uint32_t srcreg = ((opcode >> 9) & 7);
21131 	uint32_t dstreg = opcode & 7;
21132 	OpcodeFamily = 2; CurrentInstrCycles = 14;
21133 {{	int8_t src = m68k_dreg(regs, srcreg);
21134 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
21135 {	int8_t dst = m68k_read_memory_8(dsta);
21136 	m68k_areg (regs, dstreg) = dsta;
21137 	src &= dst;
21138 	CLEAR_CZNV;
21139 	SET_ZFLG (((int8_t)(src)) == 0);
21140 	SET_NFLG (((int8_t)(src)) < 0);
21141 	m68k_write_memory_8(dsta,src);
21142 }}}}m68k_incpc(2);
21143 return 14;
21144 }
CPUFUNC(op_c128_4)21145 unsigned long CPUFUNC(op_c128_4)(uint32_t opcode) /* AND */
21146 {
21147 	uint32_t srcreg = ((opcode >> 9) & 7);
21148 	uint32_t dstreg = opcode & 7;
21149 	OpcodeFamily = 2; CurrentInstrCycles = 16;
21150 {{	int8_t src = m68k_dreg(regs, srcreg);
21151 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
21152 {	int8_t dst = m68k_read_memory_8(dsta);
21153 	src &= dst;
21154 	CLEAR_CZNV;
21155 	SET_ZFLG (((int8_t)(src)) == 0);
21156 	SET_NFLG (((int8_t)(src)) < 0);
21157 	m68k_write_memory_8(dsta,src);
21158 }}}}m68k_incpc(4);
21159 return 16;
21160 }
CPUFUNC(op_c130_4)21161 unsigned long CPUFUNC(op_c130_4)(uint32_t opcode) /* AND */
21162 {
21163 	uint32_t srcreg = ((opcode >> 9) & 7);
21164 	uint32_t dstreg = opcode & 7;
21165 	OpcodeFamily = 2; CurrentInstrCycles = 18;
21166 {{	int8_t src = m68k_dreg(regs, srcreg);
21167 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
21168 	BusCyclePenalty += 2;
21169 {	int8_t dst = m68k_read_memory_8(dsta);
21170 	src &= dst;
21171 	CLEAR_CZNV;
21172 	SET_ZFLG (((int8_t)(src)) == 0);
21173 	SET_NFLG (((int8_t)(src)) < 0);
21174 	m68k_write_memory_8(dsta,src);
21175 }}}}m68k_incpc(4);
21176 return 18;
21177 }
CPUFUNC(op_c138_4)21178 unsigned long CPUFUNC(op_c138_4)(uint32_t opcode) /* AND */
21179 {
21180 	uint32_t srcreg = ((opcode >> 9) & 7);
21181 	OpcodeFamily = 2; CurrentInstrCycles = 16;
21182 {{	int8_t src = m68k_dreg(regs, srcreg);
21183 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
21184 {	int8_t dst = m68k_read_memory_8(dsta);
21185 	src &= dst;
21186 	CLEAR_CZNV;
21187 	SET_ZFLG (((int8_t)(src)) == 0);
21188 	SET_NFLG (((int8_t)(src)) < 0);
21189 	m68k_write_memory_8(dsta,src);
21190 }}}}m68k_incpc(4);
21191 return 16;
21192 }
CPUFUNC(op_c139_4)21193 unsigned long CPUFUNC(op_c139_4)(uint32_t opcode) /* AND */
21194 {
21195 	uint32_t srcreg = ((opcode >> 9) & 7);
21196 	OpcodeFamily = 2; CurrentInstrCycles = 20;
21197 {{	int8_t src = m68k_dreg(regs, srcreg);
21198 {	uint32_t dsta = get_ilong(2);
21199 {	int8_t dst = m68k_read_memory_8(dsta);
21200 	src &= dst;
21201 	CLEAR_CZNV;
21202 	SET_ZFLG (((int8_t)(src)) == 0);
21203 	SET_NFLG (((int8_t)(src)) < 0);
21204 	m68k_write_memory_8(dsta,src);
21205 }}}}m68k_incpc(6);
21206 return 20;
21207 }
CPUFUNC(op_c140_4)21208 unsigned long CPUFUNC(op_c140_4)(uint32_t opcode) /* EXG */
21209 {
21210 	uint32_t srcreg = ((opcode >> 9) & 7);
21211 	uint32_t dstreg = opcode & 7;
21212 	OpcodeFamily = 35; CurrentInstrCycles = 6;
21213 {{	int32_t src = m68k_dreg(regs, srcreg);
21214 {	int32_t dst = m68k_dreg(regs, dstreg);
21215 	m68k_dreg(regs, srcreg) = (dst);
21216 	m68k_dreg(regs, dstreg) = (src);
21217 }}}m68k_incpc(2);
21218 return 6;
21219 }
CPUFUNC(op_c148_4)21220 unsigned long CPUFUNC(op_c148_4)(uint32_t opcode) /* EXG */
21221 {
21222 	uint32_t srcreg = ((opcode >> 9) & 7);
21223 	uint32_t dstreg = opcode & 7;
21224 	OpcodeFamily = 35; CurrentInstrCycles = 6;
21225 {{	int32_t src = m68k_areg(regs, srcreg);
21226 {	int32_t dst = m68k_areg(regs, dstreg);
21227 	m68k_areg(regs, srcreg) = (dst);
21228 	m68k_areg(regs, dstreg) = (src);
21229 }}}m68k_incpc(2);
21230 return 6;
21231 }
CPUFUNC(op_c150_4)21232 unsigned long CPUFUNC(op_c150_4)(uint32_t opcode) /* AND */
21233 {
21234 	uint32_t srcreg = ((opcode >> 9) & 7);
21235 	uint32_t dstreg = opcode & 7;
21236 	OpcodeFamily = 2; CurrentInstrCycles = 12;
21237 {{	int16_t src = m68k_dreg(regs, srcreg);
21238 {	uint32_t dsta = m68k_areg(regs, dstreg);
21239 {	int16_t dst = m68k_read_memory_16(dsta);
21240 	src &= dst;
21241 	CLEAR_CZNV;
21242 	SET_ZFLG (((int16_t)(src)) == 0);
21243 	SET_NFLG (((int16_t)(src)) < 0);
21244 	m68k_write_memory_16(dsta,src);
21245 }}}}m68k_incpc(2);
21246 return 12;
21247 }
CPUFUNC(op_c158_4)21248 unsigned long CPUFUNC(op_c158_4)(uint32_t opcode) /* AND */
21249 {
21250 	uint32_t srcreg = ((opcode >> 9) & 7);
21251 	uint32_t dstreg = opcode & 7;
21252 	OpcodeFamily = 2; CurrentInstrCycles = 12;
21253 {{	int16_t src = m68k_dreg(regs, srcreg);
21254 {	uint32_t dsta = m68k_areg(regs, dstreg);
21255 {	int16_t dst = m68k_read_memory_16(dsta);
21256 	m68k_areg(regs, dstreg) += 2;
21257 	src &= dst;
21258 	CLEAR_CZNV;
21259 	SET_ZFLG (((int16_t)(src)) == 0);
21260 	SET_NFLG (((int16_t)(src)) < 0);
21261 	m68k_write_memory_16(dsta,src);
21262 }}}}m68k_incpc(2);
21263 return 12;
21264 }
CPUFUNC(op_c160_4)21265 unsigned long CPUFUNC(op_c160_4)(uint32_t opcode) /* AND */
21266 {
21267 	uint32_t srcreg = ((opcode >> 9) & 7);
21268 	uint32_t dstreg = opcode & 7;
21269 	OpcodeFamily = 2; CurrentInstrCycles = 14;
21270 {{	int16_t src = m68k_dreg(regs, srcreg);
21271 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
21272 {	int16_t dst = m68k_read_memory_16(dsta);
21273 	m68k_areg (regs, dstreg) = dsta;
21274 	src &= dst;
21275 	CLEAR_CZNV;
21276 	SET_ZFLG (((int16_t)(src)) == 0);
21277 	SET_NFLG (((int16_t)(src)) < 0);
21278 	m68k_write_memory_16(dsta,src);
21279 }}}}m68k_incpc(2);
21280 return 14;
21281 }
CPUFUNC(op_c168_4)21282 unsigned long CPUFUNC(op_c168_4)(uint32_t opcode) /* AND */
21283 {
21284 	uint32_t srcreg = ((opcode >> 9) & 7);
21285 	uint32_t dstreg = opcode & 7;
21286 	OpcodeFamily = 2; CurrentInstrCycles = 16;
21287 {{	int16_t src = m68k_dreg(regs, srcreg);
21288 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
21289 {	int16_t dst = m68k_read_memory_16(dsta);
21290 	src &= dst;
21291 	CLEAR_CZNV;
21292 	SET_ZFLG (((int16_t)(src)) == 0);
21293 	SET_NFLG (((int16_t)(src)) < 0);
21294 	m68k_write_memory_16(dsta,src);
21295 }}}}m68k_incpc(4);
21296 return 16;
21297 }
CPUFUNC(op_c170_4)21298 unsigned long CPUFUNC(op_c170_4)(uint32_t opcode) /* AND */
21299 {
21300 	uint32_t srcreg = ((opcode >> 9) & 7);
21301 	uint32_t dstreg = opcode & 7;
21302 	OpcodeFamily = 2; CurrentInstrCycles = 18;
21303 {{	int16_t src = m68k_dreg(regs, srcreg);
21304 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
21305 	BusCyclePenalty += 2;
21306 {	int16_t dst = m68k_read_memory_16(dsta);
21307 	src &= dst;
21308 	CLEAR_CZNV;
21309 	SET_ZFLG (((int16_t)(src)) == 0);
21310 	SET_NFLG (((int16_t)(src)) < 0);
21311 	m68k_write_memory_16(dsta,src);
21312 }}}}m68k_incpc(4);
21313 return 18;
21314 }
CPUFUNC(op_c178_4)21315 unsigned long CPUFUNC(op_c178_4)(uint32_t opcode) /* AND */
21316 {
21317 	uint32_t srcreg = ((opcode >> 9) & 7);
21318 	OpcodeFamily = 2; CurrentInstrCycles = 16;
21319 {{	int16_t src = m68k_dreg(regs, srcreg);
21320 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
21321 {	int16_t dst = m68k_read_memory_16(dsta);
21322 	src &= dst;
21323 	CLEAR_CZNV;
21324 	SET_ZFLG (((int16_t)(src)) == 0);
21325 	SET_NFLG (((int16_t)(src)) < 0);
21326 	m68k_write_memory_16(dsta,src);
21327 }}}}m68k_incpc(4);
21328 return 16;
21329 }
CPUFUNC(op_c179_4)21330 unsigned long CPUFUNC(op_c179_4)(uint32_t opcode) /* AND */
21331 {
21332 	uint32_t srcreg = ((opcode >> 9) & 7);
21333 	OpcodeFamily = 2; CurrentInstrCycles = 20;
21334 {{	int16_t src = m68k_dreg(regs, srcreg);
21335 {	uint32_t dsta = get_ilong(2);
21336 {	int16_t dst = m68k_read_memory_16(dsta);
21337 	src &= dst;
21338 	CLEAR_CZNV;
21339 	SET_ZFLG (((int16_t)(src)) == 0);
21340 	SET_NFLG (((int16_t)(src)) < 0);
21341 	m68k_write_memory_16(dsta,src);
21342 }}}}m68k_incpc(6);
21343 return 20;
21344 }
CPUFUNC(op_c188_4)21345 unsigned long CPUFUNC(op_c188_4)(uint32_t opcode) /* EXG */
21346 {
21347 	uint32_t srcreg = ((opcode >> 9) & 7);
21348 	uint32_t dstreg = opcode & 7;
21349 	OpcodeFamily = 35; CurrentInstrCycles = 6;
21350 {{	int32_t src = m68k_dreg(regs, srcreg);
21351 {	int32_t dst = m68k_areg(regs, dstreg);
21352 	m68k_dreg(regs, srcreg) = (dst);
21353 	m68k_areg(regs, dstreg) = (src);
21354 }}}m68k_incpc(2);
21355 return 6;
21356 }
CPUFUNC(op_c190_4)21357 unsigned long CPUFUNC(op_c190_4)(uint32_t opcode) /* AND */
21358 {
21359 	uint32_t srcreg = ((opcode >> 9) & 7);
21360 	uint32_t dstreg = opcode & 7;
21361 	OpcodeFamily = 2; CurrentInstrCycles = 20;
21362 {{	int32_t src = m68k_dreg(regs, srcreg);
21363 {	uint32_t dsta = m68k_areg(regs, dstreg);
21364 {	int32_t dst = m68k_read_memory_32(dsta);
21365 	src &= dst;
21366 	CLEAR_CZNV;
21367 	SET_ZFLG (((int32_t)(src)) == 0);
21368 	SET_NFLG (((int32_t)(src)) < 0);
21369 	m68k_write_memory_32(dsta,src);
21370 }}}}m68k_incpc(2);
21371 return 20;
21372 }
CPUFUNC(op_c198_4)21373 unsigned long CPUFUNC(op_c198_4)(uint32_t opcode) /* AND */
21374 {
21375 	uint32_t srcreg = ((opcode >> 9) & 7);
21376 	uint32_t dstreg = opcode & 7;
21377 	OpcodeFamily = 2; CurrentInstrCycles = 20;
21378 {{	int32_t src = m68k_dreg(regs, srcreg);
21379 {	uint32_t dsta = m68k_areg(regs, dstreg);
21380 {	int32_t dst = m68k_read_memory_32(dsta);
21381 	m68k_areg(regs, dstreg) += 4;
21382 	src &= dst;
21383 	CLEAR_CZNV;
21384 	SET_ZFLG (((int32_t)(src)) == 0);
21385 	SET_NFLG (((int32_t)(src)) < 0);
21386 	m68k_write_memory_32(dsta,src);
21387 }}}}m68k_incpc(2);
21388 return 20;
21389 }
CPUFUNC(op_c1a0_4)21390 unsigned long CPUFUNC(op_c1a0_4)(uint32_t opcode) /* AND */
21391 {
21392 	uint32_t srcreg = ((opcode >> 9) & 7);
21393 	uint32_t dstreg = opcode & 7;
21394 	OpcodeFamily = 2; CurrentInstrCycles = 22;
21395 {{	int32_t src = m68k_dreg(regs, srcreg);
21396 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
21397 {	int32_t dst = m68k_read_memory_32(dsta);
21398 	m68k_areg (regs, dstreg) = dsta;
21399 	src &= dst;
21400 	CLEAR_CZNV;
21401 	SET_ZFLG (((int32_t)(src)) == 0);
21402 	SET_NFLG (((int32_t)(src)) < 0);
21403 	m68k_write_memory_32(dsta,src);
21404 }}}}m68k_incpc(2);
21405 return 22;
21406 }
CPUFUNC(op_c1a8_4)21407 unsigned long CPUFUNC(op_c1a8_4)(uint32_t opcode) /* AND */
21408 {
21409 	uint32_t srcreg = ((opcode >> 9) & 7);
21410 	uint32_t dstreg = opcode & 7;
21411 	OpcodeFamily = 2; CurrentInstrCycles = 24;
21412 {{	int32_t src = m68k_dreg(regs, srcreg);
21413 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
21414 {	int32_t dst = m68k_read_memory_32(dsta);
21415 	src &= dst;
21416 	CLEAR_CZNV;
21417 	SET_ZFLG (((int32_t)(src)) == 0);
21418 	SET_NFLG (((int32_t)(src)) < 0);
21419 	m68k_write_memory_32(dsta,src);
21420 }}}}m68k_incpc(4);
21421 return 24;
21422 }
CPUFUNC(op_c1b0_4)21423 unsigned long CPUFUNC(op_c1b0_4)(uint32_t opcode) /* AND */
21424 {
21425 	uint32_t srcreg = ((opcode >> 9) & 7);
21426 	uint32_t dstreg = opcode & 7;
21427 	OpcodeFamily = 2; CurrentInstrCycles = 26;
21428 {{	int32_t src = m68k_dreg(regs, srcreg);
21429 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
21430 	BusCyclePenalty += 2;
21431 {	int32_t dst = m68k_read_memory_32(dsta);
21432 	src &= dst;
21433 	CLEAR_CZNV;
21434 	SET_ZFLG (((int32_t)(src)) == 0);
21435 	SET_NFLG (((int32_t)(src)) < 0);
21436 	m68k_write_memory_32(dsta,src);
21437 }}}}m68k_incpc(4);
21438 return 26;
21439 }
CPUFUNC(op_c1b8_4)21440 unsigned long CPUFUNC(op_c1b8_4)(uint32_t opcode) /* AND */
21441 {
21442 	uint32_t srcreg = ((opcode >> 9) & 7);
21443 	OpcodeFamily = 2; CurrentInstrCycles = 24;
21444 {{	int32_t src = m68k_dreg(regs, srcreg);
21445 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
21446 {	int32_t dst = m68k_read_memory_32(dsta);
21447 	src &= dst;
21448 	CLEAR_CZNV;
21449 	SET_ZFLG (((int32_t)(src)) == 0);
21450 	SET_NFLG (((int32_t)(src)) < 0);
21451 	m68k_write_memory_32(dsta,src);
21452 }}}}m68k_incpc(4);
21453 return 24;
21454 }
CPUFUNC(op_c1b9_4)21455 unsigned long CPUFUNC(op_c1b9_4)(uint32_t opcode) /* AND */
21456 {
21457 	uint32_t srcreg = ((opcode >> 9) & 7);
21458 	OpcodeFamily = 2; CurrentInstrCycles = 28;
21459 {{	int32_t src = m68k_dreg(regs, srcreg);
21460 {	uint32_t dsta = get_ilong(2);
21461 {	int32_t dst = m68k_read_memory_32(dsta);
21462 	src &= dst;
21463 	CLEAR_CZNV;
21464 	SET_ZFLG (((int32_t)(src)) == 0);
21465 	SET_NFLG (((int32_t)(src)) < 0);
21466 	m68k_write_memory_32(dsta,src);
21467 }}}}m68k_incpc(6);
21468 return 28;
21469 }
CPUFUNC(op_c1c0_4)21470 unsigned long CPUFUNC(op_c1c0_4)(uint32_t opcode) /* MULS */
21471 {
21472 	uint32_t srcreg = (opcode & 7);
21473 	uint32_t dstreg = (opcode >> 9) & 7;
21474 	unsigned int retcycles = 0;
21475 	OpcodeFamily = 63; CurrentInstrCycles = 38;
21476 {{	int16_t src = m68k_dreg(regs, srcreg);
21477 {	int16_t dst = m68k_dreg(regs, dstreg);
21478 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21479 	uint32_t src2;
21480 	CLEAR_CZNV;
21481 	SET_ZFLG (((int32_t)(newv)) == 0);
21482 	SET_NFLG (((int32_t)(newv)) < 0);
21483 	m68k_dreg(regs, dstreg) = (newv);
21484 	src2 = ((uint32_t)src) << 1;
21485 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21486 }}}}m68k_incpc(2);
21487  return (38+retcycles*2);
21488 }
CPUFUNC(op_c1d0_4)21489 unsigned long CPUFUNC(op_c1d0_4)(uint32_t opcode) /* MULS */
21490 {
21491 	uint32_t srcreg = (opcode & 7);
21492 	uint32_t dstreg = (opcode >> 9) & 7;
21493 	unsigned int retcycles = 0;
21494 	OpcodeFamily = 63; CurrentInstrCycles = 42;
21495 {{	uint32_t srca = m68k_areg(regs, srcreg);
21496 {	int16_t src = m68k_read_memory_16(srca);
21497 {	int16_t dst = m68k_dreg(regs, dstreg);
21498 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21499 	uint32_t src2;
21500 	CLEAR_CZNV;
21501 	SET_ZFLG (((int32_t)(newv)) == 0);
21502 	SET_NFLG (((int32_t)(newv)) < 0);
21503 	m68k_dreg(regs, dstreg) = (newv);
21504 	src2 = ((uint32_t)src) << 1;
21505 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21506 }}}}}m68k_incpc(2);
21507  return (42+retcycles*2);
21508 }
CPUFUNC(op_c1d8_4)21509 unsigned long CPUFUNC(op_c1d8_4)(uint32_t opcode) /* MULS */
21510 {
21511 	uint32_t srcreg = (opcode & 7);
21512 	uint32_t dstreg = (opcode >> 9) & 7;
21513 	unsigned int retcycles = 0;
21514 	OpcodeFamily = 63; CurrentInstrCycles = 42;
21515 {{	uint32_t srca = m68k_areg(regs, srcreg);
21516 {	int16_t src = m68k_read_memory_16(srca);
21517 	m68k_areg(regs, srcreg) += 2;
21518 {	int16_t dst = m68k_dreg(regs, dstreg);
21519 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21520 	uint32_t src2;
21521 	CLEAR_CZNV;
21522 	SET_ZFLG (((int32_t)(newv)) == 0);
21523 	SET_NFLG (((int32_t)(newv)) < 0);
21524 	m68k_dreg(regs, dstreg) = (newv);
21525 	src2 = ((uint32_t)src) << 1;
21526 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21527 }}}}}m68k_incpc(2);
21528  return (42+retcycles*2);
21529 }
CPUFUNC(op_c1e0_4)21530 unsigned long CPUFUNC(op_c1e0_4)(uint32_t opcode) /* MULS */
21531 {
21532 	uint32_t srcreg = (opcode & 7);
21533 	uint32_t dstreg = (opcode >> 9) & 7;
21534 	unsigned int retcycles = 0;
21535 	OpcodeFamily = 63; CurrentInstrCycles = 44;
21536 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
21537 {	int16_t src = m68k_read_memory_16(srca);
21538 	m68k_areg (regs, srcreg) = srca;
21539 {	int16_t dst = m68k_dreg(regs, dstreg);
21540 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21541 	uint32_t src2;
21542 	CLEAR_CZNV;
21543 	SET_ZFLG (((int32_t)(newv)) == 0);
21544 	SET_NFLG (((int32_t)(newv)) < 0);
21545 	m68k_dreg(regs, dstreg) = (newv);
21546 	src2 = ((uint32_t)src) << 1;
21547 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21548 }}}}}m68k_incpc(2);
21549  return (44+retcycles*2);
21550 }
CPUFUNC(op_c1e8_4)21551 unsigned long CPUFUNC(op_c1e8_4)(uint32_t opcode) /* MULS */
21552 {
21553 	uint32_t srcreg = (opcode & 7);
21554 	uint32_t dstreg = (opcode >> 9) & 7;
21555 	unsigned int retcycles = 0;
21556 	OpcodeFamily = 63; CurrentInstrCycles = 46;
21557 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
21558 {	int16_t src = m68k_read_memory_16(srca);
21559 {	int16_t dst = m68k_dreg(regs, dstreg);
21560 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21561 	uint32_t src2;
21562 	CLEAR_CZNV;
21563 	SET_ZFLG (((int32_t)(newv)) == 0);
21564 	SET_NFLG (((int32_t)(newv)) < 0);
21565 	m68k_dreg(regs, dstreg) = (newv);
21566 	src2 = ((uint32_t)src) << 1;
21567 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21568 }}}}}m68k_incpc(4);
21569  return (46+retcycles*2);
21570 }
CPUFUNC(op_c1f0_4)21571 unsigned long CPUFUNC(op_c1f0_4)(uint32_t opcode) /* MULS */
21572 {
21573 	uint32_t srcreg = (opcode & 7);
21574 	uint32_t dstreg = (opcode >> 9) & 7;
21575 	unsigned int retcycles = 0;
21576 	OpcodeFamily = 63; CurrentInstrCycles = 48;
21577 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
21578 	BusCyclePenalty += 2;
21579 {	int16_t src = m68k_read_memory_16(srca);
21580 {	int16_t dst = m68k_dreg(regs, dstreg);
21581 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21582 	uint32_t src2;
21583 	CLEAR_CZNV;
21584 	SET_ZFLG (((int32_t)(newv)) == 0);
21585 	SET_NFLG (((int32_t)(newv)) < 0);
21586 	m68k_dreg(regs, dstreg) = (newv);
21587 	src2 = ((uint32_t)src) << 1;
21588 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21589 }}}}}m68k_incpc(4);
21590  return (48+retcycles*2);
21591 }
CPUFUNC(op_c1f8_4)21592 unsigned long CPUFUNC(op_c1f8_4)(uint32_t opcode) /* MULS */
21593 {
21594 	uint32_t dstreg = (opcode >> 9) & 7;
21595 	unsigned int retcycles = 0;
21596 	OpcodeFamily = 63; CurrentInstrCycles = 46;
21597 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
21598 {	int16_t src = m68k_read_memory_16(srca);
21599 {	int16_t dst = m68k_dreg(regs, dstreg);
21600 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21601 	uint32_t src2;
21602 	CLEAR_CZNV;
21603 	SET_ZFLG (((int32_t)(newv)) == 0);
21604 	SET_NFLG (((int32_t)(newv)) < 0);
21605 	m68k_dreg(regs, dstreg) = (newv);
21606 	src2 = ((uint32_t)src) << 1;
21607 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21608 }}}}}m68k_incpc(4);
21609  return (46+retcycles*2);
21610 }
CPUFUNC(op_c1f9_4)21611 unsigned long CPUFUNC(op_c1f9_4)(uint32_t opcode) /* MULS */
21612 {
21613 	uint32_t dstreg = (opcode >> 9) & 7;
21614 	unsigned int retcycles = 0;
21615 	OpcodeFamily = 63; CurrentInstrCycles = 50;
21616 {{	uint32_t srca = get_ilong(2);
21617 {	int16_t src = m68k_read_memory_16(srca);
21618 {	int16_t dst = m68k_dreg(regs, dstreg);
21619 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21620 	uint32_t src2;
21621 	CLEAR_CZNV;
21622 	SET_ZFLG (((int32_t)(newv)) == 0);
21623 	SET_NFLG (((int32_t)(newv)) < 0);
21624 	m68k_dreg(regs, dstreg) = (newv);
21625 	src2 = ((uint32_t)src) << 1;
21626 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21627 }}}}}m68k_incpc(6);
21628  return (50+retcycles*2);
21629 }
CPUFUNC(op_c1fa_4)21630 unsigned long CPUFUNC(op_c1fa_4)(uint32_t opcode) /* MULS */
21631 {
21632 	uint32_t dstreg = (opcode >> 9) & 7;
21633 	unsigned int retcycles = 0;
21634 	OpcodeFamily = 63; CurrentInstrCycles = 46;
21635 {{	uint32_t srca = m68k_getpc () + 2;
21636 	srca += (int32_t)(int16_t)get_iword(2);
21637 {	int16_t src = m68k_read_memory_16(srca);
21638 {	int16_t dst = m68k_dreg(regs, dstreg);
21639 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21640 	uint32_t src2;
21641 	CLEAR_CZNV;
21642 	SET_ZFLG (((int32_t)(newv)) == 0);
21643 	SET_NFLG (((int32_t)(newv)) < 0);
21644 	m68k_dreg(regs, dstreg) = (newv);
21645 	src2 = ((uint32_t)src) << 1;
21646 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21647 }}}}}m68k_incpc(4);
21648  return (46+retcycles*2);
21649 }
CPUFUNC(op_c1fb_4)21650 unsigned long CPUFUNC(op_c1fb_4)(uint32_t opcode) /* MULS */
21651 {
21652 	uint32_t dstreg = (opcode >> 9) & 7;
21653 	unsigned int retcycles = 0;
21654 	OpcodeFamily = 63; CurrentInstrCycles = 48;
21655 {{	uint32_t tmppc = m68k_getpc() + 2;
21656 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
21657 	BusCyclePenalty += 2;
21658 {	int16_t src = m68k_read_memory_16(srca);
21659 {	int16_t dst = m68k_dreg(regs, dstreg);
21660 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21661 	uint32_t src2;
21662 	CLEAR_CZNV;
21663 	SET_ZFLG (((int32_t)(newv)) == 0);
21664 	SET_NFLG (((int32_t)(newv)) < 0);
21665 	m68k_dreg(regs, dstreg) = (newv);
21666 	src2 = ((uint32_t)src) << 1;
21667 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21668 }}}}}m68k_incpc(4);
21669  return (48+retcycles*2);
21670 }
CPUFUNC(op_c1fc_4)21671 unsigned long CPUFUNC(op_c1fc_4)(uint32_t opcode) /* MULS */
21672 {
21673 	uint32_t dstreg = (opcode >> 9) & 7;
21674 	unsigned int retcycles = 0;
21675 	OpcodeFamily = 63; CurrentInstrCycles = 42;
21676 {{	int16_t src = get_iword(2);
21677 {	int16_t dst = m68k_dreg(regs, dstreg);
21678 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
21679 	uint32_t src2;
21680 	CLEAR_CZNV;
21681 	SET_ZFLG (((int32_t)(newv)) == 0);
21682 	SET_NFLG (((int32_t)(newv)) < 0);
21683 	m68k_dreg(regs, dstreg) = (newv);
21684 	src2 = ((uint32_t)src) << 1;
21685 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
21686 }}}}m68k_incpc(4);
21687  return (42+retcycles*2);
21688 }
CPUFUNC(op_d000_4)21689 unsigned long CPUFUNC(op_d000_4)(uint32_t opcode) /* ADD */
21690 {
21691 	uint32_t srcreg = (opcode & 7);
21692 	uint32_t dstreg = (opcode >> 9) & 7;
21693 	OpcodeFamily = 11; CurrentInstrCycles = 4;
21694 {{	int8_t src = m68k_dreg(regs, srcreg);
21695 {	int8_t dst = m68k_dreg(regs, dstreg);
21696 {	refill_prefetch (m68k_getpc(), 2);
21697 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21698 {	int flgs = ((int8_t)(src)) < 0;
21699 	int flgo = ((int8_t)(dst)) < 0;
21700 	int flgn = ((int8_t)(newv)) < 0;
21701 	SET_ZFLG (((int8_t)(newv)) == 0);
21702 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21703 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21704 	COPY_CARRY;
21705 	SET_NFLG (flgn != 0);
21706 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21707 }}}}}}m68k_incpc(2);
21708 return 4;
21709 }
CPUFUNC(op_d010_4)21710 unsigned long CPUFUNC(op_d010_4)(uint32_t opcode) /* ADD */
21711 {
21712 	uint32_t srcreg = (opcode & 7);
21713 	uint32_t dstreg = (opcode >> 9) & 7;
21714 	OpcodeFamily = 11; CurrentInstrCycles = 8;
21715 {{	uint32_t srca = m68k_areg(regs, srcreg);
21716 {	int8_t src = m68k_read_memory_8(srca);
21717 {	int8_t dst = m68k_dreg(regs, dstreg);
21718 {	refill_prefetch (m68k_getpc(), 2);
21719 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21720 {	int flgs = ((int8_t)(src)) < 0;
21721 	int flgo = ((int8_t)(dst)) < 0;
21722 	int flgn = ((int8_t)(newv)) < 0;
21723 	SET_ZFLG (((int8_t)(newv)) == 0);
21724 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21725 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21726 	COPY_CARRY;
21727 	SET_NFLG (flgn != 0);
21728 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21729 }}}}}}}m68k_incpc(2);
21730 return 8;
21731 }
CPUFUNC(op_d018_4)21732 unsigned long CPUFUNC(op_d018_4)(uint32_t opcode) /* ADD */
21733 {
21734 	uint32_t srcreg = (opcode & 7);
21735 	uint32_t dstreg = (opcode >> 9) & 7;
21736 	OpcodeFamily = 11; CurrentInstrCycles = 8;
21737 {{	uint32_t srca = m68k_areg(regs, srcreg);
21738 {	int8_t src = m68k_read_memory_8(srca);
21739 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
21740 {	int8_t dst = m68k_dreg(regs, dstreg);
21741 {	refill_prefetch (m68k_getpc(), 2);
21742 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21743 {	int flgs = ((int8_t)(src)) < 0;
21744 	int flgo = ((int8_t)(dst)) < 0;
21745 	int flgn = ((int8_t)(newv)) < 0;
21746 	SET_ZFLG (((int8_t)(newv)) == 0);
21747 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21748 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21749 	COPY_CARRY;
21750 	SET_NFLG (flgn != 0);
21751 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21752 }}}}}}}m68k_incpc(2);
21753 return 8;
21754 }
CPUFUNC(op_d020_4)21755 unsigned long CPUFUNC(op_d020_4)(uint32_t opcode) /* ADD */
21756 {
21757 	uint32_t srcreg = (opcode & 7);
21758 	uint32_t dstreg = (opcode >> 9) & 7;
21759 	OpcodeFamily = 11; CurrentInstrCycles = 10;
21760 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
21761 {	int8_t src = m68k_read_memory_8(srca);
21762 	m68k_areg (regs, srcreg) = srca;
21763 {	int8_t dst = m68k_dreg(regs, dstreg);
21764 {	refill_prefetch (m68k_getpc(), 2);
21765 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21766 {	int flgs = ((int8_t)(src)) < 0;
21767 	int flgo = ((int8_t)(dst)) < 0;
21768 	int flgn = ((int8_t)(newv)) < 0;
21769 	SET_ZFLG (((int8_t)(newv)) == 0);
21770 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21771 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21772 	COPY_CARRY;
21773 	SET_NFLG (flgn != 0);
21774 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21775 }}}}}}}m68k_incpc(2);
21776 return 10;
21777 }
CPUFUNC(op_d028_4)21778 unsigned long CPUFUNC(op_d028_4)(uint32_t opcode) /* ADD */
21779 {
21780 	uint32_t srcreg = (opcode & 7);
21781 	uint32_t dstreg = (opcode >> 9) & 7;
21782 	OpcodeFamily = 11; CurrentInstrCycles = 12;
21783 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
21784 {	int8_t src = m68k_read_memory_8(srca);
21785 {	int8_t dst = m68k_dreg(regs, dstreg);
21786 {	refill_prefetch (m68k_getpc(), 2);
21787 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21788 {	int flgs = ((int8_t)(src)) < 0;
21789 	int flgo = ((int8_t)(dst)) < 0;
21790 	int flgn = ((int8_t)(newv)) < 0;
21791 	SET_ZFLG (((int8_t)(newv)) == 0);
21792 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21793 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21794 	COPY_CARRY;
21795 	SET_NFLG (flgn != 0);
21796 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21797 }}}}}}}m68k_incpc(4);
21798 return 12;
21799 }
CPUFUNC(op_d030_4)21800 unsigned long CPUFUNC(op_d030_4)(uint32_t opcode) /* ADD */
21801 {
21802 	uint32_t srcreg = (opcode & 7);
21803 	uint32_t dstreg = (opcode >> 9) & 7;
21804 	OpcodeFamily = 11; CurrentInstrCycles = 14;
21805 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
21806 	BusCyclePenalty += 2;
21807 {	int8_t src = m68k_read_memory_8(srca);
21808 {	int8_t dst = m68k_dreg(regs, dstreg);
21809 {	refill_prefetch (m68k_getpc(), 2);
21810 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21811 {	int flgs = ((int8_t)(src)) < 0;
21812 	int flgo = ((int8_t)(dst)) < 0;
21813 	int flgn = ((int8_t)(newv)) < 0;
21814 	SET_ZFLG (((int8_t)(newv)) == 0);
21815 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21816 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21817 	COPY_CARRY;
21818 	SET_NFLG (flgn != 0);
21819 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21820 }}}}}}}m68k_incpc(4);
21821 return 14;
21822 }
CPUFUNC(op_d038_4)21823 unsigned long CPUFUNC(op_d038_4)(uint32_t opcode) /* ADD */
21824 {
21825 	uint32_t dstreg = (opcode >> 9) & 7;
21826 	OpcodeFamily = 11; CurrentInstrCycles = 12;
21827 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
21828 {	int8_t src = m68k_read_memory_8(srca);
21829 {	int8_t dst = m68k_dreg(regs, dstreg);
21830 {	refill_prefetch (m68k_getpc(), 2);
21831 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21832 {	int flgs = ((int8_t)(src)) < 0;
21833 	int flgo = ((int8_t)(dst)) < 0;
21834 	int flgn = ((int8_t)(newv)) < 0;
21835 	SET_ZFLG (((int8_t)(newv)) == 0);
21836 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21837 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21838 	COPY_CARRY;
21839 	SET_NFLG (flgn != 0);
21840 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21841 }}}}}}}m68k_incpc(4);
21842 return 12;
21843 }
CPUFUNC(op_d039_4)21844 unsigned long CPUFUNC(op_d039_4)(uint32_t opcode) /* ADD */
21845 {
21846 	uint32_t dstreg = (opcode >> 9) & 7;
21847 	OpcodeFamily = 11; CurrentInstrCycles = 16;
21848 {{	uint32_t srca = get_ilong(2);
21849 {	int8_t src = m68k_read_memory_8(srca);
21850 {	int8_t dst = m68k_dreg(regs, dstreg);
21851 {	refill_prefetch (m68k_getpc(), 2);
21852 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21853 {	int flgs = ((int8_t)(src)) < 0;
21854 	int flgo = ((int8_t)(dst)) < 0;
21855 	int flgn = ((int8_t)(newv)) < 0;
21856 	SET_ZFLG (((int8_t)(newv)) == 0);
21857 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21858 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21859 	COPY_CARRY;
21860 	SET_NFLG (flgn != 0);
21861 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21862 }}}}}}}m68k_incpc(6);
21863 return 16;
21864 }
CPUFUNC(op_d03a_4)21865 unsigned long CPUFUNC(op_d03a_4)(uint32_t opcode) /* ADD */
21866 {
21867 	uint32_t dstreg = (opcode >> 9) & 7;
21868 	OpcodeFamily = 11; CurrentInstrCycles = 12;
21869 {{	uint32_t srca = m68k_getpc () + 2;
21870 	srca += (int32_t)(int16_t)get_iword(2);
21871 {	int8_t src = m68k_read_memory_8(srca);
21872 {	int8_t dst = m68k_dreg(regs, dstreg);
21873 {	refill_prefetch (m68k_getpc(), 2);
21874 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21875 {	int flgs = ((int8_t)(src)) < 0;
21876 	int flgo = ((int8_t)(dst)) < 0;
21877 	int flgn = ((int8_t)(newv)) < 0;
21878 	SET_ZFLG (((int8_t)(newv)) == 0);
21879 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21880 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21881 	COPY_CARRY;
21882 	SET_NFLG (flgn != 0);
21883 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21884 }}}}}}}m68k_incpc(4);
21885 return 12;
21886 }
CPUFUNC(op_d03b_4)21887 unsigned long CPUFUNC(op_d03b_4)(uint32_t opcode) /* ADD */
21888 {
21889 	uint32_t dstreg = (opcode >> 9) & 7;
21890 	OpcodeFamily = 11; CurrentInstrCycles = 14;
21891 {{	uint32_t tmppc = m68k_getpc() + 2;
21892 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
21893 	BusCyclePenalty += 2;
21894 {	int8_t src = m68k_read_memory_8(srca);
21895 {	int8_t dst = m68k_dreg(regs, dstreg);
21896 {	refill_prefetch (m68k_getpc(), 2);
21897 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21898 {	int flgs = ((int8_t)(src)) < 0;
21899 	int flgo = ((int8_t)(dst)) < 0;
21900 	int flgn = ((int8_t)(newv)) < 0;
21901 	SET_ZFLG (((int8_t)(newv)) == 0);
21902 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21903 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21904 	COPY_CARRY;
21905 	SET_NFLG (flgn != 0);
21906 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21907 }}}}}}}m68k_incpc(4);
21908 return 14;
21909 }
CPUFUNC(op_d03c_4)21910 unsigned long CPUFUNC(op_d03c_4)(uint32_t opcode) /* ADD */
21911 {
21912 	uint32_t dstreg = (opcode >> 9) & 7;
21913 	OpcodeFamily = 11; CurrentInstrCycles = 8;
21914 {{	int8_t src = get_ibyte(2);
21915 {	int8_t dst = m68k_dreg(regs, dstreg);
21916 {	refill_prefetch (m68k_getpc(), 2);
21917 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
21918 {	int flgs = ((int8_t)(src)) < 0;
21919 	int flgo = ((int8_t)(dst)) < 0;
21920 	int flgn = ((int8_t)(newv)) < 0;
21921 	SET_ZFLG (((int8_t)(newv)) == 0);
21922 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21923 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
21924 	COPY_CARRY;
21925 	SET_NFLG (flgn != 0);
21926 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
21927 }}}}}}m68k_incpc(4);
21928 return 8;
21929 }
CPUFUNC(op_d040_4)21930 unsigned long CPUFUNC(op_d040_4)(uint32_t opcode) /* ADD */
21931 {
21932 	uint32_t srcreg = (opcode & 7);
21933 	uint32_t dstreg = (opcode >> 9) & 7;
21934 	OpcodeFamily = 11; CurrentInstrCycles = 4;
21935 {{	int16_t src = m68k_dreg(regs, srcreg);
21936 {	int16_t dst = m68k_dreg(regs, dstreg);
21937 {	refill_prefetch (m68k_getpc(), 2);
21938 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
21939 {	int flgs = ((int16_t)(src)) < 0;
21940 	int flgo = ((int16_t)(dst)) < 0;
21941 	int flgn = ((int16_t)(newv)) < 0;
21942 	SET_ZFLG (((int16_t)(newv)) == 0);
21943 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21944 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
21945 	COPY_CARRY;
21946 	SET_NFLG (flgn != 0);
21947 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
21948 }}}}}}m68k_incpc(2);
21949 return 4;
21950 }
CPUFUNC(op_d048_4)21951 unsigned long CPUFUNC(op_d048_4)(uint32_t opcode) /* ADD */
21952 {
21953 	uint32_t srcreg = (opcode & 7);
21954 	uint32_t dstreg = (opcode >> 9) & 7;
21955 	OpcodeFamily = 11; CurrentInstrCycles = 4;
21956 {{	int16_t src = m68k_areg(regs, srcreg);
21957 {	int16_t dst = m68k_dreg(regs, dstreg);
21958 {	refill_prefetch (m68k_getpc(), 2);
21959 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
21960 {	int flgs = ((int16_t)(src)) < 0;
21961 	int flgo = ((int16_t)(dst)) < 0;
21962 	int flgn = ((int16_t)(newv)) < 0;
21963 	SET_ZFLG (((int16_t)(newv)) == 0);
21964 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21965 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
21966 	COPY_CARRY;
21967 	SET_NFLG (flgn != 0);
21968 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
21969 }}}}}}m68k_incpc(2);
21970 return 4;
21971 }
CPUFUNC(op_d050_4)21972 unsigned long CPUFUNC(op_d050_4)(uint32_t opcode) /* ADD */
21973 {
21974 	uint32_t srcreg = (opcode & 7);
21975 	uint32_t dstreg = (opcode >> 9) & 7;
21976 	OpcodeFamily = 11; CurrentInstrCycles = 8;
21977 {{	uint32_t srca = m68k_areg(regs, srcreg);
21978 {	int16_t src = m68k_read_memory_16(srca);
21979 {	int16_t dst = m68k_dreg(regs, dstreg);
21980 {	refill_prefetch (m68k_getpc(), 2);
21981 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
21982 {	int flgs = ((int16_t)(src)) < 0;
21983 	int flgo = ((int16_t)(dst)) < 0;
21984 	int flgn = ((int16_t)(newv)) < 0;
21985 	SET_ZFLG (((int16_t)(newv)) == 0);
21986 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
21987 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
21988 	COPY_CARRY;
21989 	SET_NFLG (flgn != 0);
21990 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
21991 }}}}}}}m68k_incpc(2);
21992 return 8;
21993 }
CPUFUNC(op_d058_4)21994 unsigned long CPUFUNC(op_d058_4)(uint32_t opcode) /* ADD */
21995 {
21996 	uint32_t srcreg = (opcode & 7);
21997 	uint32_t dstreg = (opcode >> 9) & 7;
21998 	OpcodeFamily = 11; CurrentInstrCycles = 8;
21999 {{	uint32_t srca = m68k_areg(regs, srcreg);
22000 {	int16_t src = m68k_read_memory_16(srca);
22001 	m68k_areg(regs, srcreg) += 2;
22002 {	int16_t dst = m68k_dreg(regs, dstreg);
22003 {	refill_prefetch (m68k_getpc(), 2);
22004 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22005 {	int flgs = ((int16_t)(src)) < 0;
22006 	int flgo = ((int16_t)(dst)) < 0;
22007 	int flgn = ((int16_t)(newv)) < 0;
22008 	SET_ZFLG (((int16_t)(newv)) == 0);
22009 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22010 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22011 	COPY_CARRY;
22012 	SET_NFLG (flgn != 0);
22013 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22014 }}}}}}}m68k_incpc(2);
22015 return 8;
22016 }
CPUFUNC(op_d060_4)22017 unsigned long CPUFUNC(op_d060_4)(uint32_t opcode) /* ADD */
22018 {
22019 	uint32_t srcreg = (opcode & 7);
22020 	uint32_t dstreg = (opcode >> 9) & 7;
22021 	OpcodeFamily = 11; CurrentInstrCycles = 10;
22022 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
22023 {	int16_t src = m68k_read_memory_16(srca);
22024 	m68k_areg (regs, srcreg) = srca;
22025 {	int16_t dst = m68k_dreg(regs, dstreg);
22026 {	refill_prefetch (m68k_getpc(), 2);
22027 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22028 {	int flgs = ((int16_t)(src)) < 0;
22029 	int flgo = ((int16_t)(dst)) < 0;
22030 	int flgn = ((int16_t)(newv)) < 0;
22031 	SET_ZFLG (((int16_t)(newv)) == 0);
22032 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22033 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22034 	COPY_CARRY;
22035 	SET_NFLG (flgn != 0);
22036 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22037 }}}}}}}m68k_incpc(2);
22038 return 10;
22039 }
CPUFUNC(op_d068_4)22040 unsigned long CPUFUNC(op_d068_4)(uint32_t opcode) /* ADD */
22041 {
22042 	uint32_t srcreg = (opcode & 7);
22043 	uint32_t dstreg = (opcode >> 9) & 7;
22044 	OpcodeFamily = 11; CurrentInstrCycles = 12;
22045 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
22046 {	int16_t src = m68k_read_memory_16(srca);
22047 {	int16_t dst = m68k_dreg(regs, dstreg);
22048 {	refill_prefetch (m68k_getpc(), 2);
22049 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22050 {	int flgs = ((int16_t)(src)) < 0;
22051 	int flgo = ((int16_t)(dst)) < 0;
22052 	int flgn = ((int16_t)(newv)) < 0;
22053 	SET_ZFLG (((int16_t)(newv)) == 0);
22054 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22055 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22056 	COPY_CARRY;
22057 	SET_NFLG (flgn != 0);
22058 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22059 }}}}}}}m68k_incpc(4);
22060 return 12;
22061 }
CPUFUNC(op_d070_4)22062 unsigned long CPUFUNC(op_d070_4)(uint32_t opcode) /* ADD */
22063 {
22064 	uint32_t srcreg = (opcode & 7);
22065 	uint32_t dstreg = (opcode >> 9) & 7;
22066 	OpcodeFamily = 11; CurrentInstrCycles = 14;
22067 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
22068 	BusCyclePenalty += 2;
22069 {	int16_t src = m68k_read_memory_16(srca);
22070 {	int16_t dst = m68k_dreg(regs, dstreg);
22071 {	refill_prefetch (m68k_getpc(), 2);
22072 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22073 {	int flgs = ((int16_t)(src)) < 0;
22074 	int flgo = ((int16_t)(dst)) < 0;
22075 	int flgn = ((int16_t)(newv)) < 0;
22076 	SET_ZFLG (((int16_t)(newv)) == 0);
22077 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22078 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22079 	COPY_CARRY;
22080 	SET_NFLG (flgn != 0);
22081 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22082 }}}}}}}m68k_incpc(4);
22083 return 14;
22084 }
CPUFUNC(op_d078_4)22085 unsigned long CPUFUNC(op_d078_4)(uint32_t opcode) /* ADD */
22086 {
22087 	uint32_t dstreg = (opcode >> 9) & 7;
22088 	OpcodeFamily = 11; CurrentInstrCycles = 12;
22089 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
22090 {	int16_t src = m68k_read_memory_16(srca);
22091 {	int16_t dst = m68k_dreg(regs, dstreg);
22092 {	refill_prefetch (m68k_getpc(), 2);
22093 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22094 {	int flgs = ((int16_t)(src)) < 0;
22095 	int flgo = ((int16_t)(dst)) < 0;
22096 	int flgn = ((int16_t)(newv)) < 0;
22097 	SET_ZFLG (((int16_t)(newv)) == 0);
22098 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22099 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22100 	COPY_CARRY;
22101 	SET_NFLG (flgn != 0);
22102 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22103 }}}}}}}m68k_incpc(4);
22104 return 12;
22105 }
CPUFUNC(op_d079_4)22106 unsigned long CPUFUNC(op_d079_4)(uint32_t opcode) /* ADD */
22107 {
22108 	uint32_t dstreg = (opcode >> 9) & 7;
22109 	OpcodeFamily = 11; CurrentInstrCycles = 16;
22110 {{	uint32_t srca = get_ilong(2);
22111 {	int16_t src = m68k_read_memory_16(srca);
22112 {	int16_t dst = m68k_dreg(regs, dstreg);
22113 {	refill_prefetch (m68k_getpc(), 2);
22114 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22115 {	int flgs = ((int16_t)(src)) < 0;
22116 	int flgo = ((int16_t)(dst)) < 0;
22117 	int flgn = ((int16_t)(newv)) < 0;
22118 	SET_ZFLG (((int16_t)(newv)) == 0);
22119 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22120 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22121 	COPY_CARRY;
22122 	SET_NFLG (flgn != 0);
22123 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22124 }}}}}}}m68k_incpc(6);
22125 return 16;
22126 }
CPUFUNC(op_d07a_4)22127 unsigned long CPUFUNC(op_d07a_4)(uint32_t opcode) /* ADD */
22128 {
22129 	uint32_t dstreg = (opcode >> 9) & 7;
22130 	OpcodeFamily = 11; CurrentInstrCycles = 12;
22131 {{	uint32_t srca = m68k_getpc () + 2;
22132 	srca += (int32_t)(int16_t)get_iword(2);
22133 {	int16_t src = m68k_read_memory_16(srca);
22134 {	int16_t dst = m68k_dreg(regs, dstreg);
22135 {	refill_prefetch (m68k_getpc(), 2);
22136 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22137 {	int flgs = ((int16_t)(src)) < 0;
22138 	int flgo = ((int16_t)(dst)) < 0;
22139 	int flgn = ((int16_t)(newv)) < 0;
22140 	SET_ZFLG (((int16_t)(newv)) == 0);
22141 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22142 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22143 	COPY_CARRY;
22144 	SET_NFLG (flgn != 0);
22145 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22146 }}}}}}}m68k_incpc(4);
22147 return 12;
22148 }
CPUFUNC(op_d07b_4)22149 unsigned long CPUFUNC(op_d07b_4)(uint32_t opcode) /* ADD */
22150 {
22151 	uint32_t dstreg = (opcode >> 9) & 7;
22152 	OpcodeFamily = 11; CurrentInstrCycles = 14;
22153 {{	uint32_t tmppc = m68k_getpc() + 2;
22154 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
22155 	BusCyclePenalty += 2;
22156 {	int16_t src = m68k_read_memory_16(srca);
22157 {	int16_t dst = m68k_dreg(regs, dstreg);
22158 {	refill_prefetch (m68k_getpc(), 2);
22159 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22160 {	int flgs = ((int16_t)(src)) < 0;
22161 	int flgo = ((int16_t)(dst)) < 0;
22162 	int flgn = ((int16_t)(newv)) < 0;
22163 	SET_ZFLG (((int16_t)(newv)) == 0);
22164 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22165 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22166 	COPY_CARRY;
22167 	SET_NFLG (flgn != 0);
22168 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22169 }}}}}}}m68k_incpc(4);
22170 return 14;
22171 }
CPUFUNC(op_d07c_4)22172 unsigned long CPUFUNC(op_d07c_4)(uint32_t opcode) /* ADD */
22173 {
22174 	uint32_t dstreg = (opcode >> 9) & 7;
22175 	OpcodeFamily = 11; CurrentInstrCycles = 8;
22176 {{	int16_t src = get_iword(2);
22177 {	int16_t dst = m68k_dreg(regs, dstreg);
22178 {	refill_prefetch (m68k_getpc(), 2);
22179 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22180 {	int flgs = ((int16_t)(src)) < 0;
22181 	int flgo = ((int16_t)(dst)) < 0;
22182 	int flgn = ((int16_t)(newv)) < 0;
22183 	SET_ZFLG (((int16_t)(newv)) == 0);
22184 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22185 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22186 	COPY_CARRY;
22187 	SET_NFLG (flgn != 0);
22188 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22189 }}}}}}m68k_incpc(4);
22190 return 8;
22191 }
CPUFUNC(op_d080_4)22192 unsigned long CPUFUNC(op_d080_4)(uint32_t opcode) /* ADD */
22193 {
22194 	uint32_t srcreg = (opcode & 7);
22195 	uint32_t dstreg = (opcode >> 9) & 7;
22196 	OpcodeFamily = 11; CurrentInstrCycles = 8;
22197 {{	int32_t src = m68k_dreg(regs, srcreg);
22198 {	int32_t dst = m68k_dreg(regs, dstreg);
22199 {	refill_prefetch (m68k_getpc(), 2);
22200 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22201 {	int flgs = ((int32_t)(src)) < 0;
22202 	int flgo = ((int32_t)(dst)) < 0;
22203 	int flgn = ((int32_t)(newv)) < 0;
22204 	SET_ZFLG (((int32_t)(newv)) == 0);
22205 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22206 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22207 	COPY_CARRY;
22208 	SET_NFLG (flgn != 0);
22209 	m68k_dreg(regs, dstreg) = (newv);
22210 }}}}}}m68k_incpc(2);
22211 return 8;
22212 }
CPUFUNC(op_d088_4)22213 unsigned long CPUFUNC(op_d088_4)(uint32_t opcode) /* ADD */
22214 {
22215 	uint32_t srcreg = (opcode & 7);
22216 	uint32_t dstreg = (opcode >> 9) & 7;
22217 	OpcodeFamily = 11; CurrentInstrCycles = 8;
22218 {{	int32_t src = m68k_areg(regs, srcreg);
22219 {	int32_t dst = m68k_dreg(regs, dstreg);
22220 {	refill_prefetch (m68k_getpc(), 2);
22221 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22222 {	int flgs = ((int32_t)(src)) < 0;
22223 	int flgo = ((int32_t)(dst)) < 0;
22224 	int flgn = ((int32_t)(newv)) < 0;
22225 	SET_ZFLG (((int32_t)(newv)) == 0);
22226 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22227 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22228 	COPY_CARRY;
22229 	SET_NFLG (flgn != 0);
22230 	m68k_dreg(regs, dstreg) = (newv);
22231 }}}}}}m68k_incpc(2);
22232 return 8;
22233 }
CPUFUNC(op_d090_4)22234 unsigned long CPUFUNC(op_d090_4)(uint32_t opcode) /* ADD */
22235 {
22236 	uint32_t srcreg = (opcode & 7);
22237 	uint32_t dstreg = (opcode >> 9) & 7;
22238 	OpcodeFamily = 11; CurrentInstrCycles = 14;
22239 {{	uint32_t srca = m68k_areg(regs, srcreg);
22240 {	int32_t src = m68k_read_memory_32(srca);
22241 {	int32_t dst = m68k_dreg(regs, dstreg);
22242 {	refill_prefetch (m68k_getpc(), 2);
22243 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22244 {	int flgs = ((int32_t)(src)) < 0;
22245 	int flgo = ((int32_t)(dst)) < 0;
22246 	int flgn = ((int32_t)(newv)) < 0;
22247 	SET_ZFLG (((int32_t)(newv)) == 0);
22248 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22249 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22250 	COPY_CARRY;
22251 	SET_NFLG (flgn != 0);
22252 	m68k_dreg(regs, dstreg) = (newv);
22253 }}}}}}}m68k_incpc(2);
22254 return 14;
22255 }
CPUFUNC(op_d098_4)22256 unsigned long CPUFUNC(op_d098_4)(uint32_t opcode) /* ADD */
22257 {
22258 	uint32_t srcreg = (opcode & 7);
22259 	uint32_t dstreg = (opcode >> 9) & 7;
22260 	OpcodeFamily = 11; CurrentInstrCycles = 14;
22261 {{	uint32_t srca = m68k_areg(regs, srcreg);
22262 {	int32_t src = m68k_read_memory_32(srca);
22263 	m68k_areg(regs, srcreg) += 4;
22264 {	int32_t dst = m68k_dreg(regs, dstreg);
22265 {	refill_prefetch (m68k_getpc(), 2);
22266 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22267 {	int flgs = ((int32_t)(src)) < 0;
22268 	int flgo = ((int32_t)(dst)) < 0;
22269 	int flgn = ((int32_t)(newv)) < 0;
22270 	SET_ZFLG (((int32_t)(newv)) == 0);
22271 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22272 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22273 	COPY_CARRY;
22274 	SET_NFLG (flgn != 0);
22275 	m68k_dreg(regs, dstreg) = (newv);
22276 }}}}}}}m68k_incpc(2);
22277 return 14;
22278 }
CPUFUNC(op_d0a0_4)22279 unsigned long CPUFUNC(op_d0a0_4)(uint32_t opcode) /* ADD */
22280 {
22281 	uint32_t srcreg = (opcode & 7);
22282 	uint32_t dstreg = (opcode >> 9) & 7;
22283 	OpcodeFamily = 11; CurrentInstrCycles = 16;
22284 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
22285 {	int32_t src = m68k_read_memory_32(srca);
22286 	m68k_areg (regs, srcreg) = srca;
22287 {	int32_t dst = m68k_dreg(regs, dstreg);
22288 {	refill_prefetch (m68k_getpc(), 2);
22289 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22290 {	int flgs = ((int32_t)(src)) < 0;
22291 	int flgo = ((int32_t)(dst)) < 0;
22292 	int flgn = ((int32_t)(newv)) < 0;
22293 	SET_ZFLG (((int32_t)(newv)) == 0);
22294 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22295 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22296 	COPY_CARRY;
22297 	SET_NFLG (flgn != 0);
22298 	m68k_dreg(regs, dstreg) = (newv);
22299 }}}}}}}m68k_incpc(2);
22300 return 16;
22301 }
CPUFUNC(op_d0a8_4)22302 unsigned long CPUFUNC(op_d0a8_4)(uint32_t opcode) /* ADD */
22303 {
22304 	uint32_t srcreg = (opcode & 7);
22305 	uint32_t dstreg = (opcode >> 9) & 7;
22306 	OpcodeFamily = 11; CurrentInstrCycles = 18;
22307 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
22308 {	int32_t src = m68k_read_memory_32(srca);
22309 {	int32_t dst = m68k_dreg(regs, dstreg);
22310 {	refill_prefetch (m68k_getpc(), 2);
22311 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22312 {	int flgs = ((int32_t)(src)) < 0;
22313 	int flgo = ((int32_t)(dst)) < 0;
22314 	int flgn = ((int32_t)(newv)) < 0;
22315 	SET_ZFLG (((int32_t)(newv)) == 0);
22316 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22317 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22318 	COPY_CARRY;
22319 	SET_NFLG (flgn != 0);
22320 	m68k_dreg(regs, dstreg) = (newv);
22321 }}}}}}}m68k_incpc(4);
22322 return 18;
22323 }
CPUFUNC(op_d0b0_4)22324 unsigned long CPUFUNC(op_d0b0_4)(uint32_t opcode) /* ADD */
22325 {
22326 	uint32_t srcreg = (opcode & 7);
22327 	uint32_t dstreg = (opcode >> 9) & 7;
22328 	OpcodeFamily = 11; CurrentInstrCycles = 20;
22329 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
22330 	BusCyclePenalty += 2;
22331 {	int32_t src = m68k_read_memory_32(srca);
22332 {	int32_t dst = m68k_dreg(regs, dstreg);
22333 {	refill_prefetch (m68k_getpc(), 2);
22334 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22335 {	int flgs = ((int32_t)(src)) < 0;
22336 	int flgo = ((int32_t)(dst)) < 0;
22337 	int flgn = ((int32_t)(newv)) < 0;
22338 	SET_ZFLG (((int32_t)(newv)) == 0);
22339 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22340 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22341 	COPY_CARRY;
22342 	SET_NFLG (flgn != 0);
22343 	m68k_dreg(regs, dstreg) = (newv);
22344 }}}}}}}m68k_incpc(4);
22345 return 20;
22346 }
CPUFUNC(op_d0b8_4)22347 unsigned long CPUFUNC(op_d0b8_4)(uint32_t opcode) /* ADD */
22348 {
22349 	uint32_t dstreg = (opcode >> 9) & 7;
22350 	OpcodeFamily = 11; CurrentInstrCycles = 18;
22351 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
22352 {	int32_t src = m68k_read_memory_32(srca);
22353 {	int32_t dst = m68k_dreg(regs, dstreg);
22354 {	refill_prefetch (m68k_getpc(), 2);
22355 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22356 {	int flgs = ((int32_t)(src)) < 0;
22357 	int flgo = ((int32_t)(dst)) < 0;
22358 	int flgn = ((int32_t)(newv)) < 0;
22359 	SET_ZFLG (((int32_t)(newv)) == 0);
22360 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22361 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22362 	COPY_CARRY;
22363 	SET_NFLG (flgn != 0);
22364 	m68k_dreg(regs, dstreg) = (newv);
22365 }}}}}}}m68k_incpc(4);
22366 return 18;
22367 }
CPUFUNC(op_d0b9_4)22368 unsigned long CPUFUNC(op_d0b9_4)(uint32_t opcode) /* ADD */
22369 {
22370 	uint32_t dstreg = (opcode >> 9) & 7;
22371 	OpcodeFamily = 11; CurrentInstrCycles = 22;
22372 {{	uint32_t srca = get_ilong(2);
22373 {	int32_t src = m68k_read_memory_32(srca);
22374 {	int32_t dst = m68k_dreg(regs, dstreg);
22375 {	refill_prefetch (m68k_getpc(), 2);
22376 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22377 {	int flgs = ((int32_t)(src)) < 0;
22378 	int flgo = ((int32_t)(dst)) < 0;
22379 	int flgn = ((int32_t)(newv)) < 0;
22380 	SET_ZFLG (((int32_t)(newv)) == 0);
22381 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22382 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22383 	COPY_CARRY;
22384 	SET_NFLG (flgn != 0);
22385 	m68k_dreg(regs, dstreg) = (newv);
22386 }}}}}}}m68k_incpc(6);
22387 return 22;
22388 }
CPUFUNC(op_d0ba_4)22389 unsigned long CPUFUNC(op_d0ba_4)(uint32_t opcode) /* ADD */
22390 {
22391 	uint32_t dstreg = (opcode >> 9) & 7;
22392 	OpcodeFamily = 11; CurrentInstrCycles = 18;
22393 {{	uint32_t srca = m68k_getpc () + 2;
22394 	srca += (int32_t)(int16_t)get_iword(2);
22395 {	int32_t src = m68k_read_memory_32(srca);
22396 {	int32_t dst = m68k_dreg(regs, dstreg);
22397 {	refill_prefetch (m68k_getpc(), 2);
22398 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22399 {	int flgs = ((int32_t)(src)) < 0;
22400 	int flgo = ((int32_t)(dst)) < 0;
22401 	int flgn = ((int32_t)(newv)) < 0;
22402 	SET_ZFLG (((int32_t)(newv)) == 0);
22403 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22404 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22405 	COPY_CARRY;
22406 	SET_NFLG (flgn != 0);
22407 	m68k_dreg(regs, dstreg) = (newv);
22408 }}}}}}}m68k_incpc(4);
22409 return 18;
22410 }
CPUFUNC(op_d0bb_4)22411 unsigned long CPUFUNC(op_d0bb_4)(uint32_t opcode) /* ADD */
22412 {
22413 	uint32_t dstreg = (opcode >> 9) & 7;
22414 	OpcodeFamily = 11; CurrentInstrCycles = 20;
22415 {{	uint32_t tmppc = m68k_getpc() + 2;
22416 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
22417 	BusCyclePenalty += 2;
22418 {	int32_t src = m68k_read_memory_32(srca);
22419 {	int32_t dst = m68k_dreg(regs, dstreg);
22420 {	refill_prefetch (m68k_getpc(), 2);
22421 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22422 {	int flgs = ((int32_t)(src)) < 0;
22423 	int flgo = ((int32_t)(dst)) < 0;
22424 	int flgn = ((int32_t)(newv)) < 0;
22425 	SET_ZFLG (((int32_t)(newv)) == 0);
22426 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22427 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22428 	COPY_CARRY;
22429 	SET_NFLG (flgn != 0);
22430 	m68k_dreg(regs, dstreg) = (newv);
22431 }}}}}}}m68k_incpc(4);
22432 return 20;
22433 }
CPUFUNC(op_d0bc_4)22434 unsigned long CPUFUNC(op_d0bc_4)(uint32_t opcode) /* ADD */
22435 {
22436 	uint32_t dstreg = (opcode >> 9) & 7;
22437 	OpcodeFamily = 11; CurrentInstrCycles = 16;
22438 {{	int32_t src = get_ilong(2);
22439 {	int32_t dst = m68k_dreg(regs, dstreg);
22440 {	refill_prefetch (m68k_getpc(), 2);
22441 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
22442 {	int flgs = ((int32_t)(src)) < 0;
22443 	int flgo = ((int32_t)(dst)) < 0;
22444 	int flgn = ((int32_t)(newv)) < 0;
22445 	SET_ZFLG (((int32_t)(newv)) == 0);
22446 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22447 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
22448 	COPY_CARRY;
22449 	SET_NFLG (flgn != 0);
22450 	m68k_dreg(regs, dstreg) = (newv);
22451 }}}}}}m68k_incpc(6);
22452 return 16;
22453 }
CPUFUNC(op_d0c0_4)22454 unsigned long CPUFUNC(op_d0c0_4)(uint32_t opcode) /* ADDA */
22455 {
22456 	uint32_t srcreg = (opcode & 7);
22457 	uint32_t dstreg = (opcode >> 9) & 7;
22458 	OpcodeFamily = 12; CurrentInstrCycles = 8;
22459 {{	int16_t src = m68k_dreg(regs, srcreg);
22460 {	int32_t dst = m68k_areg(regs, dstreg);
22461 {	uint32_t newv = dst + src;
22462 	m68k_areg(regs, dstreg) = (newv);
22463 }}}}m68k_incpc(2);
22464 return 8;
22465 }
CPUFUNC(op_d0c8_4)22466 unsigned long CPUFUNC(op_d0c8_4)(uint32_t opcode) /* ADDA */
22467 {
22468 	uint32_t srcreg = (opcode & 7);
22469 	uint32_t dstreg = (opcode >> 9) & 7;
22470 	OpcodeFamily = 12; CurrentInstrCycles = 8;
22471 {{	int16_t src = m68k_areg(regs, srcreg);
22472 {	int32_t dst = m68k_areg(regs, dstreg);
22473 {	uint32_t newv = dst + src;
22474 	m68k_areg(regs, dstreg) = (newv);
22475 }}}}m68k_incpc(2);
22476 return 8;
22477 }
CPUFUNC(op_d0d0_4)22478 unsigned long CPUFUNC(op_d0d0_4)(uint32_t opcode) /* ADDA */
22479 {
22480 	uint32_t srcreg = (opcode & 7);
22481 	uint32_t dstreg = (opcode >> 9) & 7;
22482 	OpcodeFamily = 12; CurrentInstrCycles = 12;
22483 {{	uint32_t srca = m68k_areg(regs, srcreg);
22484 {	int16_t src = m68k_read_memory_16(srca);
22485 {	int32_t dst = m68k_areg(regs, dstreg);
22486 {	uint32_t newv = dst + src;
22487 	m68k_areg(regs, dstreg) = (newv);
22488 }}}}}m68k_incpc(2);
22489 return 12;
22490 }
CPUFUNC(op_d0d8_4)22491 unsigned long CPUFUNC(op_d0d8_4)(uint32_t opcode) /* ADDA */
22492 {
22493 	uint32_t srcreg = (opcode & 7);
22494 	uint32_t dstreg = (opcode >> 9) & 7;
22495 	OpcodeFamily = 12; CurrentInstrCycles = 12;
22496 {{	uint32_t srca = m68k_areg(regs, srcreg);
22497 {	int16_t src = m68k_read_memory_16(srca);
22498 	m68k_areg(regs, srcreg) += 2;
22499 {	int32_t dst = m68k_areg(regs, dstreg);
22500 {	uint32_t newv = dst + src;
22501 	m68k_areg(regs, dstreg) = (newv);
22502 }}}}}m68k_incpc(2);
22503 return 12;
22504 }
CPUFUNC(op_d0e0_4)22505 unsigned long CPUFUNC(op_d0e0_4)(uint32_t opcode) /* ADDA */
22506 {
22507 	uint32_t srcreg = (opcode & 7);
22508 	uint32_t dstreg = (opcode >> 9) & 7;
22509 	OpcodeFamily = 12; CurrentInstrCycles = 14;
22510 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
22511 {	int16_t src = m68k_read_memory_16(srca);
22512 	m68k_areg (regs, srcreg) = srca;
22513 {	int32_t dst = m68k_areg(regs, dstreg);
22514 {	uint32_t newv = dst + src;
22515 	m68k_areg(regs, dstreg) = (newv);
22516 }}}}}m68k_incpc(2);
22517 return 14;
22518 }
CPUFUNC(op_d0e8_4)22519 unsigned long CPUFUNC(op_d0e8_4)(uint32_t opcode) /* ADDA */
22520 {
22521 	uint32_t srcreg = (opcode & 7);
22522 	uint32_t dstreg = (opcode >> 9) & 7;
22523 	OpcodeFamily = 12; CurrentInstrCycles = 16;
22524 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
22525 {	int16_t src = m68k_read_memory_16(srca);
22526 {	int32_t dst = m68k_areg(regs, dstreg);
22527 {	uint32_t newv = dst + src;
22528 	m68k_areg(regs, dstreg) = (newv);
22529 }}}}}m68k_incpc(4);
22530 return 16;
22531 }
CPUFUNC(op_d0f0_4)22532 unsigned long CPUFUNC(op_d0f0_4)(uint32_t opcode) /* ADDA */
22533 {
22534 	uint32_t srcreg = (opcode & 7);
22535 	uint32_t dstreg = (opcode >> 9) & 7;
22536 	OpcodeFamily = 12; CurrentInstrCycles = 18;
22537 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
22538 	BusCyclePenalty += 2;
22539 {	int16_t src = m68k_read_memory_16(srca);
22540 {	int32_t dst = m68k_areg(regs, dstreg);
22541 {	uint32_t newv = dst + src;
22542 	m68k_areg(regs, dstreg) = (newv);
22543 }}}}}m68k_incpc(4);
22544 return 18;
22545 }
CPUFUNC(op_d0f8_4)22546 unsigned long CPUFUNC(op_d0f8_4)(uint32_t opcode) /* ADDA */
22547 {
22548 	uint32_t dstreg = (opcode >> 9) & 7;
22549 	OpcodeFamily = 12; CurrentInstrCycles = 16;
22550 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
22551 {	int16_t src = m68k_read_memory_16(srca);
22552 {	int32_t dst = m68k_areg(regs, dstreg);
22553 {	uint32_t newv = dst + src;
22554 	m68k_areg(regs, dstreg) = (newv);
22555 }}}}}m68k_incpc(4);
22556 return 16;
22557 }
CPUFUNC(op_d0f9_4)22558 unsigned long CPUFUNC(op_d0f9_4)(uint32_t opcode) /* ADDA */
22559 {
22560 	uint32_t dstreg = (opcode >> 9) & 7;
22561 	OpcodeFamily = 12; CurrentInstrCycles = 20;
22562 {{	uint32_t srca = get_ilong(2);
22563 {	int16_t src = m68k_read_memory_16(srca);
22564 {	int32_t dst = m68k_areg(regs, dstreg);
22565 {	uint32_t newv = dst + src;
22566 	m68k_areg(regs, dstreg) = (newv);
22567 }}}}}m68k_incpc(6);
22568 return 20;
22569 }
CPUFUNC(op_d0fa_4)22570 unsigned long CPUFUNC(op_d0fa_4)(uint32_t opcode) /* ADDA */
22571 {
22572 	uint32_t dstreg = (opcode >> 9) & 7;
22573 	OpcodeFamily = 12; CurrentInstrCycles = 16;
22574 {{	uint32_t srca = m68k_getpc () + 2;
22575 	srca += (int32_t)(int16_t)get_iword(2);
22576 {	int16_t src = m68k_read_memory_16(srca);
22577 {	int32_t dst = m68k_areg(regs, dstreg);
22578 {	uint32_t newv = dst + src;
22579 	m68k_areg(regs, dstreg) = (newv);
22580 }}}}}m68k_incpc(4);
22581 return 16;
22582 }
CPUFUNC(op_d0fb_4)22583 unsigned long CPUFUNC(op_d0fb_4)(uint32_t opcode) /* ADDA */
22584 {
22585 	uint32_t dstreg = (opcode >> 9) & 7;
22586 	OpcodeFamily = 12; CurrentInstrCycles = 18;
22587 {{	uint32_t tmppc = m68k_getpc() + 2;
22588 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
22589 	BusCyclePenalty += 2;
22590 {	int16_t src = m68k_read_memory_16(srca);
22591 {	int32_t dst = m68k_areg(regs, dstreg);
22592 {	uint32_t newv = dst + src;
22593 	m68k_areg(regs, dstreg) = (newv);
22594 }}}}}m68k_incpc(4);
22595 return 18;
22596 }
CPUFUNC(op_d0fc_4)22597 unsigned long CPUFUNC(op_d0fc_4)(uint32_t opcode) /* ADDA */
22598 {
22599 	uint32_t dstreg = (opcode >> 9) & 7;
22600 	OpcodeFamily = 12; CurrentInstrCycles = 12;
22601 {{	int16_t src = get_iword(2);
22602 {	int32_t dst = m68k_areg(regs, dstreg);
22603 {	uint32_t newv = dst + src;
22604 	m68k_areg(regs, dstreg) = (newv);
22605 }}}}m68k_incpc(4);
22606 return 12;
22607 }
CPUFUNC(op_d100_4)22608 unsigned long CPUFUNC(op_d100_4)(uint32_t opcode) /* ADDX */
22609 {
22610 	uint32_t srcreg = (opcode & 7);
22611 	uint32_t dstreg = (opcode >> 9) & 7;
22612 	OpcodeFamily = 13; CurrentInstrCycles = 4;
22613 {{	int8_t src = m68k_dreg(regs, srcreg);
22614 {	int8_t dst = m68k_dreg(regs, dstreg);
22615 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
22616 {	int flgs = ((int8_t)(src)) < 0;
22617 	int flgo = ((int8_t)(dst)) < 0;
22618 	int flgn = ((int8_t)(newv)) < 0;
22619 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22620 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
22621 	COPY_CARRY;
22622 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
22623 	SET_NFLG (((int8_t)(newv)) < 0);
22624 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
22625 }}}}}m68k_incpc(2);
22626 return 4;
22627 }
CPUFUNC(op_d108_4)22628 unsigned long CPUFUNC(op_d108_4)(uint32_t opcode) /* ADDX */
22629 {
22630 	uint32_t srcreg = (opcode & 7);
22631 	uint32_t dstreg = (opcode >> 9) & 7;
22632 	OpcodeFamily = 13; CurrentInstrCycles = 18;
22633 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
22634 {	int8_t src = m68k_read_memory_8(srca);
22635 	m68k_areg (regs, srcreg) = srca;
22636 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
22637 {	int8_t dst = m68k_read_memory_8(dsta);
22638 	m68k_areg (regs, dstreg) = dsta;
22639 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
22640 {	int flgs = ((int8_t)(src)) < 0;
22641 	int flgo = ((int8_t)(dst)) < 0;
22642 	int flgn = ((int8_t)(newv)) < 0;
22643 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22644 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
22645 	COPY_CARRY;
22646 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
22647 	SET_NFLG (((int8_t)(newv)) < 0);
22648 	m68k_write_memory_8(dsta,newv);
22649 }}}}}}}m68k_incpc(2);
22650 return 18;
22651 }
CPUFUNC(op_d110_4)22652 unsigned long CPUFUNC(op_d110_4)(uint32_t opcode) /* ADD */
22653 {
22654 	uint32_t srcreg = ((opcode >> 9) & 7);
22655 	uint32_t dstreg = opcode & 7;
22656 	OpcodeFamily = 11; CurrentInstrCycles = 12;
22657 {{	int8_t src = m68k_dreg(regs, srcreg);
22658 {	uint32_t dsta = m68k_areg(regs, dstreg);
22659 {	int8_t dst = m68k_read_memory_8(dsta);
22660 {	refill_prefetch (m68k_getpc(), 2);
22661 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
22662 {	int flgs = ((int8_t)(src)) < 0;
22663 	int flgo = ((int8_t)(dst)) < 0;
22664 	int flgn = ((int8_t)(newv)) < 0;
22665 	SET_ZFLG (((int8_t)(newv)) == 0);
22666 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22667 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
22668 	COPY_CARRY;
22669 	SET_NFLG (flgn != 0);
22670 	m68k_write_memory_8(dsta,newv);
22671 }}}}}}}m68k_incpc(2);
22672 return 12;
22673 }
CPUFUNC(op_d118_4)22674 unsigned long CPUFUNC(op_d118_4)(uint32_t opcode) /* ADD */
22675 {
22676 	uint32_t srcreg = ((opcode >> 9) & 7);
22677 	uint32_t dstreg = opcode & 7;
22678 	OpcodeFamily = 11; CurrentInstrCycles = 12;
22679 {{	int8_t src = m68k_dreg(regs, srcreg);
22680 {	uint32_t dsta = m68k_areg(regs, dstreg);
22681 {	int8_t dst = m68k_read_memory_8(dsta);
22682 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
22683 {	refill_prefetch (m68k_getpc(), 2);
22684 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
22685 {	int flgs = ((int8_t)(src)) < 0;
22686 	int flgo = ((int8_t)(dst)) < 0;
22687 	int flgn = ((int8_t)(newv)) < 0;
22688 	SET_ZFLG (((int8_t)(newv)) == 0);
22689 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22690 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
22691 	COPY_CARRY;
22692 	SET_NFLG (flgn != 0);
22693 	m68k_write_memory_8(dsta,newv);
22694 }}}}}}}m68k_incpc(2);
22695 return 12;
22696 }
CPUFUNC(op_d120_4)22697 unsigned long CPUFUNC(op_d120_4)(uint32_t opcode) /* ADD */
22698 {
22699 	uint32_t srcreg = ((opcode >> 9) & 7);
22700 	uint32_t dstreg = opcode & 7;
22701 	OpcodeFamily = 11; CurrentInstrCycles = 14;
22702 {{	int8_t src = m68k_dreg(regs, srcreg);
22703 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
22704 {	int8_t dst = m68k_read_memory_8(dsta);
22705 	m68k_areg (regs, dstreg) = dsta;
22706 {	refill_prefetch (m68k_getpc(), 2);
22707 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
22708 {	int flgs = ((int8_t)(src)) < 0;
22709 	int flgo = ((int8_t)(dst)) < 0;
22710 	int flgn = ((int8_t)(newv)) < 0;
22711 	SET_ZFLG (((int8_t)(newv)) == 0);
22712 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22713 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
22714 	COPY_CARRY;
22715 	SET_NFLG (flgn != 0);
22716 	m68k_write_memory_8(dsta,newv);
22717 }}}}}}}m68k_incpc(2);
22718 return 14;
22719 }
CPUFUNC(op_d128_4)22720 unsigned long CPUFUNC(op_d128_4)(uint32_t opcode) /* ADD */
22721 {
22722 	uint32_t srcreg = ((opcode >> 9) & 7);
22723 	uint32_t dstreg = opcode & 7;
22724 	OpcodeFamily = 11; CurrentInstrCycles = 16;
22725 {{	int8_t src = m68k_dreg(regs, srcreg);
22726 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
22727 {	int8_t dst = m68k_read_memory_8(dsta);
22728 {	refill_prefetch (m68k_getpc(), 2);
22729 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
22730 {	int flgs = ((int8_t)(src)) < 0;
22731 	int flgo = ((int8_t)(dst)) < 0;
22732 	int flgn = ((int8_t)(newv)) < 0;
22733 	SET_ZFLG (((int8_t)(newv)) == 0);
22734 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22735 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
22736 	COPY_CARRY;
22737 	SET_NFLG (flgn != 0);
22738 	m68k_write_memory_8(dsta,newv);
22739 }}}}}}}m68k_incpc(4);
22740 return 16;
22741 }
CPUFUNC(op_d130_4)22742 unsigned long CPUFUNC(op_d130_4)(uint32_t opcode) /* ADD */
22743 {
22744 	uint32_t srcreg = ((opcode >> 9) & 7);
22745 	uint32_t dstreg = opcode & 7;
22746 	OpcodeFamily = 11; CurrentInstrCycles = 18;
22747 {{	int8_t src = m68k_dreg(regs, srcreg);
22748 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
22749 	BusCyclePenalty += 2;
22750 {	int8_t dst = m68k_read_memory_8(dsta);
22751 {	refill_prefetch (m68k_getpc(), 2);
22752 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
22753 {	int flgs = ((int8_t)(src)) < 0;
22754 	int flgo = ((int8_t)(dst)) < 0;
22755 	int flgn = ((int8_t)(newv)) < 0;
22756 	SET_ZFLG (((int8_t)(newv)) == 0);
22757 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22758 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
22759 	COPY_CARRY;
22760 	SET_NFLG (flgn != 0);
22761 	m68k_write_memory_8(dsta,newv);
22762 }}}}}}}m68k_incpc(4);
22763 return 18;
22764 }
CPUFUNC(op_d138_4)22765 unsigned long CPUFUNC(op_d138_4)(uint32_t opcode) /* ADD */
22766 {
22767 	uint32_t srcreg = ((opcode >> 9) & 7);
22768 	OpcodeFamily = 11; CurrentInstrCycles = 16;
22769 {{	int8_t src = m68k_dreg(regs, srcreg);
22770 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
22771 {	int8_t dst = m68k_read_memory_8(dsta);
22772 {	refill_prefetch (m68k_getpc(), 2);
22773 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
22774 {	int flgs = ((int8_t)(src)) < 0;
22775 	int flgo = ((int8_t)(dst)) < 0;
22776 	int flgn = ((int8_t)(newv)) < 0;
22777 	SET_ZFLG (((int8_t)(newv)) == 0);
22778 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22779 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
22780 	COPY_CARRY;
22781 	SET_NFLG (flgn != 0);
22782 	m68k_write_memory_8(dsta,newv);
22783 }}}}}}}m68k_incpc(4);
22784 return 16;
22785 }
CPUFUNC(op_d139_4)22786 unsigned long CPUFUNC(op_d139_4)(uint32_t opcode) /* ADD */
22787 {
22788 	uint32_t srcreg = ((opcode >> 9) & 7);
22789 	OpcodeFamily = 11; CurrentInstrCycles = 20;
22790 {{	int8_t src = m68k_dreg(regs, srcreg);
22791 {	uint32_t dsta = get_ilong(2);
22792 {	int8_t dst = m68k_read_memory_8(dsta);
22793 {	refill_prefetch (m68k_getpc(), 2);
22794 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
22795 {	int flgs = ((int8_t)(src)) < 0;
22796 	int flgo = ((int8_t)(dst)) < 0;
22797 	int flgn = ((int8_t)(newv)) < 0;
22798 	SET_ZFLG (((int8_t)(newv)) == 0);
22799 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22800 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
22801 	COPY_CARRY;
22802 	SET_NFLG (flgn != 0);
22803 	m68k_write_memory_8(dsta,newv);
22804 }}}}}}}m68k_incpc(6);
22805 return 20;
22806 }
CPUFUNC(op_d140_4)22807 unsigned long CPUFUNC(op_d140_4)(uint32_t opcode) /* ADDX */
22808 {
22809 	uint32_t srcreg = (opcode & 7);
22810 	uint32_t dstreg = (opcode >> 9) & 7;
22811 	OpcodeFamily = 13; CurrentInstrCycles = 4;
22812 {{	int16_t src = m68k_dreg(regs, srcreg);
22813 {	int16_t dst = m68k_dreg(regs, dstreg);
22814 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
22815 {	int flgs = ((int16_t)(src)) < 0;
22816 	int flgo = ((int16_t)(dst)) < 0;
22817 	int flgn = ((int16_t)(newv)) < 0;
22818 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22819 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
22820 	COPY_CARRY;
22821 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
22822 	SET_NFLG (((int16_t)(newv)) < 0);
22823 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
22824 }}}}}m68k_incpc(2);
22825 return 4;
22826 }
CPUFUNC(op_d148_4)22827 unsigned long CPUFUNC(op_d148_4)(uint32_t opcode) /* ADDX */
22828 {
22829 	uint32_t srcreg = (opcode & 7);
22830 	uint32_t dstreg = (opcode >> 9) & 7;
22831 	OpcodeFamily = 13; CurrentInstrCycles = 18;
22832 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
22833 {	int16_t src = m68k_read_memory_16(srca);
22834 	m68k_areg (regs, srcreg) = srca;
22835 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
22836 {	int16_t dst = m68k_read_memory_16(dsta);
22837 	m68k_areg (regs, dstreg) = dsta;
22838 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
22839 {	int flgs = ((int16_t)(src)) < 0;
22840 	int flgo = ((int16_t)(dst)) < 0;
22841 	int flgn = ((int16_t)(newv)) < 0;
22842 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22843 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
22844 	COPY_CARRY;
22845 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
22846 	SET_NFLG (((int16_t)(newv)) < 0);
22847 	m68k_write_memory_16(dsta,newv);
22848 }}}}}}}m68k_incpc(2);
22849 return 18;
22850 }
CPUFUNC(op_d150_4)22851 unsigned long CPUFUNC(op_d150_4)(uint32_t opcode) /* ADD */
22852 {
22853 	uint32_t srcreg = ((opcode >> 9) & 7);
22854 	uint32_t dstreg = opcode & 7;
22855 	OpcodeFamily = 11; CurrentInstrCycles = 12;
22856 {{	int16_t src = m68k_dreg(regs, srcreg);
22857 {	uint32_t dsta = m68k_areg(regs, dstreg);
22858 {	int16_t dst = m68k_read_memory_16(dsta);
22859 {	refill_prefetch (m68k_getpc(), 2);
22860 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22861 {	int flgs = ((int16_t)(src)) < 0;
22862 	int flgo = ((int16_t)(dst)) < 0;
22863 	int flgn = ((int16_t)(newv)) < 0;
22864 	SET_ZFLG (((int16_t)(newv)) == 0);
22865 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22866 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22867 	COPY_CARRY;
22868 	SET_NFLG (flgn != 0);
22869 	m68k_write_memory_16(dsta,newv);
22870 }}}}}}}m68k_incpc(2);
22871 return 12;
22872 }
CPUFUNC(op_d158_4)22873 unsigned long CPUFUNC(op_d158_4)(uint32_t opcode) /* ADD */
22874 {
22875 	uint32_t srcreg = ((opcode >> 9) & 7);
22876 	uint32_t dstreg = opcode & 7;
22877 	OpcodeFamily = 11; CurrentInstrCycles = 12;
22878 {{	int16_t src = m68k_dreg(regs, srcreg);
22879 {	uint32_t dsta = m68k_areg(regs, dstreg);
22880 {	int16_t dst = m68k_read_memory_16(dsta);
22881 	m68k_areg(regs, dstreg) += 2;
22882 {	refill_prefetch (m68k_getpc(), 2);
22883 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22884 {	int flgs = ((int16_t)(src)) < 0;
22885 	int flgo = ((int16_t)(dst)) < 0;
22886 	int flgn = ((int16_t)(newv)) < 0;
22887 	SET_ZFLG (((int16_t)(newv)) == 0);
22888 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22889 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22890 	COPY_CARRY;
22891 	SET_NFLG (flgn != 0);
22892 	m68k_write_memory_16(dsta,newv);
22893 }}}}}}}m68k_incpc(2);
22894 return 12;
22895 }
CPUFUNC(op_d160_4)22896 unsigned long CPUFUNC(op_d160_4)(uint32_t opcode) /* ADD */
22897 {
22898 	uint32_t srcreg = ((opcode >> 9) & 7);
22899 	uint32_t dstreg = opcode & 7;
22900 	OpcodeFamily = 11; CurrentInstrCycles = 14;
22901 {{	int16_t src = m68k_dreg(regs, srcreg);
22902 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
22903 {	int16_t dst = m68k_read_memory_16(dsta);
22904 	m68k_areg (regs, dstreg) = dsta;
22905 {	refill_prefetch (m68k_getpc(), 2);
22906 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22907 {	int flgs = ((int16_t)(src)) < 0;
22908 	int flgo = ((int16_t)(dst)) < 0;
22909 	int flgn = ((int16_t)(newv)) < 0;
22910 	SET_ZFLG (((int16_t)(newv)) == 0);
22911 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22912 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22913 	COPY_CARRY;
22914 	SET_NFLG (flgn != 0);
22915 	m68k_write_memory_16(dsta,newv);
22916 }}}}}}}m68k_incpc(2);
22917 return 14;
22918 }
CPUFUNC(op_d168_4)22919 unsigned long CPUFUNC(op_d168_4)(uint32_t opcode) /* ADD */
22920 {
22921 	uint32_t srcreg = ((opcode >> 9) & 7);
22922 	uint32_t dstreg = opcode & 7;
22923 	OpcodeFamily = 11; CurrentInstrCycles = 16;
22924 {{	int16_t src = m68k_dreg(regs, srcreg);
22925 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
22926 {	int16_t dst = m68k_read_memory_16(dsta);
22927 {	refill_prefetch (m68k_getpc(), 2);
22928 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22929 {	int flgs = ((int16_t)(src)) < 0;
22930 	int flgo = ((int16_t)(dst)) < 0;
22931 	int flgn = ((int16_t)(newv)) < 0;
22932 	SET_ZFLG (((int16_t)(newv)) == 0);
22933 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22934 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22935 	COPY_CARRY;
22936 	SET_NFLG (flgn != 0);
22937 	m68k_write_memory_16(dsta,newv);
22938 }}}}}}}m68k_incpc(4);
22939 return 16;
22940 }
CPUFUNC(op_d170_4)22941 unsigned long CPUFUNC(op_d170_4)(uint32_t opcode) /* ADD */
22942 {
22943 	uint32_t srcreg = ((opcode >> 9) & 7);
22944 	uint32_t dstreg = opcode & 7;
22945 	OpcodeFamily = 11; CurrentInstrCycles = 18;
22946 {{	int16_t src = m68k_dreg(regs, srcreg);
22947 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
22948 	BusCyclePenalty += 2;
22949 {	int16_t dst = m68k_read_memory_16(dsta);
22950 {	refill_prefetch (m68k_getpc(), 2);
22951 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22952 {	int flgs = ((int16_t)(src)) < 0;
22953 	int flgo = ((int16_t)(dst)) < 0;
22954 	int flgn = ((int16_t)(newv)) < 0;
22955 	SET_ZFLG (((int16_t)(newv)) == 0);
22956 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22957 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22958 	COPY_CARRY;
22959 	SET_NFLG (flgn != 0);
22960 	m68k_write_memory_16(dsta,newv);
22961 }}}}}}}m68k_incpc(4);
22962 return 18;
22963 }
CPUFUNC(op_d178_4)22964 unsigned long CPUFUNC(op_d178_4)(uint32_t opcode) /* ADD */
22965 {
22966 	uint32_t srcreg = ((opcode >> 9) & 7);
22967 	OpcodeFamily = 11; CurrentInstrCycles = 16;
22968 {{	int16_t src = m68k_dreg(regs, srcreg);
22969 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
22970 {	int16_t dst = m68k_read_memory_16(dsta);
22971 {	refill_prefetch (m68k_getpc(), 2);
22972 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22973 {	int flgs = ((int16_t)(src)) < 0;
22974 	int flgo = ((int16_t)(dst)) < 0;
22975 	int flgn = ((int16_t)(newv)) < 0;
22976 	SET_ZFLG (((int16_t)(newv)) == 0);
22977 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22978 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
22979 	COPY_CARRY;
22980 	SET_NFLG (flgn != 0);
22981 	m68k_write_memory_16(dsta,newv);
22982 }}}}}}}m68k_incpc(4);
22983 return 16;
22984 }
CPUFUNC(op_d179_4)22985 unsigned long CPUFUNC(op_d179_4)(uint32_t opcode) /* ADD */
22986 {
22987 	uint32_t srcreg = ((opcode >> 9) & 7);
22988 	OpcodeFamily = 11; CurrentInstrCycles = 20;
22989 {{	int16_t src = m68k_dreg(regs, srcreg);
22990 {	uint32_t dsta = get_ilong(2);
22991 {	int16_t dst = m68k_read_memory_16(dsta);
22992 {	refill_prefetch (m68k_getpc(), 2);
22993 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
22994 {	int flgs = ((int16_t)(src)) < 0;
22995 	int flgo = ((int16_t)(dst)) < 0;
22996 	int flgn = ((int16_t)(newv)) < 0;
22997 	SET_ZFLG (((int16_t)(newv)) == 0);
22998 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
22999 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
23000 	COPY_CARRY;
23001 	SET_NFLG (flgn != 0);
23002 	m68k_write_memory_16(dsta,newv);
23003 }}}}}}}m68k_incpc(6);
23004 return 20;
23005 }
CPUFUNC(op_d180_4)23006 unsigned long CPUFUNC(op_d180_4)(uint32_t opcode) /* ADDX */
23007 {
23008 	uint32_t srcreg = (opcode & 7);
23009 	uint32_t dstreg = (opcode >> 9) & 7;
23010 	OpcodeFamily = 13; CurrentInstrCycles = 8;
23011 {{	int32_t src = m68k_dreg(regs, srcreg);
23012 {	int32_t dst = m68k_dreg(regs, dstreg);
23013 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
23014 {	int flgs = ((int32_t)(src)) < 0;
23015 	int flgo = ((int32_t)(dst)) < 0;
23016 	int flgn = ((int32_t)(newv)) < 0;
23017 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23018 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
23019 	COPY_CARRY;
23020 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
23021 	SET_NFLG (((int32_t)(newv)) < 0);
23022 	m68k_dreg(regs, dstreg) = (newv);
23023 }}}}}m68k_incpc(2);
23024 return 8;
23025 }
CPUFUNC(op_d188_4)23026 unsigned long CPUFUNC(op_d188_4)(uint32_t opcode) /* ADDX */
23027 {
23028 	uint32_t srcreg = (opcode & 7);
23029 	uint32_t dstreg = (opcode >> 9) & 7;
23030 	OpcodeFamily = 13; CurrentInstrCycles = 30;
23031 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
23032 {	int32_t src = m68k_read_memory_32(srca);
23033 	m68k_areg (regs, srcreg) = srca;
23034 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
23035 {	int32_t dst = m68k_read_memory_32(dsta);
23036 	m68k_areg (regs, dstreg) = dsta;
23037 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
23038 {	int flgs = ((int32_t)(src)) < 0;
23039 	int flgo = ((int32_t)(dst)) < 0;
23040 	int flgn = ((int32_t)(newv)) < 0;
23041 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23042 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
23043 	COPY_CARRY;
23044 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
23045 	SET_NFLG (((int32_t)(newv)) < 0);
23046 	m68k_write_memory_32(dsta,newv);
23047 }}}}}}}m68k_incpc(2);
23048 return 30;
23049 }
CPUFUNC(op_d190_4)23050 unsigned long CPUFUNC(op_d190_4)(uint32_t opcode) /* ADD */
23051 {
23052 	uint32_t srcreg = ((opcode >> 9) & 7);
23053 	uint32_t dstreg = opcode & 7;
23054 	OpcodeFamily = 11; CurrentInstrCycles = 20;
23055 {{	int32_t src = m68k_dreg(regs, srcreg);
23056 {	uint32_t dsta = m68k_areg(regs, dstreg);
23057 {	int32_t dst = m68k_read_memory_32(dsta);
23058 {	refill_prefetch (m68k_getpc(), 2);
23059 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
23060 {	int flgs = ((int32_t)(src)) < 0;
23061 	int flgo = ((int32_t)(dst)) < 0;
23062 	int flgn = ((int32_t)(newv)) < 0;
23063 	SET_ZFLG (((int32_t)(newv)) == 0);
23064 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23065 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
23066 	COPY_CARRY;
23067 	SET_NFLG (flgn != 0);
23068 	m68k_write_memory_32(dsta,newv);
23069 }}}}}}}m68k_incpc(2);
23070 return 20;
23071 }
CPUFUNC(op_d198_4)23072 unsigned long CPUFUNC(op_d198_4)(uint32_t opcode) /* ADD */
23073 {
23074 	uint32_t srcreg = ((opcode >> 9) & 7);
23075 	uint32_t dstreg = opcode & 7;
23076 	OpcodeFamily = 11; CurrentInstrCycles = 20;
23077 {{	int32_t src = m68k_dreg(regs, srcreg);
23078 {	uint32_t dsta = m68k_areg(regs, dstreg);
23079 {	int32_t dst = m68k_read_memory_32(dsta);
23080 	m68k_areg(regs, dstreg) += 4;
23081 {	refill_prefetch (m68k_getpc(), 2);
23082 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
23083 {	int flgs = ((int32_t)(src)) < 0;
23084 	int flgo = ((int32_t)(dst)) < 0;
23085 	int flgn = ((int32_t)(newv)) < 0;
23086 	SET_ZFLG (((int32_t)(newv)) == 0);
23087 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23088 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
23089 	COPY_CARRY;
23090 	SET_NFLG (flgn != 0);
23091 	m68k_write_memory_32(dsta,newv);
23092 }}}}}}}m68k_incpc(2);
23093 return 20;
23094 }
CPUFUNC(op_d1a0_4)23095 unsigned long CPUFUNC(op_d1a0_4)(uint32_t opcode) /* ADD */
23096 {
23097 	uint32_t srcreg = ((opcode >> 9) & 7);
23098 	uint32_t dstreg = opcode & 7;
23099 	OpcodeFamily = 11; CurrentInstrCycles = 22;
23100 {{	int32_t src = m68k_dreg(regs, srcreg);
23101 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
23102 {	int32_t dst = m68k_read_memory_32(dsta);
23103 	m68k_areg (regs, dstreg) = dsta;
23104 {	refill_prefetch (m68k_getpc(), 2);
23105 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
23106 {	int flgs = ((int32_t)(src)) < 0;
23107 	int flgo = ((int32_t)(dst)) < 0;
23108 	int flgn = ((int32_t)(newv)) < 0;
23109 	SET_ZFLG (((int32_t)(newv)) == 0);
23110 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23111 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
23112 	COPY_CARRY;
23113 	SET_NFLG (flgn != 0);
23114 	m68k_write_memory_32(dsta,newv);
23115 }}}}}}}m68k_incpc(2);
23116 return 22;
23117 }
CPUFUNC(op_d1a8_4)23118 unsigned long CPUFUNC(op_d1a8_4)(uint32_t opcode) /* ADD */
23119 {
23120 	uint32_t srcreg = ((opcode >> 9) & 7);
23121 	uint32_t dstreg = opcode & 7;
23122 	OpcodeFamily = 11; CurrentInstrCycles = 24;
23123 {{	int32_t src = m68k_dreg(regs, srcreg);
23124 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword(2);
23125 {	int32_t dst = m68k_read_memory_32(dsta);
23126 {	refill_prefetch (m68k_getpc(), 2);
23127 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
23128 {	int flgs = ((int32_t)(src)) < 0;
23129 	int flgo = ((int32_t)(dst)) < 0;
23130 	int flgn = ((int32_t)(newv)) < 0;
23131 	SET_ZFLG (((int32_t)(newv)) == 0);
23132 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23133 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
23134 	COPY_CARRY;
23135 	SET_NFLG (flgn != 0);
23136 	m68k_write_memory_32(dsta,newv);
23137 }}}}}}}m68k_incpc(4);
23138 return 24;
23139 }
CPUFUNC(op_d1b0_4)23140 unsigned long CPUFUNC(op_d1b0_4)(uint32_t opcode) /* ADD */
23141 {
23142 	uint32_t srcreg = ((opcode >> 9) & 7);
23143 	uint32_t dstreg = opcode & 7;
23144 	OpcodeFamily = 11; CurrentInstrCycles = 26;
23145 {{	int32_t src = m68k_dreg(regs, srcreg);
23146 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword(2));
23147 	BusCyclePenalty += 2;
23148 {	int32_t dst = m68k_read_memory_32(dsta);
23149 {	refill_prefetch (m68k_getpc(), 2);
23150 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
23151 {	int flgs = ((int32_t)(src)) < 0;
23152 	int flgo = ((int32_t)(dst)) < 0;
23153 	int flgn = ((int32_t)(newv)) < 0;
23154 	SET_ZFLG (((int32_t)(newv)) == 0);
23155 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23156 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
23157 	COPY_CARRY;
23158 	SET_NFLG (flgn != 0);
23159 	m68k_write_memory_32(dsta,newv);
23160 }}}}}}}m68k_incpc(4);
23161 return 26;
23162 }
CPUFUNC(op_d1b8_4)23163 unsigned long CPUFUNC(op_d1b8_4)(uint32_t opcode) /* ADD */
23164 {
23165 	uint32_t srcreg = ((opcode >> 9) & 7);
23166 	OpcodeFamily = 11; CurrentInstrCycles = 24;
23167 {{	int32_t src = m68k_dreg(regs, srcreg);
23168 {	uint32_t dsta = (int32_t)(int16_t)get_iword(2);
23169 {	int32_t dst = m68k_read_memory_32(dsta);
23170 {	refill_prefetch (m68k_getpc(), 2);
23171 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
23172 {	int flgs = ((int32_t)(src)) < 0;
23173 	int flgo = ((int32_t)(dst)) < 0;
23174 	int flgn = ((int32_t)(newv)) < 0;
23175 	SET_ZFLG (((int32_t)(newv)) == 0);
23176 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23177 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
23178 	COPY_CARRY;
23179 	SET_NFLG (flgn != 0);
23180 	m68k_write_memory_32(dsta,newv);
23181 }}}}}}}m68k_incpc(4);
23182 return 24;
23183 }
CPUFUNC(op_d1b9_4)23184 unsigned long CPUFUNC(op_d1b9_4)(uint32_t opcode) /* ADD */
23185 {
23186 	uint32_t srcreg = ((opcode >> 9) & 7);
23187 	OpcodeFamily = 11; CurrentInstrCycles = 28;
23188 {{	int32_t src = m68k_dreg(regs, srcreg);
23189 {	uint32_t dsta = get_ilong(2);
23190 {	int32_t dst = m68k_read_memory_32(dsta);
23191 {	refill_prefetch (m68k_getpc(), 2);
23192 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
23193 {	int flgs = ((int32_t)(src)) < 0;
23194 	int flgo = ((int32_t)(dst)) < 0;
23195 	int flgn = ((int32_t)(newv)) < 0;
23196 	SET_ZFLG (((int32_t)(newv)) == 0);
23197 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
23198 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
23199 	COPY_CARRY;
23200 	SET_NFLG (flgn != 0);
23201 	m68k_write_memory_32(dsta,newv);
23202 }}}}}}}m68k_incpc(6);
23203 return 28;
23204 }
CPUFUNC(op_d1c0_4)23205 unsigned long CPUFUNC(op_d1c0_4)(uint32_t opcode) /* ADDA */
23206 {
23207 	uint32_t srcreg = (opcode & 7);
23208 	uint32_t dstreg = (opcode >> 9) & 7;
23209 	OpcodeFamily = 12; CurrentInstrCycles = 8;
23210 {{	int32_t src = m68k_dreg(regs, srcreg);
23211 {	int32_t dst = m68k_areg(regs, dstreg);
23212 {	uint32_t newv = dst + src;
23213 	m68k_areg(regs, dstreg) = (newv);
23214 }}}}m68k_incpc(2);
23215 return 8;
23216 }
CPUFUNC(op_d1c8_4)23217 unsigned long CPUFUNC(op_d1c8_4)(uint32_t opcode) /* ADDA */
23218 {
23219 	uint32_t srcreg = (opcode & 7);
23220 	uint32_t dstreg = (opcode >> 9) & 7;
23221 	OpcodeFamily = 12; CurrentInstrCycles = 8;
23222 {{	int32_t src = m68k_areg(regs, srcreg);
23223 {	int32_t dst = m68k_areg(regs, dstreg);
23224 {	uint32_t newv = dst + src;
23225 	m68k_areg(regs, dstreg) = (newv);
23226 }}}}m68k_incpc(2);
23227 return 8;
23228 }
CPUFUNC(op_d1d0_4)23229 unsigned long CPUFUNC(op_d1d0_4)(uint32_t opcode) /* ADDA */
23230 {
23231 	uint32_t srcreg = (opcode & 7);
23232 	uint32_t dstreg = (opcode >> 9) & 7;
23233 	OpcodeFamily = 12; CurrentInstrCycles = 14;
23234 {{	uint32_t srca = m68k_areg(regs, srcreg);
23235 {	int32_t src = m68k_read_memory_32(srca);
23236 {	int32_t dst = m68k_areg(regs, dstreg);
23237 {	uint32_t newv = dst + src;
23238 	m68k_areg(regs, dstreg) = (newv);
23239 }}}}}m68k_incpc(2);
23240 return 14;
23241 }
23242 #endif
23243 
23244 #ifdef PART_8
CPUFUNC(op_d1d8_4)23245 unsigned long CPUFUNC(op_d1d8_4)(uint32_t opcode) /* ADDA */
23246 {
23247 	uint32_t srcreg = (opcode & 7);
23248 	uint32_t dstreg = (opcode >> 9) & 7;
23249 	OpcodeFamily = 12; CurrentInstrCycles = 14;
23250 {{	uint32_t srca = m68k_areg(regs, srcreg);
23251 {	int32_t src = m68k_read_memory_32(srca);
23252 	m68k_areg(regs, srcreg) += 4;
23253 {	int32_t dst = m68k_areg(regs, dstreg);
23254 {	uint32_t newv = dst + src;
23255 	m68k_areg(regs, dstreg) = (newv);
23256 }}}}}m68k_incpc(2);
23257 return 14;
23258 }
CPUFUNC(op_d1e0_4)23259 unsigned long CPUFUNC(op_d1e0_4)(uint32_t opcode) /* ADDA */
23260 {
23261 	uint32_t srcreg = (opcode & 7);
23262 	uint32_t dstreg = (opcode >> 9) & 7;
23263 	OpcodeFamily = 12; CurrentInstrCycles = 16;
23264 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
23265 {	int32_t src = m68k_read_memory_32(srca);
23266 	m68k_areg (regs, srcreg) = srca;
23267 {	int32_t dst = m68k_areg(regs, dstreg);
23268 {	uint32_t newv = dst + src;
23269 	m68k_areg(regs, dstreg) = (newv);
23270 }}}}}m68k_incpc(2);
23271 return 16;
23272 }
CPUFUNC(op_d1e8_4)23273 unsigned long CPUFUNC(op_d1e8_4)(uint32_t opcode) /* ADDA */
23274 {
23275 	uint32_t srcreg = (opcode & 7);
23276 	uint32_t dstreg = (opcode >> 9) & 7;
23277 	OpcodeFamily = 12; CurrentInstrCycles = 18;
23278 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
23279 {	int32_t src = m68k_read_memory_32(srca);
23280 {	int32_t dst = m68k_areg(regs, dstreg);
23281 {	uint32_t newv = dst + src;
23282 	m68k_areg(regs, dstreg) = (newv);
23283 }}}}}m68k_incpc(4);
23284 return 18;
23285 }
CPUFUNC(op_d1f0_4)23286 unsigned long CPUFUNC(op_d1f0_4)(uint32_t opcode) /* ADDA */
23287 {
23288 	uint32_t srcreg = (opcode & 7);
23289 	uint32_t dstreg = (opcode >> 9) & 7;
23290 	OpcodeFamily = 12; CurrentInstrCycles = 20;
23291 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
23292 	BusCyclePenalty += 2;
23293 {	int32_t src = m68k_read_memory_32(srca);
23294 {	int32_t dst = m68k_areg(regs, dstreg);
23295 {	uint32_t newv = dst + src;
23296 	m68k_areg(regs, dstreg) = (newv);
23297 }}}}}m68k_incpc(4);
23298 return 20;
23299 }
CPUFUNC(op_d1f8_4)23300 unsigned long CPUFUNC(op_d1f8_4)(uint32_t opcode) /* ADDA */
23301 {
23302 	uint32_t dstreg = (opcode >> 9) & 7;
23303 	OpcodeFamily = 12; CurrentInstrCycles = 18;
23304 {{	uint32_t srca = (int32_t)(int16_t)get_iword(2);
23305 {	int32_t src = m68k_read_memory_32(srca);
23306 {	int32_t dst = m68k_areg(regs, dstreg);
23307 {	uint32_t newv = dst + src;
23308 	m68k_areg(regs, dstreg) = (newv);
23309 }}}}}m68k_incpc(4);
23310 return 18;
23311 }
CPUFUNC(op_d1f9_4)23312 unsigned long CPUFUNC(op_d1f9_4)(uint32_t opcode) /* ADDA */
23313 {
23314 	uint32_t dstreg = (opcode >> 9) & 7;
23315 	OpcodeFamily = 12; CurrentInstrCycles = 22;
23316 {{	uint32_t srca = get_ilong(2);
23317 {	int32_t src = m68k_read_memory_32(srca);
23318 {	int32_t dst = m68k_areg(regs, dstreg);
23319 {	uint32_t newv = dst + src;
23320 	m68k_areg(regs, dstreg) = (newv);
23321 }}}}}m68k_incpc(6);
23322 return 22;
23323 }
CPUFUNC(op_d1fa_4)23324 unsigned long CPUFUNC(op_d1fa_4)(uint32_t opcode) /* ADDA */
23325 {
23326 	uint32_t dstreg = (opcode >> 9) & 7;
23327 	OpcodeFamily = 12; CurrentInstrCycles = 18;
23328 {{	uint32_t srca = m68k_getpc () + 2;
23329 	srca += (int32_t)(int16_t)get_iword(2);
23330 {	int32_t src = m68k_read_memory_32(srca);
23331 {	int32_t dst = m68k_areg(regs, dstreg);
23332 {	uint32_t newv = dst + src;
23333 	m68k_areg(regs, dstreg) = (newv);
23334 }}}}}m68k_incpc(4);
23335 return 18;
23336 }
CPUFUNC(op_d1fb_4)23337 unsigned long CPUFUNC(op_d1fb_4)(uint32_t opcode) /* ADDA */
23338 {
23339 	uint32_t dstreg = (opcode >> 9) & 7;
23340 	OpcodeFamily = 12; CurrentInstrCycles = 20;
23341 {{	uint32_t tmppc = m68k_getpc() + 2;
23342 	uint32_t srca = get_disp_ea_000(tmppc, get_iword(2));
23343 	BusCyclePenalty += 2;
23344 {	int32_t src = m68k_read_memory_32(srca);
23345 {	int32_t dst = m68k_areg(regs, dstreg);
23346 {	uint32_t newv = dst + src;
23347 	m68k_areg(regs, dstreg) = (newv);
23348 }}}}}m68k_incpc(4);
23349 return 20;
23350 }
CPUFUNC(op_d1fc_4)23351 unsigned long CPUFUNC(op_d1fc_4)(uint32_t opcode) /* ADDA */
23352 {
23353 	uint32_t dstreg = (opcode >> 9) & 7;
23354 	OpcodeFamily = 12; CurrentInstrCycles = 16;
23355 {{	int32_t src = get_ilong(2);
23356 {	int32_t dst = m68k_areg(regs, dstreg);
23357 {	uint32_t newv = dst + src;
23358 	m68k_areg(regs, dstreg) = (newv);
23359 }}}}m68k_incpc(6);
23360 return 16;
23361 }
CPUFUNC(op_e000_4)23362 unsigned long CPUFUNC(op_e000_4)(uint32_t opcode) /* ASR */
23363 {
23364 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23365 	uint32_t dstreg = opcode & 7;
23366 	unsigned int retcycles = 0;
23367 	OpcodeFamily = 64; CurrentInstrCycles = 4;
23368 {{	uint32_t cnt = srcreg;
23369 {	int8_t data = m68k_dreg(regs, dstreg);
23370 {	uint32_t val = (uint8_t)data;
23371 	uint32_t sign = (0x80 & val) >> 7;
23372 	cnt &= 63;
23373 	retcycles = cnt;
23374 	CLEAR_CZNV;
23375 	if (cnt >= 8) {
23376 		val = 0xff & (uint32_t)-sign;
23377 		SET_CFLG (sign);
23378 	COPY_CARRY;
23379 	} else {
23380 		val >>= cnt - 1;
23381 		SET_CFLG (val & 1);
23382 	COPY_CARRY;
23383 		val >>= 1;
23384 		val |= (0xff << (8 - cnt)) & (uint32_t)-sign;
23385 		val &= 0xff;
23386 	}
23387 	SET_ZFLG (((int8_t)(val)) == 0);
23388 	SET_NFLG (((int8_t)(val)) < 0);
23389 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23390 }}}}m68k_incpc(2);
23391  return (6+retcycles*2);
23392 }
CPUFUNC(op_e008_4)23393 unsigned long CPUFUNC(op_e008_4)(uint32_t opcode) /* LSR */
23394 {
23395 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23396 	uint32_t dstreg = opcode & 7;
23397 	unsigned int retcycles = 0;
23398 	OpcodeFamily = 66; CurrentInstrCycles = 4;
23399 {{	uint32_t cnt = srcreg;
23400 {	int8_t data = m68k_dreg(regs, dstreg);
23401 {	uint32_t val = (uint8_t)data;
23402 	cnt &= 63;
23403 	retcycles = cnt;
23404 	CLEAR_CZNV;
23405 	if (cnt >= 8) {
23406 		SET_CFLG ((cnt == 8) & (val >> 7));
23407 	COPY_CARRY;
23408 		val = 0;
23409 	} else {
23410 		val >>= cnt - 1;
23411 		SET_CFLG (val & 1);
23412 	COPY_CARRY;
23413 		val >>= 1;
23414 	}
23415 	SET_ZFLG (((int8_t)(val)) == 0);
23416 	SET_NFLG (((int8_t)(val)) < 0);
23417 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23418 }}}}m68k_incpc(2);
23419  return (6+retcycles*2);
23420 }
CPUFUNC(op_e010_4)23421 unsigned long CPUFUNC(op_e010_4)(uint32_t opcode) /* ROXR */
23422 {
23423 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23424 	uint32_t dstreg = opcode & 7;
23425 	unsigned int retcycles = 0;
23426 	OpcodeFamily = 71; CurrentInstrCycles = 4;
23427 {{	uint32_t cnt = srcreg;
23428 {	int8_t data = m68k_dreg(regs, dstreg);
23429 {	uint32_t val = (uint8_t)data;
23430 	cnt &= 63;
23431 	retcycles = cnt;
23432 	CLEAR_CZNV;
23433 {	cnt--;
23434 	{
23435 	uint32_t carry;
23436 	uint32_t hival = (val << 1) | GET_XFLG;
23437 	hival <<= (7 - cnt);
23438 	val >>= cnt;
23439 	carry = val & 1;
23440 	val >>= 1;
23441 	val |= hival;
23442 	SET_XFLG (carry);
23443 	val &= 0xff;
23444 	} }
23445 	SET_CFLG (GET_XFLG);
23446 	SET_ZFLG (((int8_t)(val)) == 0);
23447 	SET_NFLG (((int8_t)(val)) < 0);
23448 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23449 }}}}m68k_incpc(2);
23450  return (6+retcycles*2);
23451 }
CPUFUNC(op_e018_4)23452 unsigned long CPUFUNC(op_e018_4)(uint32_t opcode) /* ROR */
23453 {
23454 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23455 	uint32_t dstreg = opcode & 7;
23456 	unsigned int retcycles = 0;
23457 	OpcodeFamily = 69; CurrentInstrCycles = 4;
23458 {{	uint32_t cnt = srcreg;
23459 {	int8_t data = m68k_dreg(regs, dstreg);
23460 {	uint32_t val = (uint8_t)data;
23461 	cnt &= 63;
23462 	retcycles = cnt;
23463 	CLEAR_CZNV;
23464 {	uint32_t hival;
23465 	cnt &= 7;
23466 	hival = val << (8 - cnt);
23467 	val >>= cnt;
23468 	val |= hival;
23469 	val &= 0xff;
23470 	SET_CFLG ((val & 0x80) >> 7);
23471 	}
23472 	SET_ZFLG (((int8_t)(val)) == 0);
23473 	SET_NFLG (((int8_t)(val)) < 0);
23474 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23475 }}}}m68k_incpc(2);
23476  return (6+retcycles*2);
23477 }
CPUFUNC(op_e020_4)23478 unsigned long CPUFUNC(op_e020_4)(uint32_t opcode) /* ASR */
23479 {
23480 	uint32_t srcreg = ((opcode >> 9) & 7);
23481 	uint32_t dstreg = opcode & 7;
23482 	unsigned int retcycles = 0;
23483 	OpcodeFamily = 64; CurrentInstrCycles = 4;
23484 {{	int8_t cnt = m68k_dreg(regs, srcreg);
23485 {	int8_t data = m68k_dreg(regs, dstreg);
23486 {	uint32_t val = (uint8_t)data;
23487 	uint32_t sign = (0x80 & val) >> 7;
23488 	cnt &= 63;
23489 	retcycles = cnt;
23490 	CLEAR_CZNV;
23491 	if (cnt >= 8) {
23492 		val = 0xff & (uint32_t)-sign;
23493 		SET_CFLG (sign);
23494 	COPY_CARRY;
23495 	} else if (cnt > 0) {
23496 		val >>= cnt - 1;
23497 		SET_CFLG (val & 1);
23498 	COPY_CARRY;
23499 		val >>= 1;
23500 		val |= (0xff << (8 - cnt)) & (uint32_t)-sign;
23501 		val &= 0xff;
23502 	}
23503 	SET_ZFLG (((int8_t)(val)) == 0);
23504 	SET_NFLG (((int8_t)(val)) < 0);
23505 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23506 }}}}m68k_incpc(2);
23507  return (6+retcycles*2);
23508 }
CPUFUNC(op_e028_4)23509 unsigned long CPUFUNC(op_e028_4)(uint32_t opcode) /* LSR */
23510 {
23511 	uint32_t srcreg = ((opcode >> 9) & 7);
23512 	uint32_t dstreg = opcode & 7;
23513 	unsigned int retcycles = 0;
23514 	OpcodeFamily = 66; CurrentInstrCycles = 4;
23515 {{	int8_t cnt = m68k_dreg(regs, srcreg);
23516 {	int8_t data = m68k_dreg(regs, dstreg);
23517 {	uint32_t val = (uint8_t)data;
23518 	cnt &= 63;
23519 	retcycles = cnt;
23520 	CLEAR_CZNV;
23521 	if (cnt >= 8) {
23522 		SET_CFLG ((cnt == 8) & (val >> 7));
23523 	COPY_CARRY;
23524 		val = 0;
23525 	} else if (cnt > 0) {
23526 		val >>= cnt - 1;
23527 		SET_CFLG (val & 1);
23528 	COPY_CARRY;
23529 		val >>= 1;
23530 	}
23531 	SET_ZFLG (((int8_t)(val)) == 0);
23532 	SET_NFLG (((int8_t)(val)) < 0);
23533 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23534 }}}}m68k_incpc(2);
23535  return (6+retcycles*2);
23536 }
CPUFUNC(op_e030_4)23537 unsigned long CPUFUNC(op_e030_4)(uint32_t opcode) /* ROXR */
23538 {
23539 	uint32_t srcreg = ((opcode >> 9) & 7);
23540 	uint32_t dstreg = opcode & 7;
23541 	unsigned int retcycles = 0;
23542 	OpcodeFamily = 71; CurrentInstrCycles = 4;
23543 {{	int8_t cnt = m68k_dreg(regs, srcreg);
23544 {	int8_t data = m68k_dreg(regs, dstreg);
23545 {	uint32_t val = (uint8_t)data;
23546 	cnt &= 63;
23547 	retcycles = cnt;
23548 	CLEAR_CZNV;
23549 	if (cnt >= 36) cnt -= 36;
23550 	if (cnt >= 18) cnt -= 18;
23551 	if (cnt >= 9) cnt -= 9;
23552 	if (cnt > 0) {
23553 	cnt--;
23554 	{
23555 	uint32_t carry;
23556 	uint32_t hival = (val << 1) | GET_XFLG;
23557 	hival <<= (7 - cnt);
23558 	val >>= cnt;
23559 	carry = val & 1;
23560 	val >>= 1;
23561 	val |= hival;
23562 	SET_XFLG (carry);
23563 	val &= 0xff;
23564 	} }
23565 	SET_CFLG (GET_XFLG);
23566 	SET_ZFLG (((int8_t)(val)) == 0);
23567 	SET_NFLG (((int8_t)(val)) < 0);
23568 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23569 }}}}m68k_incpc(2);
23570  return (6+retcycles*2);
23571 }
CPUFUNC(op_e038_4)23572 unsigned long CPUFUNC(op_e038_4)(uint32_t opcode) /* ROR */
23573 {
23574 	uint32_t srcreg = ((opcode >> 9) & 7);
23575 	uint32_t dstreg = opcode & 7;
23576 	unsigned int retcycles = 0;
23577 	OpcodeFamily = 69; CurrentInstrCycles = 4;
23578 {{	int8_t cnt = m68k_dreg(regs, srcreg);
23579 {	int8_t data = m68k_dreg(regs, dstreg);
23580 {	uint32_t val = (uint8_t)data;
23581 	cnt &= 63;
23582 	retcycles = cnt;
23583 	CLEAR_CZNV;
23584 	if (cnt > 0) {	uint32_t hival;
23585 	cnt &= 7;
23586 	hival = val << (8 - cnt);
23587 	val >>= cnt;
23588 	val |= hival;
23589 	val &= 0xff;
23590 	SET_CFLG ((val & 0x80) >> 7);
23591 	}
23592 	SET_ZFLG (((int8_t)(val)) == 0);
23593 	SET_NFLG (((int8_t)(val)) < 0);
23594 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
23595 }}}}m68k_incpc(2);
23596  return (6+retcycles*2);
23597 }
CPUFUNC(op_e040_4)23598 unsigned long CPUFUNC(op_e040_4)(uint32_t opcode) /* ASR */
23599 {
23600 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23601 	uint32_t dstreg = opcode & 7;
23602 	unsigned int retcycles = 0;
23603 	OpcodeFamily = 64; CurrentInstrCycles = 4;
23604 {{	uint32_t cnt = srcreg;
23605 {	int16_t data = m68k_dreg(regs, dstreg);
23606 {	uint32_t val = (uint16_t)data;
23607 	uint32_t sign = (0x8000 & val) >> 15;
23608 	cnt &= 63;
23609 	retcycles = cnt;
23610 	CLEAR_CZNV;
23611 	if (cnt >= 16) {
23612 		val = 0xffff & (uint32_t)-sign;
23613 		SET_CFLG (sign);
23614 	COPY_CARRY;
23615 	} else {
23616 		val >>= cnt - 1;
23617 		SET_CFLG (val & 1);
23618 	COPY_CARRY;
23619 		val >>= 1;
23620 		val |= (0xffff << (16 - cnt)) & (uint32_t)-sign;
23621 		val &= 0xffff;
23622 	}
23623 	SET_ZFLG (((int16_t)(val)) == 0);
23624 	SET_NFLG (((int16_t)(val)) < 0);
23625 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23626 }}}}m68k_incpc(2);
23627  return (6+retcycles*2);
23628 }
CPUFUNC(op_e048_4)23629 unsigned long CPUFUNC(op_e048_4)(uint32_t opcode) /* LSR */
23630 {
23631 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23632 	uint32_t dstreg = opcode & 7;
23633 	unsigned int retcycles = 0;
23634 	OpcodeFamily = 66; CurrentInstrCycles = 4;
23635 {{	uint32_t cnt = srcreg;
23636 {	int16_t data = m68k_dreg(regs, dstreg);
23637 {	uint32_t val = (uint16_t)data;
23638 	cnt &= 63;
23639 	retcycles = cnt;
23640 	CLEAR_CZNV;
23641 	if (cnt >= 16) {
23642 		SET_CFLG ((cnt == 16) & (val >> 15));
23643 	COPY_CARRY;
23644 		val = 0;
23645 	} else {
23646 		val >>= cnt - 1;
23647 		SET_CFLG (val & 1);
23648 	COPY_CARRY;
23649 		val >>= 1;
23650 	}
23651 	SET_ZFLG (((int16_t)(val)) == 0);
23652 	SET_NFLG (((int16_t)(val)) < 0);
23653 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23654 }}}}m68k_incpc(2);
23655  return (6+retcycles*2);
23656 }
CPUFUNC(op_e050_4)23657 unsigned long CPUFUNC(op_e050_4)(uint32_t opcode) /* ROXR */
23658 {
23659 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23660 	uint32_t dstreg = opcode & 7;
23661 	unsigned int retcycles = 0;
23662 	OpcodeFamily = 71; CurrentInstrCycles = 4;
23663 {{	uint32_t cnt = srcreg;
23664 {	int16_t data = m68k_dreg(regs, dstreg);
23665 {	uint32_t val = (uint16_t)data;
23666 	cnt &= 63;
23667 	retcycles = cnt;
23668 	CLEAR_CZNV;
23669 {	cnt--;
23670 	{
23671 	uint32_t carry;
23672 	uint32_t hival = (val << 1) | GET_XFLG;
23673 	hival <<= (15 - cnt);
23674 	val >>= cnt;
23675 	carry = val & 1;
23676 	val >>= 1;
23677 	val |= hival;
23678 	SET_XFLG (carry);
23679 	val &= 0xffff;
23680 	} }
23681 	SET_CFLG (GET_XFLG);
23682 	SET_ZFLG (((int16_t)(val)) == 0);
23683 	SET_NFLG (((int16_t)(val)) < 0);
23684 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23685 }}}}m68k_incpc(2);
23686  return (6+retcycles*2);
23687 }
CPUFUNC(op_e058_4)23688 unsigned long CPUFUNC(op_e058_4)(uint32_t opcode) /* ROR */
23689 {
23690 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23691 	uint32_t dstreg = opcode & 7;
23692 	unsigned int retcycles = 0;
23693 	OpcodeFamily = 69; CurrentInstrCycles = 4;
23694 {{	uint32_t cnt = srcreg;
23695 {	int16_t data = m68k_dreg(regs, dstreg);
23696 {	uint32_t val = (uint16_t)data;
23697 	cnt &= 63;
23698 	retcycles = cnt;
23699 	CLEAR_CZNV;
23700 {	uint32_t hival;
23701 	cnt &= 15;
23702 	hival = val << (16 - cnt);
23703 	val >>= cnt;
23704 	val |= hival;
23705 	val &= 0xffff;
23706 	SET_CFLG ((val & 0x8000) >> 15);
23707 	}
23708 	SET_ZFLG (((int16_t)(val)) == 0);
23709 	SET_NFLG (((int16_t)(val)) < 0);
23710 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23711 }}}}m68k_incpc(2);
23712  return (6+retcycles*2);
23713 }
CPUFUNC(op_e060_4)23714 unsigned long CPUFUNC(op_e060_4)(uint32_t opcode) /* ASR */
23715 {
23716 	uint32_t srcreg = ((opcode >> 9) & 7);
23717 	uint32_t dstreg = opcode & 7;
23718 	unsigned int retcycles = 0;
23719 	OpcodeFamily = 64; CurrentInstrCycles = 4;
23720 {{	int16_t cnt = m68k_dreg(regs, srcreg);
23721 {	int16_t data = m68k_dreg(regs, dstreg);
23722 {	uint32_t val = (uint16_t)data;
23723 	uint32_t sign = (0x8000 & val) >> 15;
23724 	cnt &= 63;
23725 	retcycles = cnt;
23726 	CLEAR_CZNV;
23727 	if (cnt >= 16) {
23728 		val = 0xffff & (uint32_t)-sign;
23729 		SET_CFLG (sign);
23730 	COPY_CARRY;
23731 	} else if (cnt > 0) {
23732 		val >>= cnt - 1;
23733 		SET_CFLG (val & 1);
23734 	COPY_CARRY;
23735 		val >>= 1;
23736 		val |= (0xffff << (16 - cnt)) & (uint32_t)-sign;
23737 		val &= 0xffff;
23738 	}
23739 	SET_ZFLG (((int16_t)(val)) == 0);
23740 	SET_NFLG (((int16_t)(val)) < 0);
23741 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23742 }}}}m68k_incpc(2);
23743  return (6+retcycles*2);
23744 }
CPUFUNC(op_e068_4)23745 unsigned long CPUFUNC(op_e068_4)(uint32_t opcode) /* LSR */
23746 {
23747 	uint32_t srcreg = ((opcode >> 9) & 7);
23748 	uint32_t dstreg = opcode & 7;
23749 	unsigned int retcycles = 0;
23750 	OpcodeFamily = 66; CurrentInstrCycles = 4;
23751 {{	int16_t cnt = m68k_dreg(regs, srcreg);
23752 {	int16_t data = m68k_dreg(regs, dstreg);
23753 {	uint32_t val = (uint16_t)data;
23754 	cnt &= 63;
23755 	retcycles = cnt;
23756 	CLEAR_CZNV;
23757 	if (cnt >= 16) {
23758 		SET_CFLG ((cnt == 16) & (val >> 15));
23759 	COPY_CARRY;
23760 		val = 0;
23761 	} else if (cnt > 0) {
23762 		val >>= cnt - 1;
23763 		SET_CFLG (val & 1);
23764 	COPY_CARRY;
23765 		val >>= 1;
23766 	}
23767 	SET_ZFLG (((int16_t)(val)) == 0);
23768 	SET_NFLG (((int16_t)(val)) < 0);
23769 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23770 }}}}m68k_incpc(2);
23771  return (6+retcycles*2);
23772 }
CPUFUNC(op_e070_4)23773 unsigned long CPUFUNC(op_e070_4)(uint32_t opcode) /* ROXR */
23774 {
23775 	uint32_t srcreg = ((opcode >> 9) & 7);
23776 	uint32_t dstreg = opcode & 7;
23777 	unsigned int retcycles = 0;
23778 	OpcodeFamily = 71; CurrentInstrCycles = 4;
23779 {{	int16_t cnt = m68k_dreg(regs, srcreg);
23780 {	int16_t data = m68k_dreg(regs, dstreg);
23781 {	uint32_t val = (uint16_t)data;
23782 	cnt &= 63;
23783 	retcycles = cnt;
23784 	CLEAR_CZNV;
23785 	if (cnt >= 34) cnt -= 34;
23786 	if (cnt >= 17) cnt -= 17;
23787 	if (cnt > 0) {
23788 	cnt--;
23789 	{
23790 	uint32_t carry;
23791 	uint32_t hival = (val << 1) | GET_XFLG;
23792 	hival <<= (15 - cnt);
23793 	val >>= cnt;
23794 	carry = val & 1;
23795 	val >>= 1;
23796 	val |= hival;
23797 	SET_XFLG (carry);
23798 	val &= 0xffff;
23799 	} }
23800 	SET_CFLG (GET_XFLG);
23801 	SET_ZFLG (((int16_t)(val)) == 0);
23802 	SET_NFLG (((int16_t)(val)) < 0);
23803 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23804 }}}}m68k_incpc(2);
23805  return (6+retcycles*2);
23806 }
CPUFUNC(op_e078_4)23807 unsigned long CPUFUNC(op_e078_4)(uint32_t opcode) /* ROR */
23808 {
23809 	uint32_t srcreg = ((opcode >> 9) & 7);
23810 	uint32_t dstreg = opcode & 7;
23811 	unsigned int retcycles = 0;
23812 	OpcodeFamily = 69; CurrentInstrCycles = 4;
23813 {{	int16_t cnt = m68k_dreg(regs, srcreg);
23814 {	int16_t data = m68k_dreg(regs, dstreg);
23815 {	uint32_t val = (uint16_t)data;
23816 	cnt &= 63;
23817 	retcycles = cnt;
23818 	CLEAR_CZNV;
23819 	if (cnt > 0) {	uint32_t hival;
23820 	cnt &= 15;
23821 	hival = val << (16 - cnt);
23822 	val >>= cnt;
23823 	val |= hival;
23824 	val &= 0xffff;
23825 	SET_CFLG ((val & 0x8000) >> 15);
23826 	}
23827 	SET_ZFLG (((int16_t)(val)) == 0);
23828 	SET_NFLG (((int16_t)(val)) < 0);
23829 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
23830 }}}}m68k_incpc(2);
23831  return (6+retcycles*2);
23832 }
CPUFUNC(op_e080_4)23833 unsigned long CPUFUNC(op_e080_4)(uint32_t opcode) /* ASR */
23834 {
23835 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23836 	uint32_t dstreg = opcode & 7;
23837 	unsigned int retcycles = 0;
23838 	OpcodeFamily = 64; CurrentInstrCycles = 4;
23839 {{	uint32_t cnt = srcreg;
23840 {	int32_t data = m68k_dreg(regs, dstreg);
23841 {	uint32_t val = data;
23842 	uint32_t sign = (0x80000000 & val) >> 31;
23843 	cnt &= 63;
23844 	retcycles = cnt;
23845 	CLEAR_CZNV;
23846 	if (cnt >= 32) {
23847 		val = 0xffffffff & (uint32_t)-sign;
23848 		SET_CFLG (sign);
23849 	COPY_CARRY;
23850 	} else {
23851 		val >>= cnt - 1;
23852 		SET_CFLG (val & 1);
23853 	COPY_CARRY;
23854 		val >>= 1;
23855 		val |= (0xffffffff << (32 - cnt)) & (uint32_t)-sign;
23856 		val &= 0xffffffff;
23857 	}
23858 	SET_ZFLG (((int32_t)(val)) == 0);
23859 	SET_NFLG (((int32_t)(val)) < 0);
23860 	m68k_dreg(regs, dstreg) = (val);
23861 }}}}m68k_incpc(2);
23862  return (8+retcycles*2);
23863 }
CPUFUNC(op_e088_4)23864 unsigned long CPUFUNC(op_e088_4)(uint32_t opcode) /* LSR */
23865 {
23866 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23867 	uint32_t dstreg = opcode & 7;
23868 	unsigned int retcycles = 0;
23869 	OpcodeFamily = 66; CurrentInstrCycles = 4;
23870 {{	uint32_t cnt = srcreg;
23871 {	int32_t data = m68k_dreg(regs, dstreg);
23872 {	uint32_t val = data;
23873 	cnt &= 63;
23874 	retcycles = cnt;
23875 	CLEAR_CZNV;
23876 	if (cnt >= 32) {
23877 		SET_CFLG ((cnt == 32) & (val >> 31));
23878 	COPY_CARRY;
23879 		val = 0;
23880 	} else {
23881 		val >>= cnt - 1;
23882 		SET_CFLG (val & 1);
23883 	COPY_CARRY;
23884 		val >>= 1;
23885 	}
23886 	SET_ZFLG (((int32_t)(val)) == 0);
23887 	SET_NFLG (((int32_t)(val)) < 0);
23888 	m68k_dreg(regs, dstreg) = (val);
23889 }}}}m68k_incpc(2);
23890  return (8+retcycles*2);
23891 }
CPUFUNC(op_e090_4)23892 unsigned long CPUFUNC(op_e090_4)(uint32_t opcode) /* ROXR */
23893 {
23894 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23895 	uint32_t dstreg = opcode & 7;
23896 	unsigned int retcycles = 0;
23897 	OpcodeFamily = 71; CurrentInstrCycles = 4;
23898 {{	uint32_t cnt = srcreg;
23899 {	int32_t data = m68k_dreg(regs, dstreg);
23900 {	uint32_t val = data;
23901 	cnt &= 63;
23902 	retcycles = cnt;
23903 	CLEAR_CZNV;
23904 {	cnt--;
23905 	{
23906 	uint32_t carry;
23907 	uint32_t hival = (val << 1) | GET_XFLG;
23908 	hival <<= (31 - cnt);
23909 	val >>= cnt;
23910 	carry = val & 1;
23911 	val >>= 1;
23912 	val |= hival;
23913 	SET_XFLG (carry);
23914 	val &= 0xffffffff;
23915 	} }
23916 	SET_CFLG (GET_XFLG);
23917 	SET_ZFLG (((int32_t)(val)) == 0);
23918 	SET_NFLG (((int32_t)(val)) < 0);
23919 	m68k_dreg(regs, dstreg) = (val);
23920 }}}}m68k_incpc(2);
23921  return (8+retcycles*2);
23922 }
CPUFUNC(op_e098_4)23923 unsigned long CPUFUNC(op_e098_4)(uint32_t opcode) /* ROR */
23924 {
23925 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
23926 	uint32_t dstreg = opcode & 7;
23927 	unsigned int retcycles = 0;
23928 	OpcodeFamily = 69; CurrentInstrCycles = 4;
23929 {{	uint32_t cnt = srcreg;
23930 {	int32_t data = m68k_dreg(regs, dstreg);
23931 {	uint32_t val = data;
23932 	cnt &= 63;
23933 	retcycles = cnt;
23934 	CLEAR_CZNV;
23935 {	uint32_t hival;
23936 	cnt &= 31;
23937 	hival = val << (32 - cnt);
23938 	val >>= cnt;
23939 	val |= hival;
23940 	val &= 0xffffffff;
23941 	SET_CFLG ((val & 0x80000000) >> 31);
23942 	}
23943 	SET_ZFLG (((int32_t)(val)) == 0);
23944 	SET_NFLG (((int32_t)(val)) < 0);
23945 	m68k_dreg(regs, dstreg) = (val);
23946 }}}}m68k_incpc(2);
23947  return (8+retcycles*2);
23948 }
CPUFUNC(op_e0a0_4)23949 unsigned long CPUFUNC(op_e0a0_4)(uint32_t opcode) /* ASR */
23950 {
23951 	uint32_t srcreg = ((opcode >> 9) & 7);
23952 	uint32_t dstreg = opcode & 7;
23953 	unsigned int retcycles = 0;
23954 	OpcodeFamily = 64; CurrentInstrCycles = 4;
23955 {{	int32_t cnt = m68k_dreg(regs, srcreg);
23956 {	int32_t data = m68k_dreg(regs, dstreg);
23957 {	uint32_t val = data;
23958 	uint32_t sign = (0x80000000 & val) >> 31;
23959 	cnt &= 63;
23960 	retcycles = cnt;
23961 	CLEAR_CZNV;
23962 	if (cnt >= 32) {
23963 		val = 0xffffffff & (uint32_t)-sign;
23964 		SET_CFLG (sign);
23965 	COPY_CARRY;
23966 	} else if (cnt > 0) {
23967 		val >>= cnt - 1;
23968 		SET_CFLG (val & 1);
23969 	COPY_CARRY;
23970 		val >>= 1;
23971 		val |= (0xffffffff << (32 - cnt)) & (uint32_t)-sign;
23972 		val &= 0xffffffff;
23973 	}
23974 	SET_ZFLG (((int32_t)(val)) == 0);
23975 	SET_NFLG (((int32_t)(val)) < 0);
23976 	m68k_dreg(regs, dstreg) = (val);
23977 }}}}m68k_incpc(2);
23978  return (8+retcycles*2);
23979 }
CPUFUNC(op_e0a8_4)23980 unsigned long CPUFUNC(op_e0a8_4)(uint32_t opcode) /* LSR */
23981 {
23982 	uint32_t srcreg = ((opcode >> 9) & 7);
23983 	uint32_t dstreg = opcode & 7;
23984 	unsigned int retcycles = 0;
23985 	OpcodeFamily = 66; CurrentInstrCycles = 4;
23986 {{	int32_t cnt = m68k_dreg(regs, srcreg);
23987 {	int32_t data = m68k_dreg(regs, dstreg);
23988 {	uint32_t val = data;
23989 	cnt &= 63;
23990 	retcycles = cnt;
23991 	CLEAR_CZNV;
23992 	if (cnt >= 32) {
23993 		SET_CFLG ((cnt == 32) & (val >> 31));
23994 	COPY_CARRY;
23995 		val = 0;
23996 	} else if (cnt > 0) {
23997 		val >>= cnt - 1;
23998 		SET_CFLG (val & 1);
23999 	COPY_CARRY;
24000 		val >>= 1;
24001 	}
24002 	SET_ZFLG (((int32_t)(val)) == 0);
24003 	SET_NFLG (((int32_t)(val)) < 0);
24004 	m68k_dreg(regs, dstreg) = (val);
24005 }}}}m68k_incpc(2);
24006  return (8+retcycles*2);
24007 }
CPUFUNC(op_e0b0_4)24008 unsigned long CPUFUNC(op_e0b0_4)(uint32_t opcode) /* ROXR */
24009 {
24010 	uint32_t srcreg = ((opcode >> 9) & 7);
24011 	uint32_t dstreg = opcode & 7;
24012 	unsigned int retcycles = 0;
24013 	OpcodeFamily = 71; CurrentInstrCycles = 4;
24014 {{	int32_t cnt = m68k_dreg(regs, srcreg);
24015 {	int32_t data = m68k_dreg(regs, dstreg);
24016 {	uint32_t val = data;
24017 	cnt &= 63;
24018 	retcycles = cnt;
24019 	CLEAR_CZNV;
24020 	if (cnt >= 33) cnt -= 33;
24021 	if (cnt > 0) {
24022 	cnt--;
24023 	{
24024 	uint32_t carry;
24025 	uint32_t hival = (val << 1) | GET_XFLG;
24026 	hival <<= (31 - cnt);
24027 	val >>= cnt;
24028 	carry = val & 1;
24029 	val >>= 1;
24030 	val |= hival;
24031 	SET_XFLG (carry);
24032 	val &= 0xffffffff;
24033 	} }
24034 	SET_CFLG (GET_XFLG);
24035 	SET_ZFLG (((int32_t)(val)) == 0);
24036 	SET_NFLG (((int32_t)(val)) < 0);
24037 	m68k_dreg(regs, dstreg) = (val);
24038 }}}}m68k_incpc(2);
24039  return (8+retcycles*2);
24040 }
CPUFUNC(op_e0b8_4)24041 unsigned long CPUFUNC(op_e0b8_4)(uint32_t opcode) /* ROR */
24042 {
24043 	uint32_t srcreg = ((opcode >> 9) & 7);
24044 	uint32_t dstreg = opcode & 7;
24045 	unsigned int retcycles = 0;
24046 	OpcodeFamily = 69; CurrentInstrCycles = 4;
24047 {{	int32_t cnt = m68k_dreg(regs, srcreg);
24048 {	int32_t data = m68k_dreg(regs, dstreg);
24049 {	uint32_t val = data;
24050 	cnt &= 63;
24051 	retcycles = cnt;
24052 	CLEAR_CZNV;
24053 	if (cnt > 0) {	uint32_t hival;
24054 	cnt &= 31;
24055 	hival = val << (32 - cnt);
24056 	val >>= cnt;
24057 	val |= hival;
24058 	val &= 0xffffffff;
24059 	SET_CFLG ((val & 0x80000000) >> 31);
24060 	}
24061 	SET_ZFLG (((int32_t)(val)) == 0);
24062 	SET_NFLG (((int32_t)(val)) < 0);
24063 	m68k_dreg(regs, dstreg) = (val);
24064 }}}}m68k_incpc(2);
24065  return (8+retcycles*2);
24066 }
CPUFUNC(op_e0d0_4)24067 unsigned long CPUFUNC(op_e0d0_4)(uint32_t opcode) /* ASRW */
24068 {
24069 	uint32_t srcreg = (opcode & 7);
24070 	OpcodeFamily = 72; CurrentInstrCycles = 12;
24071 {{	uint32_t dataa = m68k_areg(regs, srcreg);
24072 {	int16_t data = m68k_read_memory_16(dataa);
24073 {	uint32_t val = (uint16_t)data;
24074 	uint32_t sign = 0x8000 & val;
24075 	uint32_t cflg = val & 1;
24076 	val = (val >> 1) | sign;
24077 	CLEAR_CZNV;
24078 	SET_ZFLG (((int16_t)(val)) == 0);
24079 	SET_NFLG (((int16_t)(val)) < 0);
24080 	SET_CFLG (cflg);
24081 	COPY_CARRY;
24082 	m68k_write_memory_16(dataa,val);
24083 }}}}m68k_incpc(2);
24084 return 12;
24085 }
CPUFUNC(op_e0d8_4)24086 unsigned long CPUFUNC(op_e0d8_4)(uint32_t opcode) /* ASRW */
24087 {
24088 	uint32_t srcreg = (opcode & 7);
24089 	OpcodeFamily = 72; CurrentInstrCycles = 12;
24090 {{	uint32_t dataa = m68k_areg(regs, srcreg);
24091 {	int16_t data = m68k_read_memory_16(dataa);
24092 	m68k_areg(regs, srcreg) += 2;
24093 {	uint32_t val = (uint16_t)data;
24094 	uint32_t sign = 0x8000 & val;
24095 	uint32_t cflg = val & 1;
24096 	val = (val >> 1) | sign;
24097 	CLEAR_CZNV;
24098 	SET_ZFLG (((int16_t)(val)) == 0);
24099 	SET_NFLG (((int16_t)(val)) < 0);
24100 	SET_CFLG (cflg);
24101 	COPY_CARRY;
24102 	m68k_write_memory_16(dataa,val);
24103 }}}}m68k_incpc(2);
24104 return 12;
24105 }
CPUFUNC(op_e0e0_4)24106 unsigned long CPUFUNC(op_e0e0_4)(uint32_t opcode) /* ASRW */
24107 {
24108 	uint32_t srcreg = (opcode & 7);
24109 	OpcodeFamily = 72; CurrentInstrCycles = 14;
24110 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
24111 {	int16_t data = m68k_read_memory_16(dataa);
24112 	m68k_areg (regs, srcreg) = dataa;
24113 {	uint32_t val = (uint16_t)data;
24114 	uint32_t sign = 0x8000 & val;
24115 	uint32_t cflg = val & 1;
24116 	val = (val >> 1) | sign;
24117 	CLEAR_CZNV;
24118 	SET_ZFLG (((int16_t)(val)) == 0);
24119 	SET_NFLG (((int16_t)(val)) < 0);
24120 	SET_CFLG (cflg);
24121 	COPY_CARRY;
24122 	m68k_write_memory_16(dataa,val);
24123 }}}}m68k_incpc(2);
24124 return 14;
24125 }
CPUFUNC(op_e0e8_4)24126 unsigned long CPUFUNC(op_e0e8_4)(uint32_t opcode) /* ASRW */
24127 {
24128 	uint32_t srcreg = (opcode & 7);
24129 	OpcodeFamily = 72; CurrentInstrCycles = 16;
24130 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
24131 {	int16_t data = m68k_read_memory_16(dataa);
24132 {	uint32_t val = (uint16_t)data;
24133 	uint32_t sign = 0x8000 & val;
24134 	uint32_t cflg = val & 1;
24135 	val = (val >> 1) | sign;
24136 	CLEAR_CZNV;
24137 	SET_ZFLG (((int16_t)(val)) == 0);
24138 	SET_NFLG (((int16_t)(val)) < 0);
24139 	SET_CFLG (cflg);
24140 	COPY_CARRY;
24141 	m68k_write_memory_16(dataa,val);
24142 }}}}m68k_incpc(4);
24143 return 16;
24144 }
CPUFUNC(op_e0f0_4)24145 unsigned long CPUFUNC(op_e0f0_4)(uint32_t opcode) /* ASRW */
24146 {
24147 	uint32_t srcreg = (opcode & 7);
24148 	OpcodeFamily = 72; CurrentInstrCycles = 18;
24149 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
24150 	BusCyclePenalty += 2;
24151 {	int16_t data = m68k_read_memory_16(dataa);
24152 {	uint32_t val = (uint16_t)data;
24153 	uint32_t sign = 0x8000 & val;
24154 	uint32_t cflg = val & 1;
24155 	val = (val >> 1) | sign;
24156 	CLEAR_CZNV;
24157 	SET_ZFLG (((int16_t)(val)) == 0);
24158 	SET_NFLG (((int16_t)(val)) < 0);
24159 	SET_CFLG (cflg);
24160 	COPY_CARRY;
24161 	m68k_write_memory_16(dataa,val);
24162 }}}}m68k_incpc(4);
24163 return 18;
24164 }
CPUFUNC(op_e0f8_4)24165 unsigned long CPUFUNC(op_e0f8_4)(uint32_t opcode) /* ASRW */
24166 {
24167 	OpcodeFamily = 72; CurrentInstrCycles = 16;
24168 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
24169 {	int16_t data = m68k_read_memory_16(dataa);
24170 {	uint32_t val = (uint16_t)data;
24171 	uint32_t sign = 0x8000 & val;
24172 	uint32_t cflg = val & 1;
24173 	val = (val >> 1) | sign;
24174 	CLEAR_CZNV;
24175 	SET_ZFLG (((int16_t)(val)) == 0);
24176 	SET_NFLG (((int16_t)(val)) < 0);
24177 	SET_CFLG (cflg);
24178 	COPY_CARRY;
24179 	m68k_write_memory_16(dataa,val);
24180 }}}}m68k_incpc(4);
24181 return 16;
24182 }
CPUFUNC(op_e0f9_4)24183 unsigned long CPUFUNC(op_e0f9_4)(uint32_t opcode) /* ASRW */
24184 {
24185 	OpcodeFamily = 72; CurrentInstrCycles = 20;
24186 {{	uint32_t dataa = get_ilong(2);
24187 {	int16_t data = m68k_read_memory_16(dataa);
24188 {	uint32_t val = (uint16_t)data;
24189 	uint32_t sign = 0x8000 & val;
24190 	uint32_t cflg = val & 1;
24191 	val = (val >> 1) | sign;
24192 	CLEAR_CZNV;
24193 	SET_ZFLG (((int16_t)(val)) == 0);
24194 	SET_NFLG (((int16_t)(val)) < 0);
24195 	SET_CFLG (cflg);
24196 	COPY_CARRY;
24197 	m68k_write_memory_16(dataa,val);
24198 }}}}m68k_incpc(6);
24199 return 20;
24200 }
CPUFUNC(op_e100_4)24201 unsigned long CPUFUNC(op_e100_4)(uint32_t opcode) /* ASL */
24202 {
24203 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24204 	uint32_t dstreg = opcode & 7;
24205 	unsigned int retcycles = 0;
24206 	OpcodeFamily = 65; CurrentInstrCycles = 4;
24207 {{	uint32_t cnt = srcreg;
24208 {	int8_t data = m68k_dreg(regs, dstreg);
24209 {	uint32_t val = (uint8_t)data;
24210 	cnt &= 63;
24211 	retcycles = cnt;
24212 	CLEAR_CZNV;
24213 	if (cnt >= 8) {
24214 		SET_VFLG (val != 0);
24215 		SET_CFLG (cnt == 8 ? val & 1 : 0);
24216 	COPY_CARRY;
24217 		val = 0;
24218 	} else {
24219 		uint32_t mask = (0xff << (7 - cnt)) & 0xff;
24220 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
24221 		val <<= cnt - 1;
24222 		SET_CFLG ((val & 0x80) >> 7);
24223 	COPY_CARRY;
24224 		val <<= 1;
24225 		val &= 0xff;
24226 	}
24227 	SET_ZFLG (((int8_t)(val)) == 0);
24228 	SET_NFLG (((int8_t)(val)) < 0);
24229 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24230 }}}}m68k_incpc(2);
24231  return (6+retcycles*2);
24232 }
CPUFUNC(op_e108_4)24233 unsigned long CPUFUNC(op_e108_4)(uint32_t opcode) /* LSL */
24234 {
24235 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24236 	uint32_t dstreg = opcode & 7;
24237 	unsigned int retcycles = 0;
24238 	OpcodeFamily = 67; CurrentInstrCycles = 4;
24239 {{	uint32_t cnt = srcreg;
24240 {	int8_t data = m68k_dreg(regs, dstreg);
24241 {	uint32_t val = (uint8_t)data;
24242 	cnt &= 63;
24243 	retcycles = cnt;
24244 	CLEAR_CZNV;
24245 	if (cnt >= 8) {
24246 		SET_CFLG (cnt == 8 ? val & 1 : 0);
24247 	COPY_CARRY;
24248 		val = 0;
24249 	} else {
24250 		val <<= (cnt - 1);
24251 		SET_CFLG ((val & 0x80) >> 7);
24252 	COPY_CARRY;
24253 		val <<= 1;
24254 	val &= 0xff;
24255 	}
24256 	SET_ZFLG (((int8_t)(val)) == 0);
24257 	SET_NFLG (((int8_t)(val)) < 0);
24258 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24259 }}}}m68k_incpc(2);
24260  return (6+retcycles*2);
24261 }
CPUFUNC(op_e110_4)24262 unsigned long CPUFUNC(op_e110_4)(uint32_t opcode) /* ROXL */
24263 {
24264 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24265 	uint32_t dstreg = opcode & 7;
24266 	unsigned int retcycles = 0;
24267 	OpcodeFamily = 70; CurrentInstrCycles = 4;
24268 {{	uint32_t cnt = srcreg;
24269 {	int8_t data = m68k_dreg(regs, dstreg);
24270 {	uint32_t val = (uint8_t)data;
24271 	cnt &= 63;
24272 	retcycles = cnt;
24273 	CLEAR_CZNV;
24274 {	cnt--;
24275 	{
24276 	uint32_t carry;
24277 	uint32_t loval = val >> (7 - cnt);
24278 	carry = loval & 1;
24279 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
24280 	SET_XFLG (carry);
24281 	val &= 0xff;
24282 	} }
24283 	SET_CFLG (GET_XFLG);
24284 	SET_ZFLG (((int8_t)(val)) == 0);
24285 	SET_NFLG (((int8_t)(val)) < 0);
24286 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24287 }}}}m68k_incpc(2);
24288  return (6+retcycles*2);
24289 }
CPUFUNC(op_e118_4)24290 unsigned long CPUFUNC(op_e118_4)(uint32_t opcode) /* ROL */
24291 {
24292 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24293 	uint32_t dstreg = opcode & 7;
24294 	unsigned int retcycles = 0;
24295 	OpcodeFamily = 68; CurrentInstrCycles = 4;
24296 {{	uint32_t cnt = srcreg;
24297 {	int8_t data = m68k_dreg(regs, dstreg);
24298 {	uint32_t val = (uint8_t)data;
24299 	cnt &= 63;
24300 	retcycles = cnt;
24301 	CLEAR_CZNV;
24302 {	uint32_t loval;
24303 	cnt &= 7;
24304 	loval = val >> (8 - cnt);
24305 	val <<= cnt;
24306 	val |= loval;
24307 	val &= 0xff;
24308 	SET_CFLG (val & 1);
24309 }
24310 	SET_ZFLG (((int8_t)(val)) == 0);
24311 	SET_NFLG (((int8_t)(val)) < 0);
24312 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24313 }}}}m68k_incpc(2);
24314  return (6+retcycles*2);
24315 }
CPUFUNC(op_e120_4)24316 unsigned long CPUFUNC(op_e120_4)(uint32_t opcode) /* ASL */
24317 {
24318 	uint32_t srcreg = ((opcode >> 9) & 7);
24319 	uint32_t dstreg = opcode & 7;
24320 	unsigned int retcycles = 0;
24321 	OpcodeFamily = 65; CurrentInstrCycles = 4;
24322 {{	int8_t cnt = m68k_dreg(regs, srcreg);
24323 {	int8_t data = m68k_dreg(regs, dstreg);
24324 {	uint32_t val = (uint8_t)data;
24325 	cnt &= 63;
24326 	retcycles = cnt;
24327 	CLEAR_CZNV;
24328 	if (cnt >= 8) {
24329 		SET_VFLG (val != 0);
24330 		SET_CFLG (cnt == 8 ? val & 1 : 0);
24331 	COPY_CARRY;
24332 		val = 0;
24333 	} else if (cnt > 0) {
24334 		uint32_t mask = (0xff << (7 - cnt)) & 0xff;
24335 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
24336 		val <<= cnt - 1;
24337 		SET_CFLG ((val & 0x80) >> 7);
24338 	COPY_CARRY;
24339 		val <<= 1;
24340 		val &= 0xff;
24341 	}
24342 	SET_ZFLG (((int8_t)(val)) == 0);
24343 	SET_NFLG (((int8_t)(val)) < 0);
24344 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24345 }}}}m68k_incpc(2);
24346  return (6+retcycles*2);
24347 }
CPUFUNC(op_e128_4)24348 unsigned long CPUFUNC(op_e128_4)(uint32_t opcode) /* LSL */
24349 {
24350 	uint32_t srcreg = ((opcode >> 9) & 7);
24351 	uint32_t dstreg = opcode & 7;
24352 	unsigned int retcycles = 0;
24353 	OpcodeFamily = 67; CurrentInstrCycles = 4;
24354 {{	int8_t cnt = m68k_dreg(regs, srcreg);
24355 {	int8_t data = m68k_dreg(regs, dstreg);
24356 {	uint32_t val = (uint8_t)data;
24357 	cnt &= 63;
24358 	retcycles = cnt;
24359 	CLEAR_CZNV;
24360 	if (cnt >= 8) {
24361 		SET_CFLG (cnt == 8 ? val & 1 : 0);
24362 	COPY_CARRY;
24363 		val = 0;
24364 	} else if (cnt > 0) {
24365 		val <<= (cnt - 1);
24366 		SET_CFLG ((val & 0x80) >> 7);
24367 	COPY_CARRY;
24368 		val <<= 1;
24369 	val &= 0xff;
24370 	}
24371 	SET_ZFLG (((int8_t)(val)) == 0);
24372 	SET_NFLG (((int8_t)(val)) < 0);
24373 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24374 }}}}m68k_incpc(2);
24375  return (6+retcycles*2);
24376 }
CPUFUNC(op_e130_4)24377 unsigned long CPUFUNC(op_e130_4)(uint32_t opcode) /* ROXL */
24378 {
24379 	uint32_t srcreg = ((opcode >> 9) & 7);
24380 	uint32_t dstreg = opcode & 7;
24381 	unsigned int retcycles = 0;
24382 	OpcodeFamily = 70; CurrentInstrCycles = 4;
24383 {{	int8_t cnt = m68k_dreg(regs, srcreg);
24384 {	int8_t data = m68k_dreg(regs, dstreg);
24385 {	uint32_t val = (uint8_t)data;
24386 	cnt &= 63;
24387 	retcycles = cnt;
24388 	CLEAR_CZNV;
24389 	if (cnt >= 36) cnt -= 36;
24390 	if (cnt >= 18) cnt -= 18;
24391 	if (cnt >= 9) cnt -= 9;
24392 	if (cnt > 0) {
24393 	cnt--;
24394 	{
24395 	uint32_t carry;
24396 	uint32_t loval = val >> (7 - cnt);
24397 	carry = loval & 1;
24398 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
24399 	SET_XFLG (carry);
24400 	val &= 0xff;
24401 	} }
24402 	SET_CFLG (GET_XFLG);
24403 	SET_ZFLG (((int8_t)(val)) == 0);
24404 	SET_NFLG (((int8_t)(val)) < 0);
24405 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24406 }}}}m68k_incpc(2);
24407  return (6+retcycles*2);
24408 }
CPUFUNC(op_e138_4)24409 unsigned long CPUFUNC(op_e138_4)(uint32_t opcode) /* ROL */
24410 {
24411 	uint32_t srcreg = ((opcode >> 9) & 7);
24412 	uint32_t dstreg = opcode & 7;
24413 	unsigned int retcycles = 0;
24414 	OpcodeFamily = 68; CurrentInstrCycles = 4;
24415 {{	int8_t cnt = m68k_dreg(regs, srcreg);
24416 {	int8_t data = m68k_dreg(regs, dstreg);
24417 {	uint32_t val = (uint8_t)data;
24418 	cnt &= 63;
24419 	retcycles = cnt;
24420 	CLEAR_CZNV;
24421 	if (cnt > 0) {
24422 	uint32_t loval;
24423 	cnt &= 7;
24424 	loval = val >> (8 - cnt);
24425 	val <<= cnt;
24426 	val |= loval;
24427 	val &= 0xff;
24428 	SET_CFLG (val & 1);
24429 }
24430 	SET_ZFLG (((int8_t)(val)) == 0);
24431 	SET_NFLG (((int8_t)(val)) < 0);
24432 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
24433 }}}}m68k_incpc(2);
24434  return (6+retcycles*2);
24435 }
CPUFUNC(op_e140_4)24436 unsigned long CPUFUNC(op_e140_4)(uint32_t opcode) /* ASL */
24437 {
24438 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24439 	uint32_t dstreg = opcode & 7;
24440 	unsigned int retcycles = 0;
24441 	OpcodeFamily = 65; CurrentInstrCycles = 4;
24442 {{	uint32_t cnt = srcreg;
24443 {	int16_t data = m68k_dreg(regs, dstreg);
24444 {	uint32_t val = (uint16_t)data;
24445 	cnt &= 63;
24446 	retcycles = cnt;
24447 	CLEAR_CZNV;
24448 	if (cnt >= 16) {
24449 		SET_VFLG (val != 0);
24450 		SET_CFLG (cnt == 16 ? val & 1 : 0);
24451 	COPY_CARRY;
24452 		val = 0;
24453 	} else {
24454 		uint32_t mask = (0xffff << (15 - cnt)) & 0xffff;
24455 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
24456 		val <<= cnt - 1;
24457 		SET_CFLG ((val & 0x8000) >> 15);
24458 	COPY_CARRY;
24459 		val <<= 1;
24460 		val &= 0xffff;
24461 	}
24462 	SET_ZFLG (((int16_t)(val)) == 0);
24463 	SET_NFLG (((int16_t)(val)) < 0);
24464 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24465 }}}}m68k_incpc(2);
24466  return (6+retcycles*2);
24467 }
CPUFUNC(op_e148_4)24468 unsigned long CPUFUNC(op_e148_4)(uint32_t opcode) /* LSL */
24469 {
24470 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24471 	uint32_t dstreg = opcode & 7;
24472 	unsigned int retcycles = 0;
24473 	OpcodeFamily = 67; CurrentInstrCycles = 4;
24474 {{	uint32_t cnt = srcreg;
24475 {	int16_t data = m68k_dreg(regs, dstreg);
24476 {	uint32_t val = (uint16_t)data;
24477 	cnt &= 63;
24478 	retcycles = cnt;
24479 	CLEAR_CZNV;
24480 	if (cnt >= 16) {
24481 		SET_CFLG (cnt == 16 ? val & 1 : 0);
24482 	COPY_CARRY;
24483 		val = 0;
24484 	} else {
24485 		val <<= (cnt - 1);
24486 		SET_CFLG ((val & 0x8000) >> 15);
24487 	COPY_CARRY;
24488 		val <<= 1;
24489 	val &= 0xffff;
24490 	}
24491 	SET_ZFLG (((int16_t)(val)) == 0);
24492 	SET_NFLG (((int16_t)(val)) < 0);
24493 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24494 }}}}m68k_incpc(2);
24495  return (6+retcycles*2);
24496 }
CPUFUNC(op_e150_4)24497 unsigned long CPUFUNC(op_e150_4)(uint32_t opcode) /* ROXL */
24498 {
24499 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24500 	uint32_t dstreg = opcode & 7;
24501 	unsigned int retcycles = 0;
24502 	OpcodeFamily = 70; CurrentInstrCycles = 4;
24503 {{	uint32_t cnt = srcreg;
24504 {	int16_t data = m68k_dreg(regs, dstreg);
24505 {	uint32_t val = (uint16_t)data;
24506 	cnt &= 63;
24507 	retcycles = cnt;
24508 	CLEAR_CZNV;
24509 {	cnt--;
24510 	{
24511 	uint32_t carry;
24512 	uint32_t loval = val >> (15 - cnt);
24513 	carry = loval & 1;
24514 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
24515 	SET_XFLG (carry);
24516 	val &= 0xffff;
24517 	} }
24518 	SET_CFLG (GET_XFLG);
24519 	SET_ZFLG (((int16_t)(val)) == 0);
24520 	SET_NFLG (((int16_t)(val)) < 0);
24521 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24522 }}}}m68k_incpc(2);
24523  return (6+retcycles*2);
24524 }
CPUFUNC(op_e158_4)24525 unsigned long CPUFUNC(op_e158_4)(uint32_t opcode) /* ROL */
24526 {
24527 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24528 	uint32_t dstreg = opcode & 7;
24529 	unsigned int retcycles = 0;
24530 	OpcodeFamily = 68; CurrentInstrCycles = 4;
24531 {{	uint32_t cnt = srcreg;
24532 {	int16_t data = m68k_dreg(regs, dstreg);
24533 {	uint32_t val = (uint16_t)data;
24534 	cnt &= 63;
24535 	retcycles = cnt;
24536 	CLEAR_CZNV;
24537 {	uint32_t loval;
24538 	cnt &= 15;
24539 	loval = val >> (16 - cnt);
24540 	val <<= cnt;
24541 	val |= loval;
24542 	val &= 0xffff;
24543 	SET_CFLG (val & 1);
24544 }
24545 	SET_ZFLG (((int16_t)(val)) == 0);
24546 	SET_NFLG (((int16_t)(val)) < 0);
24547 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24548 }}}}m68k_incpc(2);
24549  return (6+retcycles*2);
24550 }
CPUFUNC(op_e160_4)24551 unsigned long CPUFUNC(op_e160_4)(uint32_t opcode) /* ASL */
24552 {
24553 	uint32_t srcreg = ((opcode >> 9) & 7);
24554 	uint32_t dstreg = opcode & 7;
24555 	unsigned int retcycles = 0;
24556 	OpcodeFamily = 65; CurrentInstrCycles = 4;
24557 {{	int16_t cnt = m68k_dreg(regs, srcreg);
24558 {	int16_t data = m68k_dreg(regs, dstreg);
24559 {	uint32_t val = (uint16_t)data;
24560 	cnt &= 63;
24561 	retcycles = cnt;
24562 	CLEAR_CZNV;
24563 	if (cnt >= 16) {
24564 		SET_VFLG (val != 0);
24565 		SET_CFLG (cnt == 16 ? val & 1 : 0);
24566 	COPY_CARRY;
24567 		val = 0;
24568 	} else if (cnt > 0) {
24569 		uint32_t mask = (0xffff << (15 - cnt)) & 0xffff;
24570 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
24571 		val <<= cnt - 1;
24572 		SET_CFLG ((val & 0x8000) >> 15);
24573 	COPY_CARRY;
24574 		val <<= 1;
24575 		val &= 0xffff;
24576 	}
24577 	SET_ZFLG (((int16_t)(val)) == 0);
24578 	SET_NFLG (((int16_t)(val)) < 0);
24579 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24580 }}}}m68k_incpc(2);
24581  return (6+retcycles*2);
24582 }
CPUFUNC(op_e168_4)24583 unsigned long CPUFUNC(op_e168_4)(uint32_t opcode) /* LSL */
24584 {
24585 	uint32_t srcreg = ((opcode >> 9) & 7);
24586 	uint32_t dstreg = opcode & 7;
24587 	unsigned int retcycles = 0;
24588 	OpcodeFamily = 67; CurrentInstrCycles = 4;
24589 {{	int16_t cnt = m68k_dreg(regs, srcreg);
24590 {	int16_t data = m68k_dreg(regs, dstreg);
24591 {	uint32_t val = (uint16_t)data;
24592 	cnt &= 63;
24593 	retcycles = cnt;
24594 	CLEAR_CZNV;
24595 	if (cnt >= 16) {
24596 		SET_CFLG (cnt == 16 ? val & 1 : 0);
24597 	COPY_CARRY;
24598 		val = 0;
24599 	} else if (cnt > 0) {
24600 		val <<= (cnt - 1);
24601 		SET_CFLG ((val & 0x8000) >> 15);
24602 	COPY_CARRY;
24603 		val <<= 1;
24604 	val &= 0xffff;
24605 	}
24606 	SET_ZFLG (((int16_t)(val)) == 0);
24607 	SET_NFLG (((int16_t)(val)) < 0);
24608 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24609 }}}}m68k_incpc(2);
24610  return (6+retcycles*2);
24611 }
CPUFUNC(op_e170_4)24612 unsigned long CPUFUNC(op_e170_4)(uint32_t opcode) /* ROXL */
24613 {
24614 	uint32_t srcreg = ((opcode >> 9) & 7);
24615 	uint32_t dstreg = opcode & 7;
24616 	unsigned int retcycles = 0;
24617 	OpcodeFamily = 70; CurrentInstrCycles = 4;
24618 {{	int16_t cnt = m68k_dreg(regs, srcreg);
24619 {	int16_t data = m68k_dreg(regs, dstreg);
24620 {	uint32_t val = (uint16_t)data;
24621 	cnt &= 63;
24622 	retcycles = cnt;
24623 	CLEAR_CZNV;
24624 	if (cnt >= 34) cnt -= 34;
24625 	if (cnt >= 17) cnt -= 17;
24626 	if (cnt > 0) {
24627 	cnt--;
24628 	{
24629 	uint32_t carry;
24630 	uint32_t loval = val >> (15 - cnt);
24631 	carry = loval & 1;
24632 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
24633 	SET_XFLG (carry);
24634 	val &= 0xffff;
24635 	} }
24636 	SET_CFLG (GET_XFLG);
24637 	SET_ZFLG (((int16_t)(val)) == 0);
24638 	SET_NFLG (((int16_t)(val)) < 0);
24639 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24640 }}}}m68k_incpc(2);
24641  return (6+retcycles*2);
24642 }
CPUFUNC(op_e178_4)24643 unsigned long CPUFUNC(op_e178_4)(uint32_t opcode) /* ROL */
24644 {
24645 	uint32_t srcreg = ((opcode >> 9) & 7);
24646 	uint32_t dstreg = opcode & 7;
24647 	unsigned int retcycles = 0;
24648 	OpcodeFamily = 68; CurrentInstrCycles = 4;
24649 {{	int16_t cnt = m68k_dreg(regs, srcreg);
24650 {	int16_t data = m68k_dreg(regs, dstreg);
24651 {	uint32_t val = (uint16_t)data;
24652 	cnt &= 63;
24653 	retcycles = cnt;
24654 	CLEAR_CZNV;
24655 	if (cnt > 0) {
24656 	uint32_t loval;
24657 	cnt &= 15;
24658 	loval = val >> (16 - cnt);
24659 	val <<= cnt;
24660 	val |= loval;
24661 	val &= 0xffff;
24662 	SET_CFLG (val & 1);
24663 }
24664 	SET_ZFLG (((int16_t)(val)) == 0);
24665 	SET_NFLG (((int16_t)(val)) < 0);
24666 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
24667 }}}}m68k_incpc(2);
24668  return (6+retcycles*2);
24669 }
CPUFUNC(op_e180_4)24670 unsigned long CPUFUNC(op_e180_4)(uint32_t opcode) /* ASL */
24671 {
24672 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24673 	uint32_t dstreg = opcode & 7;
24674 	unsigned int retcycles = 0;
24675 	OpcodeFamily = 65; CurrentInstrCycles = 4;
24676 {{	uint32_t cnt = srcreg;
24677 {	int32_t data = m68k_dreg(regs, dstreg);
24678 {	uint32_t val = data;
24679 	cnt &= 63;
24680 	retcycles = cnt;
24681 	CLEAR_CZNV;
24682 	if (cnt >= 32) {
24683 		SET_VFLG (val != 0);
24684 		SET_CFLG (cnt == 32 ? val & 1 : 0);
24685 	COPY_CARRY;
24686 		val = 0;
24687 	} else {
24688 		uint32_t mask = (0xffffffff << (31 - cnt)) & 0xffffffff;
24689 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
24690 		val <<= cnt - 1;
24691 		SET_CFLG ((val & 0x80000000) >> 31);
24692 	COPY_CARRY;
24693 		val <<= 1;
24694 		val &= 0xffffffff;
24695 	}
24696 	SET_ZFLG (((int32_t)(val)) == 0);
24697 	SET_NFLG (((int32_t)(val)) < 0);
24698 	m68k_dreg(regs, dstreg) = (val);
24699 }}}}m68k_incpc(2);
24700  return (8+retcycles*2);
24701 }
CPUFUNC(op_e188_4)24702 unsigned long CPUFUNC(op_e188_4)(uint32_t opcode) /* LSL */
24703 {
24704 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24705 	uint32_t dstreg = opcode & 7;
24706 	unsigned int retcycles = 0;
24707 	OpcodeFamily = 67; CurrentInstrCycles = 4;
24708 {{	uint32_t cnt = srcreg;
24709 {	int32_t data = m68k_dreg(regs, dstreg);
24710 {	uint32_t val = data;
24711 	cnt &= 63;
24712 	retcycles = cnt;
24713 	CLEAR_CZNV;
24714 	if (cnt >= 32) {
24715 		SET_CFLG (cnt == 32 ? val & 1 : 0);
24716 	COPY_CARRY;
24717 		val = 0;
24718 	} else {
24719 		val <<= (cnt - 1);
24720 		SET_CFLG ((val & 0x80000000) >> 31);
24721 	COPY_CARRY;
24722 		val <<= 1;
24723 	val &= 0xffffffff;
24724 	}
24725 	SET_ZFLG (((int32_t)(val)) == 0);
24726 	SET_NFLG (((int32_t)(val)) < 0);
24727 	m68k_dreg(regs, dstreg) = (val);
24728 }}}}m68k_incpc(2);
24729  return (8+retcycles*2);
24730 }
CPUFUNC(op_e190_4)24731 unsigned long CPUFUNC(op_e190_4)(uint32_t opcode) /* ROXL */
24732 {
24733 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24734 	uint32_t dstreg = opcode & 7;
24735 	unsigned int retcycles = 0;
24736 	OpcodeFamily = 70; CurrentInstrCycles = 4;
24737 {{	uint32_t cnt = srcreg;
24738 {	int32_t data = m68k_dreg(regs, dstreg);
24739 {	uint32_t val = data;
24740 	cnt &= 63;
24741 	retcycles = cnt;
24742 	CLEAR_CZNV;
24743 {	cnt--;
24744 	{
24745 	uint32_t carry;
24746 	uint32_t loval = val >> (31 - cnt);
24747 	carry = loval & 1;
24748 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
24749 	SET_XFLG (carry);
24750 	val &= 0xffffffff;
24751 	} }
24752 	SET_CFLG (GET_XFLG);
24753 	SET_ZFLG (((int32_t)(val)) == 0);
24754 	SET_NFLG (((int32_t)(val)) < 0);
24755 	m68k_dreg(regs, dstreg) = (val);
24756 }}}}m68k_incpc(2);
24757  return (8+retcycles*2);
24758 }
CPUFUNC(op_e198_4)24759 unsigned long CPUFUNC(op_e198_4)(uint32_t opcode) /* ROL */
24760 {
24761 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
24762 	uint32_t dstreg = opcode & 7;
24763 	unsigned int retcycles = 0;
24764 	OpcodeFamily = 68; CurrentInstrCycles = 4;
24765 {{	uint32_t cnt = srcreg;
24766 {	int32_t data = m68k_dreg(regs, dstreg);
24767 {	uint32_t val = data;
24768 	cnt &= 63;
24769 	retcycles = cnt;
24770 	CLEAR_CZNV;
24771 {	uint32_t loval;
24772 	cnt &= 31;
24773 	loval = val >> (32 - cnt);
24774 	val <<= cnt;
24775 	val |= loval;
24776 	val &= 0xffffffff;
24777 	SET_CFLG (val & 1);
24778 }
24779 	SET_ZFLG (((int32_t)(val)) == 0);
24780 	SET_NFLG (((int32_t)(val)) < 0);
24781 	m68k_dreg(regs, dstreg) = (val);
24782 }}}}m68k_incpc(2);
24783  return (8+retcycles*2);
24784 }
CPUFUNC(op_e1a0_4)24785 unsigned long CPUFUNC(op_e1a0_4)(uint32_t opcode) /* ASL */
24786 {
24787 	uint32_t srcreg = ((opcode >> 9) & 7);
24788 	uint32_t dstreg = opcode & 7;
24789 	unsigned int retcycles = 0;
24790 	OpcodeFamily = 65; CurrentInstrCycles = 4;
24791 {{	int32_t cnt = m68k_dreg(regs, srcreg);
24792 {	int32_t data = m68k_dreg(regs, dstreg);
24793 {	uint32_t val = data;
24794 	cnt &= 63;
24795 	retcycles = cnt;
24796 	CLEAR_CZNV;
24797 	if (cnt >= 32) {
24798 		SET_VFLG (val != 0);
24799 		SET_CFLG (cnt == 32 ? val & 1 : 0);
24800 	COPY_CARRY;
24801 		val = 0;
24802 	} else if (cnt > 0) {
24803 		uint32_t mask = (0xffffffff << (31 - cnt)) & 0xffffffff;
24804 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
24805 		val <<= cnt - 1;
24806 		SET_CFLG ((val & 0x80000000) >> 31);
24807 	COPY_CARRY;
24808 		val <<= 1;
24809 		val &= 0xffffffff;
24810 	}
24811 	SET_ZFLG (((int32_t)(val)) == 0);
24812 	SET_NFLG (((int32_t)(val)) < 0);
24813 	m68k_dreg(regs, dstreg) = (val);
24814 }}}}m68k_incpc(2);
24815  return (8+retcycles*2);
24816 }
CPUFUNC(op_e1a8_4)24817 unsigned long CPUFUNC(op_e1a8_4)(uint32_t opcode) /* LSL */
24818 {
24819 	uint32_t srcreg = ((opcode >> 9) & 7);
24820 	uint32_t dstreg = opcode & 7;
24821 	unsigned int retcycles = 0;
24822 	OpcodeFamily = 67; CurrentInstrCycles = 4;
24823 {{	int32_t cnt = m68k_dreg(regs, srcreg);
24824 {	int32_t data = m68k_dreg(regs, dstreg);
24825 {	uint32_t val = data;
24826 	cnt &= 63;
24827 	retcycles = cnt;
24828 	CLEAR_CZNV;
24829 	if (cnt >= 32) {
24830 		SET_CFLG (cnt == 32 ? val & 1 : 0);
24831 	COPY_CARRY;
24832 		val = 0;
24833 	} else if (cnt > 0) {
24834 		val <<= (cnt - 1);
24835 		SET_CFLG ((val & 0x80000000) >> 31);
24836 	COPY_CARRY;
24837 		val <<= 1;
24838 	val &= 0xffffffff;
24839 	}
24840 	SET_ZFLG (((int32_t)(val)) == 0);
24841 	SET_NFLG (((int32_t)(val)) < 0);
24842 	m68k_dreg(regs, dstreg) = (val);
24843 }}}}m68k_incpc(2);
24844  return (8+retcycles*2);
24845 }
CPUFUNC(op_e1b0_4)24846 unsigned long CPUFUNC(op_e1b0_4)(uint32_t opcode) /* ROXL */
24847 {
24848 	uint32_t srcreg = ((opcode >> 9) & 7);
24849 	uint32_t dstreg = opcode & 7;
24850 	unsigned int retcycles = 0;
24851 	OpcodeFamily = 70; CurrentInstrCycles = 4;
24852 {{	int32_t cnt = m68k_dreg(regs, srcreg);
24853 {	int32_t data = m68k_dreg(regs, dstreg);
24854 {	uint32_t val = data;
24855 	cnt &= 63;
24856 	retcycles = cnt;
24857 	CLEAR_CZNV;
24858 	if (cnt >= 33) cnt -= 33;
24859 	if (cnt > 0) {
24860 	cnt--;
24861 	{
24862 	uint32_t carry;
24863 	uint32_t loval = val >> (31 - cnt);
24864 	carry = loval & 1;
24865 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
24866 	SET_XFLG (carry);
24867 	val &= 0xffffffff;
24868 	} }
24869 	SET_CFLG (GET_XFLG);
24870 	SET_ZFLG (((int32_t)(val)) == 0);
24871 	SET_NFLG (((int32_t)(val)) < 0);
24872 	m68k_dreg(regs, dstreg) = (val);
24873 }}}}m68k_incpc(2);
24874  return (8+retcycles*2);
24875 }
CPUFUNC(op_e1b8_4)24876 unsigned long CPUFUNC(op_e1b8_4)(uint32_t opcode) /* ROL */
24877 {
24878 	uint32_t srcreg = ((opcode >> 9) & 7);
24879 	uint32_t dstreg = opcode & 7;
24880 	unsigned int retcycles = 0;
24881 	OpcodeFamily = 68; CurrentInstrCycles = 4;
24882 {{	int32_t cnt = m68k_dreg(regs, srcreg);
24883 {	int32_t data = m68k_dreg(regs, dstreg);
24884 {	uint32_t val = data;
24885 	cnt &= 63;
24886 	retcycles = cnt;
24887 	CLEAR_CZNV;
24888 	if (cnt > 0) {
24889 	uint32_t loval;
24890 	cnt &= 31;
24891 	loval = val >> (32 - cnt);
24892 	val <<= cnt;
24893 	val |= loval;
24894 	val &= 0xffffffff;
24895 	SET_CFLG (val & 1);
24896 }
24897 	SET_ZFLG (((int32_t)(val)) == 0);
24898 	SET_NFLG (((int32_t)(val)) < 0);
24899 	m68k_dreg(regs, dstreg) = (val);
24900 }}}}m68k_incpc(2);
24901  return (8+retcycles*2);
24902 }
CPUFUNC(op_e1d0_4)24903 unsigned long CPUFUNC(op_e1d0_4)(uint32_t opcode) /* ASLW */
24904 {
24905 	uint32_t srcreg = (opcode & 7);
24906 	OpcodeFamily = 73; CurrentInstrCycles = 12;
24907 {{	uint32_t dataa = m68k_areg(regs, srcreg);
24908 {	int16_t data = m68k_read_memory_16(dataa);
24909 {	uint32_t val = (uint16_t)data;
24910 	uint32_t sign = 0x8000 & val;
24911 	uint32_t sign2;
24912 	val <<= 1;
24913 	CLEAR_CZNV;
24914 	SET_ZFLG (((int16_t)(val)) == 0);
24915 	SET_NFLG (((int16_t)(val)) < 0);
24916 	sign2 = 0x8000 & val;
24917 	SET_CFLG (sign != 0);
24918 	COPY_CARRY;
24919 	SET_VFLG (GET_VFLG | (sign2 != sign));
24920 	m68k_write_memory_16(dataa,val);
24921 }}}}m68k_incpc(2);
24922 return 12;
24923 }
CPUFUNC(op_e1d8_4)24924 unsigned long CPUFUNC(op_e1d8_4)(uint32_t opcode) /* ASLW */
24925 {
24926 	uint32_t srcreg = (opcode & 7);
24927 	OpcodeFamily = 73; CurrentInstrCycles = 12;
24928 {{	uint32_t dataa = m68k_areg(regs, srcreg);
24929 {	int16_t data = m68k_read_memory_16(dataa);
24930 	m68k_areg(regs, srcreg) += 2;
24931 {	uint32_t val = (uint16_t)data;
24932 	uint32_t sign = 0x8000 & val;
24933 	uint32_t sign2;
24934 	val <<= 1;
24935 	CLEAR_CZNV;
24936 	SET_ZFLG (((int16_t)(val)) == 0);
24937 	SET_NFLG (((int16_t)(val)) < 0);
24938 	sign2 = 0x8000 & val;
24939 	SET_CFLG (sign != 0);
24940 	COPY_CARRY;
24941 	SET_VFLG (GET_VFLG | (sign2 != sign));
24942 	m68k_write_memory_16(dataa,val);
24943 }}}}m68k_incpc(2);
24944 return 12;
24945 }
CPUFUNC(op_e1e0_4)24946 unsigned long CPUFUNC(op_e1e0_4)(uint32_t opcode) /* ASLW */
24947 {
24948 	uint32_t srcreg = (opcode & 7);
24949 	OpcodeFamily = 73; CurrentInstrCycles = 14;
24950 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
24951 {	int16_t data = m68k_read_memory_16(dataa);
24952 	m68k_areg (regs, srcreg) = dataa;
24953 {	uint32_t val = (uint16_t)data;
24954 	uint32_t sign = 0x8000 & val;
24955 	uint32_t sign2;
24956 	val <<= 1;
24957 	CLEAR_CZNV;
24958 	SET_ZFLG (((int16_t)(val)) == 0);
24959 	SET_NFLG (((int16_t)(val)) < 0);
24960 	sign2 = 0x8000 & val;
24961 	SET_CFLG (sign != 0);
24962 	COPY_CARRY;
24963 	SET_VFLG (GET_VFLG | (sign2 != sign));
24964 	m68k_write_memory_16(dataa,val);
24965 }}}}m68k_incpc(2);
24966 return 14;
24967 }
CPUFUNC(op_e1e8_4)24968 unsigned long CPUFUNC(op_e1e8_4)(uint32_t opcode) /* ASLW */
24969 {
24970 	uint32_t srcreg = (opcode & 7);
24971 	OpcodeFamily = 73; CurrentInstrCycles = 16;
24972 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
24973 {	int16_t data = m68k_read_memory_16(dataa);
24974 {	uint32_t val = (uint16_t)data;
24975 	uint32_t sign = 0x8000 & val;
24976 	uint32_t sign2;
24977 	val <<= 1;
24978 	CLEAR_CZNV;
24979 	SET_ZFLG (((int16_t)(val)) == 0);
24980 	SET_NFLG (((int16_t)(val)) < 0);
24981 	sign2 = 0x8000 & val;
24982 	SET_CFLG (sign != 0);
24983 	COPY_CARRY;
24984 	SET_VFLG (GET_VFLG | (sign2 != sign));
24985 	m68k_write_memory_16(dataa,val);
24986 }}}}m68k_incpc(4);
24987 return 16;
24988 }
CPUFUNC(op_e1f0_4)24989 unsigned long CPUFUNC(op_e1f0_4)(uint32_t opcode) /* ASLW */
24990 {
24991 	uint32_t srcreg = (opcode & 7);
24992 	OpcodeFamily = 73; CurrentInstrCycles = 18;
24993 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
24994 	BusCyclePenalty += 2;
24995 {	int16_t data = m68k_read_memory_16(dataa);
24996 {	uint32_t val = (uint16_t)data;
24997 	uint32_t sign = 0x8000 & val;
24998 	uint32_t sign2;
24999 	val <<= 1;
25000 	CLEAR_CZNV;
25001 	SET_ZFLG (((int16_t)(val)) == 0);
25002 	SET_NFLG (((int16_t)(val)) < 0);
25003 	sign2 = 0x8000 & val;
25004 	SET_CFLG (sign != 0);
25005 	COPY_CARRY;
25006 	SET_VFLG (GET_VFLG | (sign2 != sign));
25007 	m68k_write_memory_16(dataa,val);
25008 }}}}m68k_incpc(4);
25009 return 18;
25010 }
CPUFUNC(op_e1f8_4)25011 unsigned long CPUFUNC(op_e1f8_4)(uint32_t opcode) /* ASLW */
25012 {
25013 	OpcodeFamily = 73; CurrentInstrCycles = 16;
25014 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
25015 {	int16_t data = m68k_read_memory_16(dataa);
25016 {	uint32_t val = (uint16_t)data;
25017 	uint32_t sign = 0x8000 & val;
25018 	uint32_t sign2;
25019 	val <<= 1;
25020 	CLEAR_CZNV;
25021 	SET_ZFLG (((int16_t)(val)) == 0);
25022 	SET_NFLG (((int16_t)(val)) < 0);
25023 	sign2 = 0x8000 & val;
25024 	SET_CFLG (sign != 0);
25025 	COPY_CARRY;
25026 	SET_VFLG (GET_VFLG | (sign2 != sign));
25027 	m68k_write_memory_16(dataa,val);
25028 }}}}m68k_incpc(4);
25029 return 16;
25030 }
CPUFUNC(op_e1f9_4)25031 unsigned long CPUFUNC(op_e1f9_4)(uint32_t opcode) /* ASLW */
25032 {
25033 	OpcodeFamily = 73; CurrentInstrCycles = 20;
25034 {{	uint32_t dataa = get_ilong(2);
25035 {	int16_t data = m68k_read_memory_16(dataa);
25036 {	uint32_t val = (uint16_t)data;
25037 	uint32_t sign = 0x8000 & val;
25038 	uint32_t sign2;
25039 	val <<= 1;
25040 	CLEAR_CZNV;
25041 	SET_ZFLG (((int16_t)(val)) == 0);
25042 	SET_NFLG (((int16_t)(val)) < 0);
25043 	sign2 = 0x8000 & val;
25044 	SET_CFLG (sign != 0);
25045 	COPY_CARRY;
25046 	SET_VFLG (GET_VFLG | (sign2 != sign));
25047 	m68k_write_memory_16(dataa,val);
25048 }}}}m68k_incpc(6);
25049 return 20;
25050 }
CPUFUNC(op_e2d0_4)25051 unsigned long CPUFUNC(op_e2d0_4)(uint32_t opcode) /* LSRW */
25052 {
25053 	uint32_t srcreg = (opcode & 7);
25054 	OpcodeFamily = 74; CurrentInstrCycles = 12;
25055 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25056 {	int16_t data = m68k_read_memory_16(dataa);
25057 {	uint32_t val = (uint16_t)data;
25058 	uint32_t carry = val & 1;
25059 	val >>= 1;
25060 	CLEAR_CZNV;
25061 	SET_ZFLG (((int16_t)(val)) == 0);
25062 	SET_NFLG (((int16_t)(val)) < 0);
25063 SET_CFLG (carry);
25064 	COPY_CARRY;
25065 	m68k_write_memory_16(dataa,val);
25066 }}}}m68k_incpc(2);
25067 return 12;
25068 }
CPUFUNC(op_e2d8_4)25069 unsigned long CPUFUNC(op_e2d8_4)(uint32_t opcode) /* LSRW */
25070 {
25071 	uint32_t srcreg = (opcode & 7);
25072 	OpcodeFamily = 74; CurrentInstrCycles = 12;
25073 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25074 {	int16_t data = m68k_read_memory_16(dataa);
25075 	m68k_areg(regs, srcreg) += 2;
25076 {	uint32_t val = (uint16_t)data;
25077 	uint32_t carry = val & 1;
25078 	val >>= 1;
25079 	CLEAR_CZNV;
25080 	SET_ZFLG (((int16_t)(val)) == 0);
25081 	SET_NFLG (((int16_t)(val)) < 0);
25082 SET_CFLG (carry);
25083 	COPY_CARRY;
25084 	m68k_write_memory_16(dataa,val);
25085 }}}}m68k_incpc(2);
25086 return 12;
25087 }
CPUFUNC(op_e2e0_4)25088 unsigned long CPUFUNC(op_e2e0_4)(uint32_t opcode) /* LSRW */
25089 {
25090 	uint32_t srcreg = (opcode & 7);
25091 	OpcodeFamily = 74; CurrentInstrCycles = 14;
25092 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
25093 {	int16_t data = m68k_read_memory_16(dataa);
25094 	m68k_areg (regs, srcreg) = dataa;
25095 {	uint32_t val = (uint16_t)data;
25096 	uint32_t carry = val & 1;
25097 	val >>= 1;
25098 	CLEAR_CZNV;
25099 	SET_ZFLG (((int16_t)(val)) == 0);
25100 	SET_NFLG (((int16_t)(val)) < 0);
25101 SET_CFLG (carry);
25102 	COPY_CARRY;
25103 	m68k_write_memory_16(dataa,val);
25104 }}}}m68k_incpc(2);
25105 return 14;
25106 }
CPUFUNC(op_e2e8_4)25107 unsigned long CPUFUNC(op_e2e8_4)(uint32_t opcode) /* LSRW */
25108 {
25109 	uint32_t srcreg = (opcode & 7);
25110 	OpcodeFamily = 74; CurrentInstrCycles = 16;
25111 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
25112 {	int16_t data = m68k_read_memory_16(dataa);
25113 {	uint32_t val = (uint16_t)data;
25114 	uint32_t carry = val & 1;
25115 	val >>= 1;
25116 	CLEAR_CZNV;
25117 	SET_ZFLG (((int16_t)(val)) == 0);
25118 	SET_NFLG (((int16_t)(val)) < 0);
25119 SET_CFLG (carry);
25120 	COPY_CARRY;
25121 	m68k_write_memory_16(dataa,val);
25122 }}}}m68k_incpc(4);
25123 return 16;
25124 }
CPUFUNC(op_e2f0_4)25125 unsigned long CPUFUNC(op_e2f0_4)(uint32_t opcode) /* LSRW */
25126 {
25127 	uint32_t srcreg = (opcode & 7);
25128 	OpcodeFamily = 74; CurrentInstrCycles = 18;
25129 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
25130 	BusCyclePenalty += 2;
25131 {	int16_t data = m68k_read_memory_16(dataa);
25132 {	uint32_t val = (uint16_t)data;
25133 	uint32_t carry = val & 1;
25134 	val >>= 1;
25135 	CLEAR_CZNV;
25136 	SET_ZFLG (((int16_t)(val)) == 0);
25137 	SET_NFLG (((int16_t)(val)) < 0);
25138 SET_CFLG (carry);
25139 	COPY_CARRY;
25140 	m68k_write_memory_16(dataa,val);
25141 }}}}m68k_incpc(4);
25142 return 18;
25143 }
CPUFUNC(op_e2f8_4)25144 unsigned long CPUFUNC(op_e2f8_4)(uint32_t opcode) /* LSRW */
25145 {
25146 	OpcodeFamily = 74; CurrentInstrCycles = 16;
25147 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
25148 {	int16_t data = m68k_read_memory_16(dataa);
25149 {	uint32_t val = (uint16_t)data;
25150 	uint32_t carry = val & 1;
25151 	val >>= 1;
25152 	CLEAR_CZNV;
25153 	SET_ZFLG (((int16_t)(val)) == 0);
25154 	SET_NFLG (((int16_t)(val)) < 0);
25155 SET_CFLG (carry);
25156 	COPY_CARRY;
25157 	m68k_write_memory_16(dataa,val);
25158 }}}}m68k_incpc(4);
25159 return 16;
25160 }
CPUFUNC(op_e2f9_4)25161 unsigned long CPUFUNC(op_e2f9_4)(uint32_t opcode) /* LSRW */
25162 {
25163 	OpcodeFamily = 74; CurrentInstrCycles = 20;
25164 {{	uint32_t dataa = get_ilong(2);
25165 {	int16_t data = m68k_read_memory_16(dataa);
25166 {	uint32_t val = (uint16_t)data;
25167 	uint32_t carry = val & 1;
25168 	val >>= 1;
25169 	CLEAR_CZNV;
25170 	SET_ZFLG (((int16_t)(val)) == 0);
25171 	SET_NFLG (((int16_t)(val)) < 0);
25172 SET_CFLG (carry);
25173 	COPY_CARRY;
25174 	m68k_write_memory_16(dataa,val);
25175 }}}}m68k_incpc(6);
25176 return 20;
25177 }
CPUFUNC(op_e3d0_4)25178 unsigned long CPUFUNC(op_e3d0_4)(uint32_t opcode) /* LSLW */
25179 {
25180 	uint32_t srcreg = (opcode & 7);
25181 	OpcodeFamily = 75; CurrentInstrCycles = 12;
25182 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25183 {	int16_t data = m68k_read_memory_16(dataa);
25184 {	uint16_t val = data;
25185 	uint32_t carry = val & 0x8000;
25186 	val <<= 1;
25187 	CLEAR_CZNV;
25188 	SET_ZFLG (((int16_t)(val)) == 0);
25189 	SET_NFLG (((int16_t)(val)) < 0);
25190 SET_CFLG (carry >> 15);
25191 	COPY_CARRY;
25192 	m68k_write_memory_16(dataa,val);
25193 }}}}m68k_incpc(2);
25194 return 12;
25195 }
CPUFUNC(op_e3d8_4)25196 unsigned long CPUFUNC(op_e3d8_4)(uint32_t opcode) /* LSLW */
25197 {
25198 	uint32_t srcreg = (opcode & 7);
25199 	OpcodeFamily = 75; CurrentInstrCycles = 12;
25200 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25201 {	int16_t data = m68k_read_memory_16(dataa);
25202 	m68k_areg(regs, srcreg) += 2;
25203 {	uint16_t val = data;
25204 	uint32_t carry = val & 0x8000;
25205 	val <<= 1;
25206 	CLEAR_CZNV;
25207 	SET_ZFLG (((int16_t)(val)) == 0);
25208 	SET_NFLG (((int16_t)(val)) < 0);
25209 SET_CFLG (carry >> 15);
25210 	COPY_CARRY;
25211 	m68k_write_memory_16(dataa,val);
25212 }}}}m68k_incpc(2);
25213 return 12;
25214 }
CPUFUNC(op_e3e0_4)25215 unsigned long CPUFUNC(op_e3e0_4)(uint32_t opcode) /* LSLW */
25216 {
25217 	uint32_t srcreg = (opcode & 7);
25218 	OpcodeFamily = 75; CurrentInstrCycles = 14;
25219 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
25220 {	int16_t data = m68k_read_memory_16(dataa);
25221 	m68k_areg (regs, srcreg) = dataa;
25222 {	uint16_t val = data;
25223 	uint32_t carry = val & 0x8000;
25224 	val <<= 1;
25225 	CLEAR_CZNV;
25226 	SET_ZFLG (((int16_t)(val)) == 0);
25227 	SET_NFLG (((int16_t)(val)) < 0);
25228 SET_CFLG (carry >> 15);
25229 	COPY_CARRY;
25230 	m68k_write_memory_16(dataa,val);
25231 }}}}m68k_incpc(2);
25232 return 14;
25233 }
CPUFUNC(op_e3e8_4)25234 unsigned long CPUFUNC(op_e3e8_4)(uint32_t opcode) /* LSLW */
25235 {
25236 	uint32_t srcreg = (opcode & 7);
25237 	OpcodeFamily = 75; CurrentInstrCycles = 16;
25238 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
25239 {	int16_t data = m68k_read_memory_16(dataa);
25240 {	uint16_t val = data;
25241 	uint32_t carry = val & 0x8000;
25242 	val <<= 1;
25243 	CLEAR_CZNV;
25244 	SET_ZFLG (((int16_t)(val)) == 0);
25245 	SET_NFLG (((int16_t)(val)) < 0);
25246 SET_CFLG (carry >> 15);
25247 	COPY_CARRY;
25248 	m68k_write_memory_16(dataa,val);
25249 }}}}m68k_incpc(4);
25250 return 16;
25251 }
CPUFUNC(op_e3f0_4)25252 unsigned long CPUFUNC(op_e3f0_4)(uint32_t opcode) /* LSLW */
25253 {
25254 	uint32_t srcreg = (opcode & 7);
25255 	OpcodeFamily = 75; CurrentInstrCycles = 18;
25256 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
25257 	BusCyclePenalty += 2;
25258 {	int16_t data = m68k_read_memory_16(dataa);
25259 {	uint16_t val = data;
25260 	uint32_t carry = val & 0x8000;
25261 	val <<= 1;
25262 	CLEAR_CZNV;
25263 	SET_ZFLG (((int16_t)(val)) == 0);
25264 	SET_NFLG (((int16_t)(val)) < 0);
25265 SET_CFLG (carry >> 15);
25266 	COPY_CARRY;
25267 	m68k_write_memory_16(dataa,val);
25268 }}}}m68k_incpc(4);
25269 return 18;
25270 }
CPUFUNC(op_e3f8_4)25271 unsigned long CPUFUNC(op_e3f8_4)(uint32_t opcode) /* LSLW */
25272 {
25273 	OpcodeFamily = 75; CurrentInstrCycles = 16;
25274 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
25275 {	int16_t data = m68k_read_memory_16(dataa);
25276 {	uint16_t val = data;
25277 	uint32_t carry = val & 0x8000;
25278 	val <<= 1;
25279 	CLEAR_CZNV;
25280 	SET_ZFLG (((int16_t)(val)) == 0);
25281 	SET_NFLG (((int16_t)(val)) < 0);
25282 SET_CFLG (carry >> 15);
25283 	COPY_CARRY;
25284 	m68k_write_memory_16(dataa,val);
25285 }}}}m68k_incpc(4);
25286 return 16;
25287 }
CPUFUNC(op_e3f9_4)25288 unsigned long CPUFUNC(op_e3f9_4)(uint32_t opcode) /* LSLW */
25289 {
25290 	OpcodeFamily = 75; CurrentInstrCycles = 20;
25291 {{	uint32_t dataa = get_ilong(2);
25292 {	int16_t data = m68k_read_memory_16(dataa);
25293 {	uint16_t val = data;
25294 	uint32_t carry = val & 0x8000;
25295 	val <<= 1;
25296 	CLEAR_CZNV;
25297 	SET_ZFLG (((int16_t)(val)) == 0);
25298 	SET_NFLG (((int16_t)(val)) < 0);
25299 SET_CFLG (carry >> 15);
25300 	COPY_CARRY;
25301 	m68k_write_memory_16(dataa,val);
25302 }}}}m68k_incpc(6);
25303 return 20;
25304 }
CPUFUNC(op_e4d0_4)25305 unsigned long CPUFUNC(op_e4d0_4)(uint32_t opcode) /* ROXRW */
25306 {
25307 	uint32_t srcreg = (opcode & 7);
25308 	OpcodeFamily = 79; CurrentInstrCycles = 12;
25309 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25310 {	int16_t data = m68k_read_memory_16(dataa);
25311 {	uint16_t val = data;
25312 	uint32_t carry = val & 1;
25313 	val >>= 1;
25314 	if (GET_XFLG) val |= 0x8000;
25315 	CLEAR_CZNV;
25316 	SET_ZFLG (((int16_t)(val)) == 0);
25317 	SET_NFLG (((int16_t)(val)) < 0);
25318 SET_CFLG (carry);
25319 	COPY_CARRY;
25320 	m68k_write_memory_16(dataa,val);
25321 }}}}m68k_incpc(2);
25322 return 12;
25323 }
CPUFUNC(op_e4d8_4)25324 unsigned long CPUFUNC(op_e4d8_4)(uint32_t opcode) /* ROXRW */
25325 {
25326 	uint32_t srcreg = (opcode & 7);
25327 	OpcodeFamily = 79; CurrentInstrCycles = 12;
25328 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25329 {	int16_t data = m68k_read_memory_16(dataa);
25330 	m68k_areg(regs, srcreg) += 2;
25331 {	uint16_t val = data;
25332 	uint32_t carry = val & 1;
25333 	val >>= 1;
25334 	if (GET_XFLG) val |= 0x8000;
25335 	CLEAR_CZNV;
25336 	SET_ZFLG (((int16_t)(val)) == 0);
25337 	SET_NFLG (((int16_t)(val)) < 0);
25338 SET_CFLG (carry);
25339 	COPY_CARRY;
25340 	m68k_write_memory_16(dataa,val);
25341 }}}}m68k_incpc(2);
25342 return 12;
25343 }
CPUFUNC(op_e4e0_4)25344 unsigned long CPUFUNC(op_e4e0_4)(uint32_t opcode) /* ROXRW */
25345 {
25346 	uint32_t srcreg = (opcode & 7);
25347 	OpcodeFamily = 79; CurrentInstrCycles = 14;
25348 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
25349 {	int16_t data = m68k_read_memory_16(dataa);
25350 	m68k_areg (regs, srcreg) = dataa;
25351 {	uint16_t val = data;
25352 	uint32_t carry = val & 1;
25353 	val >>= 1;
25354 	if (GET_XFLG) val |= 0x8000;
25355 	CLEAR_CZNV;
25356 	SET_ZFLG (((int16_t)(val)) == 0);
25357 	SET_NFLG (((int16_t)(val)) < 0);
25358 SET_CFLG (carry);
25359 	COPY_CARRY;
25360 	m68k_write_memory_16(dataa,val);
25361 }}}}m68k_incpc(2);
25362 return 14;
25363 }
CPUFUNC(op_e4e8_4)25364 unsigned long CPUFUNC(op_e4e8_4)(uint32_t opcode) /* ROXRW */
25365 {
25366 	uint32_t srcreg = (opcode & 7);
25367 	OpcodeFamily = 79; CurrentInstrCycles = 16;
25368 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
25369 {	int16_t data = m68k_read_memory_16(dataa);
25370 {	uint16_t val = data;
25371 	uint32_t carry = val & 1;
25372 	val >>= 1;
25373 	if (GET_XFLG) val |= 0x8000;
25374 	CLEAR_CZNV;
25375 	SET_ZFLG (((int16_t)(val)) == 0);
25376 	SET_NFLG (((int16_t)(val)) < 0);
25377 SET_CFLG (carry);
25378 	COPY_CARRY;
25379 	m68k_write_memory_16(dataa,val);
25380 }}}}m68k_incpc(4);
25381 return 16;
25382 }
CPUFUNC(op_e4f0_4)25383 unsigned long CPUFUNC(op_e4f0_4)(uint32_t opcode) /* ROXRW */
25384 {
25385 	uint32_t srcreg = (opcode & 7);
25386 	OpcodeFamily = 79; CurrentInstrCycles = 18;
25387 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
25388 	BusCyclePenalty += 2;
25389 {	int16_t data = m68k_read_memory_16(dataa);
25390 {	uint16_t val = data;
25391 	uint32_t carry = val & 1;
25392 	val >>= 1;
25393 	if (GET_XFLG) val |= 0x8000;
25394 	CLEAR_CZNV;
25395 	SET_ZFLG (((int16_t)(val)) == 0);
25396 	SET_NFLG (((int16_t)(val)) < 0);
25397 SET_CFLG (carry);
25398 	COPY_CARRY;
25399 	m68k_write_memory_16(dataa,val);
25400 }}}}m68k_incpc(4);
25401 return 18;
25402 }
CPUFUNC(op_e4f8_4)25403 unsigned long CPUFUNC(op_e4f8_4)(uint32_t opcode) /* ROXRW */
25404 {
25405 	OpcodeFamily = 79; CurrentInstrCycles = 16;
25406 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
25407 {	int16_t data = m68k_read_memory_16(dataa);
25408 {	uint16_t val = data;
25409 	uint32_t carry = val & 1;
25410 	val >>= 1;
25411 	if (GET_XFLG) val |= 0x8000;
25412 	CLEAR_CZNV;
25413 	SET_ZFLG (((int16_t)(val)) == 0);
25414 	SET_NFLG (((int16_t)(val)) < 0);
25415 SET_CFLG (carry);
25416 	COPY_CARRY;
25417 	m68k_write_memory_16(dataa,val);
25418 }}}}m68k_incpc(4);
25419 return 16;
25420 }
CPUFUNC(op_e4f9_4)25421 unsigned long CPUFUNC(op_e4f9_4)(uint32_t opcode) /* ROXRW */
25422 {
25423 	OpcodeFamily = 79; CurrentInstrCycles = 20;
25424 {{	uint32_t dataa = get_ilong(2);
25425 {	int16_t data = m68k_read_memory_16(dataa);
25426 {	uint16_t val = data;
25427 	uint32_t carry = val & 1;
25428 	val >>= 1;
25429 	if (GET_XFLG) val |= 0x8000;
25430 	CLEAR_CZNV;
25431 	SET_ZFLG (((int16_t)(val)) == 0);
25432 	SET_NFLG (((int16_t)(val)) < 0);
25433 SET_CFLG (carry);
25434 	COPY_CARRY;
25435 	m68k_write_memory_16(dataa,val);
25436 }}}}m68k_incpc(6);
25437 return 20;
25438 }
CPUFUNC(op_e5d0_4)25439 unsigned long CPUFUNC(op_e5d0_4)(uint32_t opcode) /* ROXLW */
25440 {
25441 	uint32_t srcreg = (opcode & 7);
25442 	OpcodeFamily = 78; CurrentInstrCycles = 12;
25443 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25444 {	int16_t data = m68k_read_memory_16(dataa);
25445 {	uint16_t val = data;
25446 	uint32_t carry = val & 0x8000;
25447 	val <<= 1;
25448 	if (GET_XFLG) val |= 1;
25449 	CLEAR_CZNV;
25450 	SET_ZFLG (((int16_t)(val)) == 0);
25451 	SET_NFLG (((int16_t)(val)) < 0);
25452 SET_CFLG (carry >> 15);
25453 	COPY_CARRY;
25454 	m68k_write_memory_16(dataa,val);
25455 }}}}m68k_incpc(2);
25456 return 12;
25457 }
CPUFUNC(op_e5d8_4)25458 unsigned long CPUFUNC(op_e5d8_4)(uint32_t opcode) /* ROXLW */
25459 {
25460 	uint32_t srcreg = (opcode & 7);
25461 	OpcodeFamily = 78; CurrentInstrCycles = 12;
25462 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25463 {	int16_t data = m68k_read_memory_16(dataa);
25464 	m68k_areg(regs, srcreg) += 2;
25465 {	uint16_t val = data;
25466 	uint32_t carry = val & 0x8000;
25467 	val <<= 1;
25468 	if (GET_XFLG) val |= 1;
25469 	CLEAR_CZNV;
25470 	SET_ZFLG (((int16_t)(val)) == 0);
25471 	SET_NFLG (((int16_t)(val)) < 0);
25472 SET_CFLG (carry >> 15);
25473 	COPY_CARRY;
25474 	m68k_write_memory_16(dataa,val);
25475 }}}}m68k_incpc(2);
25476 return 12;
25477 }
CPUFUNC(op_e5e0_4)25478 unsigned long CPUFUNC(op_e5e0_4)(uint32_t opcode) /* ROXLW */
25479 {
25480 	uint32_t srcreg = (opcode & 7);
25481 	OpcodeFamily = 78; CurrentInstrCycles = 14;
25482 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
25483 {	int16_t data = m68k_read_memory_16(dataa);
25484 	m68k_areg (regs, srcreg) = dataa;
25485 {	uint16_t val = data;
25486 	uint32_t carry = val & 0x8000;
25487 	val <<= 1;
25488 	if (GET_XFLG) val |= 1;
25489 	CLEAR_CZNV;
25490 	SET_ZFLG (((int16_t)(val)) == 0);
25491 	SET_NFLG (((int16_t)(val)) < 0);
25492 SET_CFLG (carry >> 15);
25493 	COPY_CARRY;
25494 	m68k_write_memory_16(dataa,val);
25495 }}}}m68k_incpc(2);
25496 return 14;
25497 }
CPUFUNC(op_e5e8_4)25498 unsigned long CPUFUNC(op_e5e8_4)(uint32_t opcode) /* ROXLW */
25499 {
25500 	uint32_t srcreg = (opcode & 7);
25501 	OpcodeFamily = 78; CurrentInstrCycles = 16;
25502 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
25503 {	int16_t data = m68k_read_memory_16(dataa);
25504 {	uint16_t val = data;
25505 	uint32_t carry = val & 0x8000;
25506 	val <<= 1;
25507 	if (GET_XFLG) val |= 1;
25508 	CLEAR_CZNV;
25509 	SET_ZFLG (((int16_t)(val)) == 0);
25510 	SET_NFLG (((int16_t)(val)) < 0);
25511 SET_CFLG (carry >> 15);
25512 	COPY_CARRY;
25513 	m68k_write_memory_16(dataa,val);
25514 }}}}m68k_incpc(4);
25515 return 16;
25516 }
CPUFUNC(op_e5f0_4)25517 unsigned long CPUFUNC(op_e5f0_4)(uint32_t opcode) /* ROXLW */
25518 {
25519 	uint32_t srcreg = (opcode & 7);
25520 	OpcodeFamily = 78; CurrentInstrCycles = 18;
25521 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
25522 	BusCyclePenalty += 2;
25523 {	int16_t data = m68k_read_memory_16(dataa);
25524 {	uint16_t val = data;
25525 	uint32_t carry = val & 0x8000;
25526 	val <<= 1;
25527 	if (GET_XFLG) val |= 1;
25528 	CLEAR_CZNV;
25529 	SET_ZFLG (((int16_t)(val)) == 0);
25530 	SET_NFLG (((int16_t)(val)) < 0);
25531 SET_CFLG (carry >> 15);
25532 	COPY_CARRY;
25533 	m68k_write_memory_16(dataa,val);
25534 }}}}m68k_incpc(4);
25535 return 18;
25536 }
CPUFUNC(op_e5f8_4)25537 unsigned long CPUFUNC(op_e5f8_4)(uint32_t opcode) /* ROXLW */
25538 {
25539 	OpcodeFamily = 78; CurrentInstrCycles = 16;
25540 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
25541 {	int16_t data = m68k_read_memory_16(dataa);
25542 {	uint16_t val = data;
25543 	uint32_t carry = val & 0x8000;
25544 	val <<= 1;
25545 	if (GET_XFLG) val |= 1;
25546 	CLEAR_CZNV;
25547 	SET_ZFLG (((int16_t)(val)) == 0);
25548 	SET_NFLG (((int16_t)(val)) < 0);
25549 SET_CFLG (carry >> 15);
25550 	COPY_CARRY;
25551 	m68k_write_memory_16(dataa,val);
25552 }}}}m68k_incpc(4);
25553 return 16;
25554 }
CPUFUNC(op_e5f9_4)25555 unsigned long CPUFUNC(op_e5f9_4)(uint32_t opcode) /* ROXLW */
25556 {
25557 	OpcodeFamily = 78; CurrentInstrCycles = 20;
25558 {{	uint32_t dataa = get_ilong(2);
25559 {	int16_t data = m68k_read_memory_16(dataa);
25560 {	uint16_t val = data;
25561 	uint32_t carry = val & 0x8000;
25562 	val <<= 1;
25563 	if (GET_XFLG) val |= 1;
25564 	CLEAR_CZNV;
25565 	SET_ZFLG (((int16_t)(val)) == 0);
25566 	SET_NFLG (((int16_t)(val)) < 0);
25567 SET_CFLG (carry >> 15);
25568 	COPY_CARRY;
25569 	m68k_write_memory_16(dataa,val);
25570 }}}}m68k_incpc(6);
25571 return 20;
25572 }
CPUFUNC(op_e6d0_4)25573 unsigned long CPUFUNC(op_e6d0_4)(uint32_t opcode) /* RORW */
25574 {
25575 	uint32_t srcreg = (opcode & 7);
25576 	OpcodeFamily = 77; CurrentInstrCycles = 12;
25577 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25578 {	int16_t data = m68k_read_memory_16(dataa);
25579 {	uint16_t val = data;
25580 	uint32_t carry = val & 1;
25581 	val >>= 1;
25582 	if (carry) val |= 0x8000;
25583 	CLEAR_CZNV;
25584 	SET_ZFLG (((int16_t)(val)) == 0);
25585 	SET_NFLG (((int16_t)(val)) < 0);
25586 SET_CFLG (carry);
25587 	m68k_write_memory_16(dataa,val);
25588 }}}}m68k_incpc(2);
25589 return 12;
25590 }
CPUFUNC(op_e6d8_4)25591 unsigned long CPUFUNC(op_e6d8_4)(uint32_t opcode) /* RORW */
25592 {
25593 	uint32_t srcreg = (opcode & 7);
25594 	OpcodeFamily = 77; CurrentInstrCycles = 12;
25595 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25596 {	int16_t data = m68k_read_memory_16(dataa);
25597 	m68k_areg(regs, srcreg) += 2;
25598 {	uint16_t val = data;
25599 	uint32_t carry = val & 1;
25600 	val >>= 1;
25601 	if (carry) val |= 0x8000;
25602 	CLEAR_CZNV;
25603 	SET_ZFLG (((int16_t)(val)) == 0);
25604 	SET_NFLG (((int16_t)(val)) < 0);
25605 SET_CFLG (carry);
25606 	m68k_write_memory_16(dataa,val);
25607 }}}}m68k_incpc(2);
25608 return 12;
25609 }
CPUFUNC(op_e6e0_4)25610 unsigned long CPUFUNC(op_e6e0_4)(uint32_t opcode) /* RORW */
25611 {
25612 	uint32_t srcreg = (opcode & 7);
25613 	OpcodeFamily = 77; CurrentInstrCycles = 14;
25614 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
25615 {	int16_t data = m68k_read_memory_16(dataa);
25616 	m68k_areg (regs, srcreg) = dataa;
25617 {	uint16_t val = data;
25618 	uint32_t carry = val & 1;
25619 	val >>= 1;
25620 	if (carry) val |= 0x8000;
25621 	CLEAR_CZNV;
25622 	SET_ZFLG (((int16_t)(val)) == 0);
25623 	SET_NFLG (((int16_t)(val)) < 0);
25624 SET_CFLG (carry);
25625 	m68k_write_memory_16(dataa,val);
25626 }}}}m68k_incpc(2);
25627 return 14;
25628 }
CPUFUNC(op_e6e8_4)25629 unsigned long CPUFUNC(op_e6e8_4)(uint32_t opcode) /* RORW */
25630 {
25631 	uint32_t srcreg = (opcode & 7);
25632 	OpcodeFamily = 77; CurrentInstrCycles = 16;
25633 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
25634 {	int16_t data = m68k_read_memory_16(dataa);
25635 {	uint16_t val = data;
25636 	uint32_t carry = val & 1;
25637 	val >>= 1;
25638 	if (carry) val |= 0x8000;
25639 	CLEAR_CZNV;
25640 	SET_ZFLG (((int16_t)(val)) == 0);
25641 	SET_NFLG (((int16_t)(val)) < 0);
25642 SET_CFLG (carry);
25643 	m68k_write_memory_16(dataa,val);
25644 }}}}m68k_incpc(4);
25645 return 16;
25646 }
CPUFUNC(op_e6f0_4)25647 unsigned long CPUFUNC(op_e6f0_4)(uint32_t opcode) /* RORW */
25648 {
25649 	uint32_t srcreg = (opcode & 7);
25650 	OpcodeFamily = 77; CurrentInstrCycles = 18;
25651 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
25652 	BusCyclePenalty += 2;
25653 {	int16_t data = m68k_read_memory_16(dataa);
25654 {	uint16_t val = data;
25655 	uint32_t carry = val & 1;
25656 	val >>= 1;
25657 	if (carry) val |= 0x8000;
25658 	CLEAR_CZNV;
25659 	SET_ZFLG (((int16_t)(val)) == 0);
25660 	SET_NFLG (((int16_t)(val)) < 0);
25661 SET_CFLG (carry);
25662 	m68k_write_memory_16(dataa,val);
25663 }}}}m68k_incpc(4);
25664 return 18;
25665 }
CPUFUNC(op_e6f8_4)25666 unsigned long CPUFUNC(op_e6f8_4)(uint32_t opcode) /* RORW */
25667 {
25668 	OpcodeFamily = 77; CurrentInstrCycles = 16;
25669 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
25670 {	int16_t data = m68k_read_memory_16(dataa);
25671 {	uint16_t val = data;
25672 	uint32_t carry = val & 1;
25673 	val >>= 1;
25674 	if (carry) val |= 0x8000;
25675 	CLEAR_CZNV;
25676 	SET_ZFLG (((int16_t)(val)) == 0);
25677 	SET_NFLG (((int16_t)(val)) < 0);
25678 SET_CFLG (carry);
25679 	m68k_write_memory_16(dataa,val);
25680 }}}}m68k_incpc(4);
25681 return 16;
25682 }
CPUFUNC(op_e6f9_4)25683 unsigned long CPUFUNC(op_e6f9_4)(uint32_t opcode) /* RORW */
25684 {
25685 	OpcodeFamily = 77; CurrentInstrCycles = 20;
25686 {{	uint32_t dataa = get_ilong(2);
25687 {	int16_t data = m68k_read_memory_16(dataa);
25688 {	uint16_t val = data;
25689 	uint32_t carry = val & 1;
25690 	val >>= 1;
25691 	if (carry) val |= 0x8000;
25692 	CLEAR_CZNV;
25693 	SET_ZFLG (((int16_t)(val)) == 0);
25694 	SET_NFLG (((int16_t)(val)) < 0);
25695 SET_CFLG (carry);
25696 	m68k_write_memory_16(dataa,val);
25697 }}}}m68k_incpc(6);
25698 return 20;
25699 }
CPUFUNC(op_e7d0_4)25700 unsigned long CPUFUNC(op_e7d0_4)(uint32_t opcode) /* ROLW */
25701 {
25702 	uint32_t srcreg = (opcode & 7);
25703 	OpcodeFamily = 76; CurrentInstrCycles = 12;
25704 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25705 {	int16_t data = m68k_read_memory_16(dataa);
25706 {	uint16_t val = data;
25707 	uint32_t carry = val & 0x8000;
25708 	val <<= 1;
25709 	if (carry)  val |= 1;
25710 	CLEAR_CZNV;
25711 	SET_ZFLG (((int16_t)(val)) == 0);
25712 	SET_NFLG (((int16_t)(val)) < 0);
25713 SET_CFLG (carry >> 15);
25714 	m68k_write_memory_16(dataa,val);
25715 }}}}m68k_incpc(2);
25716 return 12;
25717 }
CPUFUNC(op_e7d8_4)25718 unsigned long CPUFUNC(op_e7d8_4)(uint32_t opcode) /* ROLW */
25719 {
25720 	uint32_t srcreg = (opcode & 7);
25721 	OpcodeFamily = 76; CurrentInstrCycles = 12;
25722 {{	uint32_t dataa = m68k_areg(regs, srcreg);
25723 {	int16_t data = m68k_read_memory_16(dataa);
25724 	m68k_areg(regs, srcreg) += 2;
25725 {	uint16_t val = data;
25726 	uint32_t carry = val & 0x8000;
25727 	val <<= 1;
25728 	if (carry)  val |= 1;
25729 	CLEAR_CZNV;
25730 	SET_ZFLG (((int16_t)(val)) == 0);
25731 	SET_NFLG (((int16_t)(val)) < 0);
25732 SET_CFLG (carry >> 15);
25733 	m68k_write_memory_16(dataa,val);
25734 }}}}m68k_incpc(2);
25735 return 12;
25736 }
CPUFUNC(op_e7e0_4)25737 unsigned long CPUFUNC(op_e7e0_4)(uint32_t opcode) /* ROLW */
25738 {
25739 	uint32_t srcreg = (opcode & 7);
25740 	OpcodeFamily = 76; CurrentInstrCycles = 14;
25741 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
25742 {	int16_t data = m68k_read_memory_16(dataa);
25743 	m68k_areg (regs, srcreg) = dataa;
25744 {	uint16_t val = data;
25745 	uint32_t carry = val & 0x8000;
25746 	val <<= 1;
25747 	if (carry)  val |= 1;
25748 	CLEAR_CZNV;
25749 	SET_ZFLG (((int16_t)(val)) == 0);
25750 	SET_NFLG (((int16_t)(val)) < 0);
25751 SET_CFLG (carry >> 15);
25752 	m68k_write_memory_16(dataa,val);
25753 }}}}m68k_incpc(2);
25754 return 14;
25755 }
CPUFUNC(op_e7e8_4)25756 unsigned long CPUFUNC(op_e7e8_4)(uint32_t opcode) /* ROLW */
25757 {
25758 	uint32_t srcreg = (opcode & 7);
25759 	OpcodeFamily = 76; CurrentInstrCycles = 16;
25760 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword(2);
25761 {	int16_t data = m68k_read_memory_16(dataa);
25762 {	uint16_t val = data;
25763 	uint32_t carry = val & 0x8000;
25764 	val <<= 1;
25765 	if (carry)  val |= 1;
25766 	CLEAR_CZNV;
25767 	SET_ZFLG (((int16_t)(val)) == 0);
25768 	SET_NFLG (((int16_t)(val)) < 0);
25769 SET_CFLG (carry >> 15);
25770 	m68k_write_memory_16(dataa,val);
25771 }}}}m68k_incpc(4);
25772 return 16;
25773 }
CPUFUNC(op_e7f0_4)25774 unsigned long CPUFUNC(op_e7f0_4)(uint32_t opcode) /* ROLW */
25775 {
25776 	uint32_t srcreg = (opcode & 7);
25777 	OpcodeFamily = 76; CurrentInstrCycles = 18;
25778 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword(2));
25779 	BusCyclePenalty += 2;
25780 {	int16_t data = m68k_read_memory_16(dataa);
25781 {	uint16_t val = data;
25782 	uint32_t carry = val & 0x8000;
25783 	val <<= 1;
25784 	if (carry)  val |= 1;
25785 	CLEAR_CZNV;
25786 	SET_ZFLG (((int16_t)(val)) == 0);
25787 	SET_NFLG (((int16_t)(val)) < 0);
25788 SET_CFLG (carry >> 15);
25789 	m68k_write_memory_16(dataa,val);
25790 }}}}m68k_incpc(4);
25791 return 18;
25792 }
CPUFUNC(op_e7f8_4)25793 unsigned long CPUFUNC(op_e7f8_4)(uint32_t opcode) /* ROLW */
25794 {
25795 	OpcodeFamily = 76; CurrentInstrCycles = 16;
25796 {{	uint32_t dataa = (int32_t)(int16_t)get_iword(2);
25797 {	int16_t data = m68k_read_memory_16(dataa);
25798 {	uint16_t val = data;
25799 	uint32_t carry = val & 0x8000;
25800 	val <<= 1;
25801 	if (carry)  val |= 1;
25802 	CLEAR_CZNV;
25803 	SET_ZFLG (((int16_t)(val)) == 0);
25804 	SET_NFLG (((int16_t)(val)) < 0);
25805 SET_CFLG (carry >> 15);
25806 	m68k_write_memory_16(dataa,val);
25807 }}}}m68k_incpc(4);
25808 return 16;
25809 }
CPUFUNC(op_e7f9_4)25810 unsigned long CPUFUNC(op_e7f9_4)(uint32_t opcode) /* ROLW */
25811 {
25812 	OpcodeFamily = 76; CurrentInstrCycles = 20;
25813 {{	uint32_t dataa = get_ilong(2);
25814 {	int16_t data = m68k_read_memory_16(dataa);
25815 {	uint16_t val = data;
25816 	uint32_t carry = val & 0x8000;
25817 	val <<= 1;
25818 	if (carry)  val |= 1;
25819 	CLEAR_CZNV;
25820 	SET_ZFLG (((int16_t)(val)) == 0);
25821 	SET_NFLG (((int16_t)(val)) < 0);
25822 SET_CFLG (carry >> 15);
25823 	m68k_write_memory_16(dataa,val);
25824 }}}}m68k_incpc(6);
25825 return 20;
25826 }
25827 #endif
25828 
25829 
25830 #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8)
25831 #define PART_1 1
25832 #define PART_2 1
25833 #define PART_3 1
25834 #define PART_4 1
25835 #define PART_5 1
25836 #define PART_6 1
25837 #define PART_7 1
25838 #define PART_8 1
25839 #endif
25840 
25841 #ifdef PART_1
CPUFUNC(op_0_5)25842 unsigned long CPUFUNC(op_0_5)(uint32_t opcode) /* OR */
25843 {
25844 	uint32_t dstreg = opcode & 7;
25845 	OpcodeFamily = 1; CurrentInstrCycles = 8;
25846 {{	int8_t src = get_ibyte_prefetch(2);
25847 {	int8_t dst = m68k_dreg(regs, dstreg);
25848 	src |= dst;
25849 	CLEAR_CZNV;
25850 	SET_ZFLG (((int8_t)(src)) == 0);
25851 	SET_NFLG (((int8_t)(src)) < 0);
25852 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
25853 }}}m68k_incpc(4);
25854 fill_prefetch_0 ();
25855 return 8;
25856 }
CPUFUNC(op_10_5)25857 unsigned long CPUFUNC(op_10_5)(uint32_t opcode) /* OR */
25858 {
25859 	uint32_t dstreg = opcode & 7;
25860 	OpcodeFamily = 1; CurrentInstrCycles = 16;
25861 {{	int8_t src = get_ibyte_prefetch(2);
25862 {	uint32_t dsta = m68k_areg(regs, dstreg);
25863 {	int8_t dst = m68k_read_memory_8(dsta);
25864 	src |= dst;
25865 	CLEAR_CZNV;
25866 	SET_ZFLG (((int8_t)(src)) == 0);
25867 	SET_NFLG (((int8_t)(src)) < 0);
25868 m68k_incpc(4);
25869 fill_prefetch_0 ();
25870 	m68k_write_memory_8(dsta,src);
25871 }}}}return 16;
25872 }
CPUFUNC(op_18_5)25873 unsigned long CPUFUNC(op_18_5)(uint32_t opcode) /* OR */
25874 {
25875 	uint32_t dstreg = opcode & 7;
25876 	OpcodeFamily = 1; CurrentInstrCycles = 16;
25877 {{	int8_t src = get_ibyte_prefetch(2);
25878 {	uint32_t dsta = m68k_areg(regs, dstreg);
25879 {	int8_t dst = m68k_read_memory_8(dsta);
25880 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
25881 	src |= dst;
25882 	CLEAR_CZNV;
25883 	SET_ZFLG (((int8_t)(src)) == 0);
25884 	SET_NFLG (((int8_t)(src)) < 0);
25885 m68k_incpc(4);
25886 fill_prefetch_0 ();
25887 	m68k_write_memory_8(dsta,src);
25888 }}}}return 16;
25889 }
CPUFUNC(op_20_5)25890 unsigned long CPUFUNC(op_20_5)(uint32_t opcode) /* OR */
25891 {
25892 	uint32_t dstreg = opcode & 7;
25893 	OpcodeFamily = 1; CurrentInstrCycles = 18;
25894 {{	int8_t src = get_ibyte_prefetch(2);
25895 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
25896 {	int8_t dst = m68k_read_memory_8(dsta);
25897 	m68k_areg (regs, dstreg) = dsta;
25898 	src |= dst;
25899 	CLEAR_CZNV;
25900 	SET_ZFLG (((int8_t)(src)) == 0);
25901 	SET_NFLG (((int8_t)(src)) < 0);
25902 m68k_incpc(4);
25903 fill_prefetch_0 ();
25904 	m68k_write_memory_8(dsta,src);
25905 }}}}return 18;
25906 }
CPUFUNC(op_28_5)25907 unsigned long CPUFUNC(op_28_5)(uint32_t opcode) /* OR */
25908 {
25909 	uint32_t dstreg = opcode & 7;
25910 	OpcodeFamily = 1; CurrentInstrCycles = 20;
25911 {{	int8_t src = get_ibyte_prefetch(2);
25912 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
25913 {	int8_t dst = m68k_read_memory_8(dsta);
25914 	src |= dst;
25915 	CLEAR_CZNV;
25916 	SET_ZFLG (((int8_t)(src)) == 0);
25917 	SET_NFLG (((int8_t)(src)) < 0);
25918 m68k_incpc(6);
25919 fill_prefetch_0 ();
25920 	m68k_write_memory_8(dsta,src);
25921 }}}}return 20;
25922 }
CPUFUNC(op_30_5)25923 unsigned long CPUFUNC(op_30_5)(uint32_t opcode) /* OR */
25924 {
25925 	uint32_t dstreg = opcode & 7;
25926 	OpcodeFamily = 1; CurrentInstrCycles = 22;
25927 {{	int8_t src = get_ibyte_prefetch(2);
25928 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
25929 	BusCyclePenalty += 2;
25930 {	int8_t dst = m68k_read_memory_8(dsta);
25931 	src |= dst;
25932 	CLEAR_CZNV;
25933 	SET_ZFLG (((int8_t)(src)) == 0);
25934 	SET_NFLG (((int8_t)(src)) < 0);
25935 m68k_incpc(6);
25936 fill_prefetch_0 ();
25937 	m68k_write_memory_8(dsta,src);
25938 }}}}return 22;
25939 }
CPUFUNC(op_38_5)25940 unsigned long CPUFUNC(op_38_5)(uint32_t opcode) /* OR */
25941 {
25942 	OpcodeFamily = 1; CurrentInstrCycles = 20;
25943 {{	int8_t src = get_ibyte_prefetch(2);
25944 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
25945 {	int8_t dst = m68k_read_memory_8(dsta);
25946 	src |= dst;
25947 	CLEAR_CZNV;
25948 	SET_ZFLG (((int8_t)(src)) == 0);
25949 	SET_NFLG (((int8_t)(src)) < 0);
25950 m68k_incpc(6);
25951 fill_prefetch_0 ();
25952 	m68k_write_memory_8(dsta,src);
25953 }}}}return 20;
25954 }
CPUFUNC(op_39_5)25955 unsigned long CPUFUNC(op_39_5)(uint32_t opcode) /* OR */
25956 {
25957 	OpcodeFamily = 1; CurrentInstrCycles = 24;
25958 {{	int8_t src = get_ibyte_prefetch(2);
25959 {	uint32_t dsta = get_ilong_prefetch(4);
25960 {	int8_t dst = m68k_read_memory_8(dsta);
25961 	src |= dst;
25962 	CLEAR_CZNV;
25963 	SET_ZFLG (((int8_t)(src)) == 0);
25964 	SET_NFLG (((int8_t)(src)) < 0);
25965 m68k_incpc(8);
25966 fill_prefetch_0 ();
25967 	m68k_write_memory_8(dsta,src);
25968 }}}}return 24;
25969 }
CPUFUNC(op_3c_5)25970 unsigned long CPUFUNC(op_3c_5)(uint32_t opcode) /* ORSR */
25971 {
25972 	OpcodeFamily = 4; CurrentInstrCycles = 20;
25973 {	MakeSR();
25974 {	int16_t src = get_iword_prefetch(2);
25975 	src &= 0xFF;
25976 	regs.sr |= src;
25977 	MakeFromSR();
25978 }}m68k_incpc(4);
25979 fill_prefetch_0 ();
25980 return 20;
25981 }
CPUFUNC(op_40_5)25982 unsigned long CPUFUNC(op_40_5)(uint32_t opcode) /* OR */
25983 {
25984 	uint32_t dstreg = opcode & 7;
25985 	OpcodeFamily = 1; CurrentInstrCycles = 8;
25986 {{	int16_t src = get_iword_prefetch(2);
25987 {	int16_t dst = m68k_dreg(regs, dstreg);
25988 	src |= dst;
25989 	CLEAR_CZNV;
25990 	SET_ZFLG (((int16_t)(src)) == 0);
25991 	SET_NFLG (((int16_t)(src)) < 0);
25992 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
25993 }}}m68k_incpc(4);
25994 fill_prefetch_0 ();
25995 return 8;
25996 }
CPUFUNC(op_50_5)25997 unsigned long CPUFUNC(op_50_5)(uint32_t opcode) /* OR */
25998 {
25999 	uint32_t dstreg = opcode & 7;
26000 	OpcodeFamily = 1; CurrentInstrCycles = 16;
26001 {{	int16_t src = get_iword_prefetch(2);
26002 {	uint32_t dsta = m68k_areg(regs, dstreg);
26003 	if ((dsta & 1) != 0) {
26004 		last_fault_for_exception_3 = dsta;
26005 		last_op_for_exception_3 = opcode;
26006 		last_addr_for_exception_3 = m68k_getpc() + 4;
26007 		Exception(3, 0, M68000_EXC_SRC_CPU);
26008 		goto endlabel1591;
26009 	}
26010 {{	int16_t dst = m68k_read_memory_16(dsta);
26011 	src |= dst;
26012 	CLEAR_CZNV;
26013 	SET_ZFLG (((int16_t)(src)) == 0);
26014 	SET_NFLG (((int16_t)(src)) < 0);
26015 m68k_incpc(4);
26016 fill_prefetch_0 ();
26017 	m68k_write_memory_16(dsta,src);
26018 }}}}}endlabel1591: ;
26019 return 16;
26020 }
CPUFUNC(op_58_5)26021 unsigned long CPUFUNC(op_58_5)(uint32_t opcode) /* OR */
26022 {
26023 	uint32_t dstreg = opcode & 7;
26024 	OpcodeFamily = 1; CurrentInstrCycles = 16;
26025 {{	int16_t src = get_iword_prefetch(2);
26026 {	uint32_t dsta = m68k_areg(regs, dstreg);
26027 	if ((dsta & 1) != 0) {
26028 		last_fault_for_exception_3 = dsta;
26029 		last_op_for_exception_3 = opcode;
26030 		last_addr_for_exception_3 = m68k_getpc() + 4;
26031 		Exception(3, 0, M68000_EXC_SRC_CPU);
26032 		goto endlabel1592;
26033 	}
26034 {{	int16_t dst = m68k_read_memory_16(dsta);
26035 	m68k_areg(regs, dstreg) += 2;
26036 	src |= dst;
26037 	CLEAR_CZNV;
26038 	SET_ZFLG (((int16_t)(src)) == 0);
26039 	SET_NFLG (((int16_t)(src)) < 0);
26040 m68k_incpc(4);
26041 fill_prefetch_0 ();
26042 	m68k_write_memory_16(dsta,src);
26043 }}}}}endlabel1592: ;
26044 return 16;
26045 }
CPUFUNC(op_60_5)26046 unsigned long CPUFUNC(op_60_5)(uint32_t opcode) /* OR */
26047 {
26048 	uint32_t dstreg = opcode & 7;
26049 	OpcodeFamily = 1; CurrentInstrCycles = 18;
26050 {{	int16_t src = get_iword_prefetch(2);
26051 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
26052 	if ((dsta & 1) != 0) {
26053 		last_fault_for_exception_3 = dsta;
26054 		last_op_for_exception_3 = opcode;
26055 		last_addr_for_exception_3 = m68k_getpc() + 4;
26056 		Exception(3, 0, M68000_EXC_SRC_CPU);
26057 		goto endlabel1593;
26058 	}
26059 {{	int16_t dst = m68k_read_memory_16(dsta);
26060 	m68k_areg (regs, dstreg) = dsta;
26061 	src |= dst;
26062 	CLEAR_CZNV;
26063 	SET_ZFLG (((int16_t)(src)) == 0);
26064 	SET_NFLG (((int16_t)(src)) < 0);
26065 m68k_incpc(4);
26066 fill_prefetch_0 ();
26067 	m68k_write_memory_16(dsta,src);
26068 }}}}}endlabel1593: ;
26069 return 18;
26070 }
CPUFUNC(op_68_5)26071 unsigned long CPUFUNC(op_68_5)(uint32_t opcode) /* OR */
26072 {
26073 	uint32_t dstreg = opcode & 7;
26074 	OpcodeFamily = 1; CurrentInstrCycles = 20;
26075 {{	int16_t src = get_iword_prefetch(2);
26076 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
26077 	if ((dsta & 1) != 0) {
26078 		last_fault_for_exception_3 = dsta;
26079 		last_op_for_exception_3 = opcode;
26080 		last_addr_for_exception_3 = m68k_getpc() + 6;
26081 		Exception(3, 0, M68000_EXC_SRC_CPU);
26082 		goto endlabel1594;
26083 	}
26084 {{	int16_t dst = m68k_read_memory_16(dsta);
26085 	src |= dst;
26086 	CLEAR_CZNV;
26087 	SET_ZFLG (((int16_t)(src)) == 0);
26088 	SET_NFLG (((int16_t)(src)) < 0);
26089 m68k_incpc(6);
26090 fill_prefetch_0 ();
26091 	m68k_write_memory_16(dsta,src);
26092 }}}}}endlabel1594: ;
26093 return 20;
26094 }
CPUFUNC(op_70_5)26095 unsigned long CPUFUNC(op_70_5)(uint32_t opcode) /* OR */
26096 {
26097 	uint32_t dstreg = opcode & 7;
26098 	OpcodeFamily = 1; CurrentInstrCycles = 22;
26099 {{	int16_t src = get_iword_prefetch(2);
26100 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
26101 	BusCyclePenalty += 2;
26102 	if ((dsta & 1) != 0) {
26103 		last_fault_for_exception_3 = dsta;
26104 		last_op_for_exception_3 = opcode;
26105 		last_addr_for_exception_3 = m68k_getpc() + 6;
26106 		Exception(3, 0, M68000_EXC_SRC_CPU);
26107 		goto endlabel1595;
26108 	}
26109 {{	int16_t dst = m68k_read_memory_16(dsta);
26110 	src |= dst;
26111 	CLEAR_CZNV;
26112 	SET_ZFLG (((int16_t)(src)) == 0);
26113 	SET_NFLG (((int16_t)(src)) < 0);
26114 m68k_incpc(6);
26115 fill_prefetch_0 ();
26116 	m68k_write_memory_16(dsta,src);
26117 }}}}}endlabel1595: ;
26118 return 22;
26119 }
CPUFUNC(op_78_5)26120 unsigned long CPUFUNC(op_78_5)(uint32_t opcode) /* OR */
26121 {
26122 	OpcodeFamily = 1; CurrentInstrCycles = 20;
26123 {{	int16_t src = get_iword_prefetch(2);
26124 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
26125 	if ((dsta & 1) != 0) {
26126 		last_fault_for_exception_3 = dsta;
26127 		last_op_for_exception_3 = opcode;
26128 		last_addr_for_exception_3 = m68k_getpc() + 6;
26129 		Exception(3, 0, M68000_EXC_SRC_CPU);
26130 		goto endlabel1596;
26131 	}
26132 {{	int16_t dst = m68k_read_memory_16(dsta);
26133 	src |= dst;
26134 	CLEAR_CZNV;
26135 	SET_ZFLG (((int16_t)(src)) == 0);
26136 	SET_NFLG (((int16_t)(src)) < 0);
26137 m68k_incpc(6);
26138 fill_prefetch_0 ();
26139 	m68k_write_memory_16(dsta,src);
26140 }}}}}endlabel1596: ;
26141 return 20;
26142 }
CPUFUNC(op_79_5)26143 unsigned long CPUFUNC(op_79_5)(uint32_t opcode) /* OR */
26144 {
26145 	OpcodeFamily = 1; CurrentInstrCycles = 24;
26146 {{	int16_t src = get_iword_prefetch(2);
26147 {	uint32_t dsta = get_ilong_prefetch(4);
26148 	if ((dsta & 1) != 0) {
26149 		last_fault_for_exception_3 = dsta;
26150 		last_op_for_exception_3 = opcode;
26151 		last_addr_for_exception_3 = m68k_getpc() + 8;
26152 		Exception(3, 0, M68000_EXC_SRC_CPU);
26153 		goto endlabel1597;
26154 	}
26155 {{	int16_t dst = m68k_read_memory_16(dsta);
26156 	src |= dst;
26157 	CLEAR_CZNV;
26158 	SET_ZFLG (((int16_t)(src)) == 0);
26159 	SET_NFLG (((int16_t)(src)) < 0);
26160 m68k_incpc(8);
26161 fill_prefetch_0 ();
26162 	m68k_write_memory_16(dsta,src);
26163 }}}}}endlabel1597: ;
26164 return 24;
26165 }
CPUFUNC(op_7c_5)26166 unsigned long CPUFUNC(op_7c_5)(uint32_t opcode) /* ORSR */
26167 {
26168 	OpcodeFamily = 4; CurrentInstrCycles = 20;
26169 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel1598; }
26170 {	MakeSR();
26171 {	int16_t src = get_iword_prefetch(2);
26172 	regs.sr |= src;
26173 	MakeFromSR();
26174 }}}m68k_incpc(4);
26175 fill_prefetch_0 ();
26176 endlabel1598: ;
26177 return 20;
26178 }
CPUFUNC(op_80_5)26179 unsigned long CPUFUNC(op_80_5)(uint32_t opcode) /* OR */
26180 {
26181 	uint32_t dstreg = opcode & 7;
26182 	OpcodeFamily = 1; CurrentInstrCycles = 16;
26183 {{	int32_t src = get_ilong_prefetch(2);
26184 {	int32_t dst = m68k_dreg(regs, dstreg);
26185 	src |= dst;
26186 	CLEAR_CZNV;
26187 	SET_ZFLG (((int32_t)(src)) == 0);
26188 	SET_NFLG (((int32_t)(src)) < 0);
26189 	m68k_dreg(regs, dstreg) = (src);
26190 }}}m68k_incpc(6);
26191 fill_prefetch_0 ();
26192 return 16;
26193 }
CPUFUNC(op_90_5)26194 unsigned long CPUFUNC(op_90_5)(uint32_t opcode) /* OR */
26195 {
26196 	uint32_t dstreg = opcode & 7;
26197 	OpcodeFamily = 1; CurrentInstrCycles = 28;
26198 {{	int32_t src = get_ilong_prefetch(2);
26199 {	uint32_t dsta = m68k_areg(regs, dstreg);
26200 	if ((dsta & 1) != 0) {
26201 		last_fault_for_exception_3 = dsta;
26202 		last_op_for_exception_3 = opcode;
26203 		last_addr_for_exception_3 = m68k_getpc() + 6;
26204 		Exception(3, 0, M68000_EXC_SRC_CPU);
26205 		goto endlabel1600;
26206 	}
26207 {{	int32_t dst = m68k_read_memory_32(dsta);
26208 	src |= dst;
26209 	CLEAR_CZNV;
26210 	SET_ZFLG (((int32_t)(src)) == 0);
26211 	SET_NFLG (((int32_t)(src)) < 0);
26212 m68k_incpc(6);
26213 fill_prefetch_0 ();
26214 	m68k_write_memory_32(dsta,src);
26215 }}}}}endlabel1600: ;
26216 return 28;
26217 }
CPUFUNC(op_98_5)26218 unsigned long CPUFUNC(op_98_5)(uint32_t opcode) /* OR */
26219 {
26220 	uint32_t dstreg = opcode & 7;
26221 	OpcodeFamily = 1; CurrentInstrCycles = 28;
26222 {{	int32_t src = get_ilong_prefetch(2);
26223 {	uint32_t dsta = m68k_areg(regs, dstreg);
26224 	if ((dsta & 1) != 0) {
26225 		last_fault_for_exception_3 = dsta;
26226 		last_op_for_exception_3 = opcode;
26227 		last_addr_for_exception_3 = m68k_getpc() + 6;
26228 		Exception(3, 0, M68000_EXC_SRC_CPU);
26229 		goto endlabel1601;
26230 	}
26231 {{	int32_t dst = m68k_read_memory_32(dsta);
26232 	m68k_areg(regs, dstreg) += 4;
26233 	src |= dst;
26234 	CLEAR_CZNV;
26235 	SET_ZFLG (((int32_t)(src)) == 0);
26236 	SET_NFLG (((int32_t)(src)) < 0);
26237 m68k_incpc(6);
26238 fill_prefetch_0 ();
26239 	m68k_write_memory_32(dsta,src);
26240 }}}}}endlabel1601: ;
26241 return 28;
26242 }
CPUFUNC(op_a0_5)26243 unsigned long CPUFUNC(op_a0_5)(uint32_t opcode) /* OR */
26244 {
26245 	uint32_t dstreg = opcode & 7;
26246 	OpcodeFamily = 1; CurrentInstrCycles = 30;
26247 {{	int32_t src = get_ilong_prefetch(2);
26248 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
26249 	if ((dsta & 1) != 0) {
26250 		last_fault_for_exception_3 = dsta;
26251 		last_op_for_exception_3 = opcode;
26252 		last_addr_for_exception_3 = m68k_getpc() + 6;
26253 		Exception(3, 0, M68000_EXC_SRC_CPU);
26254 		goto endlabel1602;
26255 	}
26256 {{	int32_t dst = m68k_read_memory_32(dsta);
26257 	m68k_areg (regs, dstreg) = dsta;
26258 	src |= dst;
26259 	CLEAR_CZNV;
26260 	SET_ZFLG (((int32_t)(src)) == 0);
26261 	SET_NFLG (((int32_t)(src)) < 0);
26262 m68k_incpc(6);
26263 fill_prefetch_0 ();
26264 	m68k_write_memory_32(dsta,src);
26265 }}}}}endlabel1602: ;
26266 return 30;
26267 }
CPUFUNC(op_a8_5)26268 unsigned long CPUFUNC(op_a8_5)(uint32_t opcode) /* OR */
26269 {
26270 	uint32_t dstreg = opcode & 7;
26271 	OpcodeFamily = 1; CurrentInstrCycles = 32;
26272 {{	int32_t src = get_ilong_prefetch(2);
26273 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
26274 	if ((dsta & 1) != 0) {
26275 		last_fault_for_exception_3 = dsta;
26276 		last_op_for_exception_3 = opcode;
26277 		last_addr_for_exception_3 = m68k_getpc() + 8;
26278 		Exception(3, 0, M68000_EXC_SRC_CPU);
26279 		goto endlabel1603;
26280 	}
26281 {{	int32_t dst = m68k_read_memory_32(dsta);
26282 	src |= dst;
26283 	CLEAR_CZNV;
26284 	SET_ZFLG (((int32_t)(src)) == 0);
26285 	SET_NFLG (((int32_t)(src)) < 0);
26286 m68k_incpc(8);
26287 fill_prefetch_0 ();
26288 	m68k_write_memory_32(dsta,src);
26289 }}}}}endlabel1603: ;
26290 return 32;
26291 }
CPUFUNC(op_b0_5)26292 unsigned long CPUFUNC(op_b0_5)(uint32_t opcode) /* OR */
26293 {
26294 	uint32_t dstreg = opcode & 7;
26295 	OpcodeFamily = 1; CurrentInstrCycles = 34;
26296 {{	int32_t src = get_ilong_prefetch(2);
26297 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
26298 	BusCyclePenalty += 2;
26299 	if ((dsta & 1) != 0) {
26300 		last_fault_for_exception_3 = dsta;
26301 		last_op_for_exception_3 = opcode;
26302 		last_addr_for_exception_3 = m68k_getpc() + 8;
26303 		Exception(3, 0, M68000_EXC_SRC_CPU);
26304 		goto endlabel1604;
26305 	}
26306 {{	int32_t dst = m68k_read_memory_32(dsta);
26307 	src |= dst;
26308 	CLEAR_CZNV;
26309 	SET_ZFLG (((int32_t)(src)) == 0);
26310 	SET_NFLG (((int32_t)(src)) < 0);
26311 m68k_incpc(8);
26312 fill_prefetch_0 ();
26313 	m68k_write_memory_32(dsta,src);
26314 }}}}}endlabel1604: ;
26315 return 34;
26316 }
CPUFUNC(op_b8_5)26317 unsigned long CPUFUNC(op_b8_5)(uint32_t opcode) /* OR */
26318 {
26319 	OpcodeFamily = 1; CurrentInstrCycles = 32;
26320 {{	int32_t src = get_ilong_prefetch(2);
26321 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
26322 	if ((dsta & 1) != 0) {
26323 		last_fault_for_exception_3 = dsta;
26324 		last_op_for_exception_3 = opcode;
26325 		last_addr_for_exception_3 = m68k_getpc() + 8;
26326 		Exception(3, 0, M68000_EXC_SRC_CPU);
26327 		goto endlabel1605;
26328 	}
26329 {{	int32_t dst = m68k_read_memory_32(dsta);
26330 	src |= dst;
26331 	CLEAR_CZNV;
26332 	SET_ZFLG (((int32_t)(src)) == 0);
26333 	SET_NFLG (((int32_t)(src)) < 0);
26334 m68k_incpc(8);
26335 fill_prefetch_0 ();
26336 	m68k_write_memory_32(dsta,src);
26337 }}}}}endlabel1605: ;
26338 return 32;
26339 }
CPUFUNC(op_b9_5)26340 unsigned long CPUFUNC(op_b9_5)(uint32_t opcode) /* OR */
26341 {
26342 	OpcodeFamily = 1; CurrentInstrCycles = 36;
26343 {{	int32_t src = get_ilong_prefetch(2);
26344 {	uint32_t dsta = get_ilong_prefetch(6);
26345 	if ((dsta & 1) != 0) {
26346 		last_fault_for_exception_3 = dsta;
26347 		last_op_for_exception_3 = opcode;
26348 		last_addr_for_exception_3 = m68k_getpc() + 10;
26349 		Exception(3, 0, M68000_EXC_SRC_CPU);
26350 		goto endlabel1606;
26351 	}
26352 {{	int32_t dst = m68k_read_memory_32(dsta);
26353 	src |= dst;
26354 	CLEAR_CZNV;
26355 	SET_ZFLG (((int32_t)(src)) == 0);
26356 	SET_NFLG (((int32_t)(src)) < 0);
26357 m68k_incpc(10);
26358 fill_prefetch_0 ();
26359 	m68k_write_memory_32(dsta,src);
26360 }}}}}endlabel1606: ;
26361 return 36;
26362 }
CPUFUNC(op_100_5)26363 unsigned long CPUFUNC(op_100_5)(uint32_t opcode) /* BTST */
26364 {
26365 	uint32_t srcreg = ((opcode >> 9) & 7);
26366 	uint32_t dstreg = opcode & 7;
26367 	OpcodeFamily = 21; CurrentInstrCycles = 6;
26368 {{	int32_t src = m68k_dreg(regs, srcreg);
26369 {	int32_t dst = m68k_dreg(regs, dstreg);
26370 	src &= 31;
26371 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26372 }}}m68k_incpc(2);
26373 fill_prefetch_2 ();
26374 return 6;
26375 }
CPUFUNC(op_108_5)26376 unsigned long CPUFUNC(op_108_5)(uint32_t opcode) /* MVPMR */
26377 {
26378 	uint32_t srcreg = (opcode & 7);
26379 	uint32_t dstreg = (opcode >> 9) & 7;
26380 	OpcodeFamily = 29; CurrentInstrCycles = 16;
26381 {	uint32_t memp = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26382 {	uint16_t val = (m68k_read_memory_8(memp) << 8) + m68k_read_memory_8(memp + 2);
26383 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
26384 }}m68k_incpc(4);
26385 fill_prefetch_0 ();
26386 return 16;
26387 }
CPUFUNC(op_110_5)26388 unsigned long CPUFUNC(op_110_5)(uint32_t opcode) /* BTST */
26389 {
26390 	uint32_t srcreg = ((opcode >> 9) & 7);
26391 	uint32_t dstreg = opcode & 7;
26392 	OpcodeFamily = 21; CurrentInstrCycles = 8;
26393 {{	int8_t src = m68k_dreg(regs, srcreg);
26394 {	uint32_t dsta = m68k_areg(regs, dstreg);
26395 {	int8_t dst = m68k_read_memory_8(dsta);
26396 	src &= 7;
26397 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26398 }}}}m68k_incpc(2);
26399 fill_prefetch_2 ();
26400 return 8;
26401 }
CPUFUNC(op_118_5)26402 unsigned long CPUFUNC(op_118_5)(uint32_t opcode) /* BTST */
26403 {
26404 	uint32_t srcreg = ((opcode >> 9) & 7);
26405 	uint32_t dstreg = opcode & 7;
26406 	OpcodeFamily = 21; CurrentInstrCycles = 8;
26407 {{	int8_t src = m68k_dreg(regs, srcreg);
26408 {	uint32_t dsta = m68k_areg(regs, dstreg);
26409 {	int8_t dst = m68k_read_memory_8(dsta);
26410 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
26411 	src &= 7;
26412 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26413 }}}}m68k_incpc(2);
26414 fill_prefetch_2 ();
26415 return 8;
26416 }
CPUFUNC(op_120_5)26417 unsigned long CPUFUNC(op_120_5)(uint32_t opcode) /* BTST */
26418 {
26419 	uint32_t srcreg = ((opcode >> 9) & 7);
26420 	uint32_t dstreg = opcode & 7;
26421 	OpcodeFamily = 21; CurrentInstrCycles = 10;
26422 {{	int8_t src = m68k_dreg(regs, srcreg);
26423 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
26424 {	int8_t dst = m68k_read_memory_8(dsta);
26425 	m68k_areg (regs, dstreg) = dsta;
26426 	src &= 7;
26427 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26428 }}}}m68k_incpc(2);
26429 fill_prefetch_2 ();
26430 return 10;
26431 }
CPUFUNC(op_128_5)26432 unsigned long CPUFUNC(op_128_5)(uint32_t opcode) /* BTST */
26433 {
26434 	uint32_t srcreg = ((opcode >> 9) & 7);
26435 	uint32_t dstreg = opcode & 7;
26436 	OpcodeFamily = 21; CurrentInstrCycles = 12;
26437 {{	int8_t src = m68k_dreg(regs, srcreg);
26438 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26439 {	int8_t dst = m68k_read_memory_8(dsta);
26440 	src &= 7;
26441 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26442 }}}}m68k_incpc(4);
26443 fill_prefetch_0 ();
26444 return 12;
26445 }
CPUFUNC(op_130_5)26446 unsigned long CPUFUNC(op_130_5)(uint32_t opcode) /* BTST */
26447 {
26448 	uint32_t srcreg = ((opcode >> 9) & 7);
26449 	uint32_t dstreg = opcode & 7;
26450 	OpcodeFamily = 21; CurrentInstrCycles = 14;
26451 {{	int8_t src = m68k_dreg(regs, srcreg);
26452 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
26453 	BusCyclePenalty += 2;
26454 {	int8_t dst = m68k_read_memory_8(dsta);
26455 	src &= 7;
26456 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26457 }}}}m68k_incpc(4);
26458 fill_prefetch_0 ();
26459 return 14;
26460 }
CPUFUNC(op_138_5)26461 unsigned long CPUFUNC(op_138_5)(uint32_t opcode) /* BTST */
26462 {
26463 	uint32_t srcreg = ((opcode >> 9) & 7);
26464 	OpcodeFamily = 21; CurrentInstrCycles = 12;
26465 {{	int8_t src = m68k_dreg(regs, srcreg);
26466 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
26467 {	int8_t dst = m68k_read_memory_8(dsta);
26468 	src &= 7;
26469 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26470 }}}}m68k_incpc(4);
26471 fill_prefetch_0 ();
26472 return 12;
26473 }
CPUFUNC(op_139_5)26474 unsigned long CPUFUNC(op_139_5)(uint32_t opcode) /* BTST */
26475 {
26476 	uint32_t srcreg = ((opcode >> 9) & 7);
26477 	OpcodeFamily = 21; CurrentInstrCycles = 16;
26478 {{	int8_t src = m68k_dreg(regs, srcreg);
26479 {	uint32_t dsta = get_ilong_prefetch(2);
26480 {	int8_t dst = m68k_read_memory_8(dsta);
26481 	src &= 7;
26482 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26483 }}}}m68k_incpc(6);
26484 fill_prefetch_0 ();
26485 return 16;
26486 }
CPUFUNC(op_13a_5)26487 unsigned long CPUFUNC(op_13a_5)(uint32_t opcode) /* BTST */
26488 {
26489 	uint32_t srcreg = ((opcode >> 9) & 7);
26490 	uint32_t dstreg = 2;
26491 	OpcodeFamily = 21; CurrentInstrCycles = 12;
26492 {{	int8_t src = m68k_dreg(regs, srcreg);
26493 {	uint32_t dsta = m68k_getpc () + 2;
26494 	dsta += (int32_t)(int16_t)get_iword_prefetch(2);
26495 {	int8_t dst = m68k_read_memory_8(dsta);
26496 	src &= 7;
26497 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26498 }}}}m68k_incpc(4);
26499 fill_prefetch_0 ();
26500 return 12;
26501 }
CPUFUNC(op_13b_5)26502 unsigned long CPUFUNC(op_13b_5)(uint32_t opcode) /* BTST */
26503 {
26504 	uint32_t srcreg = ((opcode >> 9) & 7);
26505 	uint32_t dstreg = 3;
26506 	OpcodeFamily = 21; CurrentInstrCycles = 14;
26507 {{	int8_t src = m68k_dreg(regs, srcreg);
26508 {	uint32_t tmppc = m68k_getpc() + 2;
26509 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2));
26510 	BusCyclePenalty += 2;
26511 {	int8_t dst = m68k_read_memory_8(dsta);
26512 	src &= 7;
26513 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26514 }}}}m68k_incpc(4);
26515 fill_prefetch_0 ();
26516 return 14;
26517 }
CPUFUNC(op_13c_5)26518 unsigned long CPUFUNC(op_13c_5)(uint32_t opcode) /* BTST */
26519 {
26520 	uint32_t srcreg = ((opcode >> 9) & 7);
26521 	OpcodeFamily = 21; CurrentInstrCycles = 8;
26522 {{	int8_t src = m68k_dreg(regs, srcreg);
26523 {	int8_t dst = get_ibyte_prefetch(2);
26524 	src &= 7;
26525 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26526 }}}m68k_incpc(4);
26527 fill_prefetch_0 ();
26528 return 8;
26529 }
CPUFUNC(op_140_5)26530 unsigned long CPUFUNC(op_140_5)(uint32_t opcode) /* BCHG */
26531 {
26532 	uint32_t srcreg = ((opcode >> 9) & 7);
26533 	uint32_t dstreg = opcode & 7;
26534 	OpcodeFamily = 22; CurrentInstrCycles = 8;
26535 {{	int32_t src = m68k_dreg(regs, srcreg);
26536 {	int32_t dst = m68k_dreg(regs, dstreg);
26537 	src &= 31;
26538 	dst ^= (1 << src);
26539 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26540 	m68k_dreg(regs, dstreg) = (dst);
26541 }}}m68k_incpc(2);
26542 fill_prefetch_2 ();
26543 return 8;
26544 }
CPUFUNC(op_148_5)26545 unsigned long CPUFUNC(op_148_5)(uint32_t opcode) /* MVPMR */
26546 {
26547 	uint32_t srcreg = (opcode & 7);
26548 	uint32_t dstreg = (opcode >> 9) & 7;
26549 	OpcodeFamily = 29; CurrentInstrCycles = 24;
26550 {	uint32_t memp = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26551 {	uint32_t val = (m68k_read_memory_8(memp) << 24) + (m68k_read_memory_8(memp + 2) << 16)
26552               + (m68k_read_memory_8(memp + 4) << 8) + m68k_read_memory_8(memp + 6);
26553 	m68k_dreg(regs, dstreg) = (val);
26554 }}m68k_incpc(4);
26555 fill_prefetch_0 ();
26556 return 24;
26557 }
CPUFUNC(op_150_5)26558 unsigned long CPUFUNC(op_150_5)(uint32_t opcode) /* BCHG */
26559 {
26560 	uint32_t srcreg = ((opcode >> 9) & 7);
26561 	uint32_t dstreg = opcode & 7;
26562 	OpcodeFamily = 22; CurrentInstrCycles = 12;
26563 {{	int8_t src = m68k_dreg(regs, srcreg);
26564 {	uint32_t dsta = m68k_areg(regs, dstreg);
26565 {	int8_t dst = m68k_read_memory_8(dsta);
26566 	src &= 7;
26567 	dst ^= (1 << src);
26568 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26569 m68k_incpc(2);
26570 fill_prefetch_2 ();
26571 	m68k_write_memory_8(dsta,dst);
26572 }}}}return 12;
26573 }
CPUFUNC(op_158_5)26574 unsigned long CPUFUNC(op_158_5)(uint32_t opcode) /* BCHG */
26575 {
26576 	uint32_t srcreg = ((opcode >> 9) & 7);
26577 	uint32_t dstreg = opcode & 7;
26578 	OpcodeFamily = 22; CurrentInstrCycles = 12;
26579 {{	int8_t src = m68k_dreg(regs, srcreg);
26580 {	uint32_t dsta = m68k_areg(regs, dstreg);
26581 {	int8_t dst = m68k_read_memory_8(dsta);
26582 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
26583 	src &= 7;
26584 	dst ^= (1 << src);
26585 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26586 m68k_incpc(2);
26587 fill_prefetch_2 ();
26588 	m68k_write_memory_8(dsta,dst);
26589 }}}}return 12;
26590 }
CPUFUNC(op_160_5)26591 unsigned long CPUFUNC(op_160_5)(uint32_t opcode) /* BCHG */
26592 {
26593 	uint32_t srcreg = ((opcode >> 9) & 7);
26594 	uint32_t dstreg = opcode & 7;
26595 	OpcodeFamily = 22; CurrentInstrCycles = 14;
26596 {{	int8_t src = m68k_dreg(regs, srcreg);
26597 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
26598 {	int8_t dst = m68k_read_memory_8(dsta);
26599 	m68k_areg (regs, dstreg) = dsta;
26600 	src &= 7;
26601 	dst ^= (1 << src);
26602 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26603 m68k_incpc(2);
26604 fill_prefetch_2 ();
26605 	m68k_write_memory_8(dsta,dst);
26606 }}}}return 14;
26607 }
CPUFUNC(op_168_5)26608 unsigned long CPUFUNC(op_168_5)(uint32_t opcode) /* BCHG */
26609 {
26610 	uint32_t srcreg = ((opcode >> 9) & 7);
26611 	uint32_t dstreg = opcode & 7;
26612 	OpcodeFamily = 22; CurrentInstrCycles = 16;
26613 {{	int8_t src = m68k_dreg(regs, srcreg);
26614 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26615 {	int8_t dst = m68k_read_memory_8(dsta);
26616 	src &= 7;
26617 	dst ^= (1 << src);
26618 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26619 m68k_incpc(4);
26620 fill_prefetch_0 ();
26621 	m68k_write_memory_8(dsta,dst);
26622 }}}}return 16;
26623 }
CPUFUNC(op_170_5)26624 unsigned long CPUFUNC(op_170_5)(uint32_t opcode) /* BCHG */
26625 {
26626 	uint32_t srcreg = ((opcode >> 9) & 7);
26627 	uint32_t dstreg = opcode & 7;
26628 	OpcodeFamily = 22; CurrentInstrCycles = 18;
26629 {{	int8_t src = m68k_dreg(regs, srcreg);
26630 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
26631 	BusCyclePenalty += 2;
26632 {	int8_t dst = m68k_read_memory_8(dsta);
26633 	src &= 7;
26634 	dst ^= (1 << src);
26635 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26636 m68k_incpc(4);
26637 fill_prefetch_0 ();
26638 	m68k_write_memory_8(dsta,dst);
26639 }}}}return 18;
26640 }
CPUFUNC(op_178_5)26641 unsigned long CPUFUNC(op_178_5)(uint32_t opcode) /* BCHG */
26642 {
26643 	uint32_t srcreg = ((opcode >> 9) & 7);
26644 	OpcodeFamily = 22; CurrentInstrCycles = 16;
26645 {{	int8_t src = m68k_dreg(regs, srcreg);
26646 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
26647 {	int8_t dst = m68k_read_memory_8(dsta);
26648 	src &= 7;
26649 	dst ^= (1 << src);
26650 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26651 m68k_incpc(4);
26652 fill_prefetch_0 ();
26653 	m68k_write_memory_8(dsta,dst);
26654 }}}}return 16;
26655 }
CPUFUNC(op_179_5)26656 unsigned long CPUFUNC(op_179_5)(uint32_t opcode) /* BCHG */
26657 {
26658 	uint32_t srcreg = ((opcode >> 9) & 7);
26659 	OpcodeFamily = 22; CurrentInstrCycles = 20;
26660 {{	int8_t src = m68k_dreg(regs, srcreg);
26661 {	uint32_t dsta = get_ilong_prefetch(2);
26662 {	int8_t dst = m68k_read_memory_8(dsta);
26663 	src &= 7;
26664 	dst ^= (1 << src);
26665 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26666 m68k_incpc(6);
26667 fill_prefetch_0 ();
26668 	m68k_write_memory_8(dsta,dst);
26669 }}}}return 20;
26670 }
CPUFUNC(op_17a_5)26671 unsigned long CPUFUNC(op_17a_5)(uint32_t opcode) /* BCHG */
26672 {
26673 	uint32_t srcreg = ((opcode >> 9) & 7);
26674 	uint32_t dstreg = 2;
26675 	OpcodeFamily = 22; CurrentInstrCycles = 16;
26676 {{	int8_t src = m68k_dreg(regs, srcreg);
26677 {	uint32_t dsta = m68k_getpc () + 2;
26678 	dsta += (int32_t)(int16_t)get_iword_prefetch(2);
26679 {	int8_t dst = m68k_read_memory_8(dsta);
26680 	src &= 7;
26681 	dst ^= (1 << src);
26682 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26683 m68k_incpc(4);
26684 fill_prefetch_0 ();
26685 	m68k_write_memory_8(dsta,dst);
26686 }}}}return 16;
26687 }
CPUFUNC(op_17b_5)26688 unsigned long CPUFUNC(op_17b_5)(uint32_t opcode) /* BCHG */
26689 {
26690 	uint32_t srcreg = ((opcode >> 9) & 7);
26691 	uint32_t dstreg = 3;
26692 	OpcodeFamily = 22; CurrentInstrCycles = 18;
26693 {{	int8_t src = m68k_dreg(regs, srcreg);
26694 {	uint32_t tmppc = m68k_getpc() + 2;
26695 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2));
26696 	BusCyclePenalty += 2;
26697 {	int8_t dst = m68k_read_memory_8(dsta);
26698 	src &= 7;
26699 	dst ^= (1 << src);
26700 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
26701 m68k_incpc(4);
26702 fill_prefetch_0 ();
26703 	m68k_write_memory_8(dsta,dst);
26704 }}}}return 18;
26705 }
CPUFUNC(op_180_5)26706 unsigned long CPUFUNC(op_180_5)(uint32_t opcode) /* BCLR */
26707 {
26708 	uint32_t srcreg = ((opcode >> 9) & 7);
26709 	uint32_t dstreg = opcode & 7;
26710 	OpcodeFamily = 23; CurrentInstrCycles = 10;
26711 {{	int32_t src = m68k_dreg(regs, srcreg);
26712 {	int32_t dst = m68k_dreg(regs, dstreg);
26713 	src &= 31;
26714 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26715 	dst &= ~(1 << src);
26716 	m68k_dreg(regs, dstreg) = (dst);
26717 	if ( src < 16 ) { m68k_incpc(2); return 8; }
26718 }}}m68k_incpc(2);
26719 fill_prefetch_2 ();
26720 return 10;
26721 }
CPUFUNC(op_188_5)26722 unsigned long CPUFUNC(op_188_5)(uint32_t opcode) /* MVPRM */
26723 {
26724 	uint32_t srcreg = ((opcode >> 9) & 7);
26725 	uint32_t dstreg = opcode & 7;
26726 	OpcodeFamily = 28; CurrentInstrCycles = 16;
26727 {{	int16_t src = m68k_dreg(regs, srcreg);
26728 	uint32_t memp = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26729 	m68k_write_memory_8(memp, src >> 8); m68k_write_memory_8(memp + 2, src);
26730 }}m68k_incpc(4);
26731 fill_prefetch_0 ();
26732 return 16;
26733 }
CPUFUNC(op_190_5)26734 unsigned long CPUFUNC(op_190_5)(uint32_t opcode) /* BCLR */
26735 {
26736 	uint32_t srcreg = ((opcode >> 9) & 7);
26737 	uint32_t dstreg = opcode & 7;
26738 	OpcodeFamily = 23; CurrentInstrCycles = 12;
26739 {{	int8_t src = m68k_dreg(regs, srcreg);
26740 {	uint32_t dsta = m68k_areg(regs, dstreg);
26741 {	int8_t dst = m68k_read_memory_8(dsta);
26742 	src &= 7;
26743 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26744 	dst &= ~(1 << src);
26745 m68k_incpc(2);
26746 fill_prefetch_2 ();
26747 	m68k_write_memory_8(dsta,dst);
26748 }}}}return 12;
26749 }
CPUFUNC(op_198_5)26750 unsigned long CPUFUNC(op_198_5)(uint32_t opcode) /* BCLR */
26751 {
26752 	uint32_t srcreg = ((opcode >> 9) & 7);
26753 	uint32_t dstreg = opcode & 7;
26754 	OpcodeFamily = 23; CurrentInstrCycles = 12;
26755 {{	int8_t src = m68k_dreg(regs, srcreg);
26756 {	uint32_t dsta = m68k_areg(regs, dstreg);
26757 {	int8_t dst = m68k_read_memory_8(dsta);
26758 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
26759 	src &= 7;
26760 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26761 	dst &= ~(1 << src);
26762 m68k_incpc(2);
26763 fill_prefetch_2 ();
26764 	m68k_write_memory_8(dsta,dst);
26765 }}}}return 12;
26766 }
CPUFUNC(op_1a0_5)26767 unsigned long CPUFUNC(op_1a0_5)(uint32_t opcode) /* BCLR */
26768 {
26769 	uint32_t srcreg = ((opcode >> 9) & 7);
26770 	uint32_t dstreg = opcode & 7;
26771 	OpcodeFamily = 23; CurrentInstrCycles = 14;
26772 {{	int8_t src = m68k_dreg(regs, srcreg);
26773 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
26774 {	int8_t dst = m68k_read_memory_8(dsta);
26775 	m68k_areg (regs, dstreg) = dsta;
26776 	src &= 7;
26777 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26778 	dst &= ~(1 << src);
26779 m68k_incpc(2);
26780 fill_prefetch_2 ();
26781 	m68k_write_memory_8(dsta,dst);
26782 }}}}return 14;
26783 }
CPUFUNC(op_1a8_5)26784 unsigned long CPUFUNC(op_1a8_5)(uint32_t opcode) /* BCLR */
26785 {
26786 	uint32_t srcreg = ((opcode >> 9) & 7);
26787 	uint32_t dstreg = opcode & 7;
26788 	OpcodeFamily = 23; CurrentInstrCycles = 16;
26789 {{	int8_t src = m68k_dreg(regs, srcreg);
26790 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26791 {	int8_t dst = m68k_read_memory_8(dsta);
26792 	src &= 7;
26793 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26794 	dst &= ~(1 << src);
26795 m68k_incpc(4);
26796 fill_prefetch_0 ();
26797 	m68k_write_memory_8(dsta,dst);
26798 }}}}return 16;
26799 }
CPUFUNC(op_1b0_5)26800 unsigned long CPUFUNC(op_1b0_5)(uint32_t opcode) /* BCLR */
26801 {
26802 	uint32_t srcreg = ((opcode >> 9) & 7);
26803 	uint32_t dstreg = opcode & 7;
26804 	OpcodeFamily = 23; CurrentInstrCycles = 18;
26805 {{	int8_t src = m68k_dreg(regs, srcreg);
26806 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
26807 	BusCyclePenalty += 2;
26808 {	int8_t dst = m68k_read_memory_8(dsta);
26809 	src &= 7;
26810 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26811 	dst &= ~(1 << src);
26812 m68k_incpc(4);
26813 fill_prefetch_0 ();
26814 	m68k_write_memory_8(dsta,dst);
26815 }}}}return 18;
26816 }
CPUFUNC(op_1b8_5)26817 unsigned long CPUFUNC(op_1b8_5)(uint32_t opcode) /* BCLR */
26818 {
26819 	uint32_t srcreg = ((opcode >> 9) & 7);
26820 	OpcodeFamily = 23; CurrentInstrCycles = 16;
26821 {{	int8_t src = m68k_dreg(regs, srcreg);
26822 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
26823 {	int8_t dst = m68k_read_memory_8(dsta);
26824 	src &= 7;
26825 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26826 	dst &= ~(1 << src);
26827 m68k_incpc(4);
26828 fill_prefetch_0 ();
26829 	m68k_write_memory_8(dsta,dst);
26830 }}}}return 16;
26831 }
CPUFUNC(op_1b9_5)26832 unsigned long CPUFUNC(op_1b9_5)(uint32_t opcode) /* BCLR */
26833 {
26834 	uint32_t srcreg = ((opcode >> 9) & 7);
26835 	OpcodeFamily = 23; CurrentInstrCycles = 20;
26836 {{	int8_t src = m68k_dreg(regs, srcreg);
26837 {	uint32_t dsta = get_ilong_prefetch(2);
26838 {	int8_t dst = m68k_read_memory_8(dsta);
26839 	src &= 7;
26840 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26841 	dst &= ~(1 << src);
26842 m68k_incpc(6);
26843 fill_prefetch_0 ();
26844 	m68k_write_memory_8(dsta,dst);
26845 }}}}return 20;
26846 }
CPUFUNC(op_1ba_5)26847 unsigned long CPUFUNC(op_1ba_5)(uint32_t opcode) /* BCLR */
26848 {
26849 	uint32_t srcreg = ((opcode >> 9) & 7);
26850 	uint32_t dstreg = 2;
26851 	OpcodeFamily = 23; CurrentInstrCycles = 16;
26852 {{	int8_t src = m68k_dreg(regs, srcreg);
26853 {	uint32_t dsta = m68k_getpc () + 2;
26854 	dsta += (int32_t)(int16_t)get_iword_prefetch(2);
26855 {	int8_t dst = m68k_read_memory_8(dsta);
26856 	src &= 7;
26857 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26858 	dst &= ~(1 << src);
26859 m68k_incpc(4);
26860 fill_prefetch_0 ();
26861 	m68k_write_memory_8(dsta,dst);
26862 }}}}return 16;
26863 }
CPUFUNC(op_1bb_5)26864 unsigned long CPUFUNC(op_1bb_5)(uint32_t opcode) /* BCLR */
26865 {
26866 	uint32_t srcreg = ((opcode >> 9) & 7);
26867 	uint32_t dstreg = 3;
26868 	OpcodeFamily = 23; CurrentInstrCycles = 18;
26869 {{	int8_t src = m68k_dreg(regs, srcreg);
26870 {	uint32_t tmppc = m68k_getpc() + 2;
26871 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2));
26872 	BusCyclePenalty += 2;
26873 {	int8_t dst = m68k_read_memory_8(dsta);
26874 	src &= 7;
26875 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26876 	dst &= ~(1 << src);
26877 m68k_incpc(4);
26878 fill_prefetch_0 ();
26879 	m68k_write_memory_8(dsta,dst);
26880 }}}}return 18;
26881 }
CPUFUNC(op_1c0_5)26882 unsigned long CPUFUNC(op_1c0_5)(uint32_t opcode) /* BSET */
26883 {
26884 	uint32_t srcreg = ((opcode >> 9) & 7);
26885 	uint32_t dstreg = opcode & 7;
26886 	OpcodeFamily = 24; CurrentInstrCycles = 8;
26887 {{	int32_t src = m68k_dreg(regs, srcreg);
26888 {	int32_t dst = m68k_dreg(regs, dstreg);
26889 	src &= 31;
26890 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26891 	dst |= (1 << src);
26892 	m68k_dreg(regs, dstreg) = (dst);
26893 }}}m68k_incpc(2);
26894 fill_prefetch_2 ();
26895 return 8;
26896 }
CPUFUNC(op_1c8_5)26897 unsigned long CPUFUNC(op_1c8_5)(uint32_t opcode) /* MVPRM */
26898 {
26899 	uint32_t srcreg = ((opcode >> 9) & 7);
26900 	uint32_t dstreg = opcode & 7;
26901 	OpcodeFamily = 28; CurrentInstrCycles = 24;
26902 {{	int32_t src = m68k_dreg(regs, srcreg);
26903 	uint32_t memp = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26904 	m68k_write_memory_8(memp, src >> 24); m68k_write_memory_8(memp + 2, src >> 16);
26905 	m68k_write_memory_8(memp + 4, src >> 8); m68k_write_memory_8(memp + 6, src);
26906 }}m68k_incpc(4);
26907 fill_prefetch_0 ();
26908 return 24;
26909 }
CPUFUNC(op_1d0_5)26910 unsigned long CPUFUNC(op_1d0_5)(uint32_t opcode) /* BSET */
26911 {
26912 	uint32_t srcreg = ((opcode >> 9) & 7);
26913 	uint32_t dstreg = opcode & 7;
26914 	OpcodeFamily = 24; CurrentInstrCycles = 12;
26915 {{	int8_t src = m68k_dreg(regs, srcreg);
26916 {	uint32_t dsta = m68k_areg(regs, dstreg);
26917 {	int8_t dst = m68k_read_memory_8(dsta);
26918 	src &= 7;
26919 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26920 	dst |= (1 << src);
26921 m68k_incpc(2);
26922 fill_prefetch_2 ();
26923 	m68k_write_memory_8(dsta,dst);
26924 }}}}return 12;
26925 }
CPUFUNC(op_1d8_5)26926 unsigned long CPUFUNC(op_1d8_5)(uint32_t opcode) /* BSET */
26927 {
26928 	uint32_t srcreg = ((opcode >> 9) & 7);
26929 	uint32_t dstreg = opcode & 7;
26930 	OpcodeFamily = 24; CurrentInstrCycles = 12;
26931 {{	int8_t src = m68k_dreg(regs, srcreg);
26932 {	uint32_t dsta = m68k_areg(regs, dstreg);
26933 {	int8_t dst = m68k_read_memory_8(dsta);
26934 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
26935 	src &= 7;
26936 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26937 	dst |= (1 << src);
26938 m68k_incpc(2);
26939 fill_prefetch_2 ();
26940 	m68k_write_memory_8(dsta,dst);
26941 }}}}return 12;
26942 }
CPUFUNC(op_1e0_5)26943 unsigned long CPUFUNC(op_1e0_5)(uint32_t opcode) /* BSET */
26944 {
26945 	uint32_t srcreg = ((opcode >> 9) & 7);
26946 	uint32_t dstreg = opcode & 7;
26947 	OpcodeFamily = 24; CurrentInstrCycles = 14;
26948 {{	int8_t src = m68k_dreg(regs, srcreg);
26949 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
26950 {	int8_t dst = m68k_read_memory_8(dsta);
26951 	m68k_areg (regs, dstreg) = dsta;
26952 	src &= 7;
26953 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26954 	dst |= (1 << src);
26955 m68k_incpc(2);
26956 fill_prefetch_2 ();
26957 	m68k_write_memory_8(dsta,dst);
26958 }}}}return 14;
26959 }
CPUFUNC(op_1e8_5)26960 unsigned long CPUFUNC(op_1e8_5)(uint32_t opcode) /* BSET */
26961 {
26962 	uint32_t srcreg = ((opcode >> 9) & 7);
26963 	uint32_t dstreg = opcode & 7;
26964 	OpcodeFamily = 24; CurrentInstrCycles = 16;
26965 {{	int8_t src = m68k_dreg(regs, srcreg);
26966 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
26967 {	int8_t dst = m68k_read_memory_8(dsta);
26968 	src &= 7;
26969 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26970 	dst |= (1 << src);
26971 m68k_incpc(4);
26972 fill_prefetch_0 ();
26973 	m68k_write_memory_8(dsta,dst);
26974 }}}}return 16;
26975 }
CPUFUNC(op_1f0_5)26976 unsigned long CPUFUNC(op_1f0_5)(uint32_t opcode) /* BSET */
26977 {
26978 	uint32_t srcreg = ((opcode >> 9) & 7);
26979 	uint32_t dstreg = opcode & 7;
26980 	OpcodeFamily = 24; CurrentInstrCycles = 18;
26981 {{	int8_t src = m68k_dreg(regs, srcreg);
26982 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
26983 	BusCyclePenalty += 2;
26984 {	int8_t dst = m68k_read_memory_8(dsta);
26985 	src &= 7;
26986 	SET_ZFLG (1 ^ ((dst >> src) & 1));
26987 	dst |= (1 << src);
26988 m68k_incpc(4);
26989 fill_prefetch_0 ();
26990 	m68k_write_memory_8(dsta,dst);
26991 }}}}return 18;
26992 }
CPUFUNC(op_1f8_5)26993 unsigned long CPUFUNC(op_1f8_5)(uint32_t opcode) /* BSET */
26994 {
26995 	uint32_t srcreg = ((opcode >> 9) & 7);
26996 	OpcodeFamily = 24; CurrentInstrCycles = 16;
26997 {{	int8_t src = m68k_dreg(regs, srcreg);
26998 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
26999 {	int8_t dst = m68k_read_memory_8(dsta);
27000 	src &= 7;
27001 	SET_ZFLG (1 ^ ((dst >> src) & 1));
27002 	dst |= (1 << src);
27003 m68k_incpc(4);
27004 fill_prefetch_0 ();
27005 	m68k_write_memory_8(dsta,dst);
27006 }}}}return 16;
27007 }
CPUFUNC(op_1f9_5)27008 unsigned long CPUFUNC(op_1f9_5)(uint32_t opcode) /* BSET */
27009 {
27010 	uint32_t srcreg = ((opcode >> 9) & 7);
27011 	OpcodeFamily = 24; CurrentInstrCycles = 20;
27012 {{	int8_t src = m68k_dreg(regs, srcreg);
27013 {	uint32_t dsta = get_ilong_prefetch(2);
27014 {	int8_t dst = m68k_read_memory_8(dsta);
27015 	src &= 7;
27016 	SET_ZFLG (1 ^ ((dst >> src) & 1));
27017 	dst |= (1 << src);
27018 m68k_incpc(6);
27019 fill_prefetch_0 ();
27020 	m68k_write_memory_8(dsta,dst);
27021 }}}}return 20;
27022 }
CPUFUNC(op_1fa_5)27023 unsigned long CPUFUNC(op_1fa_5)(uint32_t opcode) /* BSET */
27024 {
27025 	uint32_t srcreg = ((opcode >> 9) & 7);
27026 	uint32_t dstreg = 2;
27027 	OpcodeFamily = 24; CurrentInstrCycles = 16;
27028 {{	int8_t src = m68k_dreg(regs, srcreg);
27029 {	uint32_t dsta = m68k_getpc () + 2;
27030 	dsta += (int32_t)(int16_t)get_iword_prefetch(2);
27031 {	int8_t dst = m68k_read_memory_8(dsta);
27032 	src &= 7;
27033 	SET_ZFLG (1 ^ ((dst >> src) & 1));
27034 	dst |= (1 << src);
27035 m68k_incpc(4);
27036 fill_prefetch_0 ();
27037 	m68k_write_memory_8(dsta,dst);
27038 }}}}return 16;
27039 }
CPUFUNC(op_1fb_5)27040 unsigned long CPUFUNC(op_1fb_5)(uint32_t opcode) /* BSET */
27041 {
27042 	uint32_t srcreg = ((opcode >> 9) & 7);
27043 	uint32_t dstreg = 3;
27044 	OpcodeFamily = 24; CurrentInstrCycles = 18;
27045 {{	int8_t src = m68k_dreg(regs, srcreg);
27046 {	uint32_t tmppc = m68k_getpc() + 2;
27047 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2));
27048 	BusCyclePenalty += 2;
27049 {	int8_t dst = m68k_read_memory_8(dsta);
27050 	src &= 7;
27051 	SET_ZFLG (1 ^ ((dst >> src) & 1));
27052 	dst |= (1 << src);
27053 m68k_incpc(4);
27054 fill_prefetch_0 ();
27055 	m68k_write_memory_8(dsta,dst);
27056 }}}}return 18;
27057 }
CPUFUNC(op_200_5)27058 unsigned long CPUFUNC(op_200_5)(uint32_t opcode) /* AND */
27059 {
27060 	uint32_t dstreg = opcode & 7;
27061 	OpcodeFamily = 2; CurrentInstrCycles = 8;
27062 {{	int8_t src = get_ibyte_prefetch(2);
27063 {	int8_t dst = m68k_dreg(regs, dstreg);
27064 	src &= dst;
27065 	CLEAR_CZNV;
27066 	SET_ZFLG (((int8_t)(src)) == 0);
27067 	SET_NFLG (((int8_t)(src)) < 0);
27068 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
27069 }}}m68k_incpc(4);
27070 fill_prefetch_0 ();
27071 return 8;
27072 }
CPUFUNC(op_210_5)27073 unsigned long CPUFUNC(op_210_5)(uint32_t opcode) /* AND */
27074 {
27075 	uint32_t dstreg = opcode & 7;
27076 	OpcodeFamily = 2; CurrentInstrCycles = 16;
27077 {{	int8_t src = get_ibyte_prefetch(2);
27078 {	uint32_t dsta = m68k_areg(regs, dstreg);
27079 {	int8_t dst = m68k_read_memory_8(dsta);
27080 	src &= dst;
27081 	CLEAR_CZNV;
27082 	SET_ZFLG (((int8_t)(src)) == 0);
27083 	SET_NFLG (((int8_t)(src)) < 0);
27084 m68k_incpc(4);
27085 fill_prefetch_0 ();
27086 	m68k_write_memory_8(dsta,src);
27087 }}}}return 16;
27088 }
CPUFUNC(op_218_5)27089 unsigned long CPUFUNC(op_218_5)(uint32_t opcode) /* AND */
27090 {
27091 	uint32_t dstreg = opcode & 7;
27092 	OpcodeFamily = 2; CurrentInstrCycles = 16;
27093 {{	int8_t src = get_ibyte_prefetch(2);
27094 {	uint32_t dsta = m68k_areg(regs, dstreg);
27095 {	int8_t dst = m68k_read_memory_8(dsta);
27096 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
27097 	src &= dst;
27098 	CLEAR_CZNV;
27099 	SET_ZFLG (((int8_t)(src)) == 0);
27100 	SET_NFLG (((int8_t)(src)) < 0);
27101 m68k_incpc(4);
27102 fill_prefetch_0 ();
27103 	m68k_write_memory_8(dsta,src);
27104 }}}}return 16;
27105 }
CPUFUNC(op_220_5)27106 unsigned long CPUFUNC(op_220_5)(uint32_t opcode) /* AND */
27107 {
27108 	uint32_t dstreg = opcode & 7;
27109 	OpcodeFamily = 2; CurrentInstrCycles = 18;
27110 {{	int8_t src = get_ibyte_prefetch(2);
27111 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
27112 {	int8_t dst = m68k_read_memory_8(dsta);
27113 	m68k_areg (regs, dstreg) = dsta;
27114 	src &= dst;
27115 	CLEAR_CZNV;
27116 	SET_ZFLG (((int8_t)(src)) == 0);
27117 	SET_NFLG (((int8_t)(src)) < 0);
27118 m68k_incpc(4);
27119 fill_prefetch_0 ();
27120 	m68k_write_memory_8(dsta,src);
27121 }}}}return 18;
27122 }
CPUFUNC(op_228_5)27123 unsigned long CPUFUNC(op_228_5)(uint32_t opcode) /* AND */
27124 {
27125 	uint32_t dstreg = opcode & 7;
27126 	OpcodeFamily = 2; CurrentInstrCycles = 20;
27127 {{	int8_t src = get_ibyte_prefetch(2);
27128 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
27129 {	int8_t dst = m68k_read_memory_8(dsta);
27130 	src &= dst;
27131 	CLEAR_CZNV;
27132 	SET_ZFLG (((int8_t)(src)) == 0);
27133 	SET_NFLG (((int8_t)(src)) < 0);
27134 m68k_incpc(6);
27135 fill_prefetch_0 ();
27136 	m68k_write_memory_8(dsta,src);
27137 }}}}return 20;
27138 }
CPUFUNC(op_230_5)27139 unsigned long CPUFUNC(op_230_5)(uint32_t opcode) /* AND */
27140 {
27141 	uint32_t dstreg = opcode & 7;
27142 	OpcodeFamily = 2; CurrentInstrCycles = 22;
27143 {{	int8_t src = get_ibyte_prefetch(2);
27144 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
27145 	BusCyclePenalty += 2;
27146 {	int8_t dst = m68k_read_memory_8(dsta);
27147 	src &= dst;
27148 	CLEAR_CZNV;
27149 	SET_ZFLG (((int8_t)(src)) == 0);
27150 	SET_NFLG (((int8_t)(src)) < 0);
27151 m68k_incpc(6);
27152 fill_prefetch_0 ();
27153 	m68k_write_memory_8(dsta,src);
27154 }}}}return 22;
27155 }
CPUFUNC(op_238_5)27156 unsigned long CPUFUNC(op_238_5)(uint32_t opcode) /* AND */
27157 {
27158 	OpcodeFamily = 2; CurrentInstrCycles = 20;
27159 {{	int8_t src = get_ibyte_prefetch(2);
27160 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
27161 {	int8_t dst = m68k_read_memory_8(dsta);
27162 	src &= dst;
27163 	CLEAR_CZNV;
27164 	SET_ZFLG (((int8_t)(src)) == 0);
27165 	SET_NFLG (((int8_t)(src)) < 0);
27166 m68k_incpc(6);
27167 fill_prefetch_0 ();
27168 	m68k_write_memory_8(dsta,src);
27169 }}}}return 20;
27170 }
CPUFUNC(op_239_5)27171 unsigned long CPUFUNC(op_239_5)(uint32_t opcode) /* AND */
27172 {
27173 	OpcodeFamily = 2; CurrentInstrCycles = 24;
27174 {{	int8_t src = get_ibyte_prefetch(2);
27175 {	uint32_t dsta = get_ilong_prefetch(4);
27176 {	int8_t dst = m68k_read_memory_8(dsta);
27177 	src &= dst;
27178 	CLEAR_CZNV;
27179 	SET_ZFLG (((int8_t)(src)) == 0);
27180 	SET_NFLG (((int8_t)(src)) < 0);
27181 m68k_incpc(8);
27182 fill_prefetch_0 ();
27183 	m68k_write_memory_8(dsta,src);
27184 }}}}return 24;
27185 }
CPUFUNC(op_23c_5)27186 unsigned long CPUFUNC(op_23c_5)(uint32_t opcode) /* ANDSR */
27187 {
27188 	OpcodeFamily = 5; CurrentInstrCycles = 20;
27189 {	MakeSR();
27190 {	int16_t src = get_iword_prefetch(2);
27191 	src |= 0xFF00;
27192 	regs.sr &= src;
27193 	MakeFromSR();
27194 }}m68k_incpc(4);
27195 fill_prefetch_0 ();
27196 return 20;
27197 }
CPUFUNC(op_240_5)27198 unsigned long CPUFUNC(op_240_5)(uint32_t opcode) /* AND */
27199 {
27200 	uint32_t dstreg = opcode & 7;
27201 	OpcodeFamily = 2; CurrentInstrCycles = 8;
27202 {{	int16_t src = get_iword_prefetch(2);
27203 {	int16_t dst = m68k_dreg(regs, dstreg);
27204 	src &= dst;
27205 	CLEAR_CZNV;
27206 	SET_ZFLG (((int16_t)(src)) == 0);
27207 	SET_NFLG (((int16_t)(src)) < 0);
27208 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
27209 }}}m68k_incpc(4);
27210 fill_prefetch_0 ();
27211 return 8;
27212 }
CPUFUNC(op_250_5)27213 unsigned long CPUFUNC(op_250_5)(uint32_t opcode) /* AND */
27214 {
27215 	uint32_t dstreg = opcode & 7;
27216 	OpcodeFamily = 2; CurrentInstrCycles = 16;
27217 {{	int16_t src = get_iword_prefetch(2);
27218 {	uint32_t dsta = m68k_areg(regs, dstreg);
27219 	if ((dsta & 1) != 0) {
27220 		last_fault_for_exception_3 = dsta;
27221 		last_op_for_exception_3 = opcode;
27222 		last_addr_for_exception_3 = m68k_getpc() + 4;
27223 		Exception(3, 0, M68000_EXC_SRC_CPU);
27224 		goto endlabel1662;
27225 	}
27226 {{	int16_t dst = m68k_read_memory_16(dsta);
27227 	src &= dst;
27228 	CLEAR_CZNV;
27229 	SET_ZFLG (((int16_t)(src)) == 0);
27230 	SET_NFLG (((int16_t)(src)) < 0);
27231 m68k_incpc(4);
27232 fill_prefetch_0 ();
27233 	m68k_write_memory_16(dsta,src);
27234 }}}}}endlabel1662: ;
27235 return 16;
27236 }
CPUFUNC(op_258_5)27237 unsigned long CPUFUNC(op_258_5)(uint32_t opcode) /* AND */
27238 {
27239 	uint32_t dstreg = opcode & 7;
27240 	OpcodeFamily = 2; CurrentInstrCycles = 16;
27241 {{	int16_t src = get_iword_prefetch(2);
27242 {	uint32_t dsta = m68k_areg(regs, dstreg);
27243 	if ((dsta & 1) != 0) {
27244 		last_fault_for_exception_3 = dsta;
27245 		last_op_for_exception_3 = opcode;
27246 		last_addr_for_exception_3 = m68k_getpc() + 4;
27247 		Exception(3, 0, M68000_EXC_SRC_CPU);
27248 		goto endlabel1663;
27249 	}
27250 {{	int16_t dst = m68k_read_memory_16(dsta);
27251 	m68k_areg(regs, dstreg) += 2;
27252 	src &= dst;
27253 	CLEAR_CZNV;
27254 	SET_ZFLG (((int16_t)(src)) == 0);
27255 	SET_NFLG (((int16_t)(src)) < 0);
27256 m68k_incpc(4);
27257 fill_prefetch_0 ();
27258 	m68k_write_memory_16(dsta,src);
27259 }}}}}endlabel1663: ;
27260 return 16;
27261 }
CPUFUNC(op_260_5)27262 unsigned long CPUFUNC(op_260_5)(uint32_t opcode) /* AND */
27263 {
27264 	uint32_t dstreg = opcode & 7;
27265 	OpcodeFamily = 2; CurrentInstrCycles = 18;
27266 {{	int16_t src = get_iword_prefetch(2);
27267 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
27268 	if ((dsta & 1) != 0) {
27269 		last_fault_for_exception_3 = dsta;
27270 		last_op_for_exception_3 = opcode;
27271 		last_addr_for_exception_3 = m68k_getpc() + 4;
27272 		Exception(3, 0, M68000_EXC_SRC_CPU);
27273 		goto endlabel1664;
27274 	}
27275 {{	int16_t dst = m68k_read_memory_16(dsta);
27276 	m68k_areg (regs, dstreg) = dsta;
27277 	src &= dst;
27278 	CLEAR_CZNV;
27279 	SET_ZFLG (((int16_t)(src)) == 0);
27280 	SET_NFLG (((int16_t)(src)) < 0);
27281 m68k_incpc(4);
27282 fill_prefetch_0 ();
27283 	m68k_write_memory_16(dsta,src);
27284 }}}}}endlabel1664: ;
27285 return 18;
27286 }
CPUFUNC(op_268_5)27287 unsigned long CPUFUNC(op_268_5)(uint32_t opcode) /* AND */
27288 {
27289 	uint32_t dstreg = opcode & 7;
27290 	OpcodeFamily = 2; CurrentInstrCycles = 20;
27291 {{	int16_t src = get_iword_prefetch(2);
27292 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
27293 	if ((dsta & 1) != 0) {
27294 		last_fault_for_exception_3 = dsta;
27295 		last_op_for_exception_3 = opcode;
27296 		last_addr_for_exception_3 = m68k_getpc() + 6;
27297 		Exception(3, 0, M68000_EXC_SRC_CPU);
27298 		goto endlabel1665;
27299 	}
27300 {{	int16_t dst = m68k_read_memory_16(dsta);
27301 	src &= dst;
27302 	CLEAR_CZNV;
27303 	SET_ZFLG (((int16_t)(src)) == 0);
27304 	SET_NFLG (((int16_t)(src)) < 0);
27305 m68k_incpc(6);
27306 fill_prefetch_0 ();
27307 	m68k_write_memory_16(dsta,src);
27308 }}}}}endlabel1665: ;
27309 return 20;
27310 }
CPUFUNC(op_270_5)27311 unsigned long CPUFUNC(op_270_5)(uint32_t opcode) /* AND */
27312 {
27313 	uint32_t dstreg = opcode & 7;
27314 	OpcodeFamily = 2; CurrentInstrCycles = 22;
27315 {{	int16_t src = get_iword_prefetch(2);
27316 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
27317 	BusCyclePenalty += 2;
27318 	if ((dsta & 1) != 0) {
27319 		last_fault_for_exception_3 = dsta;
27320 		last_op_for_exception_3 = opcode;
27321 		last_addr_for_exception_3 = m68k_getpc() + 6;
27322 		Exception(3, 0, M68000_EXC_SRC_CPU);
27323 		goto endlabel1666;
27324 	}
27325 {{	int16_t dst = m68k_read_memory_16(dsta);
27326 	src &= dst;
27327 	CLEAR_CZNV;
27328 	SET_ZFLG (((int16_t)(src)) == 0);
27329 	SET_NFLG (((int16_t)(src)) < 0);
27330 m68k_incpc(6);
27331 fill_prefetch_0 ();
27332 	m68k_write_memory_16(dsta,src);
27333 }}}}}endlabel1666: ;
27334 return 22;
27335 }
CPUFUNC(op_278_5)27336 unsigned long CPUFUNC(op_278_5)(uint32_t opcode) /* AND */
27337 {
27338 	OpcodeFamily = 2; CurrentInstrCycles = 20;
27339 {{	int16_t src = get_iword_prefetch(2);
27340 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
27341 	if ((dsta & 1) != 0) {
27342 		last_fault_for_exception_3 = dsta;
27343 		last_op_for_exception_3 = opcode;
27344 		last_addr_for_exception_3 = m68k_getpc() + 6;
27345 		Exception(3, 0, M68000_EXC_SRC_CPU);
27346 		goto endlabel1667;
27347 	}
27348 {{	int16_t dst = m68k_read_memory_16(dsta);
27349 	src &= dst;
27350 	CLEAR_CZNV;
27351 	SET_ZFLG (((int16_t)(src)) == 0);
27352 	SET_NFLG (((int16_t)(src)) < 0);
27353 m68k_incpc(6);
27354 fill_prefetch_0 ();
27355 	m68k_write_memory_16(dsta,src);
27356 }}}}}endlabel1667: ;
27357 return 20;
27358 }
CPUFUNC(op_279_5)27359 unsigned long CPUFUNC(op_279_5)(uint32_t opcode) /* AND */
27360 {
27361 	OpcodeFamily = 2; CurrentInstrCycles = 24;
27362 {{	int16_t src = get_iword_prefetch(2);
27363 {	uint32_t dsta = get_ilong_prefetch(4);
27364 	if ((dsta & 1) != 0) {
27365 		last_fault_for_exception_3 = dsta;
27366 		last_op_for_exception_3 = opcode;
27367 		last_addr_for_exception_3 = m68k_getpc() + 8;
27368 		Exception(3, 0, M68000_EXC_SRC_CPU);
27369 		goto endlabel1668;
27370 	}
27371 {{	int16_t dst = m68k_read_memory_16(dsta);
27372 	src &= dst;
27373 	CLEAR_CZNV;
27374 	SET_ZFLG (((int16_t)(src)) == 0);
27375 	SET_NFLG (((int16_t)(src)) < 0);
27376 m68k_incpc(8);
27377 fill_prefetch_0 ();
27378 	m68k_write_memory_16(dsta,src);
27379 }}}}}endlabel1668: ;
27380 return 24;
27381 }
CPUFUNC(op_27c_5)27382 unsigned long CPUFUNC(op_27c_5)(uint32_t opcode) /* ANDSR */
27383 {
27384 	OpcodeFamily = 5; CurrentInstrCycles = 20;
27385 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel1669; }
27386 {	MakeSR();
27387 {	int16_t src = get_iword_prefetch(2);
27388 	regs.sr &= src;
27389 	MakeFromSR();
27390 }}}m68k_incpc(4);
27391 fill_prefetch_0 ();
27392 endlabel1669: ;
27393 return 20;
27394 }
CPUFUNC(op_280_5)27395 unsigned long CPUFUNC(op_280_5)(uint32_t opcode) /* AND */
27396 {
27397 	uint32_t dstreg = opcode & 7;
27398 	OpcodeFamily = 2; CurrentInstrCycles = 16;
27399 {{	int32_t src = get_ilong_prefetch(2);
27400 {	int32_t dst = m68k_dreg(regs, dstreg);
27401 	src &= dst;
27402 	CLEAR_CZNV;
27403 	SET_ZFLG (((int32_t)(src)) == 0);
27404 	SET_NFLG (((int32_t)(src)) < 0);
27405 	m68k_dreg(regs, dstreg) = (src);
27406 }}}m68k_incpc(6);
27407 fill_prefetch_0 ();
27408 return 16;
27409 }
CPUFUNC(op_290_5)27410 unsigned long CPUFUNC(op_290_5)(uint32_t opcode) /* AND */
27411 {
27412 	uint32_t dstreg = opcode & 7;
27413 	OpcodeFamily = 2; CurrentInstrCycles = 28;
27414 {{	int32_t src = get_ilong_prefetch(2);
27415 {	uint32_t dsta = m68k_areg(regs, dstreg);
27416 	if ((dsta & 1) != 0) {
27417 		last_fault_for_exception_3 = dsta;
27418 		last_op_for_exception_3 = opcode;
27419 		last_addr_for_exception_3 = m68k_getpc() + 6;
27420 		Exception(3, 0, M68000_EXC_SRC_CPU);
27421 		goto endlabel1671;
27422 	}
27423 {{	int32_t dst = m68k_read_memory_32(dsta);
27424 	src &= dst;
27425 	CLEAR_CZNV;
27426 	SET_ZFLG (((int32_t)(src)) == 0);
27427 	SET_NFLG (((int32_t)(src)) < 0);
27428 m68k_incpc(6);
27429 fill_prefetch_0 ();
27430 	m68k_write_memory_32(dsta,src);
27431 }}}}}endlabel1671: ;
27432 return 28;
27433 }
CPUFUNC(op_298_5)27434 unsigned long CPUFUNC(op_298_5)(uint32_t opcode) /* AND */
27435 {
27436 	uint32_t dstreg = opcode & 7;
27437 	OpcodeFamily = 2; CurrentInstrCycles = 28;
27438 {{	int32_t src = get_ilong_prefetch(2);
27439 {	uint32_t dsta = m68k_areg(regs, dstreg);
27440 	if ((dsta & 1) != 0) {
27441 		last_fault_for_exception_3 = dsta;
27442 		last_op_for_exception_3 = opcode;
27443 		last_addr_for_exception_3 = m68k_getpc() + 6;
27444 		Exception(3, 0, M68000_EXC_SRC_CPU);
27445 		goto endlabel1672;
27446 	}
27447 {{	int32_t dst = m68k_read_memory_32(dsta);
27448 	m68k_areg(regs, dstreg) += 4;
27449 	src &= dst;
27450 	CLEAR_CZNV;
27451 	SET_ZFLG (((int32_t)(src)) == 0);
27452 	SET_NFLG (((int32_t)(src)) < 0);
27453 m68k_incpc(6);
27454 fill_prefetch_0 ();
27455 	m68k_write_memory_32(dsta,src);
27456 }}}}}endlabel1672: ;
27457 return 28;
27458 }
CPUFUNC(op_2a0_5)27459 unsigned long CPUFUNC(op_2a0_5)(uint32_t opcode) /* AND */
27460 {
27461 	uint32_t dstreg = opcode & 7;
27462 	OpcodeFamily = 2; CurrentInstrCycles = 30;
27463 {{	int32_t src = get_ilong_prefetch(2);
27464 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
27465 	if ((dsta & 1) != 0) {
27466 		last_fault_for_exception_3 = dsta;
27467 		last_op_for_exception_3 = opcode;
27468 		last_addr_for_exception_3 = m68k_getpc() + 6;
27469 		Exception(3, 0, M68000_EXC_SRC_CPU);
27470 		goto endlabel1673;
27471 	}
27472 {{	int32_t dst = m68k_read_memory_32(dsta);
27473 	m68k_areg (regs, dstreg) = dsta;
27474 	src &= dst;
27475 	CLEAR_CZNV;
27476 	SET_ZFLG (((int32_t)(src)) == 0);
27477 	SET_NFLG (((int32_t)(src)) < 0);
27478 m68k_incpc(6);
27479 fill_prefetch_0 ();
27480 	m68k_write_memory_32(dsta,src);
27481 }}}}}endlabel1673: ;
27482 return 30;
27483 }
CPUFUNC(op_2a8_5)27484 unsigned long CPUFUNC(op_2a8_5)(uint32_t opcode) /* AND */
27485 {
27486 	uint32_t dstreg = opcode & 7;
27487 	OpcodeFamily = 2; CurrentInstrCycles = 32;
27488 {{	int32_t src = get_ilong_prefetch(2);
27489 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
27490 	if ((dsta & 1) != 0) {
27491 		last_fault_for_exception_3 = dsta;
27492 		last_op_for_exception_3 = opcode;
27493 		last_addr_for_exception_3 = m68k_getpc() + 8;
27494 		Exception(3, 0, M68000_EXC_SRC_CPU);
27495 		goto endlabel1674;
27496 	}
27497 {{	int32_t dst = m68k_read_memory_32(dsta);
27498 	src &= dst;
27499 	CLEAR_CZNV;
27500 	SET_ZFLG (((int32_t)(src)) == 0);
27501 	SET_NFLG (((int32_t)(src)) < 0);
27502 m68k_incpc(8);
27503 fill_prefetch_0 ();
27504 	m68k_write_memory_32(dsta,src);
27505 }}}}}endlabel1674: ;
27506 return 32;
27507 }
CPUFUNC(op_2b0_5)27508 unsigned long CPUFUNC(op_2b0_5)(uint32_t opcode) /* AND */
27509 {
27510 	uint32_t dstreg = opcode & 7;
27511 	OpcodeFamily = 2; CurrentInstrCycles = 34;
27512 {{	int32_t src = get_ilong_prefetch(2);
27513 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
27514 	BusCyclePenalty += 2;
27515 	if ((dsta & 1) != 0) {
27516 		last_fault_for_exception_3 = dsta;
27517 		last_op_for_exception_3 = opcode;
27518 		last_addr_for_exception_3 = m68k_getpc() + 8;
27519 		Exception(3, 0, M68000_EXC_SRC_CPU);
27520 		goto endlabel1675;
27521 	}
27522 {{	int32_t dst = m68k_read_memory_32(dsta);
27523 	src &= dst;
27524 	CLEAR_CZNV;
27525 	SET_ZFLG (((int32_t)(src)) == 0);
27526 	SET_NFLG (((int32_t)(src)) < 0);
27527 m68k_incpc(8);
27528 fill_prefetch_0 ();
27529 	m68k_write_memory_32(dsta,src);
27530 }}}}}endlabel1675: ;
27531 return 34;
27532 }
CPUFUNC(op_2b8_5)27533 unsigned long CPUFUNC(op_2b8_5)(uint32_t opcode) /* AND */
27534 {
27535 	OpcodeFamily = 2; CurrentInstrCycles = 32;
27536 {{	int32_t src = get_ilong_prefetch(2);
27537 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
27538 	if ((dsta & 1) != 0) {
27539 		last_fault_for_exception_3 = dsta;
27540 		last_op_for_exception_3 = opcode;
27541 		last_addr_for_exception_3 = m68k_getpc() + 8;
27542 		Exception(3, 0, M68000_EXC_SRC_CPU);
27543 		goto endlabel1676;
27544 	}
27545 {{	int32_t dst = m68k_read_memory_32(dsta);
27546 	src &= dst;
27547 	CLEAR_CZNV;
27548 	SET_ZFLG (((int32_t)(src)) == 0);
27549 	SET_NFLG (((int32_t)(src)) < 0);
27550 m68k_incpc(8);
27551 fill_prefetch_0 ();
27552 	m68k_write_memory_32(dsta,src);
27553 }}}}}endlabel1676: ;
27554 return 32;
27555 }
CPUFUNC(op_2b9_5)27556 unsigned long CPUFUNC(op_2b9_5)(uint32_t opcode) /* AND */
27557 {
27558 	OpcodeFamily = 2; CurrentInstrCycles = 36;
27559 {{	int32_t src = get_ilong_prefetch(2);
27560 {	uint32_t dsta = get_ilong_prefetch(6);
27561 	if ((dsta & 1) != 0) {
27562 		last_fault_for_exception_3 = dsta;
27563 		last_op_for_exception_3 = opcode;
27564 		last_addr_for_exception_3 = m68k_getpc() + 10;
27565 		Exception(3, 0, M68000_EXC_SRC_CPU);
27566 		goto endlabel1677;
27567 	}
27568 {{	int32_t dst = m68k_read_memory_32(dsta);
27569 	src &= dst;
27570 	CLEAR_CZNV;
27571 	SET_ZFLG (((int32_t)(src)) == 0);
27572 	SET_NFLG (((int32_t)(src)) < 0);
27573 m68k_incpc(10);
27574 fill_prefetch_0 ();
27575 	m68k_write_memory_32(dsta,src);
27576 }}}}}endlabel1677: ;
27577 return 36;
27578 }
CPUFUNC(op_400_5)27579 unsigned long CPUFUNC(op_400_5)(uint32_t opcode) /* SUB */
27580 {
27581 	uint32_t dstreg = opcode & 7;
27582 	OpcodeFamily = 7; CurrentInstrCycles = 8;
27583 {{	int8_t src = get_ibyte_prefetch(2);
27584 {	int8_t dst = m68k_dreg(regs, dstreg);
27585 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27586 {	int flgs = ((int8_t)(src)) < 0;
27587 	int flgo = ((int8_t)(dst)) < 0;
27588 	int flgn = ((int8_t)(newv)) < 0;
27589 	SET_ZFLG (((int8_t)(newv)) == 0);
27590 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27591 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27592 	COPY_CARRY;
27593 	SET_NFLG (flgn != 0);
27594 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
27595 }}}}}}m68k_incpc(4);
27596 fill_prefetch_0 ();
27597 return 8;
27598 }
CPUFUNC(op_410_5)27599 unsigned long CPUFUNC(op_410_5)(uint32_t opcode) /* SUB */
27600 {
27601 	uint32_t dstreg = opcode & 7;
27602 	OpcodeFamily = 7; CurrentInstrCycles = 16;
27603 {{	int8_t src = get_ibyte_prefetch(2);
27604 {	uint32_t dsta = m68k_areg(regs, dstreg);
27605 {	int8_t dst = m68k_read_memory_8(dsta);
27606 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27607 {	int flgs = ((int8_t)(src)) < 0;
27608 	int flgo = ((int8_t)(dst)) < 0;
27609 	int flgn = ((int8_t)(newv)) < 0;
27610 	SET_ZFLG (((int8_t)(newv)) == 0);
27611 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27612 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27613 	COPY_CARRY;
27614 	SET_NFLG (flgn != 0);
27615 m68k_incpc(4);
27616 fill_prefetch_0 ();
27617 	m68k_write_memory_8(dsta,newv);
27618 }}}}}}}return 16;
27619 }
CPUFUNC(op_418_5)27620 unsigned long CPUFUNC(op_418_5)(uint32_t opcode) /* SUB */
27621 {
27622 	uint32_t dstreg = opcode & 7;
27623 	OpcodeFamily = 7; CurrentInstrCycles = 16;
27624 {{	int8_t src = get_ibyte_prefetch(2);
27625 {	uint32_t dsta = m68k_areg(regs, dstreg);
27626 {	int8_t dst = m68k_read_memory_8(dsta);
27627 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
27628 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27629 {	int flgs = ((int8_t)(src)) < 0;
27630 	int flgo = ((int8_t)(dst)) < 0;
27631 	int flgn = ((int8_t)(newv)) < 0;
27632 	SET_ZFLG (((int8_t)(newv)) == 0);
27633 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27634 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27635 	COPY_CARRY;
27636 	SET_NFLG (flgn != 0);
27637 m68k_incpc(4);
27638 fill_prefetch_0 ();
27639 	m68k_write_memory_8(dsta,newv);
27640 }}}}}}}return 16;
27641 }
CPUFUNC(op_420_5)27642 unsigned long CPUFUNC(op_420_5)(uint32_t opcode) /* SUB */
27643 {
27644 	uint32_t dstreg = opcode & 7;
27645 	OpcodeFamily = 7; CurrentInstrCycles = 18;
27646 {{	int8_t src = get_ibyte_prefetch(2);
27647 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
27648 {	int8_t dst = m68k_read_memory_8(dsta);
27649 	m68k_areg (regs, dstreg) = dsta;
27650 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27651 {	int flgs = ((int8_t)(src)) < 0;
27652 	int flgo = ((int8_t)(dst)) < 0;
27653 	int flgn = ((int8_t)(newv)) < 0;
27654 	SET_ZFLG (((int8_t)(newv)) == 0);
27655 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27656 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27657 	COPY_CARRY;
27658 	SET_NFLG (flgn != 0);
27659 m68k_incpc(4);
27660 fill_prefetch_0 ();
27661 	m68k_write_memory_8(dsta,newv);
27662 }}}}}}}return 18;
27663 }
CPUFUNC(op_428_5)27664 unsigned long CPUFUNC(op_428_5)(uint32_t opcode) /* SUB */
27665 {
27666 	uint32_t dstreg = opcode & 7;
27667 	OpcodeFamily = 7; CurrentInstrCycles = 20;
27668 {{	int8_t src = get_ibyte_prefetch(2);
27669 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
27670 {	int8_t dst = m68k_read_memory_8(dsta);
27671 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27672 {	int flgs = ((int8_t)(src)) < 0;
27673 	int flgo = ((int8_t)(dst)) < 0;
27674 	int flgn = ((int8_t)(newv)) < 0;
27675 	SET_ZFLG (((int8_t)(newv)) == 0);
27676 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27677 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27678 	COPY_CARRY;
27679 	SET_NFLG (flgn != 0);
27680 m68k_incpc(6);
27681 fill_prefetch_0 ();
27682 	m68k_write_memory_8(dsta,newv);
27683 }}}}}}}return 20;
27684 }
CPUFUNC(op_430_5)27685 unsigned long CPUFUNC(op_430_5)(uint32_t opcode) /* SUB */
27686 {
27687 	uint32_t dstreg = opcode & 7;
27688 	OpcodeFamily = 7; CurrentInstrCycles = 22;
27689 {{	int8_t src = get_ibyte_prefetch(2);
27690 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
27691 	BusCyclePenalty += 2;
27692 {	int8_t dst = m68k_read_memory_8(dsta);
27693 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27694 {	int flgs = ((int8_t)(src)) < 0;
27695 	int flgo = ((int8_t)(dst)) < 0;
27696 	int flgn = ((int8_t)(newv)) < 0;
27697 	SET_ZFLG (((int8_t)(newv)) == 0);
27698 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27699 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27700 	COPY_CARRY;
27701 	SET_NFLG (flgn != 0);
27702 m68k_incpc(6);
27703 fill_prefetch_0 ();
27704 	m68k_write_memory_8(dsta,newv);
27705 }}}}}}}return 22;
27706 }
CPUFUNC(op_438_5)27707 unsigned long CPUFUNC(op_438_5)(uint32_t opcode) /* SUB */
27708 {
27709 	OpcodeFamily = 7; CurrentInstrCycles = 20;
27710 {{	int8_t src = get_ibyte_prefetch(2);
27711 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
27712 {	int8_t dst = m68k_read_memory_8(dsta);
27713 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27714 {	int flgs = ((int8_t)(src)) < 0;
27715 	int flgo = ((int8_t)(dst)) < 0;
27716 	int flgn = ((int8_t)(newv)) < 0;
27717 	SET_ZFLG (((int8_t)(newv)) == 0);
27718 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27719 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27720 	COPY_CARRY;
27721 	SET_NFLG (flgn != 0);
27722 m68k_incpc(6);
27723 fill_prefetch_0 ();
27724 	m68k_write_memory_8(dsta,newv);
27725 }}}}}}}return 20;
27726 }
CPUFUNC(op_439_5)27727 unsigned long CPUFUNC(op_439_5)(uint32_t opcode) /* SUB */
27728 {
27729 	OpcodeFamily = 7; CurrentInstrCycles = 24;
27730 {{	int8_t src = get_ibyte_prefetch(2);
27731 {	uint32_t dsta = get_ilong_prefetch(4);
27732 {	int8_t dst = m68k_read_memory_8(dsta);
27733 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
27734 {	int flgs = ((int8_t)(src)) < 0;
27735 	int flgo = ((int8_t)(dst)) < 0;
27736 	int flgn = ((int8_t)(newv)) < 0;
27737 	SET_ZFLG (((int8_t)(newv)) == 0);
27738 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27739 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
27740 	COPY_CARRY;
27741 	SET_NFLG (flgn != 0);
27742 m68k_incpc(8);
27743 fill_prefetch_0 ();
27744 	m68k_write_memory_8(dsta,newv);
27745 }}}}}}}return 24;
27746 }
CPUFUNC(op_440_5)27747 unsigned long CPUFUNC(op_440_5)(uint32_t opcode) /* SUB */
27748 {
27749 	uint32_t dstreg = opcode & 7;
27750 	OpcodeFamily = 7; CurrentInstrCycles = 8;
27751 {{	int16_t src = get_iword_prefetch(2);
27752 {	int16_t dst = m68k_dreg(regs, dstreg);
27753 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27754 {	int flgs = ((int16_t)(src)) < 0;
27755 	int flgo = ((int16_t)(dst)) < 0;
27756 	int flgn = ((int16_t)(newv)) < 0;
27757 	SET_ZFLG (((int16_t)(newv)) == 0);
27758 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27759 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27760 	COPY_CARRY;
27761 	SET_NFLG (flgn != 0);
27762 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
27763 }}}}}}m68k_incpc(4);
27764 fill_prefetch_0 ();
27765 return 8;
27766 }
CPUFUNC(op_450_5)27767 unsigned long CPUFUNC(op_450_5)(uint32_t opcode) /* SUB */
27768 {
27769 	uint32_t dstreg = opcode & 7;
27770 	OpcodeFamily = 7; CurrentInstrCycles = 16;
27771 {{	int16_t src = get_iword_prefetch(2);
27772 {	uint32_t dsta = m68k_areg(regs, dstreg);
27773 	if ((dsta & 1) != 0) {
27774 		last_fault_for_exception_3 = dsta;
27775 		last_op_for_exception_3 = opcode;
27776 		last_addr_for_exception_3 = m68k_getpc() + 4;
27777 		Exception(3, 0, M68000_EXC_SRC_CPU);
27778 		goto endlabel1687;
27779 	}
27780 {{	int16_t dst = m68k_read_memory_16(dsta);
27781 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27782 {	int flgs = ((int16_t)(src)) < 0;
27783 	int flgo = ((int16_t)(dst)) < 0;
27784 	int flgn = ((int16_t)(newv)) < 0;
27785 	SET_ZFLG (((int16_t)(newv)) == 0);
27786 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27787 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27788 	COPY_CARRY;
27789 	SET_NFLG (flgn != 0);
27790 m68k_incpc(4);
27791 fill_prefetch_0 ();
27792 	m68k_write_memory_16(dsta,newv);
27793 }}}}}}}}endlabel1687: ;
27794 return 16;
27795 }
CPUFUNC(op_458_5)27796 unsigned long CPUFUNC(op_458_5)(uint32_t opcode) /* SUB */
27797 {
27798 	uint32_t dstreg = opcode & 7;
27799 	OpcodeFamily = 7; CurrentInstrCycles = 16;
27800 {{	int16_t src = get_iword_prefetch(2);
27801 {	uint32_t dsta = m68k_areg(regs, dstreg);
27802 	if ((dsta & 1) != 0) {
27803 		last_fault_for_exception_3 = dsta;
27804 		last_op_for_exception_3 = opcode;
27805 		last_addr_for_exception_3 = m68k_getpc() + 4;
27806 		Exception(3, 0, M68000_EXC_SRC_CPU);
27807 		goto endlabel1688;
27808 	}
27809 {{	int16_t dst = m68k_read_memory_16(dsta);
27810 	m68k_areg(regs, dstreg) += 2;
27811 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27812 {	int flgs = ((int16_t)(src)) < 0;
27813 	int flgo = ((int16_t)(dst)) < 0;
27814 	int flgn = ((int16_t)(newv)) < 0;
27815 	SET_ZFLG (((int16_t)(newv)) == 0);
27816 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27817 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27818 	COPY_CARRY;
27819 	SET_NFLG (flgn != 0);
27820 m68k_incpc(4);
27821 fill_prefetch_0 ();
27822 	m68k_write_memory_16(dsta,newv);
27823 }}}}}}}}endlabel1688: ;
27824 return 16;
27825 }
CPUFUNC(op_460_5)27826 unsigned long CPUFUNC(op_460_5)(uint32_t opcode) /* SUB */
27827 {
27828 	uint32_t dstreg = opcode & 7;
27829 	OpcodeFamily = 7; CurrentInstrCycles = 18;
27830 {{	int16_t src = get_iword_prefetch(2);
27831 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
27832 	if ((dsta & 1) != 0) {
27833 		last_fault_for_exception_3 = dsta;
27834 		last_op_for_exception_3 = opcode;
27835 		last_addr_for_exception_3 = m68k_getpc() + 4;
27836 		Exception(3, 0, M68000_EXC_SRC_CPU);
27837 		goto endlabel1689;
27838 	}
27839 {{	int16_t dst = m68k_read_memory_16(dsta);
27840 	m68k_areg (regs, dstreg) = dsta;
27841 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27842 {	int flgs = ((int16_t)(src)) < 0;
27843 	int flgo = ((int16_t)(dst)) < 0;
27844 	int flgn = ((int16_t)(newv)) < 0;
27845 	SET_ZFLG (((int16_t)(newv)) == 0);
27846 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27847 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27848 	COPY_CARRY;
27849 	SET_NFLG (flgn != 0);
27850 m68k_incpc(4);
27851 fill_prefetch_0 ();
27852 	m68k_write_memory_16(dsta,newv);
27853 }}}}}}}}endlabel1689: ;
27854 return 18;
27855 }
CPUFUNC(op_468_5)27856 unsigned long CPUFUNC(op_468_5)(uint32_t opcode) /* SUB */
27857 {
27858 	uint32_t dstreg = opcode & 7;
27859 	OpcodeFamily = 7; CurrentInstrCycles = 20;
27860 {{	int16_t src = get_iword_prefetch(2);
27861 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
27862 	if ((dsta & 1) != 0) {
27863 		last_fault_for_exception_3 = dsta;
27864 		last_op_for_exception_3 = opcode;
27865 		last_addr_for_exception_3 = m68k_getpc() + 6;
27866 		Exception(3, 0, M68000_EXC_SRC_CPU);
27867 		goto endlabel1690;
27868 	}
27869 {{	int16_t dst = m68k_read_memory_16(dsta);
27870 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27871 {	int flgs = ((int16_t)(src)) < 0;
27872 	int flgo = ((int16_t)(dst)) < 0;
27873 	int flgn = ((int16_t)(newv)) < 0;
27874 	SET_ZFLG (((int16_t)(newv)) == 0);
27875 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27876 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27877 	COPY_CARRY;
27878 	SET_NFLG (flgn != 0);
27879 m68k_incpc(6);
27880 fill_prefetch_0 ();
27881 	m68k_write_memory_16(dsta,newv);
27882 }}}}}}}}endlabel1690: ;
27883 return 20;
27884 }
CPUFUNC(op_470_5)27885 unsigned long CPUFUNC(op_470_5)(uint32_t opcode) /* SUB */
27886 {
27887 	uint32_t dstreg = opcode & 7;
27888 	OpcodeFamily = 7; CurrentInstrCycles = 22;
27889 {{	int16_t src = get_iword_prefetch(2);
27890 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
27891 	BusCyclePenalty += 2;
27892 	if ((dsta & 1) != 0) {
27893 		last_fault_for_exception_3 = dsta;
27894 		last_op_for_exception_3 = opcode;
27895 		last_addr_for_exception_3 = m68k_getpc() + 6;
27896 		Exception(3, 0, M68000_EXC_SRC_CPU);
27897 		goto endlabel1691;
27898 	}
27899 {{	int16_t dst = m68k_read_memory_16(dsta);
27900 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27901 {	int flgs = ((int16_t)(src)) < 0;
27902 	int flgo = ((int16_t)(dst)) < 0;
27903 	int flgn = ((int16_t)(newv)) < 0;
27904 	SET_ZFLG (((int16_t)(newv)) == 0);
27905 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27906 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27907 	COPY_CARRY;
27908 	SET_NFLG (flgn != 0);
27909 m68k_incpc(6);
27910 fill_prefetch_0 ();
27911 	m68k_write_memory_16(dsta,newv);
27912 }}}}}}}}endlabel1691: ;
27913 return 22;
27914 }
CPUFUNC(op_478_5)27915 unsigned long CPUFUNC(op_478_5)(uint32_t opcode) /* SUB */
27916 {
27917 	OpcodeFamily = 7; CurrentInstrCycles = 20;
27918 {{	int16_t src = get_iword_prefetch(2);
27919 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
27920 	if ((dsta & 1) != 0) {
27921 		last_fault_for_exception_3 = dsta;
27922 		last_op_for_exception_3 = opcode;
27923 		last_addr_for_exception_3 = m68k_getpc() + 6;
27924 		Exception(3, 0, M68000_EXC_SRC_CPU);
27925 		goto endlabel1692;
27926 	}
27927 {{	int16_t dst = m68k_read_memory_16(dsta);
27928 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27929 {	int flgs = ((int16_t)(src)) < 0;
27930 	int flgo = ((int16_t)(dst)) < 0;
27931 	int flgn = ((int16_t)(newv)) < 0;
27932 	SET_ZFLG (((int16_t)(newv)) == 0);
27933 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27934 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27935 	COPY_CARRY;
27936 	SET_NFLG (flgn != 0);
27937 m68k_incpc(6);
27938 fill_prefetch_0 ();
27939 	m68k_write_memory_16(dsta,newv);
27940 }}}}}}}}endlabel1692: ;
27941 return 20;
27942 }
CPUFUNC(op_479_5)27943 unsigned long CPUFUNC(op_479_5)(uint32_t opcode) /* SUB */
27944 {
27945 	OpcodeFamily = 7; CurrentInstrCycles = 24;
27946 {{	int16_t src = get_iword_prefetch(2);
27947 {	uint32_t dsta = get_ilong_prefetch(4);
27948 	if ((dsta & 1) != 0) {
27949 		last_fault_for_exception_3 = dsta;
27950 		last_op_for_exception_3 = opcode;
27951 		last_addr_for_exception_3 = m68k_getpc() + 8;
27952 		Exception(3, 0, M68000_EXC_SRC_CPU);
27953 		goto endlabel1693;
27954 	}
27955 {{	int16_t dst = m68k_read_memory_16(dsta);
27956 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
27957 {	int flgs = ((int16_t)(src)) < 0;
27958 	int flgo = ((int16_t)(dst)) < 0;
27959 	int flgn = ((int16_t)(newv)) < 0;
27960 	SET_ZFLG (((int16_t)(newv)) == 0);
27961 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27962 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
27963 	COPY_CARRY;
27964 	SET_NFLG (flgn != 0);
27965 m68k_incpc(8);
27966 fill_prefetch_0 ();
27967 	m68k_write_memory_16(dsta,newv);
27968 }}}}}}}}endlabel1693: ;
27969 return 24;
27970 }
CPUFUNC(op_480_5)27971 unsigned long CPUFUNC(op_480_5)(uint32_t opcode) /* SUB */
27972 {
27973 	uint32_t dstreg = opcode & 7;
27974 	OpcodeFamily = 7; CurrentInstrCycles = 16;
27975 {{	int32_t src = get_ilong_prefetch(2);
27976 {	int32_t dst = m68k_dreg(regs, dstreg);
27977 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
27978 {	int flgs = ((int32_t)(src)) < 0;
27979 	int flgo = ((int32_t)(dst)) < 0;
27980 	int flgn = ((int32_t)(newv)) < 0;
27981 	SET_ZFLG (((int32_t)(newv)) == 0);
27982 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
27983 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
27984 	COPY_CARRY;
27985 	SET_NFLG (flgn != 0);
27986 	m68k_dreg(regs, dstreg) = (newv);
27987 }}}}}}m68k_incpc(6);
27988 fill_prefetch_0 ();
27989 return 16;
27990 }
CPUFUNC(op_490_5)27991 unsigned long CPUFUNC(op_490_5)(uint32_t opcode) /* SUB */
27992 {
27993 	uint32_t dstreg = opcode & 7;
27994 	OpcodeFamily = 7; CurrentInstrCycles = 28;
27995 {{	int32_t src = get_ilong_prefetch(2);
27996 {	uint32_t dsta = m68k_areg(regs, dstreg);
27997 	if ((dsta & 1) != 0) {
27998 		last_fault_for_exception_3 = dsta;
27999 		last_op_for_exception_3 = opcode;
28000 		last_addr_for_exception_3 = m68k_getpc() + 6;
28001 		Exception(3, 0, M68000_EXC_SRC_CPU);
28002 		goto endlabel1695;
28003 	}
28004 {{	int32_t dst = m68k_read_memory_32(dsta);
28005 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
28006 {	int flgs = ((int32_t)(src)) < 0;
28007 	int flgo = ((int32_t)(dst)) < 0;
28008 	int flgn = ((int32_t)(newv)) < 0;
28009 	SET_ZFLG (((int32_t)(newv)) == 0);
28010 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
28011 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
28012 	COPY_CARRY;
28013 	SET_NFLG (flgn != 0);
28014 m68k_incpc(6);
28015 fill_prefetch_0 ();
28016 	m68k_write_memory_32(dsta,newv);
28017 }}}}}}}}endlabel1695: ;
28018 return 28;
28019 }
CPUFUNC(op_498_5)28020 unsigned long CPUFUNC(op_498_5)(uint32_t opcode) /* SUB */
28021 {
28022 	uint32_t dstreg = opcode & 7;
28023 	OpcodeFamily = 7; CurrentInstrCycles = 28;
28024 {{	int32_t src = get_ilong_prefetch(2);
28025 {	uint32_t dsta = m68k_areg(regs, dstreg);
28026 	if ((dsta & 1) != 0) {
28027 		last_fault_for_exception_3 = dsta;
28028 		last_op_for_exception_3 = opcode;
28029 		last_addr_for_exception_3 = m68k_getpc() + 6;
28030 		Exception(3, 0, M68000_EXC_SRC_CPU);
28031 		goto endlabel1696;
28032 	}
28033 {{	int32_t dst = m68k_read_memory_32(dsta);
28034 	m68k_areg(regs, dstreg) += 4;
28035 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
28036 {	int flgs = ((int32_t)(src)) < 0;
28037 	int flgo = ((int32_t)(dst)) < 0;
28038 	int flgn = ((int32_t)(newv)) < 0;
28039 	SET_ZFLG (((int32_t)(newv)) == 0);
28040 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
28041 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
28042 	COPY_CARRY;
28043 	SET_NFLG (flgn != 0);
28044 m68k_incpc(6);
28045 fill_prefetch_0 ();
28046 	m68k_write_memory_32(dsta,newv);
28047 }}}}}}}}endlabel1696: ;
28048 return 28;
28049 }
CPUFUNC(op_4a0_5)28050 unsigned long CPUFUNC(op_4a0_5)(uint32_t opcode) /* SUB */
28051 {
28052 	uint32_t dstreg = opcode & 7;
28053 	OpcodeFamily = 7; CurrentInstrCycles = 30;
28054 {{	int32_t src = get_ilong_prefetch(2);
28055 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
28056 	if ((dsta & 1) != 0) {
28057 		last_fault_for_exception_3 = dsta;
28058 		last_op_for_exception_3 = opcode;
28059 		last_addr_for_exception_3 = m68k_getpc() + 6;
28060 		Exception(3, 0, M68000_EXC_SRC_CPU);
28061 		goto endlabel1697;
28062 	}
28063 {{	int32_t dst = m68k_read_memory_32(dsta);
28064 	m68k_areg (regs, dstreg) = dsta;
28065 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
28066 {	int flgs = ((int32_t)(src)) < 0;
28067 	int flgo = ((int32_t)(dst)) < 0;
28068 	int flgn = ((int32_t)(newv)) < 0;
28069 	SET_ZFLG (((int32_t)(newv)) == 0);
28070 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
28071 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
28072 	COPY_CARRY;
28073 	SET_NFLG (flgn != 0);
28074 m68k_incpc(6);
28075 fill_prefetch_0 ();
28076 	m68k_write_memory_32(dsta,newv);
28077 }}}}}}}}endlabel1697: ;
28078 return 30;
28079 }
CPUFUNC(op_4a8_5)28080 unsigned long CPUFUNC(op_4a8_5)(uint32_t opcode) /* SUB */
28081 {
28082 	uint32_t dstreg = opcode & 7;
28083 	OpcodeFamily = 7; CurrentInstrCycles = 32;
28084 {{	int32_t src = get_ilong_prefetch(2);
28085 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
28086 	if ((dsta & 1) != 0) {
28087 		last_fault_for_exception_3 = dsta;
28088 		last_op_for_exception_3 = opcode;
28089 		last_addr_for_exception_3 = m68k_getpc() + 8;
28090 		Exception(3, 0, M68000_EXC_SRC_CPU);
28091 		goto endlabel1698;
28092 	}
28093 {{	int32_t dst = m68k_read_memory_32(dsta);
28094 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
28095 {	int flgs = ((int32_t)(src)) < 0;
28096 	int flgo = ((int32_t)(dst)) < 0;
28097 	int flgn = ((int32_t)(newv)) < 0;
28098 	SET_ZFLG (((int32_t)(newv)) == 0);
28099 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
28100 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
28101 	COPY_CARRY;
28102 	SET_NFLG (flgn != 0);
28103 m68k_incpc(8);
28104 fill_prefetch_0 ();
28105 	m68k_write_memory_32(dsta,newv);
28106 }}}}}}}}endlabel1698: ;
28107 return 32;
28108 }
CPUFUNC(op_4b0_5)28109 unsigned long CPUFUNC(op_4b0_5)(uint32_t opcode) /* SUB */
28110 {
28111 	uint32_t dstreg = opcode & 7;
28112 	OpcodeFamily = 7; CurrentInstrCycles = 34;
28113 {{	int32_t src = get_ilong_prefetch(2);
28114 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
28115 	BusCyclePenalty += 2;
28116 	if ((dsta & 1) != 0) {
28117 		last_fault_for_exception_3 = dsta;
28118 		last_op_for_exception_3 = opcode;
28119 		last_addr_for_exception_3 = m68k_getpc() + 8;
28120 		Exception(3, 0, M68000_EXC_SRC_CPU);
28121 		goto endlabel1699;
28122 	}
28123 {{	int32_t dst = m68k_read_memory_32(dsta);
28124 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
28125 {	int flgs = ((int32_t)(src)) < 0;
28126 	int flgo = ((int32_t)(dst)) < 0;
28127 	int flgn = ((int32_t)(newv)) < 0;
28128 	SET_ZFLG (((int32_t)(newv)) == 0);
28129 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
28130 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
28131 	COPY_CARRY;
28132 	SET_NFLG (flgn != 0);
28133 m68k_incpc(8);
28134 fill_prefetch_0 ();
28135 	m68k_write_memory_32(dsta,newv);
28136 }}}}}}}}endlabel1699: ;
28137 return 34;
28138 }
CPUFUNC(op_4b8_5)28139 unsigned long CPUFUNC(op_4b8_5)(uint32_t opcode) /* SUB */
28140 {
28141 	OpcodeFamily = 7; CurrentInstrCycles = 32;
28142 {{	int32_t src = get_ilong_prefetch(2);
28143 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
28144 	if ((dsta & 1) != 0) {
28145 		last_fault_for_exception_3 = dsta;
28146 		last_op_for_exception_3 = opcode;
28147 		last_addr_for_exception_3 = m68k_getpc() + 8;
28148 		Exception(3, 0, M68000_EXC_SRC_CPU);
28149 		goto endlabel1700;
28150 	}
28151 {{	int32_t dst = m68k_read_memory_32(dsta);
28152 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
28153 {	int flgs = ((int32_t)(src)) < 0;
28154 	int flgo = ((int32_t)(dst)) < 0;
28155 	int flgn = ((int32_t)(newv)) < 0;
28156 	SET_ZFLG (((int32_t)(newv)) == 0);
28157 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
28158 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
28159 	COPY_CARRY;
28160 	SET_NFLG (flgn != 0);
28161 m68k_incpc(8);
28162 fill_prefetch_0 ();
28163 	m68k_write_memory_32(dsta,newv);
28164 }}}}}}}}endlabel1700: ;
28165 return 32;
28166 }
CPUFUNC(op_4b9_5)28167 unsigned long CPUFUNC(op_4b9_5)(uint32_t opcode) /* SUB */
28168 {
28169 	OpcodeFamily = 7; CurrentInstrCycles = 36;
28170 {{	int32_t src = get_ilong_prefetch(2);
28171 {	uint32_t dsta = get_ilong_prefetch(6);
28172 	if ((dsta & 1) != 0) {
28173 		last_fault_for_exception_3 = dsta;
28174 		last_op_for_exception_3 = opcode;
28175 		last_addr_for_exception_3 = m68k_getpc() + 10;
28176 		Exception(3, 0, M68000_EXC_SRC_CPU);
28177 		goto endlabel1701;
28178 	}
28179 {{	int32_t dst = m68k_read_memory_32(dsta);
28180 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
28181 {	int flgs = ((int32_t)(src)) < 0;
28182 	int flgo = ((int32_t)(dst)) < 0;
28183 	int flgn = ((int32_t)(newv)) < 0;
28184 	SET_ZFLG (((int32_t)(newv)) == 0);
28185 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
28186 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
28187 	COPY_CARRY;
28188 	SET_NFLG (flgn != 0);
28189 m68k_incpc(10);
28190 fill_prefetch_0 ();
28191 	m68k_write_memory_32(dsta,newv);
28192 }}}}}}}}endlabel1701: ;
28193 return 36;
28194 }
CPUFUNC(op_600_5)28195 unsigned long CPUFUNC(op_600_5)(uint32_t opcode) /* ADD */
28196 {
28197 	uint32_t dstreg = opcode & 7;
28198 	OpcodeFamily = 11; CurrentInstrCycles = 8;
28199 {{	int8_t src = get_ibyte_prefetch(2);
28200 {	int8_t dst = m68k_dreg(regs, dstreg);
28201 {	refill_prefetch (m68k_getpc(), 2);
28202 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28203 {	int flgs = ((int8_t)(src)) < 0;
28204 	int flgo = ((int8_t)(dst)) < 0;
28205 	int flgn = ((int8_t)(newv)) < 0;
28206 	SET_ZFLG (((int8_t)(newv)) == 0);
28207 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28208 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28209 	COPY_CARRY;
28210 	SET_NFLG (flgn != 0);
28211 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
28212 }}}}}}m68k_incpc(4);
28213 fill_prefetch_0 ();
28214 return 8;
28215 }
CPUFUNC(op_610_5)28216 unsigned long CPUFUNC(op_610_5)(uint32_t opcode) /* ADD */
28217 {
28218 	uint32_t dstreg = opcode & 7;
28219 	OpcodeFamily = 11; CurrentInstrCycles = 16;
28220 {{	int8_t src = get_ibyte_prefetch(2);
28221 {	uint32_t dsta = m68k_areg(regs, dstreg);
28222 {	int8_t dst = m68k_read_memory_8(dsta);
28223 {	refill_prefetch (m68k_getpc(), 2);
28224 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28225 {	int flgs = ((int8_t)(src)) < 0;
28226 	int flgo = ((int8_t)(dst)) < 0;
28227 	int flgn = ((int8_t)(newv)) < 0;
28228 	SET_ZFLG (((int8_t)(newv)) == 0);
28229 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28230 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28231 	COPY_CARRY;
28232 	SET_NFLG (flgn != 0);
28233 m68k_incpc(4);
28234 fill_prefetch_0 ();
28235 	m68k_write_memory_8(dsta,newv);
28236 }}}}}}}return 16;
28237 }
CPUFUNC(op_618_5)28238 unsigned long CPUFUNC(op_618_5)(uint32_t opcode) /* ADD */
28239 {
28240 	uint32_t dstreg = opcode & 7;
28241 	OpcodeFamily = 11; CurrentInstrCycles = 16;
28242 {{	int8_t src = get_ibyte_prefetch(2);
28243 {	uint32_t dsta = m68k_areg(regs, dstreg);
28244 {	int8_t dst = m68k_read_memory_8(dsta);
28245 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
28246 {	refill_prefetch (m68k_getpc(), 2);
28247 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28248 {	int flgs = ((int8_t)(src)) < 0;
28249 	int flgo = ((int8_t)(dst)) < 0;
28250 	int flgn = ((int8_t)(newv)) < 0;
28251 	SET_ZFLG (((int8_t)(newv)) == 0);
28252 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28253 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28254 	COPY_CARRY;
28255 	SET_NFLG (flgn != 0);
28256 m68k_incpc(4);
28257 fill_prefetch_0 ();
28258 	m68k_write_memory_8(dsta,newv);
28259 }}}}}}}return 16;
28260 }
CPUFUNC(op_620_5)28261 unsigned long CPUFUNC(op_620_5)(uint32_t opcode) /* ADD */
28262 {
28263 	uint32_t dstreg = opcode & 7;
28264 	OpcodeFamily = 11; CurrentInstrCycles = 18;
28265 {{	int8_t src = get_ibyte_prefetch(2);
28266 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
28267 {	int8_t dst = m68k_read_memory_8(dsta);
28268 	m68k_areg (regs, dstreg) = dsta;
28269 {	refill_prefetch (m68k_getpc(), 2);
28270 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28271 {	int flgs = ((int8_t)(src)) < 0;
28272 	int flgo = ((int8_t)(dst)) < 0;
28273 	int flgn = ((int8_t)(newv)) < 0;
28274 	SET_ZFLG (((int8_t)(newv)) == 0);
28275 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28276 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28277 	COPY_CARRY;
28278 	SET_NFLG (flgn != 0);
28279 m68k_incpc(4);
28280 fill_prefetch_0 ();
28281 	m68k_write_memory_8(dsta,newv);
28282 }}}}}}}return 18;
28283 }
CPUFUNC(op_628_5)28284 unsigned long CPUFUNC(op_628_5)(uint32_t opcode) /* ADD */
28285 {
28286 	uint32_t dstreg = opcode & 7;
28287 	OpcodeFamily = 11; CurrentInstrCycles = 20;
28288 {{	int8_t src = get_ibyte_prefetch(2);
28289 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
28290 {	int8_t dst = m68k_read_memory_8(dsta);
28291 {	refill_prefetch (m68k_getpc(), 2);
28292 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28293 {	int flgs = ((int8_t)(src)) < 0;
28294 	int flgo = ((int8_t)(dst)) < 0;
28295 	int flgn = ((int8_t)(newv)) < 0;
28296 	SET_ZFLG (((int8_t)(newv)) == 0);
28297 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28298 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28299 	COPY_CARRY;
28300 	SET_NFLG (flgn != 0);
28301 m68k_incpc(6);
28302 fill_prefetch_0 ();
28303 	m68k_write_memory_8(dsta,newv);
28304 }}}}}}}return 20;
28305 }
CPUFUNC(op_630_5)28306 unsigned long CPUFUNC(op_630_5)(uint32_t opcode) /* ADD */
28307 {
28308 	uint32_t dstreg = opcode & 7;
28309 	OpcodeFamily = 11; CurrentInstrCycles = 22;
28310 {{	int8_t src = get_ibyte_prefetch(2);
28311 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
28312 	BusCyclePenalty += 2;
28313 {	int8_t dst = m68k_read_memory_8(dsta);
28314 {	refill_prefetch (m68k_getpc(), 2);
28315 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28316 {	int flgs = ((int8_t)(src)) < 0;
28317 	int flgo = ((int8_t)(dst)) < 0;
28318 	int flgn = ((int8_t)(newv)) < 0;
28319 	SET_ZFLG (((int8_t)(newv)) == 0);
28320 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28321 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28322 	COPY_CARRY;
28323 	SET_NFLG (flgn != 0);
28324 m68k_incpc(6);
28325 fill_prefetch_0 ();
28326 	m68k_write_memory_8(dsta,newv);
28327 }}}}}}}return 22;
28328 }
CPUFUNC(op_638_5)28329 unsigned long CPUFUNC(op_638_5)(uint32_t opcode) /* ADD */
28330 {
28331 	OpcodeFamily = 11; CurrentInstrCycles = 20;
28332 {{	int8_t src = get_ibyte_prefetch(2);
28333 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
28334 {	int8_t dst = m68k_read_memory_8(dsta);
28335 {	refill_prefetch (m68k_getpc(), 2);
28336 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28337 {	int flgs = ((int8_t)(src)) < 0;
28338 	int flgo = ((int8_t)(dst)) < 0;
28339 	int flgn = ((int8_t)(newv)) < 0;
28340 	SET_ZFLG (((int8_t)(newv)) == 0);
28341 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28342 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28343 	COPY_CARRY;
28344 	SET_NFLG (flgn != 0);
28345 m68k_incpc(6);
28346 fill_prefetch_0 ();
28347 	m68k_write_memory_8(dsta,newv);
28348 }}}}}}}return 20;
28349 }
CPUFUNC(op_639_5)28350 unsigned long CPUFUNC(op_639_5)(uint32_t opcode) /* ADD */
28351 {
28352 	OpcodeFamily = 11; CurrentInstrCycles = 24;
28353 {{	int8_t src = get_ibyte_prefetch(2);
28354 {	uint32_t dsta = get_ilong_prefetch(4);
28355 {	int8_t dst = m68k_read_memory_8(dsta);
28356 {	refill_prefetch (m68k_getpc(), 2);
28357 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
28358 {	int flgs = ((int8_t)(src)) < 0;
28359 	int flgo = ((int8_t)(dst)) < 0;
28360 	int flgn = ((int8_t)(newv)) < 0;
28361 	SET_ZFLG (((int8_t)(newv)) == 0);
28362 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28363 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
28364 	COPY_CARRY;
28365 	SET_NFLG (flgn != 0);
28366 m68k_incpc(8);
28367 fill_prefetch_0 ();
28368 	m68k_write_memory_8(dsta,newv);
28369 }}}}}}}return 24;
28370 }
CPUFUNC(op_640_5)28371 unsigned long CPUFUNC(op_640_5)(uint32_t opcode) /* ADD */
28372 {
28373 	uint32_t dstreg = opcode & 7;
28374 	OpcodeFamily = 11; CurrentInstrCycles = 8;
28375 {{	int16_t src = get_iword_prefetch(2);
28376 {	int16_t dst = m68k_dreg(regs, dstreg);
28377 {	refill_prefetch (m68k_getpc(), 2);
28378 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28379 {	int flgs = ((int16_t)(src)) < 0;
28380 	int flgo = ((int16_t)(dst)) < 0;
28381 	int flgn = ((int16_t)(newv)) < 0;
28382 	SET_ZFLG (((int16_t)(newv)) == 0);
28383 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28384 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28385 	COPY_CARRY;
28386 	SET_NFLG (flgn != 0);
28387 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
28388 }}}}}}m68k_incpc(4);
28389 fill_prefetch_0 ();
28390 return 8;
28391 }
CPUFUNC(op_650_5)28392 unsigned long CPUFUNC(op_650_5)(uint32_t opcode) /* ADD */
28393 {
28394 	uint32_t dstreg = opcode & 7;
28395 	OpcodeFamily = 11; CurrentInstrCycles = 16;
28396 {{	int16_t src = get_iword_prefetch(2);
28397 {	uint32_t dsta = m68k_areg(regs, dstreg);
28398 	if ((dsta & 1) != 0) {
28399 		last_fault_for_exception_3 = dsta;
28400 		last_op_for_exception_3 = opcode;
28401 		last_addr_for_exception_3 = m68k_getpc() + 4;
28402 		Exception(3, 0, M68000_EXC_SRC_CPU);
28403 		goto endlabel1711;
28404 	}
28405 {{	int16_t dst = m68k_read_memory_16(dsta);
28406 {	refill_prefetch (m68k_getpc(), 2);
28407 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28408 {	int flgs = ((int16_t)(src)) < 0;
28409 	int flgo = ((int16_t)(dst)) < 0;
28410 	int flgn = ((int16_t)(newv)) < 0;
28411 	SET_ZFLG (((int16_t)(newv)) == 0);
28412 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28413 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28414 	COPY_CARRY;
28415 	SET_NFLG (flgn != 0);
28416 m68k_incpc(4);
28417 fill_prefetch_0 ();
28418 	m68k_write_memory_16(dsta,newv);
28419 }}}}}}}}endlabel1711: ;
28420 return 16;
28421 }
CPUFUNC(op_658_5)28422 unsigned long CPUFUNC(op_658_5)(uint32_t opcode) /* ADD */
28423 {
28424 	uint32_t dstreg = opcode & 7;
28425 	OpcodeFamily = 11; CurrentInstrCycles = 16;
28426 {{	int16_t src = get_iword_prefetch(2);
28427 {	uint32_t dsta = m68k_areg(regs, dstreg);
28428 	if ((dsta & 1) != 0) {
28429 		last_fault_for_exception_3 = dsta;
28430 		last_op_for_exception_3 = opcode;
28431 		last_addr_for_exception_3 = m68k_getpc() + 4;
28432 		Exception(3, 0, M68000_EXC_SRC_CPU);
28433 		goto endlabel1712;
28434 	}
28435 {{	int16_t dst = m68k_read_memory_16(dsta);
28436 	m68k_areg(regs, dstreg) += 2;
28437 {	refill_prefetch (m68k_getpc(), 2);
28438 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28439 {	int flgs = ((int16_t)(src)) < 0;
28440 	int flgo = ((int16_t)(dst)) < 0;
28441 	int flgn = ((int16_t)(newv)) < 0;
28442 	SET_ZFLG (((int16_t)(newv)) == 0);
28443 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28444 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28445 	COPY_CARRY;
28446 	SET_NFLG (flgn != 0);
28447 m68k_incpc(4);
28448 fill_prefetch_0 ();
28449 	m68k_write_memory_16(dsta,newv);
28450 }}}}}}}}endlabel1712: ;
28451 return 16;
28452 }
CPUFUNC(op_660_5)28453 unsigned long CPUFUNC(op_660_5)(uint32_t opcode) /* ADD */
28454 {
28455 	uint32_t dstreg = opcode & 7;
28456 	OpcodeFamily = 11; CurrentInstrCycles = 18;
28457 {{	int16_t src = get_iword_prefetch(2);
28458 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
28459 	if ((dsta & 1) != 0) {
28460 		last_fault_for_exception_3 = dsta;
28461 		last_op_for_exception_3 = opcode;
28462 		last_addr_for_exception_3 = m68k_getpc() + 4;
28463 		Exception(3, 0, M68000_EXC_SRC_CPU);
28464 		goto endlabel1713;
28465 	}
28466 {{	int16_t dst = m68k_read_memory_16(dsta);
28467 	m68k_areg (regs, dstreg) = dsta;
28468 {	refill_prefetch (m68k_getpc(), 2);
28469 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28470 {	int flgs = ((int16_t)(src)) < 0;
28471 	int flgo = ((int16_t)(dst)) < 0;
28472 	int flgn = ((int16_t)(newv)) < 0;
28473 	SET_ZFLG (((int16_t)(newv)) == 0);
28474 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28475 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28476 	COPY_CARRY;
28477 	SET_NFLG (flgn != 0);
28478 m68k_incpc(4);
28479 fill_prefetch_0 ();
28480 	m68k_write_memory_16(dsta,newv);
28481 }}}}}}}}endlabel1713: ;
28482 return 18;
28483 }
CPUFUNC(op_668_5)28484 unsigned long CPUFUNC(op_668_5)(uint32_t opcode) /* ADD */
28485 {
28486 	uint32_t dstreg = opcode & 7;
28487 	OpcodeFamily = 11; CurrentInstrCycles = 20;
28488 {{	int16_t src = get_iword_prefetch(2);
28489 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
28490 	if ((dsta & 1) != 0) {
28491 		last_fault_for_exception_3 = dsta;
28492 		last_op_for_exception_3 = opcode;
28493 		last_addr_for_exception_3 = m68k_getpc() + 6;
28494 		Exception(3, 0, M68000_EXC_SRC_CPU);
28495 		goto endlabel1714;
28496 	}
28497 {{	int16_t dst = m68k_read_memory_16(dsta);
28498 {	refill_prefetch (m68k_getpc(), 2);
28499 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28500 {	int flgs = ((int16_t)(src)) < 0;
28501 	int flgo = ((int16_t)(dst)) < 0;
28502 	int flgn = ((int16_t)(newv)) < 0;
28503 	SET_ZFLG (((int16_t)(newv)) == 0);
28504 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28505 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28506 	COPY_CARRY;
28507 	SET_NFLG (flgn != 0);
28508 m68k_incpc(6);
28509 fill_prefetch_0 ();
28510 	m68k_write_memory_16(dsta,newv);
28511 }}}}}}}}endlabel1714: ;
28512 return 20;
28513 }
CPUFUNC(op_670_5)28514 unsigned long CPUFUNC(op_670_5)(uint32_t opcode) /* ADD */
28515 {
28516 	uint32_t dstreg = opcode & 7;
28517 	OpcodeFamily = 11; CurrentInstrCycles = 22;
28518 {{	int16_t src = get_iword_prefetch(2);
28519 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
28520 	BusCyclePenalty += 2;
28521 	if ((dsta & 1) != 0) {
28522 		last_fault_for_exception_3 = dsta;
28523 		last_op_for_exception_3 = opcode;
28524 		last_addr_for_exception_3 = m68k_getpc() + 6;
28525 		Exception(3, 0, M68000_EXC_SRC_CPU);
28526 		goto endlabel1715;
28527 	}
28528 {{	int16_t dst = m68k_read_memory_16(dsta);
28529 {	refill_prefetch (m68k_getpc(), 2);
28530 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28531 {	int flgs = ((int16_t)(src)) < 0;
28532 	int flgo = ((int16_t)(dst)) < 0;
28533 	int flgn = ((int16_t)(newv)) < 0;
28534 	SET_ZFLG (((int16_t)(newv)) == 0);
28535 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28536 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28537 	COPY_CARRY;
28538 	SET_NFLG (flgn != 0);
28539 m68k_incpc(6);
28540 fill_prefetch_0 ();
28541 	m68k_write_memory_16(dsta,newv);
28542 }}}}}}}}endlabel1715: ;
28543 return 22;
28544 }
CPUFUNC(op_678_5)28545 unsigned long CPUFUNC(op_678_5)(uint32_t opcode) /* ADD */
28546 {
28547 	OpcodeFamily = 11; CurrentInstrCycles = 20;
28548 {{	int16_t src = get_iword_prefetch(2);
28549 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
28550 	if ((dsta & 1) != 0) {
28551 		last_fault_for_exception_3 = dsta;
28552 		last_op_for_exception_3 = opcode;
28553 		last_addr_for_exception_3 = m68k_getpc() + 6;
28554 		Exception(3, 0, M68000_EXC_SRC_CPU);
28555 		goto endlabel1716;
28556 	}
28557 {{	int16_t dst = m68k_read_memory_16(dsta);
28558 {	refill_prefetch (m68k_getpc(), 2);
28559 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28560 {	int flgs = ((int16_t)(src)) < 0;
28561 	int flgo = ((int16_t)(dst)) < 0;
28562 	int flgn = ((int16_t)(newv)) < 0;
28563 	SET_ZFLG (((int16_t)(newv)) == 0);
28564 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28565 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28566 	COPY_CARRY;
28567 	SET_NFLG (flgn != 0);
28568 m68k_incpc(6);
28569 fill_prefetch_0 ();
28570 	m68k_write_memory_16(dsta,newv);
28571 }}}}}}}}endlabel1716: ;
28572 return 20;
28573 }
CPUFUNC(op_679_5)28574 unsigned long CPUFUNC(op_679_5)(uint32_t opcode) /* ADD */
28575 {
28576 	OpcodeFamily = 11; CurrentInstrCycles = 24;
28577 {{	int16_t src = get_iword_prefetch(2);
28578 {	uint32_t dsta = get_ilong_prefetch(4);
28579 	if ((dsta & 1) != 0) {
28580 		last_fault_for_exception_3 = dsta;
28581 		last_op_for_exception_3 = opcode;
28582 		last_addr_for_exception_3 = m68k_getpc() + 8;
28583 		Exception(3, 0, M68000_EXC_SRC_CPU);
28584 		goto endlabel1717;
28585 	}
28586 {{	int16_t dst = m68k_read_memory_16(dsta);
28587 {	refill_prefetch (m68k_getpc(), 2);
28588 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
28589 {	int flgs = ((int16_t)(src)) < 0;
28590 	int flgo = ((int16_t)(dst)) < 0;
28591 	int flgn = ((int16_t)(newv)) < 0;
28592 	SET_ZFLG (((int16_t)(newv)) == 0);
28593 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28594 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
28595 	COPY_CARRY;
28596 	SET_NFLG (flgn != 0);
28597 m68k_incpc(8);
28598 fill_prefetch_0 ();
28599 	m68k_write_memory_16(dsta,newv);
28600 }}}}}}}}endlabel1717: ;
28601 return 24;
28602 }
CPUFUNC(op_680_5)28603 unsigned long CPUFUNC(op_680_5)(uint32_t opcode) /* ADD */
28604 {
28605 	uint32_t dstreg = opcode & 7;
28606 	OpcodeFamily = 11; CurrentInstrCycles = 16;
28607 {{	int32_t src = get_ilong_prefetch(2);
28608 {	int32_t dst = m68k_dreg(regs, dstreg);
28609 {	refill_prefetch (m68k_getpc(), 2);
28610 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28611 {	int flgs = ((int32_t)(src)) < 0;
28612 	int flgo = ((int32_t)(dst)) < 0;
28613 	int flgn = ((int32_t)(newv)) < 0;
28614 	SET_ZFLG (((int32_t)(newv)) == 0);
28615 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28616 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28617 	COPY_CARRY;
28618 	SET_NFLG (flgn != 0);
28619 	m68k_dreg(regs, dstreg) = (newv);
28620 }}}}}}m68k_incpc(6);
28621 fill_prefetch_0 ();
28622 return 16;
28623 }
CPUFUNC(op_690_5)28624 unsigned long CPUFUNC(op_690_5)(uint32_t opcode) /* ADD */
28625 {
28626 	uint32_t dstreg = opcode & 7;
28627 	OpcodeFamily = 11; CurrentInstrCycles = 28;
28628 {{	int32_t src = get_ilong_prefetch(2);
28629 {	uint32_t dsta = m68k_areg(regs, dstreg);
28630 	if ((dsta & 1) != 0) {
28631 		last_fault_for_exception_3 = dsta;
28632 		last_op_for_exception_3 = opcode;
28633 		last_addr_for_exception_3 = m68k_getpc() + 6;
28634 		Exception(3, 0, M68000_EXC_SRC_CPU);
28635 		goto endlabel1719;
28636 	}
28637 {{	int32_t dst = m68k_read_memory_32(dsta);
28638 {	refill_prefetch (m68k_getpc(), 2);
28639 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28640 {	int flgs = ((int32_t)(src)) < 0;
28641 	int flgo = ((int32_t)(dst)) < 0;
28642 	int flgn = ((int32_t)(newv)) < 0;
28643 	SET_ZFLG (((int32_t)(newv)) == 0);
28644 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28645 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28646 	COPY_CARRY;
28647 	SET_NFLG (flgn != 0);
28648 m68k_incpc(6);
28649 fill_prefetch_0 ();
28650 	m68k_write_memory_32(dsta,newv);
28651 }}}}}}}}endlabel1719: ;
28652 return 28;
28653 }
CPUFUNC(op_698_5)28654 unsigned long CPUFUNC(op_698_5)(uint32_t opcode) /* ADD */
28655 {
28656 	uint32_t dstreg = opcode & 7;
28657 	OpcodeFamily = 11; CurrentInstrCycles = 28;
28658 {{	int32_t src = get_ilong_prefetch(2);
28659 {	uint32_t dsta = m68k_areg(regs, dstreg);
28660 	if ((dsta & 1) != 0) {
28661 		last_fault_for_exception_3 = dsta;
28662 		last_op_for_exception_3 = opcode;
28663 		last_addr_for_exception_3 = m68k_getpc() + 6;
28664 		Exception(3, 0, M68000_EXC_SRC_CPU);
28665 		goto endlabel1720;
28666 	}
28667 {{	int32_t dst = m68k_read_memory_32(dsta);
28668 	m68k_areg(regs, dstreg) += 4;
28669 {	refill_prefetch (m68k_getpc(), 2);
28670 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28671 {	int flgs = ((int32_t)(src)) < 0;
28672 	int flgo = ((int32_t)(dst)) < 0;
28673 	int flgn = ((int32_t)(newv)) < 0;
28674 	SET_ZFLG (((int32_t)(newv)) == 0);
28675 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28676 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28677 	COPY_CARRY;
28678 	SET_NFLG (flgn != 0);
28679 m68k_incpc(6);
28680 fill_prefetch_0 ();
28681 	m68k_write_memory_32(dsta,newv);
28682 }}}}}}}}endlabel1720: ;
28683 return 28;
28684 }
CPUFUNC(op_6a0_5)28685 unsigned long CPUFUNC(op_6a0_5)(uint32_t opcode) /* ADD */
28686 {
28687 	uint32_t dstreg = opcode & 7;
28688 	OpcodeFamily = 11; CurrentInstrCycles = 30;
28689 {{	int32_t src = get_ilong_prefetch(2);
28690 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
28691 	if ((dsta & 1) != 0) {
28692 		last_fault_for_exception_3 = dsta;
28693 		last_op_for_exception_3 = opcode;
28694 		last_addr_for_exception_3 = m68k_getpc() + 6;
28695 		Exception(3, 0, M68000_EXC_SRC_CPU);
28696 		goto endlabel1721;
28697 	}
28698 {{	int32_t dst = m68k_read_memory_32(dsta);
28699 	m68k_areg (regs, dstreg) = dsta;
28700 {	refill_prefetch (m68k_getpc(), 2);
28701 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28702 {	int flgs = ((int32_t)(src)) < 0;
28703 	int flgo = ((int32_t)(dst)) < 0;
28704 	int flgn = ((int32_t)(newv)) < 0;
28705 	SET_ZFLG (((int32_t)(newv)) == 0);
28706 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28707 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28708 	COPY_CARRY;
28709 	SET_NFLG (flgn != 0);
28710 m68k_incpc(6);
28711 fill_prefetch_0 ();
28712 	m68k_write_memory_32(dsta,newv);
28713 }}}}}}}}endlabel1721: ;
28714 return 30;
28715 }
CPUFUNC(op_6a8_5)28716 unsigned long CPUFUNC(op_6a8_5)(uint32_t opcode) /* ADD */
28717 {
28718 	uint32_t dstreg = opcode & 7;
28719 	OpcodeFamily = 11; CurrentInstrCycles = 32;
28720 {{	int32_t src = get_ilong_prefetch(2);
28721 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
28722 	if ((dsta & 1) != 0) {
28723 		last_fault_for_exception_3 = dsta;
28724 		last_op_for_exception_3 = opcode;
28725 		last_addr_for_exception_3 = m68k_getpc() + 8;
28726 		Exception(3, 0, M68000_EXC_SRC_CPU);
28727 		goto endlabel1722;
28728 	}
28729 {{	int32_t dst = m68k_read_memory_32(dsta);
28730 {	refill_prefetch (m68k_getpc(), 2);
28731 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28732 {	int flgs = ((int32_t)(src)) < 0;
28733 	int flgo = ((int32_t)(dst)) < 0;
28734 	int flgn = ((int32_t)(newv)) < 0;
28735 	SET_ZFLG (((int32_t)(newv)) == 0);
28736 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28737 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28738 	COPY_CARRY;
28739 	SET_NFLG (flgn != 0);
28740 m68k_incpc(8);
28741 fill_prefetch_0 ();
28742 	m68k_write_memory_32(dsta,newv);
28743 }}}}}}}}endlabel1722: ;
28744 return 32;
28745 }
CPUFUNC(op_6b0_5)28746 unsigned long CPUFUNC(op_6b0_5)(uint32_t opcode) /* ADD */
28747 {
28748 	uint32_t dstreg = opcode & 7;
28749 	OpcodeFamily = 11; CurrentInstrCycles = 34;
28750 {{	int32_t src = get_ilong_prefetch(2);
28751 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
28752 	BusCyclePenalty += 2;
28753 	if ((dsta & 1) != 0) {
28754 		last_fault_for_exception_3 = dsta;
28755 		last_op_for_exception_3 = opcode;
28756 		last_addr_for_exception_3 = m68k_getpc() + 8;
28757 		Exception(3, 0, M68000_EXC_SRC_CPU);
28758 		goto endlabel1723;
28759 	}
28760 {{	int32_t dst = m68k_read_memory_32(dsta);
28761 {	refill_prefetch (m68k_getpc(), 2);
28762 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28763 {	int flgs = ((int32_t)(src)) < 0;
28764 	int flgo = ((int32_t)(dst)) < 0;
28765 	int flgn = ((int32_t)(newv)) < 0;
28766 	SET_ZFLG (((int32_t)(newv)) == 0);
28767 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28768 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28769 	COPY_CARRY;
28770 	SET_NFLG (flgn != 0);
28771 m68k_incpc(8);
28772 fill_prefetch_0 ();
28773 	m68k_write_memory_32(dsta,newv);
28774 }}}}}}}}endlabel1723: ;
28775 return 34;
28776 }
CPUFUNC(op_6b8_5)28777 unsigned long CPUFUNC(op_6b8_5)(uint32_t opcode) /* ADD */
28778 {
28779 	OpcodeFamily = 11; CurrentInstrCycles = 32;
28780 {{	int32_t src = get_ilong_prefetch(2);
28781 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
28782 	if ((dsta & 1) != 0) {
28783 		last_fault_for_exception_3 = dsta;
28784 		last_op_for_exception_3 = opcode;
28785 		last_addr_for_exception_3 = m68k_getpc() + 8;
28786 		Exception(3, 0, M68000_EXC_SRC_CPU);
28787 		goto endlabel1724;
28788 	}
28789 {{	int32_t dst = m68k_read_memory_32(dsta);
28790 {	refill_prefetch (m68k_getpc(), 2);
28791 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28792 {	int flgs = ((int32_t)(src)) < 0;
28793 	int flgo = ((int32_t)(dst)) < 0;
28794 	int flgn = ((int32_t)(newv)) < 0;
28795 	SET_ZFLG (((int32_t)(newv)) == 0);
28796 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28797 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28798 	COPY_CARRY;
28799 	SET_NFLG (flgn != 0);
28800 m68k_incpc(8);
28801 fill_prefetch_0 ();
28802 	m68k_write_memory_32(dsta,newv);
28803 }}}}}}}}endlabel1724: ;
28804 return 32;
28805 }
CPUFUNC(op_6b9_5)28806 unsigned long CPUFUNC(op_6b9_5)(uint32_t opcode) /* ADD */
28807 {
28808 	OpcodeFamily = 11; CurrentInstrCycles = 36;
28809 {{	int32_t src = get_ilong_prefetch(2);
28810 {	uint32_t dsta = get_ilong_prefetch(6);
28811 	if ((dsta & 1) != 0) {
28812 		last_fault_for_exception_3 = dsta;
28813 		last_op_for_exception_3 = opcode;
28814 		last_addr_for_exception_3 = m68k_getpc() + 10;
28815 		Exception(3, 0, M68000_EXC_SRC_CPU);
28816 		goto endlabel1725;
28817 	}
28818 {{	int32_t dst = m68k_read_memory_32(dsta);
28819 {	refill_prefetch (m68k_getpc(), 2);
28820 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
28821 {	int flgs = ((int32_t)(src)) < 0;
28822 	int flgo = ((int32_t)(dst)) < 0;
28823 	int flgn = ((int32_t)(newv)) < 0;
28824 	SET_ZFLG (((int32_t)(newv)) == 0);
28825 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
28826 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
28827 	COPY_CARRY;
28828 	SET_NFLG (flgn != 0);
28829 m68k_incpc(10);
28830 fill_prefetch_0 ();
28831 	m68k_write_memory_32(dsta,newv);
28832 }}}}}}}}endlabel1725: ;
28833 return 36;
28834 }
CPUFUNC(op_800_5)28835 unsigned long CPUFUNC(op_800_5)(uint32_t opcode) /* BTST */
28836 {
28837 	uint32_t dstreg = opcode & 7;
28838 	OpcodeFamily = 21; CurrentInstrCycles = 10;
28839 {{	int16_t src = get_iword_prefetch(2);
28840 {	int32_t dst = m68k_dreg(regs, dstreg);
28841 	src &= 31;
28842 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28843 }}}m68k_incpc(4);
28844 fill_prefetch_0 ();
28845 return 10;
28846 }
CPUFUNC(op_810_5)28847 unsigned long CPUFUNC(op_810_5)(uint32_t opcode) /* BTST */
28848 {
28849 	uint32_t dstreg = opcode & 7;
28850 	OpcodeFamily = 21; CurrentInstrCycles = 12;
28851 {{	int16_t src = get_iword_prefetch(2);
28852 {	uint32_t dsta = m68k_areg(regs, dstreg);
28853 {	int8_t dst = m68k_read_memory_8(dsta);
28854 	src &= 7;
28855 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28856 }}}}m68k_incpc(4);
28857 fill_prefetch_0 ();
28858 return 12;
28859 }
CPUFUNC(op_818_5)28860 unsigned long CPUFUNC(op_818_5)(uint32_t opcode) /* BTST */
28861 {
28862 	uint32_t dstreg = opcode & 7;
28863 	OpcodeFamily = 21; CurrentInstrCycles = 12;
28864 {{	int16_t src = get_iword_prefetch(2);
28865 {	uint32_t dsta = m68k_areg(regs, dstreg);
28866 {	int8_t dst = m68k_read_memory_8(dsta);
28867 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
28868 	src &= 7;
28869 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28870 }}}}m68k_incpc(4);
28871 fill_prefetch_0 ();
28872 return 12;
28873 }
CPUFUNC(op_820_5)28874 unsigned long CPUFUNC(op_820_5)(uint32_t opcode) /* BTST */
28875 {
28876 	uint32_t dstreg = opcode & 7;
28877 	OpcodeFamily = 21; CurrentInstrCycles = 14;
28878 {{	int16_t src = get_iword_prefetch(2);
28879 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
28880 {	int8_t dst = m68k_read_memory_8(dsta);
28881 	m68k_areg (regs, dstreg) = dsta;
28882 	src &= 7;
28883 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28884 }}}}m68k_incpc(4);
28885 fill_prefetch_0 ();
28886 return 14;
28887 }
CPUFUNC(op_828_5)28888 unsigned long CPUFUNC(op_828_5)(uint32_t opcode) /* BTST */
28889 {
28890 	uint32_t dstreg = opcode & 7;
28891 	OpcodeFamily = 21; CurrentInstrCycles = 16;
28892 {{	int16_t src = get_iword_prefetch(2);
28893 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
28894 {	int8_t dst = m68k_read_memory_8(dsta);
28895 	src &= 7;
28896 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28897 }}}}m68k_incpc(6);
28898 fill_prefetch_0 ();
28899 return 16;
28900 }
CPUFUNC(op_830_5)28901 unsigned long CPUFUNC(op_830_5)(uint32_t opcode) /* BTST */
28902 {
28903 	uint32_t dstreg = opcode & 7;
28904 	OpcodeFamily = 21; CurrentInstrCycles = 18;
28905 {{	int16_t src = get_iword_prefetch(2);
28906 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
28907 	BusCyclePenalty += 2;
28908 {	int8_t dst = m68k_read_memory_8(dsta);
28909 	src &= 7;
28910 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28911 }}}}m68k_incpc(6);
28912 fill_prefetch_0 ();
28913 return 18;
28914 }
CPUFUNC(op_838_5)28915 unsigned long CPUFUNC(op_838_5)(uint32_t opcode) /* BTST */
28916 {
28917 	OpcodeFamily = 21; CurrentInstrCycles = 16;
28918 {{	int16_t src = get_iword_prefetch(2);
28919 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
28920 {	int8_t dst = m68k_read_memory_8(dsta);
28921 	src &= 7;
28922 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28923 }}}}m68k_incpc(6);
28924 fill_prefetch_0 ();
28925 return 16;
28926 }
CPUFUNC(op_839_5)28927 unsigned long CPUFUNC(op_839_5)(uint32_t opcode) /* BTST */
28928 {
28929 	OpcodeFamily = 21; CurrentInstrCycles = 20;
28930 {{	int16_t src = get_iword_prefetch(2);
28931 {	uint32_t dsta = get_ilong_prefetch(4);
28932 {	int8_t dst = m68k_read_memory_8(dsta);
28933 	src &= 7;
28934 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28935 }}}}m68k_incpc(8);
28936 fill_prefetch_0 ();
28937 return 20;
28938 }
CPUFUNC(op_83a_5)28939 unsigned long CPUFUNC(op_83a_5)(uint32_t opcode) /* BTST */
28940 {
28941 	uint32_t dstreg = 2;
28942 	OpcodeFamily = 21; CurrentInstrCycles = 16;
28943 {{	int16_t src = get_iword_prefetch(2);
28944 {	uint32_t dsta = m68k_getpc () + 4;
28945 	dsta += (int32_t)(int16_t)get_iword_prefetch(4);
28946 {	int8_t dst = m68k_read_memory_8(dsta);
28947 	src &= 7;
28948 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28949 }}}}m68k_incpc(6);
28950 fill_prefetch_0 ();
28951 return 16;
28952 }
CPUFUNC(op_83b_5)28953 unsigned long CPUFUNC(op_83b_5)(uint32_t opcode) /* BTST */
28954 {
28955 	uint32_t dstreg = 3;
28956 	OpcodeFamily = 21; CurrentInstrCycles = 18;
28957 {{	int16_t src = get_iword_prefetch(2);
28958 {	uint32_t tmppc = m68k_getpc() + 4;
28959 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4));
28960 	BusCyclePenalty += 2;
28961 {	int8_t dst = m68k_read_memory_8(dsta);
28962 	src &= 7;
28963 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28964 }}}}m68k_incpc(6);
28965 fill_prefetch_0 ();
28966 return 18;
28967 }
CPUFUNC(op_83c_5)28968 unsigned long CPUFUNC(op_83c_5)(uint32_t opcode) /* BTST */
28969 {
28970 	OpcodeFamily = 21; CurrentInstrCycles = 12;
28971 {{	int16_t src = get_iword_prefetch(2);
28972 {	int8_t dst = get_ibyte_prefetch(4);
28973 	src &= 7;
28974 	SET_ZFLG (1 ^ ((dst >> src) & 1));
28975 }}}m68k_incpc(6);
28976 fill_prefetch_0 ();
28977 return 12;
28978 }
CPUFUNC(op_840_5)28979 unsigned long CPUFUNC(op_840_5)(uint32_t opcode) /* BCHG */
28980 {
28981 	uint32_t dstreg = opcode & 7;
28982 	OpcodeFamily = 22; CurrentInstrCycles = 12;
28983 {{	int16_t src = get_iword_prefetch(2);
28984 {	int32_t dst = m68k_dreg(regs, dstreg);
28985 	src &= 31;
28986 	dst ^= (1 << src);
28987 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
28988 	m68k_dreg(regs, dstreg) = (dst);
28989 }}}m68k_incpc(4);
28990 fill_prefetch_0 ();
28991 return 12;
28992 }
CPUFUNC(op_850_5)28993 unsigned long CPUFUNC(op_850_5)(uint32_t opcode) /* BCHG */
28994 {
28995 	uint32_t dstreg = opcode & 7;
28996 	OpcodeFamily = 22; CurrentInstrCycles = 16;
28997 {{	int16_t src = get_iword_prefetch(2);
28998 {	uint32_t dsta = m68k_areg(regs, dstreg);
28999 {	int8_t dst = m68k_read_memory_8(dsta);
29000 	src &= 7;
29001 	dst ^= (1 << src);
29002 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29003 m68k_incpc(4);
29004 fill_prefetch_0 ();
29005 	m68k_write_memory_8(dsta,dst);
29006 }}}}return 16;
29007 }
CPUFUNC(op_858_5)29008 unsigned long CPUFUNC(op_858_5)(uint32_t opcode) /* BCHG */
29009 {
29010 	uint32_t dstreg = opcode & 7;
29011 	OpcodeFamily = 22; CurrentInstrCycles = 16;
29012 {{	int16_t src = get_iword_prefetch(2);
29013 {	uint32_t dsta = m68k_areg(regs, dstreg);
29014 {	int8_t dst = m68k_read_memory_8(dsta);
29015 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
29016 	src &= 7;
29017 	dst ^= (1 << src);
29018 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29019 m68k_incpc(4);
29020 fill_prefetch_0 ();
29021 	m68k_write_memory_8(dsta,dst);
29022 }}}}return 16;
29023 }
CPUFUNC(op_860_5)29024 unsigned long CPUFUNC(op_860_5)(uint32_t opcode) /* BCHG */
29025 {
29026 	uint32_t dstreg = opcode & 7;
29027 	OpcodeFamily = 22; CurrentInstrCycles = 18;
29028 {{	int16_t src = get_iword_prefetch(2);
29029 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
29030 {	int8_t dst = m68k_read_memory_8(dsta);
29031 	m68k_areg (regs, dstreg) = dsta;
29032 	src &= 7;
29033 	dst ^= (1 << src);
29034 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29035 m68k_incpc(4);
29036 fill_prefetch_0 ();
29037 	m68k_write_memory_8(dsta,dst);
29038 }}}}return 18;
29039 }
CPUFUNC(op_868_5)29040 unsigned long CPUFUNC(op_868_5)(uint32_t opcode) /* BCHG */
29041 {
29042 	uint32_t dstreg = opcode & 7;
29043 	OpcodeFamily = 22; CurrentInstrCycles = 20;
29044 {{	int16_t src = get_iword_prefetch(2);
29045 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
29046 {	int8_t dst = m68k_read_memory_8(dsta);
29047 	src &= 7;
29048 	dst ^= (1 << src);
29049 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29050 m68k_incpc(6);
29051 fill_prefetch_0 ();
29052 	m68k_write_memory_8(dsta,dst);
29053 }}}}return 20;
29054 }
CPUFUNC(op_870_5)29055 unsigned long CPUFUNC(op_870_5)(uint32_t opcode) /* BCHG */
29056 {
29057 	uint32_t dstreg = opcode & 7;
29058 	OpcodeFamily = 22; CurrentInstrCycles = 22;
29059 {{	int16_t src = get_iword_prefetch(2);
29060 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
29061 	BusCyclePenalty += 2;
29062 {	int8_t dst = m68k_read_memory_8(dsta);
29063 	src &= 7;
29064 	dst ^= (1 << src);
29065 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29066 m68k_incpc(6);
29067 fill_prefetch_0 ();
29068 	m68k_write_memory_8(dsta,dst);
29069 }}}}return 22;
29070 }
CPUFUNC(op_878_5)29071 unsigned long CPUFUNC(op_878_5)(uint32_t opcode) /* BCHG */
29072 {
29073 	OpcodeFamily = 22; CurrentInstrCycles = 20;
29074 {{	int16_t src = get_iword_prefetch(2);
29075 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
29076 {	int8_t dst = m68k_read_memory_8(dsta);
29077 	src &= 7;
29078 	dst ^= (1 << src);
29079 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29080 m68k_incpc(6);
29081 fill_prefetch_0 ();
29082 	m68k_write_memory_8(dsta,dst);
29083 }}}}return 20;
29084 }
CPUFUNC(op_879_5)29085 unsigned long CPUFUNC(op_879_5)(uint32_t opcode) /* BCHG */
29086 {
29087 	OpcodeFamily = 22; CurrentInstrCycles = 24;
29088 {{	int16_t src = get_iword_prefetch(2);
29089 {	uint32_t dsta = get_ilong_prefetch(4);
29090 {	int8_t dst = m68k_read_memory_8(dsta);
29091 	src &= 7;
29092 	dst ^= (1 << src);
29093 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29094 m68k_incpc(8);
29095 fill_prefetch_0 ();
29096 	m68k_write_memory_8(dsta,dst);
29097 }}}}return 24;
29098 }
CPUFUNC(op_87a_5)29099 unsigned long CPUFUNC(op_87a_5)(uint32_t opcode) /* BCHG */
29100 {
29101 	uint32_t dstreg = 2;
29102 	OpcodeFamily = 22; CurrentInstrCycles = 20;
29103 {{	int16_t src = get_iword_prefetch(2);
29104 {	uint32_t dsta = m68k_getpc () + 4;
29105 	dsta += (int32_t)(int16_t)get_iword_prefetch(4);
29106 {	int8_t dst = m68k_read_memory_8(dsta);
29107 	src &= 7;
29108 	dst ^= (1 << src);
29109 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29110 m68k_incpc(6);
29111 fill_prefetch_0 ();
29112 	m68k_write_memory_8(dsta,dst);
29113 }}}}return 20;
29114 }
CPUFUNC(op_87b_5)29115 unsigned long CPUFUNC(op_87b_5)(uint32_t opcode) /* BCHG */
29116 {
29117 	uint32_t dstreg = 3;
29118 	OpcodeFamily = 22; CurrentInstrCycles = 22;
29119 {{	int16_t src = get_iword_prefetch(2);
29120 {	uint32_t tmppc = m68k_getpc() + 4;
29121 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4));
29122 	BusCyclePenalty += 2;
29123 {	int8_t dst = m68k_read_memory_8(dsta);
29124 	src &= 7;
29125 	dst ^= (1 << src);
29126 	SET_ZFLG (((uint32_t)dst & (1 << src)) >> src);
29127 m68k_incpc(6);
29128 fill_prefetch_0 ();
29129 	m68k_write_memory_8(dsta,dst);
29130 }}}}return 22;
29131 }
CPUFUNC(op_880_5)29132 unsigned long CPUFUNC(op_880_5)(uint32_t opcode) /* BCLR */
29133 {
29134 	uint32_t dstreg = opcode & 7;
29135 	OpcodeFamily = 23; CurrentInstrCycles = 14;
29136 {{	int16_t src = get_iword_prefetch(2);
29137 {	int32_t dst = m68k_dreg(regs, dstreg);
29138 	src &= 31;
29139 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29140 	dst &= ~(1 << src);
29141 	m68k_dreg(regs, dstreg) = (dst);
29142 	if ( src < 16 ) { m68k_incpc(4); return 12; }
29143 }}}m68k_incpc(4);
29144 fill_prefetch_0 ();
29145 return 14;
29146 }
CPUFUNC(op_890_5)29147 unsigned long CPUFUNC(op_890_5)(uint32_t opcode) /* BCLR */
29148 {
29149 	uint32_t dstreg = opcode & 7;
29150 	OpcodeFamily = 23; CurrentInstrCycles = 16;
29151 {{	int16_t src = get_iword_prefetch(2);
29152 {	uint32_t dsta = m68k_areg(regs, dstreg);
29153 {	int8_t dst = m68k_read_memory_8(dsta);
29154 	src &= 7;
29155 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29156 	dst &= ~(1 << src);
29157 m68k_incpc(4);
29158 fill_prefetch_0 ();
29159 	m68k_write_memory_8(dsta,dst);
29160 }}}}return 16;
29161 }
CPUFUNC(op_898_5)29162 unsigned long CPUFUNC(op_898_5)(uint32_t opcode) /* BCLR */
29163 {
29164 	uint32_t dstreg = opcode & 7;
29165 	OpcodeFamily = 23; CurrentInstrCycles = 16;
29166 {{	int16_t src = get_iword_prefetch(2);
29167 {	uint32_t dsta = m68k_areg(regs, dstreg);
29168 {	int8_t dst = m68k_read_memory_8(dsta);
29169 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
29170 	src &= 7;
29171 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29172 	dst &= ~(1 << src);
29173 m68k_incpc(4);
29174 fill_prefetch_0 ();
29175 	m68k_write_memory_8(dsta,dst);
29176 }}}}return 16;
29177 }
CPUFUNC(op_8a0_5)29178 unsigned long CPUFUNC(op_8a0_5)(uint32_t opcode) /* BCLR */
29179 {
29180 	uint32_t dstreg = opcode & 7;
29181 	OpcodeFamily = 23; CurrentInstrCycles = 18;
29182 {{	int16_t src = get_iword_prefetch(2);
29183 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
29184 {	int8_t dst = m68k_read_memory_8(dsta);
29185 	m68k_areg (regs, dstreg) = dsta;
29186 	src &= 7;
29187 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29188 	dst &= ~(1 << src);
29189 m68k_incpc(4);
29190 fill_prefetch_0 ();
29191 	m68k_write_memory_8(dsta,dst);
29192 }}}}return 18;
29193 }
CPUFUNC(op_8a8_5)29194 unsigned long CPUFUNC(op_8a8_5)(uint32_t opcode) /* BCLR */
29195 {
29196 	uint32_t dstreg = opcode & 7;
29197 	OpcodeFamily = 23; CurrentInstrCycles = 20;
29198 {{	int16_t src = get_iword_prefetch(2);
29199 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
29200 {	int8_t dst = m68k_read_memory_8(dsta);
29201 	src &= 7;
29202 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29203 	dst &= ~(1 << src);
29204 m68k_incpc(6);
29205 fill_prefetch_0 ();
29206 	m68k_write_memory_8(dsta,dst);
29207 }}}}return 20;
29208 }
CPUFUNC(op_8b0_5)29209 unsigned long CPUFUNC(op_8b0_5)(uint32_t opcode) /* BCLR */
29210 {
29211 	uint32_t dstreg = opcode & 7;
29212 	OpcodeFamily = 23; CurrentInstrCycles = 22;
29213 {{	int16_t src = get_iword_prefetch(2);
29214 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
29215 	BusCyclePenalty += 2;
29216 {	int8_t dst = m68k_read_memory_8(dsta);
29217 	src &= 7;
29218 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29219 	dst &= ~(1 << src);
29220 m68k_incpc(6);
29221 fill_prefetch_0 ();
29222 	m68k_write_memory_8(dsta,dst);
29223 }}}}return 22;
29224 }
CPUFUNC(op_8b8_5)29225 unsigned long CPUFUNC(op_8b8_5)(uint32_t opcode) /* BCLR */
29226 {
29227 	OpcodeFamily = 23; CurrentInstrCycles = 20;
29228 {{	int16_t src = get_iword_prefetch(2);
29229 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
29230 {	int8_t dst = m68k_read_memory_8(dsta);
29231 	src &= 7;
29232 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29233 	dst &= ~(1 << src);
29234 m68k_incpc(6);
29235 fill_prefetch_0 ();
29236 	m68k_write_memory_8(dsta,dst);
29237 }}}}return 20;
29238 }
CPUFUNC(op_8b9_5)29239 unsigned long CPUFUNC(op_8b9_5)(uint32_t opcode) /* BCLR */
29240 {
29241 	OpcodeFamily = 23; CurrentInstrCycles = 24;
29242 {{	int16_t src = get_iword_prefetch(2);
29243 {	uint32_t dsta = get_ilong_prefetch(4);
29244 {	int8_t dst = m68k_read_memory_8(dsta);
29245 	src &= 7;
29246 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29247 	dst &= ~(1 << src);
29248 m68k_incpc(8);
29249 fill_prefetch_0 ();
29250 	m68k_write_memory_8(dsta,dst);
29251 }}}}return 24;
29252 }
CPUFUNC(op_8ba_5)29253 unsigned long CPUFUNC(op_8ba_5)(uint32_t opcode) /* BCLR */
29254 {
29255 	uint32_t dstreg = 2;
29256 	OpcodeFamily = 23; CurrentInstrCycles = 20;
29257 {{	int16_t src = get_iword_prefetch(2);
29258 {	uint32_t dsta = m68k_getpc () + 4;
29259 	dsta += (int32_t)(int16_t)get_iword_prefetch(4);
29260 {	int8_t dst = m68k_read_memory_8(dsta);
29261 	src &= 7;
29262 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29263 	dst &= ~(1 << src);
29264 m68k_incpc(6);
29265 fill_prefetch_0 ();
29266 	m68k_write_memory_8(dsta,dst);
29267 }}}}return 20;
29268 }
CPUFUNC(op_8bb_5)29269 unsigned long CPUFUNC(op_8bb_5)(uint32_t opcode) /* BCLR */
29270 {
29271 	uint32_t dstreg = 3;
29272 	OpcodeFamily = 23; CurrentInstrCycles = 22;
29273 {{	int16_t src = get_iword_prefetch(2);
29274 {	uint32_t tmppc = m68k_getpc() + 4;
29275 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4));
29276 	BusCyclePenalty += 2;
29277 {	int8_t dst = m68k_read_memory_8(dsta);
29278 	src &= 7;
29279 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29280 	dst &= ~(1 << src);
29281 m68k_incpc(6);
29282 fill_prefetch_0 ();
29283 	m68k_write_memory_8(dsta,dst);
29284 }}}}return 22;
29285 }
CPUFUNC(op_8c0_5)29286 unsigned long CPUFUNC(op_8c0_5)(uint32_t opcode) /* BSET */
29287 {
29288 	uint32_t dstreg = opcode & 7;
29289 	OpcodeFamily = 24; CurrentInstrCycles = 12;
29290 {{	int16_t src = get_iword_prefetch(2);
29291 {	int32_t dst = m68k_dreg(regs, dstreg);
29292 	src &= 31;
29293 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29294 	dst |= (1 << src);
29295 	m68k_dreg(regs, dstreg) = (dst);
29296 }}}m68k_incpc(4);
29297 fill_prefetch_0 ();
29298 return 12;
29299 }
CPUFUNC(op_8d0_5)29300 unsigned long CPUFUNC(op_8d0_5)(uint32_t opcode) /* BSET */
29301 {
29302 	uint32_t dstreg = opcode & 7;
29303 	OpcodeFamily = 24; CurrentInstrCycles = 16;
29304 {{	int16_t src = get_iword_prefetch(2);
29305 {	uint32_t dsta = m68k_areg(regs, dstreg);
29306 {	int8_t dst = m68k_read_memory_8(dsta);
29307 	src &= 7;
29308 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29309 	dst |= (1 << src);
29310 m68k_incpc(4);
29311 fill_prefetch_0 ();
29312 	m68k_write_memory_8(dsta,dst);
29313 }}}}return 16;
29314 }
CPUFUNC(op_8d8_5)29315 unsigned long CPUFUNC(op_8d8_5)(uint32_t opcode) /* BSET */
29316 {
29317 	uint32_t dstreg = opcode & 7;
29318 	OpcodeFamily = 24; CurrentInstrCycles = 16;
29319 {{	int16_t src = get_iword_prefetch(2);
29320 {	uint32_t dsta = m68k_areg(regs, dstreg);
29321 {	int8_t dst = m68k_read_memory_8(dsta);
29322 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
29323 	src &= 7;
29324 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29325 	dst |= (1 << src);
29326 m68k_incpc(4);
29327 fill_prefetch_0 ();
29328 	m68k_write_memory_8(dsta,dst);
29329 }}}}return 16;
29330 }
CPUFUNC(op_8e0_5)29331 unsigned long CPUFUNC(op_8e0_5)(uint32_t opcode) /* BSET */
29332 {
29333 	uint32_t dstreg = opcode & 7;
29334 	OpcodeFamily = 24; CurrentInstrCycles = 18;
29335 {{	int16_t src = get_iword_prefetch(2);
29336 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
29337 {	int8_t dst = m68k_read_memory_8(dsta);
29338 	m68k_areg (regs, dstreg) = dsta;
29339 	src &= 7;
29340 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29341 	dst |= (1 << src);
29342 m68k_incpc(4);
29343 fill_prefetch_0 ();
29344 	m68k_write_memory_8(dsta,dst);
29345 }}}}return 18;
29346 }
CPUFUNC(op_8e8_5)29347 unsigned long CPUFUNC(op_8e8_5)(uint32_t opcode) /* BSET */
29348 {
29349 	uint32_t dstreg = opcode & 7;
29350 	OpcodeFamily = 24; CurrentInstrCycles = 20;
29351 {{	int16_t src = get_iword_prefetch(2);
29352 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
29353 {	int8_t dst = m68k_read_memory_8(dsta);
29354 	src &= 7;
29355 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29356 	dst |= (1 << src);
29357 m68k_incpc(6);
29358 fill_prefetch_0 ();
29359 	m68k_write_memory_8(dsta,dst);
29360 }}}}return 20;
29361 }
CPUFUNC(op_8f0_5)29362 unsigned long CPUFUNC(op_8f0_5)(uint32_t opcode) /* BSET */
29363 {
29364 	uint32_t dstreg = opcode & 7;
29365 	OpcodeFamily = 24; CurrentInstrCycles = 22;
29366 {{	int16_t src = get_iword_prefetch(2);
29367 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
29368 	BusCyclePenalty += 2;
29369 {	int8_t dst = m68k_read_memory_8(dsta);
29370 	src &= 7;
29371 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29372 	dst |= (1 << src);
29373 m68k_incpc(6);
29374 fill_prefetch_0 ();
29375 	m68k_write_memory_8(dsta,dst);
29376 }}}}return 22;
29377 }
CPUFUNC(op_8f8_5)29378 unsigned long CPUFUNC(op_8f8_5)(uint32_t opcode) /* BSET */
29379 {
29380 	OpcodeFamily = 24; CurrentInstrCycles = 20;
29381 {{	int16_t src = get_iword_prefetch(2);
29382 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
29383 {	int8_t dst = m68k_read_memory_8(dsta);
29384 	src &= 7;
29385 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29386 	dst |= (1 << src);
29387 m68k_incpc(6);
29388 fill_prefetch_0 ();
29389 	m68k_write_memory_8(dsta,dst);
29390 }}}}return 20;
29391 }
CPUFUNC(op_8f9_5)29392 unsigned long CPUFUNC(op_8f9_5)(uint32_t opcode) /* BSET */
29393 {
29394 	OpcodeFamily = 24; CurrentInstrCycles = 24;
29395 {{	int16_t src = get_iword_prefetch(2);
29396 {	uint32_t dsta = get_ilong_prefetch(4);
29397 {	int8_t dst = m68k_read_memory_8(dsta);
29398 	src &= 7;
29399 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29400 	dst |= (1 << src);
29401 m68k_incpc(8);
29402 fill_prefetch_0 ();
29403 	m68k_write_memory_8(dsta,dst);
29404 }}}}return 24;
29405 }
CPUFUNC(op_8fa_5)29406 unsigned long CPUFUNC(op_8fa_5)(uint32_t opcode) /* BSET */
29407 {
29408 	uint32_t dstreg = 2;
29409 	OpcodeFamily = 24; CurrentInstrCycles = 20;
29410 {{	int16_t src = get_iword_prefetch(2);
29411 {	uint32_t dsta = m68k_getpc () + 4;
29412 	dsta += (int32_t)(int16_t)get_iword_prefetch(4);
29413 {	int8_t dst = m68k_read_memory_8(dsta);
29414 	src &= 7;
29415 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29416 	dst |= (1 << src);
29417 m68k_incpc(6);
29418 fill_prefetch_0 ();
29419 	m68k_write_memory_8(dsta,dst);
29420 }}}}return 20;
29421 }
CPUFUNC(op_8fb_5)29422 unsigned long CPUFUNC(op_8fb_5)(uint32_t opcode) /* BSET */
29423 {
29424 	uint32_t dstreg = 3;
29425 	OpcodeFamily = 24; CurrentInstrCycles = 22;
29426 {{	int16_t src = get_iword_prefetch(2);
29427 {	uint32_t tmppc = m68k_getpc() + 4;
29428 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4));
29429 	BusCyclePenalty += 2;
29430 {	int8_t dst = m68k_read_memory_8(dsta);
29431 	src &= 7;
29432 	SET_ZFLG (1 ^ ((dst >> src) & 1));
29433 	dst |= (1 << src);
29434 m68k_incpc(6);
29435 fill_prefetch_0 ();
29436 	m68k_write_memory_8(dsta,dst);
29437 }}}}return 22;
29438 }
CPUFUNC(op_a00_5)29439 unsigned long CPUFUNC(op_a00_5)(uint32_t opcode) /* EOR */
29440 {
29441 	uint32_t dstreg = opcode & 7;
29442 	OpcodeFamily = 3; CurrentInstrCycles = 8;
29443 {{	int8_t src = get_ibyte_prefetch(2);
29444 {	int8_t dst = m68k_dreg(regs, dstreg);
29445 	src ^= dst;
29446 	CLEAR_CZNV;
29447 	SET_ZFLG (((int8_t)(src)) == 0);
29448 	SET_NFLG (((int8_t)(src)) < 0);
29449 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
29450 }}}m68k_incpc(4);
29451 fill_prefetch_0 ();
29452 return 8;
29453 }
CPUFUNC(op_a10_5)29454 unsigned long CPUFUNC(op_a10_5)(uint32_t opcode) /* EOR */
29455 {
29456 	uint32_t dstreg = opcode & 7;
29457 	OpcodeFamily = 3; CurrentInstrCycles = 16;
29458 {{	int8_t src = get_ibyte_prefetch(2);
29459 {	uint32_t dsta = m68k_areg(regs, dstreg);
29460 {	int8_t dst = m68k_read_memory_8(dsta);
29461 	src ^= dst;
29462 	CLEAR_CZNV;
29463 	SET_ZFLG (((int8_t)(src)) == 0);
29464 	SET_NFLG (((int8_t)(src)) < 0);
29465 m68k_incpc(4);
29466 fill_prefetch_0 ();
29467 	m68k_write_memory_8(dsta,src);
29468 }}}}return 16;
29469 }
CPUFUNC(op_a18_5)29470 unsigned long CPUFUNC(op_a18_5)(uint32_t opcode) /* EOR */
29471 {
29472 	uint32_t dstreg = opcode & 7;
29473 	OpcodeFamily = 3; CurrentInstrCycles = 16;
29474 {{	int8_t src = get_ibyte_prefetch(2);
29475 {	uint32_t dsta = m68k_areg(regs, dstreg);
29476 {	int8_t dst = m68k_read_memory_8(dsta);
29477 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
29478 	src ^= dst;
29479 	CLEAR_CZNV;
29480 	SET_ZFLG (((int8_t)(src)) == 0);
29481 	SET_NFLG (((int8_t)(src)) < 0);
29482 m68k_incpc(4);
29483 fill_prefetch_0 ();
29484 	m68k_write_memory_8(dsta,src);
29485 }}}}return 16;
29486 }
CPUFUNC(op_a20_5)29487 unsigned long CPUFUNC(op_a20_5)(uint32_t opcode) /* EOR */
29488 {
29489 	uint32_t dstreg = opcode & 7;
29490 	OpcodeFamily = 3; CurrentInstrCycles = 18;
29491 {{	int8_t src = get_ibyte_prefetch(2);
29492 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
29493 {	int8_t dst = m68k_read_memory_8(dsta);
29494 	m68k_areg (regs, dstreg) = dsta;
29495 	src ^= dst;
29496 	CLEAR_CZNV;
29497 	SET_ZFLG (((int8_t)(src)) == 0);
29498 	SET_NFLG (((int8_t)(src)) < 0);
29499 m68k_incpc(4);
29500 fill_prefetch_0 ();
29501 	m68k_write_memory_8(dsta,src);
29502 }}}}return 18;
29503 }
CPUFUNC(op_a28_5)29504 unsigned long CPUFUNC(op_a28_5)(uint32_t opcode) /* EOR */
29505 {
29506 	uint32_t dstreg = opcode & 7;
29507 	OpcodeFamily = 3; CurrentInstrCycles = 20;
29508 {{	int8_t src = get_ibyte_prefetch(2);
29509 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
29510 {	int8_t dst = m68k_read_memory_8(dsta);
29511 	src ^= dst;
29512 	CLEAR_CZNV;
29513 	SET_ZFLG (((int8_t)(src)) == 0);
29514 	SET_NFLG (((int8_t)(src)) < 0);
29515 m68k_incpc(6);
29516 fill_prefetch_0 ();
29517 	m68k_write_memory_8(dsta,src);
29518 }}}}return 20;
29519 }
CPUFUNC(op_a30_5)29520 unsigned long CPUFUNC(op_a30_5)(uint32_t opcode) /* EOR */
29521 {
29522 	uint32_t dstreg = opcode & 7;
29523 	OpcodeFamily = 3; CurrentInstrCycles = 22;
29524 {{	int8_t src = get_ibyte_prefetch(2);
29525 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
29526 	BusCyclePenalty += 2;
29527 {	int8_t dst = m68k_read_memory_8(dsta);
29528 	src ^= dst;
29529 	CLEAR_CZNV;
29530 	SET_ZFLG (((int8_t)(src)) == 0);
29531 	SET_NFLG (((int8_t)(src)) < 0);
29532 m68k_incpc(6);
29533 fill_prefetch_0 ();
29534 	m68k_write_memory_8(dsta,src);
29535 }}}}return 22;
29536 }
CPUFUNC(op_a38_5)29537 unsigned long CPUFUNC(op_a38_5)(uint32_t opcode) /* EOR */
29538 {
29539 	OpcodeFamily = 3; CurrentInstrCycles = 20;
29540 {{	int8_t src = get_ibyte_prefetch(2);
29541 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
29542 {	int8_t dst = m68k_read_memory_8(dsta);
29543 	src ^= dst;
29544 	CLEAR_CZNV;
29545 	SET_ZFLG (((int8_t)(src)) == 0);
29546 	SET_NFLG (((int8_t)(src)) < 0);
29547 m68k_incpc(6);
29548 fill_prefetch_0 ();
29549 	m68k_write_memory_8(dsta,src);
29550 }}}}return 20;
29551 }
CPUFUNC(op_a39_5)29552 unsigned long CPUFUNC(op_a39_5)(uint32_t opcode) /* EOR */
29553 {
29554 	OpcodeFamily = 3; CurrentInstrCycles = 24;
29555 {{	int8_t src = get_ibyte_prefetch(2);
29556 {	uint32_t dsta = get_ilong_prefetch(4);
29557 {	int8_t dst = m68k_read_memory_8(dsta);
29558 	src ^= dst;
29559 	CLEAR_CZNV;
29560 	SET_ZFLG (((int8_t)(src)) == 0);
29561 	SET_NFLG (((int8_t)(src)) < 0);
29562 m68k_incpc(8);
29563 fill_prefetch_0 ();
29564 	m68k_write_memory_8(dsta,src);
29565 }}}}return 24;
29566 }
CPUFUNC(op_a3c_5)29567 unsigned long CPUFUNC(op_a3c_5)(uint32_t opcode) /* EORSR */
29568 {
29569 	OpcodeFamily = 6; CurrentInstrCycles = 20;
29570 {	MakeSR();
29571 {	int16_t src = get_iword_prefetch(2);
29572 	src &= 0xFF;
29573 	regs.sr ^= src;
29574 	MakeFromSR();
29575 }}m68k_incpc(4);
29576 fill_prefetch_0 ();
29577 return 20;
29578 }
CPUFUNC(op_a40_5)29579 unsigned long CPUFUNC(op_a40_5)(uint32_t opcode) /* EOR */
29580 {
29581 	uint32_t dstreg = opcode & 7;
29582 	OpcodeFamily = 3; CurrentInstrCycles = 8;
29583 {{	int16_t src = get_iword_prefetch(2);
29584 {	int16_t dst = m68k_dreg(regs, dstreg);
29585 	src ^= dst;
29586 	CLEAR_CZNV;
29587 	SET_ZFLG (((int16_t)(src)) == 0);
29588 	SET_NFLG (((int16_t)(src)) < 0);
29589 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
29590 }}}m68k_incpc(4);
29591 fill_prefetch_0 ();
29592 return 8;
29593 }
CPUFUNC(op_a50_5)29594 unsigned long CPUFUNC(op_a50_5)(uint32_t opcode) /* EOR */
29595 {
29596 	uint32_t dstreg = opcode & 7;
29597 	OpcodeFamily = 3; CurrentInstrCycles = 16;
29598 {{	int16_t src = get_iword_prefetch(2);
29599 {	uint32_t dsta = m68k_areg(regs, dstreg);
29600 	if ((dsta & 1) != 0) {
29601 		last_fault_for_exception_3 = dsta;
29602 		last_op_for_exception_3 = opcode;
29603 		last_addr_for_exception_3 = m68k_getpc() + 4;
29604 		Exception(3, 0, M68000_EXC_SRC_CPU);
29605 		goto endlabel1777;
29606 	}
29607 {{	int16_t dst = m68k_read_memory_16(dsta);
29608 	src ^= dst;
29609 	CLEAR_CZNV;
29610 	SET_ZFLG (((int16_t)(src)) == 0);
29611 	SET_NFLG (((int16_t)(src)) < 0);
29612 m68k_incpc(4);
29613 fill_prefetch_0 ();
29614 	m68k_write_memory_16(dsta,src);
29615 }}}}}endlabel1777: ;
29616 return 16;
29617 }
CPUFUNC(op_a58_5)29618 unsigned long CPUFUNC(op_a58_5)(uint32_t opcode) /* EOR */
29619 {
29620 	uint32_t dstreg = opcode & 7;
29621 	OpcodeFamily = 3; CurrentInstrCycles = 16;
29622 {{	int16_t src = get_iword_prefetch(2);
29623 {	uint32_t dsta = m68k_areg(regs, dstreg);
29624 	if ((dsta & 1) != 0) {
29625 		last_fault_for_exception_3 = dsta;
29626 		last_op_for_exception_3 = opcode;
29627 		last_addr_for_exception_3 = m68k_getpc() + 4;
29628 		Exception(3, 0, M68000_EXC_SRC_CPU);
29629 		goto endlabel1778;
29630 	}
29631 {{	int16_t dst = m68k_read_memory_16(dsta);
29632 	m68k_areg(regs, dstreg) += 2;
29633 	src ^= dst;
29634 	CLEAR_CZNV;
29635 	SET_ZFLG (((int16_t)(src)) == 0);
29636 	SET_NFLG (((int16_t)(src)) < 0);
29637 m68k_incpc(4);
29638 fill_prefetch_0 ();
29639 	m68k_write_memory_16(dsta,src);
29640 }}}}}endlabel1778: ;
29641 return 16;
29642 }
CPUFUNC(op_a60_5)29643 unsigned long CPUFUNC(op_a60_5)(uint32_t opcode) /* EOR */
29644 {
29645 	uint32_t dstreg = opcode & 7;
29646 	OpcodeFamily = 3; CurrentInstrCycles = 18;
29647 {{	int16_t src = get_iword_prefetch(2);
29648 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
29649 	if ((dsta & 1) != 0) {
29650 		last_fault_for_exception_3 = dsta;
29651 		last_op_for_exception_3 = opcode;
29652 		last_addr_for_exception_3 = m68k_getpc() + 4;
29653 		Exception(3, 0, M68000_EXC_SRC_CPU);
29654 		goto endlabel1779;
29655 	}
29656 {{	int16_t dst = m68k_read_memory_16(dsta);
29657 	m68k_areg (regs, dstreg) = dsta;
29658 	src ^= dst;
29659 	CLEAR_CZNV;
29660 	SET_ZFLG (((int16_t)(src)) == 0);
29661 	SET_NFLG (((int16_t)(src)) < 0);
29662 m68k_incpc(4);
29663 fill_prefetch_0 ();
29664 	m68k_write_memory_16(dsta,src);
29665 }}}}}endlabel1779: ;
29666 return 18;
29667 }
CPUFUNC(op_a68_5)29668 unsigned long CPUFUNC(op_a68_5)(uint32_t opcode) /* EOR */
29669 {
29670 	uint32_t dstreg = opcode & 7;
29671 	OpcodeFamily = 3; CurrentInstrCycles = 20;
29672 {{	int16_t src = get_iword_prefetch(2);
29673 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
29674 	if ((dsta & 1) != 0) {
29675 		last_fault_for_exception_3 = dsta;
29676 		last_op_for_exception_3 = opcode;
29677 		last_addr_for_exception_3 = m68k_getpc() + 6;
29678 		Exception(3, 0, M68000_EXC_SRC_CPU);
29679 		goto endlabel1780;
29680 	}
29681 {{	int16_t dst = m68k_read_memory_16(dsta);
29682 	src ^= dst;
29683 	CLEAR_CZNV;
29684 	SET_ZFLG (((int16_t)(src)) == 0);
29685 	SET_NFLG (((int16_t)(src)) < 0);
29686 m68k_incpc(6);
29687 fill_prefetch_0 ();
29688 	m68k_write_memory_16(dsta,src);
29689 }}}}}endlabel1780: ;
29690 return 20;
29691 }
CPUFUNC(op_a70_5)29692 unsigned long CPUFUNC(op_a70_5)(uint32_t opcode) /* EOR */
29693 {
29694 	uint32_t dstreg = opcode & 7;
29695 	OpcodeFamily = 3; CurrentInstrCycles = 22;
29696 {{	int16_t src = get_iword_prefetch(2);
29697 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
29698 	BusCyclePenalty += 2;
29699 	if ((dsta & 1) != 0) {
29700 		last_fault_for_exception_3 = dsta;
29701 		last_op_for_exception_3 = opcode;
29702 		last_addr_for_exception_3 = m68k_getpc() + 6;
29703 		Exception(3, 0, M68000_EXC_SRC_CPU);
29704 		goto endlabel1781;
29705 	}
29706 {{	int16_t dst = m68k_read_memory_16(dsta);
29707 	src ^= dst;
29708 	CLEAR_CZNV;
29709 	SET_ZFLG (((int16_t)(src)) == 0);
29710 	SET_NFLG (((int16_t)(src)) < 0);
29711 m68k_incpc(6);
29712 fill_prefetch_0 ();
29713 	m68k_write_memory_16(dsta,src);
29714 }}}}}endlabel1781: ;
29715 return 22;
29716 }
CPUFUNC(op_a78_5)29717 unsigned long CPUFUNC(op_a78_5)(uint32_t opcode) /* EOR */
29718 {
29719 	OpcodeFamily = 3; CurrentInstrCycles = 20;
29720 {{	int16_t src = get_iword_prefetch(2);
29721 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
29722 	if ((dsta & 1) != 0) {
29723 		last_fault_for_exception_3 = dsta;
29724 		last_op_for_exception_3 = opcode;
29725 		last_addr_for_exception_3 = m68k_getpc() + 6;
29726 		Exception(3, 0, M68000_EXC_SRC_CPU);
29727 		goto endlabel1782;
29728 	}
29729 {{	int16_t dst = m68k_read_memory_16(dsta);
29730 	src ^= dst;
29731 	CLEAR_CZNV;
29732 	SET_ZFLG (((int16_t)(src)) == 0);
29733 	SET_NFLG (((int16_t)(src)) < 0);
29734 m68k_incpc(6);
29735 fill_prefetch_0 ();
29736 	m68k_write_memory_16(dsta,src);
29737 }}}}}endlabel1782: ;
29738 return 20;
29739 }
CPUFUNC(op_a79_5)29740 unsigned long CPUFUNC(op_a79_5)(uint32_t opcode) /* EOR */
29741 {
29742 	OpcodeFamily = 3; CurrentInstrCycles = 24;
29743 {{	int16_t src = get_iword_prefetch(2);
29744 {	uint32_t dsta = get_ilong_prefetch(4);
29745 	if ((dsta & 1) != 0) {
29746 		last_fault_for_exception_3 = dsta;
29747 		last_op_for_exception_3 = opcode;
29748 		last_addr_for_exception_3 = m68k_getpc() + 8;
29749 		Exception(3, 0, M68000_EXC_SRC_CPU);
29750 		goto endlabel1783;
29751 	}
29752 {{	int16_t dst = m68k_read_memory_16(dsta);
29753 	src ^= dst;
29754 	CLEAR_CZNV;
29755 	SET_ZFLG (((int16_t)(src)) == 0);
29756 	SET_NFLG (((int16_t)(src)) < 0);
29757 m68k_incpc(8);
29758 fill_prefetch_0 ();
29759 	m68k_write_memory_16(dsta,src);
29760 }}}}}endlabel1783: ;
29761 return 24;
29762 }
CPUFUNC(op_a7c_5)29763 unsigned long CPUFUNC(op_a7c_5)(uint32_t opcode) /* EORSR */
29764 {
29765 	OpcodeFamily = 6; CurrentInstrCycles = 20;
29766 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel1784; }
29767 {	MakeSR();
29768 {	int16_t src = get_iword_prefetch(2);
29769 	regs.sr ^= src;
29770 	MakeFromSR();
29771 }}}m68k_incpc(4);
29772 fill_prefetch_0 ();
29773 endlabel1784: ;
29774 return 20;
29775 }
29776 #endif
29777 
29778 #ifdef PART_2
CPUFUNC(op_a80_5)29779 unsigned long CPUFUNC(op_a80_5)(uint32_t opcode) /* EOR */
29780 {
29781 	uint32_t dstreg = opcode & 7;
29782 	OpcodeFamily = 3; CurrentInstrCycles = 16;
29783 {{	int32_t src = get_ilong_prefetch(2);
29784 {	int32_t dst = m68k_dreg(regs, dstreg);
29785 	src ^= dst;
29786 	CLEAR_CZNV;
29787 	SET_ZFLG (((int32_t)(src)) == 0);
29788 	SET_NFLG (((int32_t)(src)) < 0);
29789 	m68k_dreg(regs, dstreg) = (src);
29790 }}}m68k_incpc(6);
29791 fill_prefetch_0 ();
29792 return 16;
29793 }
CPUFUNC(op_a90_5)29794 unsigned long CPUFUNC(op_a90_5)(uint32_t opcode) /* EOR */
29795 {
29796 	uint32_t dstreg = opcode & 7;
29797 	OpcodeFamily = 3; CurrentInstrCycles = 28;
29798 {{	int32_t src = get_ilong_prefetch(2);
29799 {	uint32_t dsta = m68k_areg(regs, dstreg);
29800 	if ((dsta & 1) != 0) {
29801 		last_fault_for_exception_3 = dsta;
29802 		last_op_for_exception_3 = opcode;
29803 		last_addr_for_exception_3 = m68k_getpc() + 6;
29804 		Exception(3, 0, M68000_EXC_SRC_CPU);
29805 		goto endlabel1786;
29806 	}
29807 {{	int32_t dst = m68k_read_memory_32(dsta);
29808 	src ^= dst;
29809 	CLEAR_CZNV;
29810 	SET_ZFLG (((int32_t)(src)) == 0);
29811 	SET_NFLG (((int32_t)(src)) < 0);
29812 m68k_incpc(6);
29813 fill_prefetch_0 ();
29814 	m68k_write_memory_32(dsta,src);
29815 }}}}}endlabel1786: ;
29816 return 28;
29817 }
CPUFUNC(op_a98_5)29818 unsigned long CPUFUNC(op_a98_5)(uint32_t opcode) /* EOR */
29819 {
29820 	uint32_t dstreg = opcode & 7;
29821 	OpcodeFamily = 3; CurrentInstrCycles = 28;
29822 {{	int32_t src = get_ilong_prefetch(2);
29823 {	uint32_t dsta = m68k_areg(regs, dstreg);
29824 	if ((dsta & 1) != 0) {
29825 		last_fault_for_exception_3 = dsta;
29826 		last_op_for_exception_3 = opcode;
29827 		last_addr_for_exception_3 = m68k_getpc() + 6;
29828 		Exception(3, 0, M68000_EXC_SRC_CPU);
29829 		goto endlabel1787;
29830 	}
29831 {{	int32_t dst = m68k_read_memory_32(dsta);
29832 	m68k_areg(regs, dstreg) += 4;
29833 	src ^= dst;
29834 	CLEAR_CZNV;
29835 	SET_ZFLG (((int32_t)(src)) == 0);
29836 	SET_NFLG (((int32_t)(src)) < 0);
29837 m68k_incpc(6);
29838 fill_prefetch_0 ();
29839 	m68k_write_memory_32(dsta,src);
29840 }}}}}endlabel1787: ;
29841 return 28;
29842 }
CPUFUNC(op_aa0_5)29843 unsigned long CPUFUNC(op_aa0_5)(uint32_t opcode) /* EOR */
29844 {
29845 	uint32_t dstreg = opcode & 7;
29846 	OpcodeFamily = 3; CurrentInstrCycles = 30;
29847 {{	int32_t src = get_ilong_prefetch(2);
29848 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
29849 	if ((dsta & 1) != 0) {
29850 		last_fault_for_exception_3 = dsta;
29851 		last_op_for_exception_3 = opcode;
29852 		last_addr_for_exception_3 = m68k_getpc() + 6;
29853 		Exception(3, 0, M68000_EXC_SRC_CPU);
29854 		goto endlabel1788;
29855 	}
29856 {{	int32_t dst = m68k_read_memory_32(dsta);
29857 	m68k_areg (regs, dstreg) = dsta;
29858 	src ^= dst;
29859 	CLEAR_CZNV;
29860 	SET_ZFLG (((int32_t)(src)) == 0);
29861 	SET_NFLG (((int32_t)(src)) < 0);
29862 m68k_incpc(6);
29863 fill_prefetch_0 ();
29864 	m68k_write_memory_32(dsta,src);
29865 }}}}}endlabel1788: ;
29866 return 30;
29867 }
CPUFUNC(op_aa8_5)29868 unsigned long CPUFUNC(op_aa8_5)(uint32_t opcode) /* EOR */
29869 {
29870 	uint32_t dstreg = opcode & 7;
29871 	OpcodeFamily = 3; CurrentInstrCycles = 32;
29872 {{	int32_t src = get_ilong_prefetch(2);
29873 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
29874 	if ((dsta & 1) != 0) {
29875 		last_fault_for_exception_3 = dsta;
29876 		last_op_for_exception_3 = opcode;
29877 		last_addr_for_exception_3 = m68k_getpc() + 8;
29878 		Exception(3, 0, M68000_EXC_SRC_CPU);
29879 		goto endlabel1789;
29880 	}
29881 {{	int32_t dst = m68k_read_memory_32(dsta);
29882 	src ^= dst;
29883 	CLEAR_CZNV;
29884 	SET_ZFLG (((int32_t)(src)) == 0);
29885 	SET_NFLG (((int32_t)(src)) < 0);
29886 m68k_incpc(8);
29887 fill_prefetch_0 ();
29888 	m68k_write_memory_32(dsta,src);
29889 }}}}}endlabel1789: ;
29890 return 32;
29891 }
CPUFUNC(op_ab0_5)29892 unsigned long CPUFUNC(op_ab0_5)(uint32_t opcode) /* EOR */
29893 {
29894 	uint32_t dstreg = opcode & 7;
29895 	OpcodeFamily = 3; CurrentInstrCycles = 34;
29896 {{	int32_t src = get_ilong_prefetch(2);
29897 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
29898 	BusCyclePenalty += 2;
29899 	if ((dsta & 1) != 0) {
29900 		last_fault_for_exception_3 = dsta;
29901 		last_op_for_exception_3 = opcode;
29902 		last_addr_for_exception_3 = m68k_getpc() + 8;
29903 		Exception(3, 0, M68000_EXC_SRC_CPU);
29904 		goto endlabel1790;
29905 	}
29906 {{	int32_t dst = m68k_read_memory_32(dsta);
29907 	src ^= dst;
29908 	CLEAR_CZNV;
29909 	SET_ZFLG (((int32_t)(src)) == 0);
29910 	SET_NFLG (((int32_t)(src)) < 0);
29911 m68k_incpc(8);
29912 fill_prefetch_0 ();
29913 	m68k_write_memory_32(dsta,src);
29914 }}}}}endlabel1790: ;
29915 return 34;
29916 }
CPUFUNC(op_ab8_5)29917 unsigned long CPUFUNC(op_ab8_5)(uint32_t opcode) /* EOR */
29918 {
29919 	OpcodeFamily = 3; CurrentInstrCycles = 32;
29920 {{	int32_t src = get_ilong_prefetch(2);
29921 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
29922 	if ((dsta & 1) != 0) {
29923 		last_fault_for_exception_3 = dsta;
29924 		last_op_for_exception_3 = opcode;
29925 		last_addr_for_exception_3 = m68k_getpc() + 8;
29926 		Exception(3, 0, M68000_EXC_SRC_CPU);
29927 		goto endlabel1791;
29928 	}
29929 {{	int32_t dst = m68k_read_memory_32(dsta);
29930 	src ^= dst;
29931 	CLEAR_CZNV;
29932 	SET_ZFLG (((int32_t)(src)) == 0);
29933 	SET_NFLG (((int32_t)(src)) < 0);
29934 m68k_incpc(8);
29935 fill_prefetch_0 ();
29936 	m68k_write_memory_32(dsta,src);
29937 }}}}}endlabel1791: ;
29938 return 32;
29939 }
CPUFUNC(op_ab9_5)29940 unsigned long CPUFUNC(op_ab9_5)(uint32_t opcode) /* EOR */
29941 {
29942 	OpcodeFamily = 3; CurrentInstrCycles = 36;
29943 {{	int32_t src = get_ilong_prefetch(2);
29944 {	uint32_t dsta = get_ilong_prefetch(6);
29945 	if ((dsta & 1) != 0) {
29946 		last_fault_for_exception_3 = dsta;
29947 		last_op_for_exception_3 = opcode;
29948 		last_addr_for_exception_3 = m68k_getpc() + 10;
29949 		Exception(3, 0, M68000_EXC_SRC_CPU);
29950 		goto endlabel1792;
29951 	}
29952 {{	int32_t dst = m68k_read_memory_32(dsta);
29953 	src ^= dst;
29954 	CLEAR_CZNV;
29955 	SET_ZFLG (((int32_t)(src)) == 0);
29956 	SET_NFLG (((int32_t)(src)) < 0);
29957 m68k_incpc(10);
29958 fill_prefetch_0 ();
29959 	m68k_write_memory_32(dsta,src);
29960 }}}}}endlabel1792: ;
29961 return 36;
29962 }
CPUFUNC(op_c00_5)29963 unsigned long CPUFUNC(op_c00_5)(uint32_t opcode) /* CMP */
29964 {
29965 	uint32_t dstreg = opcode & 7;
29966 	OpcodeFamily = 25; CurrentInstrCycles = 8;
29967 {{	int8_t src = get_ibyte_prefetch(2);
29968 {	int8_t dst = m68k_dreg(regs, dstreg);
29969 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
29970 {	int flgs = ((int8_t)(src)) < 0;
29971 	int flgo = ((int8_t)(dst)) < 0;
29972 	int flgn = ((int8_t)(newv)) < 0;
29973 	SET_ZFLG (((int8_t)(newv)) == 0);
29974 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
29975 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
29976 	SET_NFLG (flgn != 0);
29977 }}}}}}m68k_incpc(4);
29978 fill_prefetch_0 ();
29979 return 8;
29980 }
CPUFUNC(op_c10_5)29981 unsigned long CPUFUNC(op_c10_5)(uint32_t opcode) /* CMP */
29982 {
29983 	uint32_t dstreg = opcode & 7;
29984 	OpcodeFamily = 25; CurrentInstrCycles = 12;
29985 {{	int8_t src = get_ibyte_prefetch(2);
29986 {	uint32_t dsta = m68k_areg(regs, dstreg);
29987 {	int8_t dst = m68k_read_memory_8(dsta);
29988 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
29989 {	int flgs = ((int8_t)(src)) < 0;
29990 	int flgo = ((int8_t)(dst)) < 0;
29991 	int flgn = ((int8_t)(newv)) < 0;
29992 	SET_ZFLG (((int8_t)(newv)) == 0);
29993 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
29994 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
29995 	SET_NFLG (flgn != 0);
29996 }}}}}}}m68k_incpc(4);
29997 fill_prefetch_0 ();
29998 return 12;
29999 }
CPUFUNC(op_c18_5)30000 unsigned long CPUFUNC(op_c18_5)(uint32_t opcode) /* CMP */
30001 {
30002 	uint32_t dstreg = opcode & 7;
30003 	OpcodeFamily = 25; CurrentInstrCycles = 12;
30004 {{	int8_t src = get_ibyte_prefetch(2);
30005 {	uint32_t dsta = m68k_areg(regs, dstreg);
30006 {	int8_t dst = m68k_read_memory_8(dsta);
30007 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
30008 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30009 {	int flgs = ((int8_t)(src)) < 0;
30010 	int flgo = ((int8_t)(dst)) < 0;
30011 	int flgn = ((int8_t)(newv)) < 0;
30012 	SET_ZFLG (((int8_t)(newv)) == 0);
30013 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30014 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30015 	SET_NFLG (flgn != 0);
30016 }}}}}}}m68k_incpc(4);
30017 fill_prefetch_0 ();
30018 return 12;
30019 }
CPUFUNC(op_c20_5)30020 unsigned long CPUFUNC(op_c20_5)(uint32_t opcode) /* CMP */
30021 {
30022 	uint32_t dstreg = opcode & 7;
30023 	OpcodeFamily = 25; CurrentInstrCycles = 14;
30024 {{	int8_t src = get_ibyte_prefetch(2);
30025 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
30026 {	int8_t dst = m68k_read_memory_8(dsta);
30027 	m68k_areg (regs, dstreg) = dsta;
30028 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30029 {	int flgs = ((int8_t)(src)) < 0;
30030 	int flgo = ((int8_t)(dst)) < 0;
30031 	int flgn = ((int8_t)(newv)) < 0;
30032 	SET_ZFLG (((int8_t)(newv)) == 0);
30033 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30034 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30035 	SET_NFLG (flgn != 0);
30036 }}}}}}}m68k_incpc(4);
30037 fill_prefetch_0 ();
30038 return 14;
30039 }
CPUFUNC(op_c28_5)30040 unsigned long CPUFUNC(op_c28_5)(uint32_t opcode) /* CMP */
30041 {
30042 	uint32_t dstreg = opcode & 7;
30043 	OpcodeFamily = 25; CurrentInstrCycles = 16;
30044 {{	int8_t src = get_ibyte_prefetch(2);
30045 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
30046 {	int8_t dst = m68k_read_memory_8(dsta);
30047 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30048 {	int flgs = ((int8_t)(src)) < 0;
30049 	int flgo = ((int8_t)(dst)) < 0;
30050 	int flgn = ((int8_t)(newv)) < 0;
30051 	SET_ZFLG (((int8_t)(newv)) == 0);
30052 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30053 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30054 	SET_NFLG (flgn != 0);
30055 }}}}}}}m68k_incpc(6);
30056 fill_prefetch_0 ();
30057 return 16;
30058 }
CPUFUNC(op_c30_5)30059 unsigned long CPUFUNC(op_c30_5)(uint32_t opcode) /* CMP */
30060 {
30061 	uint32_t dstreg = opcode & 7;
30062 	OpcodeFamily = 25; CurrentInstrCycles = 18;
30063 {{	int8_t src = get_ibyte_prefetch(2);
30064 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
30065 	BusCyclePenalty += 2;
30066 {	int8_t dst = m68k_read_memory_8(dsta);
30067 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30068 {	int flgs = ((int8_t)(src)) < 0;
30069 	int flgo = ((int8_t)(dst)) < 0;
30070 	int flgn = ((int8_t)(newv)) < 0;
30071 	SET_ZFLG (((int8_t)(newv)) == 0);
30072 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30073 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30074 	SET_NFLG (flgn != 0);
30075 }}}}}}}m68k_incpc(6);
30076 fill_prefetch_0 ();
30077 return 18;
30078 }
CPUFUNC(op_c38_5)30079 unsigned long CPUFUNC(op_c38_5)(uint32_t opcode) /* CMP */
30080 {
30081 	OpcodeFamily = 25; CurrentInstrCycles = 16;
30082 {{	int8_t src = get_ibyte_prefetch(2);
30083 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
30084 {	int8_t dst = m68k_read_memory_8(dsta);
30085 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30086 {	int flgs = ((int8_t)(src)) < 0;
30087 	int flgo = ((int8_t)(dst)) < 0;
30088 	int flgn = ((int8_t)(newv)) < 0;
30089 	SET_ZFLG (((int8_t)(newv)) == 0);
30090 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30091 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30092 	SET_NFLG (flgn != 0);
30093 }}}}}}}m68k_incpc(6);
30094 fill_prefetch_0 ();
30095 return 16;
30096 }
CPUFUNC(op_c39_5)30097 unsigned long CPUFUNC(op_c39_5)(uint32_t opcode) /* CMP */
30098 {
30099 	OpcodeFamily = 25; CurrentInstrCycles = 20;
30100 {{	int8_t src = get_ibyte_prefetch(2);
30101 {	uint32_t dsta = get_ilong_prefetch(4);
30102 {	int8_t dst = m68k_read_memory_8(dsta);
30103 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30104 {	int flgs = ((int8_t)(src)) < 0;
30105 	int flgo = ((int8_t)(dst)) < 0;
30106 	int flgn = ((int8_t)(newv)) < 0;
30107 	SET_ZFLG (((int8_t)(newv)) == 0);
30108 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30109 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30110 	SET_NFLG (flgn != 0);
30111 }}}}}}}m68k_incpc(8);
30112 fill_prefetch_0 ();
30113 return 20;
30114 }
CPUFUNC(op_c3a_5)30115 unsigned long CPUFUNC(op_c3a_5)(uint32_t opcode) /* CMP */
30116 {
30117 	uint32_t dstreg = 2;
30118 	OpcodeFamily = 25; CurrentInstrCycles = 16;
30119 {{	int8_t src = get_ibyte_prefetch(2);
30120 {	uint32_t dsta = m68k_getpc () + 4;
30121 	dsta += (int32_t)(int16_t)get_iword_prefetch(4);
30122 {	int8_t dst = m68k_read_memory_8(dsta);
30123 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30124 {	int flgs = ((int8_t)(src)) < 0;
30125 	int flgo = ((int8_t)(dst)) < 0;
30126 	int flgn = ((int8_t)(newv)) < 0;
30127 	SET_ZFLG (((int8_t)(newv)) == 0);
30128 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30129 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30130 	SET_NFLG (flgn != 0);
30131 }}}}}}}m68k_incpc(6);
30132 fill_prefetch_0 ();
30133 return 16;
30134 }
CPUFUNC(op_c3b_5)30135 unsigned long CPUFUNC(op_c3b_5)(uint32_t opcode) /* CMP */
30136 {
30137 	uint32_t dstreg = 3;
30138 	OpcodeFamily = 25; CurrentInstrCycles = 18;
30139 {{	int8_t src = get_ibyte_prefetch(2);
30140 {	uint32_t tmppc = m68k_getpc() + 4;
30141 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4));
30142 	BusCyclePenalty += 2;
30143 {	int8_t dst = m68k_read_memory_8(dsta);
30144 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
30145 {	int flgs = ((int8_t)(src)) < 0;
30146 	int flgo = ((int8_t)(dst)) < 0;
30147 	int flgn = ((int8_t)(newv)) < 0;
30148 	SET_ZFLG (((int8_t)(newv)) == 0);
30149 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30150 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
30151 	SET_NFLG (flgn != 0);
30152 }}}}}}}m68k_incpc(6);
30153 fill_prefetch_0 ();
30154 return 18;
30155 }
CPUFUNC(op_c40_5)30156 unsigned long CPUFUNC(op_c40_5)(uint32_t opcode) /* CMP */
30157 {
30158 	uint32_t dstreg = opcode & 7;
30159 	OpcodeFamily = 25; CurrentInstrCycles = 8;
30160 {{	int16_t src = get_iword_prefetch(2);
30161 {	int16_t dst = m68k_dreg(regs, dstreg);
30162 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30163 {	int flgs = ((int16_t)(src)) < 0;
30164 	int flgo = ((int16_t)(dst)) < 0;
30165 	int flgn = ((int16_t)(newv)) < 0;
30166 	SET_ZFLG (((int16_t)(newv)) == 0);
30167 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30168 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30169 	SET_NFLG (flgn != 0);
30170 }}}}}}m68k_incpc(4);
30171 fill_prefetch_0 ();
30172 return 8;
30173 }
CPUFUNC(op_c50_5)30174 unsigned long CPUFUNC(op_c50_5)(uint32_t opcode) /* CMP */
30175 {
30176 	uint32_t dstreg = opcode & 7;
30177 	OpcodeFamily = 25; CurrentInstrCycles = 12;
30178 {{	int16_t src = get_iword_prefetch(2);
30179 {	uint32_t dsta = m68k_areg(regs, dstreg);
30180 	if ((dsta & 1) != 0) {
30181 		last_fault_for_exception_3 = dsta;
30182 		last_op_for_exception_3 = opcode;
30183 		last_addr_for_exception_3 = m68k_getpc() + 4;
30184 		Exception(3, 0, M68000_EXC_SRC_CPU);
30185 		goto endlabel1804;
30186 	}
30187 {{	int16_t dst = m68k_read_memory_16(dsta);
30188 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30189 {	int flgs = ((int16_t)(src)) < 0;
30190 	int flgo = ((int16_t)(dst)) < 0;
30191 	int flgn = ((int16_t)(newv)) < 0;
30192 	SET_ZFLG (((int16_t)(newv)) == 0);
30193 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30194 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30195 	SET_NFLG (flgn != 0);
30196 }}}}}}}}m68k_incpc(4);
30197 fill_prefetch_0 ();
30198 endlabel1804: ;
30199 return 12;
30200 }
CPUFUNC(op_c58_5)30201 unsigned long CPUFUNC(op_c58_5)(uint32_t opcode) /* CMP */
30202 {
30203 	uint32_t dstreg = opcode & 7;
30204 	OpcodeFamily = 25; CurrentInstrCycles = 12;
30205 {{	int16_t src = get_iword_prefetch(2);
30206 {	uint32_t dsta = m68k_areg(regs, dstreg);
30207 	if ((dsta & 1) != 0) {
30208 		last_fault_for_exception_3 = dsta;
30209 		last_op_for_exception_3 = opcode;
30210 		last_addr_for_exception_3 = m68k_getpc() + 4;
30211 		Exception(3, 0, M68000_EXC_SRC_CPU);
30212 		goto endlabel1805;
30213 	}
30214 {{	int16_t dst = m68k_read_memory_16(dsta);
30215 	m68k_areg(regs, dstreg) += 2;
30216 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30217 {	int flgs = ((int16_t)(src)) < 0;
30218 	int flgo = ((int16_t)(dst)) < 0;
30219 	int flgn = ((int16_t)(newv)) < 0;
30220 	SET_ZFLG (((int16_t)(newv)) == 0);
30221 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30222 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30223 	SET_NFLG (flgn != 0);
30224 }}}}}}}}m68k_incpc(4);
30225 fill_prefetch_0 ();
30226 endlabel1805: ;
30227 return 12;
30228 }
CPUFUNC(op_c60_5)30229 unsigned long CPUFUNC(op_c60_5)(uint32_t opcode) /* CMP */
30230 {
30231 	uint32_t dstreg = opcode & 7;
30232 	OpcodeFamily = 25; CurrentInstrCycles = 14;
30233 {{	int16_t src = get_iword_prefetch(2);
30234 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
30235 	if ((dsta & 1) != 0) {
30236 		last_fault_for_exception_3 = dsta;
30237 		last_op_for_exception_3 = opcode;
30238 		last_addr_for_exception_3 = m68k_getpc() + 4;
30239 		Exception(3, 0, M68000_EXC_SRC_CPU);
30240 		goto endlabel1806;
30241 	}
30242 {{	int16_t dst = m68k_read_memory_16(dsta);
30243 	m68k_areg (regs, dstreg) = dsta;
30244 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30245 {	int flgs = ((int16_t)(src)) < 0;
30246 	int flgo = ((int16_t)(dst)) < 0;
30247 	int flgn = ((int16_t)(newv)) < 0;
30248 	SET_ZFLG (((int16_t)(newv)) == 0);
30249 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30250 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30251 	SET_NFLG (flgn != 0);
30252 }}}}}}}}m68k_incpc(4);
30253 fill_prefetch_0 ();
30254 endlabel1806: ;
30255 return 14;
30256 }
CPUFUNC(op_c68_5)30257 unsigned long CPUFUNC(op_c68_5)(uint32_t opcode) /* CMP */
30258 {
30259 	uint32_t dstreg = opcode & 7;
30260 	OpcodeFamily = 25; CurrentInstrCycles = 16;
30261 {{	int16_t src = get_iword_prefetch(2);
30262 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
30263 	if ((dsta & 1) != 0) {
30264 		last_fault_for_exception_3 = dsta;
30265 		last_op_for_exception_3 = opcode;
30266 		last_addr_for_exception_3 = m68k_getpc() + 6;
30267 		Exception(3, 0, M68000_EXC_SRC_CPU);
30268 		goto endlabel1807;
30269 	}
30270 {{	int16_t dst = m68k_read_memory_16(dsta);
30271 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30272 {	int flgs = ((int16_t)(src)) < 0;
30273 	int flgo = ((int16_t)(dst)) < 0;
30274 	int flgn = ((int16_t)(newv)) < 0;
30275 	SET_ZFLG (((int16_t)(newv)) == 0);
30276 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30277 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30278 	SET_NFLG (flgn != 0);
30279 }}}}}}}}m68k_incpc(6);
30280 fill_prefetch_0 ();
30281 endlabel1807: ;
30282 return 16;
30283 }
CPUFUNC(op_c70_5)30284 unsigned long CPUFUNC(op_c70_5)(uint32_t opcode) /* CMP */
30285 {
30286 	uint32_t dstreg = opcode & 7;
30287 	OpcodeFamily = 25; CurrentInstrCycles = 18;
30288 {{	int16_t src = get_iword_prefetch(2);
30289 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
30290 	BusCyclePenalty += 2;
30291 	if ((dsta & 1) != 0) {
30292 		last_fault_for_exception_3 = dsta;
30293 		last_op_for_exception_3 = opcode;
30294 		last_addr_for_exception_3 = m68k_getpc() + 6;
30295 		Exception(3, 0, M68000_EXC_SRC_CPU);
30296 		goto endlabel1808;
30297 	}
30298 {{	int16_t dst = m68k_read_memory_16(dsta);
30299 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30300 {	int flgs = ((int16_t)(src)) < 0;
30301 	int flgo = ((int16_t)(dst)) < 0;
30302 	int flgn = ((int16_t)(newv)) < 0;
30303 	SET_ZFLG (((int16_t)(newv)) == 0);
30304 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30305 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30306 	SET_NFLG (flgn != 0);
30307 }}}}}}}}m68k_incpc(6);
30308 fill_prefetch_0 ();
30309 endlabel1808: ;
30310 return 18;
30311 }
CPUFUNC(op_c78_5)30312 unsigned long CPUFUNC(op_c78_5)(uint32_t opcode) /* CMP */
30313 {
30314 	OpcodeFamily = 25; CurrentInstrCycles = 16;
30315 {{	int16_t src = get_iword_prefetch(2);
30316 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
30317 	if ((dsta & 1) != 0) {
30318 		last_fault_for_exception_3 = dsta;
30319 		last_op_for_exception_3 = opcode;
30320 		last_addr_for_exception_3 = m68k_getpc() + 6;
30321 		Exception(3, 0, M68000_EXC_SRC_CPU);
30322 		goto endlabel1809;
30323 	}
30324 {{	int16_t dst = m68k_read_memory_16(dsta);
30325 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30326 {	int flgs = ((int16_t)(src)) < 0;
30327 	int flgo = ((int16_t)(dst)) < 0;
30328 	int flgn = ((int16_t)(newv)) < 0;
30329 	SET_ZFLG (((int16_t)(newv)) == 0);
30330 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30331 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30332 	SET_NFLG (flgn != 0);
30333 }}}}}}}}m68k_incpc(6);
30334 fill_prefetch_0 ();
30335 endlabel1809: ;
30336 return 16;
30337 }
CPUFUNC(op_c79_5)30338 unsigned long CPUFUNC(op_c79_5)(uint32_t opcode) /* CMP */
30339 {
30340 	OpcodeFamily = 25; CurrentInstrCycles = 20;
30341 {{	int16_t src = get_iword_prefetch(2);
30342 {	uint32_t dsta = get_ilong_prefetch(4);
30343 	if ((dsta & 1) != 0) {
30344 		last_fault_for_exception_3 = dsta;
30345 		last_op_for_exception_3 = opcode;
30346 		last_addr_for_exception_3 = m68k_getpc() + 8;
30347 		Exception(3, 0, M68000_EXC_SRC_CPU);
30348 		goto endlabel1810;
30349 	}
30350 {{	int16_t dst = m68k_read_memory_16(dsta);
30351 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30352 {	int flgs = ((int16_t)(src)) < 0;
30353 	int flgo = ((int16_t)(dst)) < 0;
30354 	int flgn = ((int16_t)(newv)) < 0;
30355 	SET_ZFLG (((int16_t)(newv)) == 0);
30356 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30357 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30358 	SET_NFLG (flgn != 0);
30359 }}}}}}}}m68k_incpc(8);
30360 fill_prefetch_0 ();
30361 endlabel1810: ;
30362 return 20;
30363 }
CPUFUNC(op_c7a_5)30364 unsigned long CPUFUNC(op_c7a_5)(uint32_t opcode) /* CMP */
30365 {
30366 	uint32_t dstreg = 2;
30367 	OpcodeFamily = 25; CurrentInstrCycles = 16;
30368 {{	int16_t src = get_iword_prefetch(2);
30369 {	uint32_t dsta = m68k_getpc () + 4;
30370 	dsta += (int32_t)(int16_t)get_iword_prefetch(4);
30371 	if ((dsta & 1) != 0) {
30372 		last_fault_for_exception_3 = dsta;
30373 		last_op_for_exception_3 = opcode;
30374 		last_addr_for_exception_3 = m68k_getpc() + 6;
30375 		Exception(3, 0, M68000_EXC_SRC_CPU);
30376 		goto endlabel1811;
30377 	}
30378 {{	int16_t dst = m68k_read_memory_16(dsta);
30379 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30380 {	int flgs = ((int16_t)(src)) < 0;
30381 	int flgo = ((int16_t)(dst)) < 0;
30382 	int flgn = ((int16_t)(newv)) < 0;
30383 	SET_ZFLG (((int16_t)(newv)) == 0);
30384 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30385 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30386 	SET_NFLG (flgn != 0);
30387 }}}}}}}}m68k_incpc(6);
30388 fill_prefetch_0 ();
30389 endlabel1811: ;
30390 return 16;
30391 }
CPUFUNC(op_c7b_5)30392 unsigned long CPUFUNC(op_c7b_5)(uint32_t opcode) /* CMP */
30393 {
30394 	uint32_t dstreg = 3;
30395 	OpcodeFamily = 25; CurrentInstrCycles = 18;
30396 {{	int16_t src = get_iword_prefetch(2);
30397 {	uint32_t tmppc = m68k_getpc() + 4;
30398 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4));
30399 	BusCyclePenalty += 2;
30400 	if ((dsta & 1) != 0) {
30401 		last_fault_for_exception_3 = dsta;
30402 		last_op_for_exception_3 = opcode;
30403 		last_addr_for_exception_3 = m68k_getpc() + 6;
30404 		Exception(3, 0, M68000_EXC_SRC_CPU);
30405 		goto endlabel1812;
30406 	}
30407 {{	int16_t dst = m68k_read_memory_16(dsta);
30408 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
30409 {	int flgs = ((int16_t)(src)) < 0;
30410 	int flgo = ((int16_t)(dst)) < 0;
30411 	int flgn = ((int16_t)(newv)) < 0;
30412 	SET_ZFLG (((int16_t)(newv)) == 0);
30413 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30414 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
30415 	SET_NFLG (flgn != 0);
30416 }}}}}}}}m68k_incpc(6);
30417 fill_prefetch_0 ();
30418 endlabel1812: ;
30419 return 18;
30420 }
CPUFUNC(op_c80_5)30421 unsigned long CPUFUNC(op_c80_5)(uint32_t opcode) /* CMP */
30422 {
30423 	uint32_t dstreg = opcode & 7;
30424 	OpcodeFamily = 25; CurrentInstrCycles = 14;
30425 {{	int32_t src = get_ilong_prefetch(2);
30426 {	int32_t dst = m68k_dreg(regs, dstreg);
30427 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30428 {	int flgs = ((int32_t)(src)) < 0;
30429 	int flgo = ((int32_t)(dst)) < 0;
30430 	int flgn = ((int32_t)(newv)) < 0;
30431 	SET_ZFLG (((int32_t)(newv)) == 0);
30432 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30433 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30434 	SET_NFLG (flgn != 0);
30435 }}}}}}m68k_incpc(6);
30436 fill_prefetch_0 ();
30437 return 14;
30438 }
CPUFUNC(op_c90_5)30439 unsigned long CPUFUNC(op_c90_5)(uint32_t opcode) /* CMP */
30440 {
30441 	uint32_t dstreg = opcode & 7;
30442 	OpcodeFamily = 25; CurrentInstrCycles = 20;
30443 {{	int32_t src = get_ilong_prefetch(2);
30444 {	uint32_t dsta = m68k_areg(regs, dstreg);
30445 	if ((dsta & 1) != 0) {
30446 		last_fault_for_exception_3 = dsta;
30447 		last_op_for_exception_3 = opcode;
30448 		last_addr_for_exception_3 = m68k_getpc() + 6;
30449 		Exception(3, 0, M68000_EXC_SRC_CPU);
30450 		goto endlabel1814;
30451 	}
30452 {{	int32_t dst = m68k_read_memory_32(dsta);
30453 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30454 {	int flgs = ((int32_t)(src)) < 0;
30455 	int flgo = ((int32_t)(dst)) < 0;
30456 	int flgn = ((int32_t)(newv)) < 0;
30457 	SET_ZFLG (((int32_t)(newv)) == 0);
30458 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30459 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30460 	SET_NFLG (flgn != 0);
30461 }}}}}}}}m68k_incpc(6);
30462 fill_prefetch_0 ();
30463 endlabel1814: ;
30464 return 20;
30465 }
CPUFUNC(op_c98_5)30466 unsigned long CPUFUNC(op_c98_5)(uint32_t opcode) /* CMP */
30467 {
30468 	uint32_t dstreg = opcode & 7;
30469 	OpcodeFamily = 25; CurrentInstrCycles = 20;
30470 {{	int32_t src = get_ilong_prefetch(2);
30471 {	uint32_t dsta = m68k_areg(regs, dstreg);
30472 	if ((dsta & 1) != 0) {
30473 		last_fault_for_exception_3 = dsta;
30474 		last_op_for_exception_3 = opcode;
30475 		last_addr_for_exception_3 = m68k_getpc() + 6;
30476 		Exception(3, 0, M68000_EXC_SRC_CPU);
30477 		goto endlabel1815;
30478 	}
30479 {{	int32_t dst = m68k_read_memory_32(dsta);
30480 	m68k_areg(regs, dstreg) += 4;
30481 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30482 {	int flgs = ((int32_t)(src)) < 0;
30483 	int flgo = ((int32_t)(dst)) < 0;
30484 	int flgn = ((int32_t)(newv)) < 0;
30485 	SET_ZFLG (((int32_t)(newv)) == 0);
30486 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30487 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30488 	SET_NFLG (flgn != 0);
30489 }}}}}}}}m68k_incpc(6);
30490 fill_prefetch_0 ();
30491 endlabel1815: ;
30492 return 20;
30493 }
CPUFUNC(op_ca0_5)30494 unsigned long CPUFUNC(op_ca0_5)(uint32_t opcode) /* CMP */
30495 {
30496 	uint32_t dstreg = opcode & 7;
30497 	OpcodeFamily = 25; CurrentInstrCycles = 22;
30498 {{	int32_t src = get_ilong_prefetch(2);
30499 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
30500 	if ((dsta & 1) != 0) {
30501 		last_fault_for_exception_3 = dsta;
30502 		last_op_for_exception_3 = opcode;
30503 		last_addr_for_exception_3 = m68k_getpc() + 6;
30504 		Exception(3, 0, M68000_EXC_SRC_CPU);
30505 		goto endlabel1816;
30506 	}
30507 {{	int32_t dst = m68k_read_memory_32(dsta);
30508 	m68k_areg (regs, dstreg) = dsta;
30509 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30510 {	int flgs = ((int32_t)(src)) < 0;
30511 	int flgo = ((int32_t)(dst)) < 0;
30512 	int flgn = ((int32_t)(newv)) < 0;
30513 	SET_ZFLG (((int32_t)(newv)) == 0);
30514 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30515 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30516 	SET_NFLG (flgn != 0);
30517 }}}}}}}}m68k_incpc(6);
30518 fill_prefetch_0 ();
30519 endlabel1816: ;
30520 return 22;
30521 }
CPUFUNC(op_ca8_5)30522 unsigned long CPUFUNC(op_ca8_5)(uint32_t opcode) /* CMP */
30523 {
30524 	uint32_t dstreg = opcode & 7;
30525 	OpcodeFamily = 25; CurrentInstrCycles = 24;
30526 {{	int32_t src = get_ilong_prefetch(2);
30527 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
30528 	if ((dsta & 1) != 0) {
30529 		last_fault_for_exception_3 = dsta;
30530 		last_op_for_exception_3 = opcode;
30531 		last_addr_for_exception_3 = m68k_getpc() + 8;
30532 		Exception(3, 0, M68000_EXC_SRC_CPU);
30533 		goto endlabel1817;
30534 	}
30535 {{	int32_t dst = m68k_read_memory_32(dsta);
30536 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30537 {	int flgs = ((int32_t)(src)) < 0;
30538 	int flgo = ((int32_t)(dst)) < 0;
30539 	int flgn = ((int32_t)(newv)) < 0;
30540 	SET_ZFLG (((int32_t)(newv)) == 0);
30541 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30542 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30543 	SET_NFLG (flgn != 0);
30544 }}}}}}}}m68k_incpc(8);
30545 fill_prefetch_0 ();
30546 endlabel1817: ;
30547 return 24;
30548 }
CPUFUNC(op_cb0_5)30549 unsigned long CPUFUNC(op_cb0_5)(uint32_t opcode) /* CMP */
30550 {
30551 	uint32_t dstreg = opcode & 7;
30552 	OpcodeFamily = 25; CurrentInstrCycles = 26;
30553 {{	int32_t src = get_ilong_prefetch(2);
30554 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
30555 	BusCyclePenalty += 2;
30556 	if ((dsta & 1) != 0) {
30557 		last_fault_for_exception_3 = dsta;
30558 		last_op_for_exception_3 = opcode;
30559 		last_addr_for_exception_3 = m68k_getpc() + 8;
30560 		Exception(3, 0, M68000_EXC_SRC_CPU);
30561 		goto endlabel1818;
30562 	}
30563 {{	int32_t dst = m68k_read_memory_32(dsta);
30564 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30565 {	int flgs = ((int32_t)(src)) < 0;
30566 	int flgo = ((int32_t)(dst)) < 0;
30567 	int flgn = ((int32_t)(newv)) < 0;
30568 	SET_ZFLG (((int32_t)(newv)) == 0);
30569 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30570 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30571 	SET_NFLG (flgn != 0);
30572 }}}}}}}}m68k_incpc(8);
30573 fill_prefetch_0 ();
30574 endlabel1818: ;
30575 return 26;
30576 }
CPUFUNC(op_cb8_5)30577 unsigned long CPUFUNC(op_cb8_5)(uint32_t opcode) /* CMP */
30578 {
30579 	OpcodeFamily = 25; CurrentInstrCycles = 24;
30580 {{	int32_t src = get_ilong_prefetch(2);
30581 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
30582 	if ((dsta & 1) != 0) {
30583 		last_fault_for_exception_3 = dsta;
30584 		last_op_for_exception_3 = opcode;
30585 		last_addr_for_exception_3 = m68k_getpc() + 8;
30586 		Exception(3, 0, M68000_EXC_SRC_CPU);
30587 		goto endlabel1819;
30588 	}
30589 {{	int32_t dst = m68k_read_memory_32(dsta);
30590 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30591 {	int flgs = ((int32_t)(src)) < 0;
30592 	int flgo = ((int32_t)(dst)) < 0;
30593 	int flgn = ((int32_t)(newv)) < 0;
30594 	SET_ZFLG (((int32_t)(newv)) == 0);
30595 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30596 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30597 	SET_NFLG (flgn != 0);
30598 }}}}}}}}m68k_incpc(8);
30599 fill_prefetch_0 ();
30600 endlabel1819: ;
30601 return 24;
30602 }
CPUFUNC(op_cb9_5)30603 unsigned long CPUFUNC(op_cb9_5)(uint32_t opcode) /* CMP */
30604 {
30605 	OpcodeFamily = 25; CurrentInstrCycles = 28;
30606 {{	int32_t src = get_ilong_prefetch(2);
30607 {	uint32_t dsta = get_ilong_prefetch(6);
30608 	if ((dsta & 1) != 0) {
30609 		last_fault_for_exception_3 = dsta;
30610 		last_op_for_exception_3 = opcode;
30611 		last_addr_for_exception_3 = m68k_getpc() + 10;
30612 		Exception(3, 0, M68000_EXC_SRC_CPU);
30613 		goto endlabel1820;
30614 	}
30615 {{	int32_t dst = m68k_read_memory_32(dsta);
30616 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30617 {	int flgs = ((int32_t)(src)) < 0;
30618 	int flgo = ((int32_t)(dst)) < 0;
30619 	int flgn = ((int32_t)(newv)) < 0;
30620 	SET_ZFLG (((int32_t)(newv)) == 0);
30621 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30622 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30623 	SET_NFLG (flgn != 0);
30624 }}}}}}}}m68k_incpc(10);
30625 fill_prefetch_0 ();
30626 endlabel1820: ;
30627 return 28;
30628 }
CPUFUNC(op_cba_5)30629 unsigned long CPUFUNC(op_cba_5)(uint32_t opcode) /* CMP */
30630 {
30631 	uint32_t dstreg = 2;
30632 	OpcodeFamily = 25; CurrentInstrCycles = 24;
30633 {{	int32_t src = get_ilong_prefetch(2);
30634 {	uint32_t dsta = m68k_getpc () + 6;
30635 	dsta += (int32_t)(int16_t)get_iword_prefetch(6);
30636 	if ((dsta & 1) != 0) {
30637 		last_fault_for_exception_3 = dsta;
30638 		last_op_for_exception_3 = opcode;
30639 		last_addr_for_exception_3 = m68k_getpc() + 8;
30640 		Exception(3, 0, M68000_EXC_SRC_CPU);
30641 		goto endlabel1821;
30642 	}
30643 {{	int32_t dst = m68k_read_memory_32(dsta);
30644 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30645 {	int flgs = ((int32_t)(src)) < 0;
30646 	int flgo = ((int32_t)(dst)) < 0;
30647 	int flgn = ((int32_t)(newv)) < 0;
30648 	SET_ZFLG (((int32_t)(newv)) == 0);
30649 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30650 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30651 	SET_NFLG (flgn != 0);
30652 }}}}}}}}m68k_incpc(8);
30653 fill_prefetch_0 ();
30654 endlabel1821: ;
30655 return 24;
30656 }
CPUFUNC(op_cbb_5)30657 unsigned long CPUFUNC(op_cbb_5)(uint32_t opcode) /* CMP */
30658 {
30659 	uint32_t dstreg = 3;
30660 	OpcodeFamily = 25; CurrentInstrCycles = 26;
30661 {{	int32_t src = get_ilong_prefetch(2);
30662 {	uint32_t tmppc = m68k_getpc() + 6;
30663 	uint32_t dsta = get_disp_ea_000(tmppc, get_iword_prefetch(6));
30664 	BusCyclePenalty += 2;
30665 	if ((dsta & 1) != 0) {
30666 		last_fault_for_exception_3 = dsta;
30667 		last_op_for_exception_3 = opcode;
30668 		last_addr_for_exception_3 = m68k_getpc() + 8;
30669 		Exception(3, 0, M68000_EXC_SRC_CPU);
30670 		goto endlabel1822;
30671 	}
30672 {{	int32_t dst = m68k_read_memory_32(dsta);
30673 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
30674 {	int flgs = ((int32_t)(src)) < 0;
30675 	int flgo = ((int32_t)(dst)) < 0;
30676 	int flgn = ((int32_t)(newv)) < 0;
30677 	SET_ZFLG (((int32_t)(newv)) == 0);
30678 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
30679 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
30680 	SET_NFLG (flgn != 0);
30681 }}}}}}}}m68k_incpc(8);
30682 fill_prefetch_0 ();
30683 endlabel1822: ;
30684 return 26;
30685 }
CPUFUNC(op_1000_5)30686 unsigned long CPUFUNC(op_1000_5)(uint32_t opcode) /* MOVE */
30687 {
30688 	uint32_t srcreg = (opcode & 7);
30689 	uint32_t dstreg = (opcode >> 9) & 7;
30690 	OpcodeFamily = 30; CurrentInstrCycles = 4;
30691 {{	int8_t src = m68k_dreg(regs, srcreg);
30692 {	CLEAR_CZNV;
30693 	SET_ZFLG (((int8_t)(src)) == 0);
30694 	SET_NFLG (((int8_t)(src)) < 0);
30695 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30696 }}}m68k_incpc(2);
30697 fill_prefetch_2 ();
30698 return 4;
30699 }
CPUFUNC(op_1008_5)30700 unsigned long CPUFUNC(op_1008_5)(uint32_t opcode) /* MOVE */
30701 {
30702 	uint32_t srcreg = (opcode & 7);
30703 	uint32_t dstreg = (opcode >> 9) & 7;
30704 	OpcodeFamily = 30; CurrentInstrCycles = 4;
30705 {{	int8_t src = m68k_areg(regs, srcreg);
30706 {	CLEAR_CZNV;
30707 	SET_ZFLG (((int8_t)(src)) == 0);
30708 	SET_NFLG (((int8_t)(src)) < 0);
30709 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30710 }}}m68k_incpc(2);
30711 fill_prefetch_2 ();
30712 return 4;
30713 }
CPUFUNC(op_1010_5)30714 unsigned long CPUFUNC(op_1010_5)(uint32_t opcode) /* MOVE */
30715 {
30716 	uint32_t srcreg = (opcode & 7);
30717 	uint32_t dstreg = (opcode >> 9) & 7;
30718 	OpcodeFamily = 30; CurrentInstrCycles = 8;
30719 {{	uint32_t srca = m68k_areg(regs, srcreg);
30720 {	int8_t src = m68k_read_memory_8(srca);
30721 {	CLEAR_CZNV;
30722 	SET_ZFLG (((int8_t)(src)) == 0);
30723 	SET_NFLG (((int8_t)(src)) < 0);
30724 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30725 }}}}m68k_incpc(2);
30726 fill_prefetch_2 ();
30727 return 8;
30728 }
CPUFUNC(op_1018_5)30729 unsigned long CPUFUNC(op_1018_5)(uint32_t opcode) /* MOVE */
30730 {
30731 	uint32_t srcreg = (opcode & 7);
30732 	uint32_t dstreg = (opcode >> 9) & 7;
30733 	OpcodeFamily = 30; CurrentInstrCycles = 8;
30734 {{	uint32_t srca = m68k_areg(regs, srcreg);
30735 {	int8_t src = m68k_read_memory_8(srca);
30736 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
30737 {	CLEAR_CZNV;
30738 	SET_ZFLG (((int8_t)(src)) == 0);
30739 	SET_NFLG (((int8_t)(src)) < 0);
30740 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30741 }}}}m68k_incpc(2);
30742 fill_prefetch_2 ();
30743 return 8;
30744 }
CPUFUNC(op_1020_5)30745 unsigned long CPUFUNC(op_1020_5)(uint32_t opcode) /* MOVE */
30746 {
30747 	uint32_t srcreg = (opcode & 7);
30748 	uint32_t dstreg = (opcode >> 9) & 7;
30749 	OpcodeFamily = 30; CurrentInstrCycles = 10;
30750 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
30751 {	int8_t src = m68k_read_memory_8(srca);
30752 	m68k_areg (regs, srcreg) = srca;
30753 {	CLEAR_CZNV;
30754 	SET_ZFLG (((int8_t)(src)) == 0);
30755 	SET_NFLG (((int8_t)(src)) < 0);
30756 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30757 }}}}m68k_incpc(2);
30758 fill_prefetch_2 ();
30759 return 10;
30760 }
CPUFUNC(op_1028_5)30761 unsigned long CPUFUNC(op_1028_5)(uint32_t opcode) /* MOVE */
30762 {
30763 	uint32_t srcreg = (opcode & 7);
30764 	uint32_t dstreg = (opcode >> 9) & 7;
30765 	OpcodeFamily = 30; CurrentInstrCycles = 12;
30766 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
30767 {	int8_t src = m68k_read_memory_8(srca);
30768 {	CLEAR_CZNV;
30769 	SET_ZFLG (((int8_t)(src)) == 0);
30770 	SET_NFLG (((int8_t)(src)) < 0);
30771 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30772 }}}}m68k_incpc(4);
30773 fill_prefetch_0 ();
30774 return 12;
30775 }
CPUFUNC(op_1030_5)30776 unsigned long CPUFUNC(op_1030_5)(uint32_t opcode) /* MOVE */
30777 {
30778 	uint32_t srcreg = (opcode & 7);
30779 	uint32_t dstreg = (opcode >> 9) & 7;
30780 	OpcodeFamily = 30; CurrentInstrCycles = 14;
30781 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
30782 	BusCyclePenalty += 2;
30783 {	int8_t src = m68k_read_memory_8(srca);
30784 {	CLEAR_CZNV;
30785 	SET_ZFLG (((int8_t)(src)) == 0);
30786 	SET_NFLG (((int8_t)(src)) < 0);
30787 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30788 }}}}m68k_incpc(4);
30789 fill_prefetch_0 ();
30790 return 14;
30791 }
CPUFUNC(op_1038_5)30792 unsigned long CPUFUNC(op_1038_5)(uint32_t opcode) /* MOVE */
30793 {
30794 	uint32_t dstreg = (opcode >> 9) & 7;
30795 	OpcodeFamily = 30; CurrentInstrCycles = 12;
30796 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
30797 {	int8_t src = m68k_read_memory_8(srca);
30798 {	CLEAR_CZNV;
30799 	SET_ZFLG (((int8_t)(src)) == 0);
30800 	SET_NFLG (((int8_t)(src)) < 0);
30801 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30802 }}}}m68k_incpc(4);
30803 fill_prefetch_0 ();
30804 return 12;
30805 }
CPUFUNC(op_1039_5)30806 unsigned long CPUFUNC(op_1039_5)(uint32_t opcode) /* MOVE */
30807 {
30808 	uint32_t dstreg = (opcode >> 9) & 7;
30809 	OpcodeFamily = 30; CurrentInstrCycles = 16;
30810 {{	uint32_t srca = get_ilong_prefetch(2);
30811 {	int8_t src = m68k_read_memory_8(srca);
30812 {	CLEAR_CZNV;
30813 	SET_ZFLG (((int8_t)(src)) == 0);
30814 	SET_NFLG (((int8_t)(src)) < 0);
30815 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30816 }}}}m68k_incpc(6);
30817 fill_prefetch_0 ();
30818 return 16;
30819 }
CPUFUNC(op_103a_5)30820 unsigned long CPUFUNC(op_103a_5)(uint32_t opcode) /* MOVE */
30821 {
30822 	uint32_t dstreg = (opcode >> 9) & 7;
30823 	OpcodeFamily = 30; CurrentInstrCycles = 12;
30824 {{	uint32_t srca = m68k_getpc () + 2;
30825 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
30826 {	int8_t src = m68k_read_memory_8(srca);
30827 {	CLEAR_CZNV;
30828 	SET_ZFLG (((int8_t)(src)) == 0);
30829 	SET_NFLG (((int8_t)(src)) < 0);
30830 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30831 }}}}m68k_incpc(4);
30832 fill_prefetch_0 ();
30833 return 12;
30834 }
CPUFUNC(op_103b_5)30835 unsigned long CPUFUNC(op_103b_5)(uint32_t opcode) /* MOVE */
30836 {
30837 	uint32_t dstreg = (opcode >> 9) & 7;
30838 	OpcodeFamily = 30; CurrentInstrCycles = 14;
30839 {{	uint32_t tmppc = m68k_getpc() + 2;
30840 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
30841 	BusCyclePenalty += 2;
30842 {	int8_t src = m68k_read_memory_8(srca);
30843 {	CLEAR_CZNV;
30844 	SET_ZFLG (((int8_t)(src)) == 0);
30845 	SET_NFLG (((int8_t)(src)) < 0);
30846 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30847 }}}}m68k_incpc(4);
30848 fill_prefetch_0 ();
30849 return 14;
30850 }
CPUFUNC(op_103c_5)30851 unsigned long CPUFUNC(op_103c_5)(uint32_t opcode) /* MOVE */
30852 {
30853 	uint32_t dstreg = (opcode >> 9) & 7;
30854 	OpcodeFamily = 30; CurrentInstrCycles = 8;
30855 {{	int8_t src = get_ibyte_prefetch(2);
30856 {	CLEAR_CZNV;
30857 	SET_ZFLG (((int8_t)(src)) == 0);
30858 	SET_NFLG (((int8_t)(src)) < 0);
30859 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
30860 }}}m68k_incpc(4);
30861 fill_prefetch_0 ();
30862 return 8;
30863 }
CPUFUNC(op_1080_5)30864 unsigned long CPUFUNC(op_1080_5)(uint32_t opcode) /* MOVE */
30865 {
30866 	uint32_t srcreg = (opcode & 7);
30867 	uint32_t dstreg = (opcode >> 9) & 7;
30868 	OpcodeFamily = 30; CurrentInstrCycles = 8;
30869 {{	int8_t src = m68k_dreg(regs, srcreg);
30870 {	uint32_t dsta = m68k_areg(regs, dstreg);
30871 	CLEAR_CZNV;
30872 	SET_ZFLG (((int8_t)(src)) == 0);
30873 	SET_NFLG (((int8_t)(src)) < 0);
30874 m68k_incpc(2);
30875 fill_prefetch_2 ();
30876 	m68k_write_memory_8(dsta,src);
30877 }}}return 8;
30878 }
CPUFUNC(op_1088_5)30879 unsigned long CPUFUNC(op_1088_5)(uint32_t opcode) /* MOVE */
30880 {
30881 	uint32_t srcreg = (opcode & 7);
30882 	uint32_t dstreg = (opcode >> 9) & 7;
30883 	OpcodeFamily = 30; CurrentInstrCycles = 8;
30884 {{	int8_t src = m68k_areg(regs, srcreg);
30885 {	uint32_t dsta = m68k_areg(regs, dstreg);
30886 	CLEAR_CZNV;
30887 	SET_ZFLG (((int8_t)(src)) == 0);
30888 	SET_NFLG (((int8_t)(src)) < 0);
30889 m68k_incpc(2);
30890 fill_prefetch_2 ();
30891 	m68k_write_memory_8(dsta,src);
30892 }}}return 8;
30893 }
CPUFUNC(op_1090_5)30894 unsigned long CPUFUNC(op_1090_5)(uint32_t opcode) /* MOVE */
30895 {
30896 	uint32_t srcreg = (opcode & 7);
30897 	uint32_t dstreg = (opcode >> 9) & 7;
30898 	OpcodeFamily = 30; CurrentInstrCycles = 12;
30899 {{	uint32_t srca = m68k_areg(regs, srcreg);
30900 {	int8_t src = m68k_read_memory_8(srca);
30901 {	uint32_t dsta = m68k_areg(regs, dstreg);
30902 	CLEAR_CZNV;
30903 	SET_ZFLG (((int8_t)(src)) == 0);
30904 	SET_NFLG (((int8_t)(src)) < 0);
30905 m68k_incpc(2);
30906 fill_prefetch_2 ();
30907 	m68k_write_memory_8(dsta,src);
30908 }}}}return 12;
30909 }
CPUFUNC(op_1098_5)30910 unsigned long CPUFUNC(op_1098_5)(uint32_t opcode) /* MOVE */
30911 {
30912 	uint32_t srcreg = (opcode & 7);
30913 	uint32_t dstreg = (opcode >> 9) & 7;
30914 	OpcodeFamily = 30; CurrentInstrCycles = 12;
30915 {{	uint32_t srca = m68k_areg(regs, srcreg);
30916 {	int8_t src = m68k_read_memory_8(srca);
30917 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
30918 {	uint32_t dsta = m68k_areg(regs, dstreg);
30919 	CLEAR_CZNV;
30920 	SET_ZFLG (((int8_t)(src)) == 0);
30921 	SET_NFLG (((int8_t)(src)) < 0);
30922 m68k_incpc(2);
30923 fill_prefetch_2 ();
30924 	m68k_write_memory_8(dsta,src);
30925 }}}}return 12;
30926 }
CPUFUNC(op_10a0_5)30927 unsigned long CPUFUNC(op_10a0_5)(uint32_t opcode) /* MOVE */
30928 {
30929 	uint32_t srcreg = (opcode & 7);
30930 	uint32_t dstreg = (opcode >> 9) & 7;
30931 	OpcodeFamily = 30; CurrentInstrCycles = 14;
30932 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
30933 {	int8_t src = m68k_read_memory_8(srca);
30934 	m68k_areg (regs, srcreg) = srca;
30935 {	uint32_t dsta = m68k_areg(regs, dstreg);
30936 	CLEAR_CZNV;
30937 	SET_ZFLG (((int8_t)(src)) == 0);
30938 	SET_NFLG (((int8_t)(src)) < 0);
30939 m68k_incpc(2);
30940 fill_prefetch_2 ();
30941 	m68k_write_memory_8(dsta,src);
30942 }}}}return 14;
30943 }
CPUFUNC(op_10a8_5)30944 unsigned long CPUFUNC(op_10a8_5)(uint32_t opcode) /* MOVE */
30945 {
30946 	uint32_t srcreg = (opcode & 7);
30947 	uint32_t dstreg = (opcode >> 9) & 7;
30948 	OpcodeFamily = 30; CurrentInstrCycles = 16;
30949 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
30950 {	int8_t src = m68k_read_memory_8(srca);
30951 {	uint32_t dsta = m68k_areg(regs, dstreg);
30952 	CLEAR_CZNV;
30953 	SET_ZFLG (((int8_t)(src)) == 0);
30954 	SET_NFLG (((int8_t)(src)) < 0);
30955 m68k_incpc(4);
30956 fill_prefetch_0 ();
30957 	m68k_write_memory_8(dsta,src);
30958 }}}}return 16;
30959 }
CPUFUNC(op_10b0_5)30960 unsigned long CPUFUNC(op_10b0_5)(uint32_t opcode) /* MOVE */
30961 {
30962 	uint32_t srcreg = (opcode & 7);
30963 	uint32_t dstreg = (opcode >> 9) & 7;
30964 	OpcodeFamily = 30; CurrentInstrCycles = 18;
30965 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
30966 	BusCyclePenalty += 2;
30967 {	int8_t src = m68k_read_memory_8(srca);
30968 {	uint32_t dsta = m68k_areg(regs, dstreg);
30969 	CLEAR_CZNV;
30970 	SET_ZFLG (((int8_t)(src)) == 0);
30971 	SET_NFLG (((int8_t)(src)) < 0);
30972 m68k_incpc(4);
30973 fill_prefetch_0 ();
30974 	m68k_write_memory_8(dsta,src);
30975 }}}}return 18;
30976 }
CPUFUNC(op_10b8_5)30977 unsigned long CPUFUNC(op_10b8_5)(uint32_t opcode) /* MOVE */
30978 {
30979 	uint32_t dstreg = (opcode >> 9) & 7;
30980 	OpcodeFamily = 30; CurrentInstrCycles = 16;
30981 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
30982 {	int8_t src = m68k_read_memory_8(srca);
30983 {	uint32_t dsta = m68k_areg(regs, dstreg);
30984 	CLEAR_CZNV;
30985 	SET_ZFLG (((int8_t)(src)) == 0);
30986 	SET_NFLG (((int8_t)(src)) < 0);
30987 m68k_incpc(4);
30988 fill_prefetch_0 ();
30989 	m68k_write_memory_8(dsta,src);
30990 }}}}return 16;
30991 }
CPUFUNC(op_10b9_5)30992 unsigned long CPUFUNC(op_10b9_5)(uint32_t opcode) /* MOVE */
30993 {
30994 	uint32_t dstreg = (opcode >> 9) & 7;
30995 	OpcodeFamily = 30; CurrentInstrCycles = 20;
30996 {{	uint32_t srca = get_ilong_prefetch(2);
30997 {	int8_t src = m68k_read_memory_8(srca);
30998 {	uint32_t dsta = m68k_areg(regs, dstreg);
30999 	CLEAR_CZNV;
31000 	SET_ZFLG (((int8_t)(src)) == 0);
31001 	SET_NFLG (((int8_t)(src)) < 0);
31002 m68k_incpc(6);
31003 fill_prefetch_0 ();
31004 	m68k_write_memory_8(dsta,src);
31005 }}}}return 20;
31006 }
CPUFUNC(op_10ba_5)31007 unsigned long CPUFUNC(op_10ba_5)(uint32_t opcode) /* MOVE */
31008 {
31009 	uint32_t dstreg = (opcode >> 9) & 7;
31010 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31011 {{	uint32_t srca = m68k_getpc () + 2;
31012 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
31013 {	int8_t src = m68k_read_memory_8(srca);
31014 {	uint32_t dsta = m68k_areg(regs, dstreg);
31015 	CLEAR_CZNV;
31016 	SET_ZFLG (((int8_t)(src)) == 0);
31017 	SET_NFLG (((int8_t)(src)) < 0);
31018 m68k_incpc(4);
31019 fill_prefetch_0 ();
31020 	m68k_write_memory_8(dsta,src);
31021 }}}}return 16;
31022 }
CPUFUNC(op_10bb_5)31023 unsigned long CPUFUNC(op_10bb_5)(uint32_t opcode) /* MOVE */
31024 {
31025 	uint32_t dstreg = (opcode >> 9) & 7;
31026 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31027 {{	uint32_t tmppc = m68k_getpc() + 2;
31028 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
31029 	BusCyclePenalty += 2;
31030 {	int8_t src = m68k_read_memory_8(srca);
31031 {	uint32_t dsta = m68k_areg(regs, dstreg);
31032 	CLEAR_CZNV;
31033 	SET_ZFLG (((int8_t)(src)) == 0);
31034 	SET_NFLG (((int8_t)(src)) < 0);
31035 m68k_incpc(4);
31036 fill_prefetch_0 ();
31037 	m68k_write_memory_8(dsta,src);
31038 }}}}return 18;
31039 }
CPUFUNC(op_10bc_5)31040 unsigned long CPUFUNC(op_10bc_5)(uint32_t opcode) /* MOVE */
31041 {
31042 	uint32_t dstreg = (opcode >> 9) & 7;
31043 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31044 {{	int8_t src = get_ibyte_prefetch(2);
31045 {	uint32_t dsta = m68k_areg(regs, dstreg);
31046 	CLEAR_CZNV;
31047 	SET_ZFLG (((int8_t)(src)) == 0);
31048 	SET_NFLG (((int8_t)(src)) < 0);
31049 m68k_incpc(4);
31050 fill_prefetch_0 ();
31051 	m68k_write_memory_8(dsta,src);
31052 }}}return 12;
31053 }
CPUFUNC(op_10c0_5)31054 unsigned long CPUFUNC(op_10c0_5)(uint32_t opcode) /* MOVE */
31055 {
31056 	uint32_t srcreg = (opcode & 7);
31057 	uint32_t dstreg = (opcode >> 9) & 7;
31058 	OpcodeFamily = 30; CurrentInstrCycles = 8;
31059 {{	int8_t src = m68k_dreg(regs, srcreg);
31060 {	uint32_t dsta = m68k_areg(regs, dstreg);
31061 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31062 	CLEAR_CZNV;
31063 	SET_ZFLG (((int8_t)(src)) == 0);
31064 	SET_NFLG (((int8_t)(src)) < 0);
31065 m68k_incpc(2);
31066 fill_prefetch_2 ();
31067 	m68k_write_memory_8(dsta,src);
31068 }}}return 8;
31069 }
CPUFUNC(op_10c8_5)31070 unsigned long CPUFUNC(op_10c8_5)(uint32_t opcode) /* MOVE */
31071 {
31072 	uint32_t srcreg = (opcode & 7);
31073 	uint32_t dstreg = (opcode >> 9) & 7;
31074 	OpcodeFamily = 30; CurrentInstrCycles = 8;
31075 {{	int8_t src = m68k_areg(regs, srcreg);
31076 {	uint32_t dsta = m68k_areg(regs, dstreg);
31077 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31078 	CLEAR_CZNV;
31079 	SET_ZFLG (((int8_t)(src)) == 0);
31080 	SET_NFLG (((int8_t)(src)) < 0);
31081 m68k_incpc(2);
31082 fill_prefetch_2 ();
31083 	m68k_write_memory_8(dsta,src);
31084 }}}return 8;
31085 }
CPUFUNC(op_10d0_5)31086 unsigned long CPUFUNC(op_10d0_5)(uint32_t opcode) /* MOVE */
31087 {
31088 	uint32_t srcreg = (opcode & 7);
31089 	uint32_t dstreg = (opcode >> 9) & 7;
31090 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31091 {{	uint32_t srca = m68k_areg(regs, srcreg);
31092 {	int8_t src = m68k_read_memory_8(srca);
31093 {	uint32_t dsta = m68k_areg(regs, dstreg);
31094 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31095 	CLEAR_CZNV;
31096 	SET_ZFLG (((int8_t)(src)) == 0);
31097 	SET_NFLG (((int8_t)(src)) < 0);
31098 m68k_incpc(2);
31099 fill_prefetch_2 ();
31100 	m68k_write_memory_8(dsta,src);
31101 }}}}return 12;
31102 }
CPUFUNC(op_10d8_5)31103 unsigned long CPUFUNC(op_10d8_5)(uint32_t opcode) /* MOVE */
31104 {
31105 	uint32_t srcreg = (opcode & 7);
31106 	uint32_t dstreg = (opcode >> 9) & 7;
31107 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31108 {{	uint32_t srca = m68k_areg(regs, srcreg);
31109 {	int8_t src = m68k_read_memory_8(srca);
31110 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
31111 {	uint32_t dsta = m68k_areg(regs, dstreg);
31112 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31113 	CLEAR_CZNV;
31114 	SET_ZFLG (((int8_t)(src)) == 0);
31115 	SET_NFLG (((int8_t)(src)) < 0);
31116 m68k_incpc(2);
31117 fill_prefetch_2 ();
31118 	m68k_write_memory_8(dsta,src);
31119 }}}}return 12;
31120 }
CPUFUNC(op_10e0_5)31121 unsigned long CPUFUNC(op_10e0_5)(uint32_t opcode) /* MOVE */
31122 {
31123 	uint32_t srcreg = (opcode & 7);
31124 	uint32_t dstreg = (opcode >> 9) & 7;
31125 	OpcodeFamily = 30; CurrentInstrCycles = 14;
31126 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
31127 {	int8_t src = m68k_read_memory_8(srca);
31128 	m68k_areg (regs, srcreg) = srca;
31129 {	uint32_t dsta = m68k_areg(regs, dstreg);
31130 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31131 	CLEAR_CZNV;
31132 	SET_ZFLG (((int8_t)(src)) == 0);
31133 	SET_NFLG (((int8_t)(src)) < 0);
31134 m68k_incpc(2);
31135 fill_prefetch_2 ();
31136 	m68k_write_memory_8(dsta,src);
31137 }}}}return 14;
31138 }
CPUFUNC(op_10e8_5)31139 unsigned long CPUFUNC(op_10e8_5)(uint32_t opcode) /* MOVE */
31140 {
31141 	uint32_t srcreg = (opcode & 7);
31142 	uint32_t dstreg = (opcode >> 9) & 7;
31143 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31144 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31145 {	int8_t src = m68k_read_memory_8(srca);
31146 {	uint32_t dsta = m68k_areg(regs, dstreg);
31147 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31148 	CLEAR_CZNV;
31149 	SET_ZFLG (((int8_t)(src)) == 0);
31150 	SET_NFLG (((int8_t)(src)) < 0);
31151 m68k_incpc(4);
31152 fill_prefetch_0 ();
31153 	m68k_write_memory_8(dsta,src);
31154 }}}}return 16;
31155 }
CPUFUNC(op_10f0_5)31156 unsigned long CPUFUNC(op_10f0_5)(uint32_t opcode) /* MOVE */
31157 {
31158 	uint32_t srcreg = (opcode & 7);
31159 	uint32_t dstreg = (opcode >> 9) & 7;
31160 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31161 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
31162 	BusCyclePenalty += 2;
31163 {	int8_t src = m68k_read_memory_8(srca);
31164 {	uint32_t dsta = m68k_areg(regs, dstreg);
31165 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31166 	CLEAR_CZNV;
31167 	SET_ZFLG (((int8_t)(src)) == 0);
31168 	SET_NFLG (((int8_t)(src)) < 0);
31169 m68k_incpc(4);
31170 fill_prefetch_0 ();
31171 	m68k_write_memory_8(dsta,src);
31172 }}}}return 18;
31173 }
CPUFUNC(op_10f8_5)31174 unsigned long CPUFUNC(op_10f8_5)(uint32_t opcode) /* MOVE */
31175 {
31176 	uint32_t dstreg = (opcode >> 9) & 7;
31177 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31178 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
31179 {	int8_t src = m68k_read_memory_8(srca);
31180 {	uint32_t dsta = m68k_areg(regs, dstreg);
31181 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31182 	CLEAR_CZNV;
31183 	SET_ZFLG (((int8_t)(src)) == 0);
31184 	SET_NFLG (((int8_t)(src)) < 0);
31185 m68k_incpc(4);
31186 fill_prefetch_0 ();
31187 	m68k_write_memory_8(dsta,src);
31188 }}}}return 16;
31189 }
CPUFUNC(op_10f9_5)31190 unsigned long CPUFUNC(op_10f9_5)(uint32_t opcode) /* MOVE */
31191 {
31192 	uint32_t dstreg = (opcode >> 9) & 7;
31193 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31194 {{	uint32_t srca = get_ilong_prefetch(2);
31195 {	int8_t src = m68k_read_memory_8(srca);
31196 {	uint32_t dsta = m68k_areg(regs, dstreg);
31197 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31198 	CLEAR_CZNV;
31199 	SET_ZFLG (((int8_t)(src)) == 0);
31200 	SET_NFLG (((int8_t)(src)) < 0);
31201 m68k_incpc(6);
31202 fill_prefetch_0 ();
31203 	m68k_write_memory_8(dsta,src);
31204 }}}}return 20;
31205 }
CPUFUNC(op_10fa_5)31206 unsigned long CPUFUNC(op_10fa_5)(uint32_t opcode) /* MOVE */
31207 {
31208 	uint32_t dstreg = (opcode >> 9) & 7;
31209 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31210 {{	uint32_t srca = m68k_getpc () + 2;
31211 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
31212 {	int8_t src = m68k_read_memory_8(srca);
31213 {	uint32_t dsta = m68k_areg(regs, dstreg);
31214 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31215 	CLEAR_CZNV;
31216 	SET_ZFLG (((int8_t)(src)) == 0);
31217 	SET_NFLG (((int8_t)(src)) < 0);
31218 m68k_incpc(4);
31219 fill_prefetch_0 ();
31220 	m68k_write_memory_8(dsta,src);
31221 }}}}return 16;
31222 }
CPUFUNC(op_10fb_5)31223 unsigned long CPUFUNC(op_10fb_5)(uint32_t opcode) /* MOVE */
31224 {
31225 	uint32_t dstreg = (opcode >> 9) & 7;
31226 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31227 {{	uint32_t tmppc = m68k_getpc() + 2;
31228 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
31229 	BusCyclePenalty += 2;
31230 {	int8_t src = m68k_read_memory_8(srca);
31231 {	uint32_t dsta = m68k_areg(regs, dstreg);
31232 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31233 	CLEAR_CZNV;
31234 	SET_ZFLG (((int8_t)(src)) == 0);
31235 	SET_NFLG (((int8_t)(src)) < 0);
31236 m68k_incpc(4);
31237 fill_prefetch_0 ();
31238 	m68k_write_memory_8(dsta,src);
31239 }}}}return 18;
31240 }
CPUFUNC(op_10fc_5)31241 unsigned long CPUFUNC(op_10fc_5)(uint32_t opcode) /* MOVE */
31242 {
31243 	uint32_t dstreg = (opcode >> 9) & 7;
31244 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31245 {{	int8_t src = get_ibyte_prefetch(2);
31246 {	uint32_t dsta = m68k_areg(regs, dstreg);
31247 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
31248 	CLEAR_CZNV;
31249 	SET_ZFLG (((int8_t)(src)) == 0);
31250 	SET_NFLG (((int8_t)(src)) < 0);
31251 m68k_incpc(4);
31252 fill_prefetch_0 ();
31253 	m68k_write_memory_8(dsta,src);
31254 }}}return 12;
31255 }
CPUFUNC(op_1100_5)31256 unsigned long CPUFUNC(op_1100_5)(uint32_t opcode) /* MOVE */
31257 {
31258 	uint32_t srcreg = (opcode & 7);
31259 	uint32_t dstreg = (opcode >> 9) & 7;
31260 	OpcodeFamily = 30; CurrentInstrCycles = 8;
31261 {{	int8_t src = m68k_dreg(regs, srcreg);
31262 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31263 	m68k_areg (regs, dstreg) = dsta;
31264 	CLEAR_CZNV;
31265 	SET_ZFLG (((int8_t)(src)) == 0);
31266 	SET_NFLG (((int8_t)(src)) < 0);
31267 m68k_incpc(2);
31268 fill_prefetch_2 ();
31269 	m68k_write_memory_8(dsta,src);
31270 }}}return 8;
31271 }
CPUFUNC(op_1108_5)31272 unsigned long CPUFUNC(op_1108_5)(uint32_t opcode) /* MOVE */
31273 {
31274 	uint32_t srcreg = (opcode & 7);
31275 	uint32_t dstreg = (opcode >> 9) & 7;
31276 	OpcodeFamily = 30; CurrentInstrCycles = 8;
31277 {{	int8_t src = m68k_areg(regs, srcreg);
31278 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31279 	m68k_areg (regs, dstreg) = dsta;
31280 	CLEAR_CZNV;
31281 	SET_ZFLG (((int8_t)(src)) == 0);
31282 	SET_NFLG (((int8_t)(src)) < 0);
31283 m68k_incpc(2);
31284 fill_prefetch_2 ();
31285 	m68k_write_memory_8(dsta,src);
31286 }}}return 8;
31287 }
CPUFUNC(op_1110_5)31288 unsigned long CPUFUNC(op_1110_5)(uint32_t opcode) /* MOVE */
31289 {
31290 	uint32_t srcreg = (opcode & 7);
31291 	uint32_t dstreg = (opcode >> 9) & 7;
31292 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31293 {{	uint32_t srca = m68k_areg(regs, srcreg);
31294 {	int8_t src = m68k_read_memory_8(srca);
31295 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31296 	m68k_areg (regs, dstreg) = dsta;
31297 	CLEAR_CZNV;
31298 	SET_ZFLG (((int8_t)(src)) == 0);
31299 	SET_NFLG (((int8_t)(src)) < 0);
31300 m68k_incpc(2);
31301 fill_prefetch_2 ();
31302 	m68k_write_memory_8(dsta,src);
31303 }}}}return 12;
31304 }
CPUFUNC(op_1118_5)31305 unsigned long CPUFUNC(op_1118_5)(uint32_t opcode) /* MOVE */
31306 {
31307 	uint32_t srcreg = (opcode & 7);
31308 	uint32_t dstreg = (opcode >> 9) & 7;
31309 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31310 {{	uint32_t srca = m68k_areg(regs, srcreg);
31311 {	int8_t src = m68k_read_memory_8(srca);
31312 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
31313 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31314 	m68k_areg (regs, dstreg) = dsta;
31315 	CLEAR_CZNV;
31316 	SET_ZFLG (((int8_t)(src)) == 0);
31317 	SET_NFLG (((int8_t)(src)) < 0);
31318 m68k_incpc(2);
31319 fill_prefetch_2 ();
31320 	m68k_write_memory_8(dsta,src);
31321 }}}}return 12;
31322 }
CPUFUNC(op_1120_5)31323 unsigned long CPUFUNC(op_1120_5)(uint32_t opcode) /* MOVE */
31324 {
31325 	uint32_t srcreg = (opcode & 7);
31326 	uint32_t dstreg = (opcode >> 9) & 7;
31327 	OpcodeFamily = 30; CurrentInstrCycles = 14;
31328 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
31329 {	int8_t src = m68k_read_memory_8(srca);
31330 	m68k_areg (regs, srcreg) = srca;
31331 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31332 	m68k_areg (regs, dstreg) = dsta;
31333 	CLEAR_CZNV;
31334 	SET_ZFLG (((int8_t)(src)) == 0);
31335 	SET_NFLG (((int8_t)(src)) < 0);
31336 m68k_incpc(2);
31337 fill_prefetch_2 ();
31338 	m68k_write_memory_8(dsta,src);
31339 }}}}return 14;
31340 }
CPUFUNC(op_1128_5)31341 unsigned long CPUFUNC(op_1128_5)(uint32_t opcode) /* MOVE */
31342 {
31343 	uint32_t srcreg = (opcode & 7);
31344 	uint32_t dstreg = (opcode >> 9) & 7;
31345 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31346 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31347 {	int8_t src = m68k_read_memory_8(srca);
31348 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31349 	m68k_areg (regs, dstreg) = dsta;
31350 	CLEAR_CZNV;
31351 	SET_ZFLG (((int8_t)(src)) == 0);
31352 	SET_NFLG (((int8_t)(src)) < 0);
31353 m68k_incpc(4);
31354 fill_prefetch_0 ();
31355 	m68k_write_memory_8(dsta,src);
31356 }}}}return 16;
31357 }
CPUFUNC(op_1130_5)31358 unsigned long CPUFUNC(op_1130_5)(uint32_t opcode) /* MOVE */
31359 {
31360 	uint32_t srcreg = (opcode & 7);
31361 	uint32_t dstreg = (opcode >> 9) & 7;
31362 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31363 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
31364 	BusCyclePenalty += 2;
31365 {	int8_t src = m68k_read_memory_8(srca);
31366 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31367 	m68k_areg (regs, dstreg) = dsta;
31368 	CLEAR_CZNV;
31369 	SET_ZFLG (((int8_t)(src)) == 0);
31370 	SET_NFLG (((int8_t)(src)) < 0);
31371 m68k_incpc(4);
31372 fill_prefetch_0 ();
31373 	m68k_write_memory_8(dsta,src);
31374 }}}}return 18;
31375 }
CPUFUNC(op_1138_5)31376 unsigned long CPUFUNC(op_1138_5)(uint32_t opcode) /* MOVE */
31377 {
31378 	uint32_t dstreg = (opcode >> 9) & 7;
31379 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31380 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
31381 {	int8_t src = m68k_read_memory_8(srca);
31382 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31383 	m68k_areg (regs, dstreg) = dsta;
31384 	CLEAR_CZNV;
31385 	SET_ZFLG (((int8_t)(src)) == 0);
31386 	SET_NFLG (((int8_t)(src)) < 0);
31387 m68k_incpc(4);
31388 fill_prefetch_0 ();
31389 	m68k_write_memory_8(dsta,src);
31390 }}}}return 16;
31391 }
CPUFUNC(op_1139_5)31392 unsigned long CPUFUNC(op_1139_5)(uint32_t opcode) /* MOVE */
31393 {
31394 	uint32_t dstreg = (opcode >> 9) & 7;
31395 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31396 {{	uint32_t srca = get_ilong_prefetch(2);
31397 {	int8_t src = m68k_read_memory_8(srca);
31398 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31399 	m68k_areg (regs, dstreg) = dsta;
31400 	CLEAR_CZNV;
31401 	SET_ZFLG (((int8_t)(src)) == 0);
31402 	SET_NFLG (((int8_t)(src)) < 0);
31403 m68k_incpc(6);
31404 fill_prefetch_0 ();
31405 	m68k_write_memory_8(dsta,src);
31406 }}}}return 20;
31407 }
CPUFUNC(op_113a_5)31408 unsigned long CPUFUNC(op_113a_5)(uint32_t opcode) /* MOVE */
31409 {
31410 	uint32_t dstreg = (opcode >> 9) & 7;
31411 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31412 {{	uint32_t srca = m68k_getpc () + 2;
31413 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
31414 {	int8_t src = m68k_read_memory_8(srca);
31415 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31416 	m68k_areg (regs, dstreg) = dsta;
31417 	CLEAR_CZNV;
31418 	SET_ZFLG (((int8_t)(src)) == 0);
31419 	SET_NFLG (((int8_t)(src)) < 0);
31420 m68k_incpc(4);
31421 fill_prefetch_0 ();
31422 	m68k_write_memory_8(dsta,src);
31423 }}}}return 16;
31424 }
CPUFUNC(op_113b_5)31425 unsigned long CPUFUNC(op_113b_5)(uint32_t opcode) /* MOVE */
31426 {
31427 	uint32_t dstreg = (opcode >> 9) & 7;
31428 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31429 {{	uint32_t tmppc = m68k_getpc() + 2;
31430 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
31431 	BusCyclePenalty += 2;
31432 {	int8_t src = m68k_read_memory_8(srca);
31433 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31434 	m68k_areg (regs, dstreg) = dsta;
31435 	CLEAR_CZNV;
31436 	SET_ZFLG (((int8_t)(src)) == 0);
31437 	SET_NFLG (((int8_t)(src)) < 0);
31438 m68k_incpc(4);
31439 fill_prefetch_0 ();
31440 	m68k_write_memory_8(dsta,src);
31441 }}}}return 18;
31442 }
CPUFUNC(op_113c_5)31443 unsigned long CPUFUNC(op_113c_5)(uint32_t opcode) /* MOVE */
31444 {
31445 	uint32_t dstreg = (opcode >> 9) & 7;
31446 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31447 {{	int8_t src = get_ibyte_prefetch(2);
31448 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
31449 	m68k_areg (regs, dstreg) = dsta;
31450 	CLEAR_CZNV;
31451 	SET_ZFLG (((int8_t)(src)) == 0);
31452 	SET_NFLG (((int8_t)(src)) < 0);
31453 m68k_incpc(4);
31454 fill_prefetch_0 ();
31455 	m68k_write_memory_8(dsta,src);
31456 }}}return 12;
31457 }
CPUFUNC(op_1140_5)31458 unsigned long CPUFUNC(op_1140_5)(uint32_t opcode) /* MOVE */
31459 {
31460 	uint32_t srcreg = (opcode & 7);
31461 	uint32_t dstreg = (opcode >> 9) & 7;
31462 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31463 {{	int8_t src = m68k_dreg(regs, srcreg);
31464 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31465 	CLEAR_CZNV;
31466 	SET_ZFLG (((int8_t)(src)) == 0);
31467 	SET_NFLG (((int8_t)(src)) < 0);
31468 m68k_incpc(4);
31469 fill_prefetch_0 ();
31470 	m68k_write_memory_8(dsta,src);
31471 }}}return 12;
31472 }
CPUFUNC(op_1148_5)31473 unsigned long CPUFUNC(op_1148_5)(uint32_t opcode) /* MOVE */
31474 {
31475 	uint32_t srcreg = (opcode & 7);
31476 	uint32_t dstreg = (opcode >> 9) & 7;
31477 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31478 {{	int8_t src = m68k_areg(regs, srcreg);
31479 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31480 	CLEAR_CZNV;
31481 	SET_ZFLG (((int8_t)(src)) == 0);
31482 	SET_NFLG (((int8_t)(src)) < 0);
31483 m68k_incpc(4);
31484 fill_prefetch_0 ();
31485 	m68k_write_memory_8(dsta,src);
31486 }}}return 12;
31487 }
CPUFUNC(op_1150_5)31488 unsigned long CPUFUNC(op_1150_5)(uint32_t opcode) /* MOVE */
31489 {
31490 	uint32_t srcreg = (opcode & 7);
31491 	uint32_t dstreg = (opcode >> 9) & 7;
31492 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31493 {{	uint32_t srca = m68k_areg(regs, srcreg);
31494 {	int8_t src = m68k_read_memory_8(srca);
31495 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31496 	CLEAR_CZNV;
31497 	SET_ZFLG (((int8_t)(src)) == 0);
31498 	SET_NFLG (((int8_t)(src)) < 0);
31499 m68k_incpc(4);
31500 fill_prefetch_0 ();
31501 	m68k_write_memory_8(dsta,src);
31502 }}}}return 16;
31503 }
CPUFUNC(op_1158_5)31504 unsigned long CPUFUNC(op_1158_5)(uint32_t opcode) /* MOVE */
31505 {
31506 	uint32_t srcreg = (opcode & 7);
31507 	uint32_t dstreg = (opcode >> 9) & 7;
31508 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31509 {{	uint32_t srca = m68k_areg(regs, srcreg);
31510 {	int8_t src = m68k_read_memory_8(srca);
31511 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
31512 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31513 	CLEAR_CZNV;
31514 	SET_ZFLG (((int8_t)(src)) == 0);
31515 	SET_NFLG (((int8_t)(src)) < 0);
31516 m68k_incpc(4);
31517 fill_prefetch_0 ();
31518 	m68k_write_memory_8(dsta,src);
31519 }}}}return 16;
31520 }
CPUFUNC(op_1160_5)31521 unsigned long CPUFUNC(op_1160_5)(uint32_t opcode) /* MOVE */
31522 {
31523 	uint32_t srcreg = (opcode & 7);
31524 	uint32_t dstreg = (opcode >> 9) & 7;
31525 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31526 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
31527 {	int8_t src = m68k_read_memory_8(srca);
31528 	m68k_areg (regs, srcreg) = srca;
31529 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31530 	CLEAR_CZNV;
31531 	SET_ZFLG (((int8_t)(src)) == 0);
31532 	SET_NFLG (((int8_t)(src)) < 0);
31533 m68k_incpc(4);
31534 fill_prefetch_0 ();
31535 	m68k_write_memory_8(dsta,src);
31536 }}}}return 18;
31537 }
CPUFUNC(op_1168_5)31538 unsigned long CPUFUNC(op_1168_5)(uint32_t opcode) /* MOVE */
31539 {
31540 	uint32_t srcreg = (opcode & 7);
31541 	uint32_t dstreg = (opcode >> 9) & 7;
31542 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31543 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31544 {	int8_t src = m68k_read_memory_8(srca);
31545 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
31546 	CLEAR_CZNV;
31547 	SET_ZFLG (((int8_t)(src)) == 0);
31548 	SET_NFLG (((int8_t)(src)) < 0);
31549 m68k_incpc(6);
31550 fill_prefetch_0 ();
31551 	m68k_write_memory_8(dsta,src);
31552 }}}}return 20;
31553 }
CPUFUNC(op_1170_5)31554 unsigned long CPUFUNC(op_1170_5)(uint32_t opcode) /* MOVE */
31555 {
31556 	uint32_t srcreg = (opcode & 7);
31557 	uint32_t dstreg = (opcode >> 9) & 7;
31558 	OpcodeFamily = 30; CurrentInstrCycles = 22;
31559 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
31560 	BusCyclePenalty += 2;
31561 {	int8_t src = m68k_read_memory_8(srca);
31562 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
31563 	CLEAR_CZNV;
31564 	SET_ZFLG (((int8_t)(src)) == 0);
31565 	SET_NFLG (((int8_t)(src)) < 0);
31566 m68k_incpc(6);
31567 fill_prefetch_0 ();
31568 	m68k_write_memory_8(dsta,src);
31569 }}}}return 22;
31570 }
CPUFUNC(op_1178_5)31571 unsigned long CPUFUNC(op_1178_5)(uint32_t opcode) /* MOVE */
31572 {
31573 	uint32_t dstreg = (opcode >> 9) & 7;
31574 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31575 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
31576 {	int8_t src = m68k_read_memory_8(srca);
31577 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
31578 	CLEAR_CZNV;
31579 	SET_ZFLG (((int8_t)(src)) == 0);
31580 	SET_NFLG (((int8_t)(src)) < 0);
31581 m68k_incpc(6);
31582 fill_prefetch_0 ();
31583 	m68k_write_memory_8(dsta,src);
31584 }}}}return 20;
31585 }
CPUFUNC(op_1179_5)31586 unsigned long CPUFUNC(op_1179_5)(uint32_t opcode) /* MOVE */
31587 {
31588 	uint32_t dstreg = (opcode >> 9) & 7;
31589 	OpcodeFamily = 30; CurrentInstrCycles = 24;
31590 {{	uint32_t srca = get_ilong_prefetch(2);
31591 {	int8_t src = m68k_read_memory_8(srca);
31592 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
31593 	CLEAR_CZNV;
31594 	SET_ZFLG (((int8_t)(src)) == 0);
31595 	SET_NFLG (((int8_t)(src)) < 0);
31596 m68k_incpc(8);
31597 fill_prefetch_0 ();
31598 	m68k_write_memory_8(dsta,src);
31599 }}}}return 24;
31600 }
CPUFUNC(op_117a_5)31601 unsigned long CPUFUNC(op_117a_5)(uint32_t opcode) /* MOVE */
31602 {
31603 	uint32_t dstreg = (opcode >> 9) & 7;
31604 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31605 {{	uint32_t srca = m68k_getpc () + 2;
31606 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
31607 {	int8_t src = m68k_read_memory_8(srca);
31608 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
31609 	CLEAR_CZNV;
31610 	SET_ZFLG (((int8_t)(src)) == 0);
31611 	SET_NFLG (((int8_t)(src)) < 0);
31612 m68k_incpc(6);
31613 fill_prefetch_0 ();
31614 	m68k_write_memory_8(dsta,src);
31615 }}}}return 20;
31616 }
CPUFUNC(op_117b_5)31617 unsigned long CPUFUNC(op_117b_5)(uint32_t opcode) /* MOVE */
31618 {
31619 	uint32_t dstreg = (opcode >> 9) & 7;
31620 	OpcodeFamily = 30; CurrentInstrCycles = 22;
31621 {{	uint32_t tmppc = m68k_getpc() + 2;
31622 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
31623 	BusCyclePenalty += 2;
31624 {	int8_t src = m68k_read_memory_8(srca);
31625 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
31626 	CLEAR_CZNV;
31627 	SET_ZFLG (((int8_t)(src)) == 0);
31628 	SET_NFLG (((int8_t)(src)) < 0);
31629 m68k_incpc(6);
31630 fill_prefetch_0 ();
31631 	m68k_write_memory_8(dsta,src);
31632 }}}}return 22;
31633 }
CPUFUNC(op_117c_5)31634 unsigned long CPUFUNC(op_117c_5)(uint32_t opcode) /* MOVE */
31635 {
31636 	uint32_t dstreg = (opcode >> 9) & 7;
31637 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31638 {{	int8_t src = get_ibyte_prefetch(2);
31639 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
31640 	CLEAR_CZNV;
31641 	SET_ZFLG (((int8_t)(src)) == 0);
31642 	SET_NFLG (((int8_t)(src)) < 0);
31643 m68k_incpc(6);
31644 fill_prefetch_0 ();
31645 	m68k_write_memory_8(dsta,src);
31646 }}}return 16;
31647 }
CPUFUNC(op_1180_5)31648 unsigned long CPUFUNC(op_1180_5)(uint32_t opcode) /* MOVE */
31649 {
31650 	uint32_t srcreg = (opcode & 7);
31651 	uint32_t dstreg = (opcode >> 9) & 7;
31652 	OpcodeFamily = 30; CurrentInstrCycles = 14;
31653 {{	int8_t src = m68k_dreg(regs, srcreg);
31654 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
31655 	BusCyclePenalty += 2;
31656 	CLEAR_CZNV;
31657 	SET_ZFLG (((int8_t)(src)) == 0);
31658 	SET_NFLG (((int8_t)(src)) < 0);
31659 m68k_incpc(4);
31660 fill_prefetch_0 ();
31661 	m68k_write_memory_8(dsta,src);
31662 }}}return 14;
31663 }
CPUFUNC(op_1188_5)31664 unsigned long CPUFUNC(op_1188_5)(uint32_t opcode) /* MOVE */
31665 {
31666 	uint32_t srcreg = (opcode & 7);
31667 	uint32_t dstreg = (opcode >> 9) & 7;
31668 	OpcodeFamily = 30; CurrentInstrCycles = 14;
31669 {{	int8_t src = m68k_areg(regs, srcreg);
31670 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
31671 	BusCyclePenalty += 2;
31672 	CLEAR_CZNV;
31673 	SET_ZFLG (((int8_t)(src)) == 0);
31674 	SET_NFLG (((int8_t)(src)) < 0);
31675 m68k_incpc(4);
31676 fill_prefetch_0 ();
31677 	m68k_write_memory_8(dsta,src);
31678 }}}return 14;
31679 }
CPUFUNC(op_1190_5)31680 unsigned long CPUFUNC(op_1190_5)(uint32_t opcode) /* MOVE */
31681 {
31682 	uint32_t srcreg = (opcode & 7);
31683 	uint32_t dstreg = (opcode >> 9) & 7;
31684 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31685 {{	uint32_t srca = m68k_areg(regs, srcreg);
31686 {	int8_t src = m68k_read_memory_8(srca);
31687 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
31688 	BusCyclePenalty += 2;
31689 	CLEAR_CZNV;
31690 	SET_ZFLG (((int8_t)(src)) == 0);
31691 	SET_NFLG (((int8_t)(src)) < 0);
31692 m68k_incpc(4);
31693 fill_prefetch_0 ();
31694 	m68k_write_memory_8(dsta,src);
31695 }}}}return 18;
31696 }
CPUFUNC(op_1198_5)31697 unsigned long CPUFUNC(op_1198_5)(uint32_t opcode) /* MOVE */
31698 {
31699 	uint32_t srcreg = (opcode & 7);
31700 	uint32_t dstreg = (opcode >> 9) & 7;
31701 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31702 {{	uint32_t srca = m68k_areg(regs, srcreg);
31703 {	int8_t src = m68k_read_memory_8(srca);
31704 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
31705 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
31706 	BusCyclePenalty += 2;
31707 	CLEAR_CZNV;
31708 	SET_ZFLG (((int8_t)(src)) == 0);
31709 	SET_NFLG (((int8_t)(src)) < 0);
31710 m68k_incpc(4);
31711 fill_prefetch_0 ();
31712 	m68k_write_memory_8(dsta,src);
31713 }}}}return 18;
31714 }
CPUFUNC(op_11a0_5)31715 unsigned long CPUFUNC(op_11a0_5)(uint32_t opcode) /* MOVE */
31716 {
31717 	uint32_t srcreg = (opcode & 7);
31718 	uint32_t dstreg = (opcode >> 9) & 7;
31719 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31720 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
31721 {	int8_t src = m68k_read_memory_8(srca);
31722 	m68k_areg (regs, srcreg) = srca;
31723 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
31724 	BusCyclePenalty += 2;
31725 	CLEAR_CZNV;
31726 	SET_ZFLG (((int8_t)(src)) == 0);
31727 	SET_NFLG (((int8_t)(src)) < 0);
31728 m68k_incpc(4);
31729 fill_prefetch_0 ();
31730 	m68k_write_memory_8(dsta,src);
31731 }}}}return 20;
31732 }
CPUFUNC(op_11a8_5)31733 unsigned long CPUFUNC(op_11a8_5)(uint32_t opcode) /* MOVE */
31734 {
31735 	uint32_t srcreg = (opcode & 7);
31736 	uint32_t dstreg = (opcode >> 9) & 7;
31737 	OpcodeFamily = 30; CurrentInstrCycles = 22;
31738 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31739 {	int8_t src = m68k_read_memory_8(srca);
31740 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
31741 	BusCyclePenalty += 2;
31742 	CLEAR_CZNV;
31743 	SET_ZFLG (((int8_t)(src)) == 0);
31744 	SET_NFLG (((int8_t)(src)) < 0);
31745 m68k_incpc(6);
31746 fill_prefetch_0 ();
31747 	m68k_write_memory_8(dsta,src);
31748 }}}}return 22;
31749 }
CPUFUNC(op_11b0_5)31750 unsigned long CPUFUNC(op_11b0_5)(uint32_t opcode) /* MOVE */
31751 {
31752 	uint32_t srcreg = (opcode & 7);
31753 	uint32_t dstreg = (opcode >> 9) & 7;
31754 	OpcodeFamily = 30; CurrentInstrCycles = 24;
31755 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
31756 	BusCyclePenalty += 2;
31757 {	int8_t src = m68k_read_memory_8(srca);
31758 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
31759 	BusCyclePenalty += 2;
31760 	CLEAR_CZNV;
31761 	SET_ZFLG (((int8_t)(src)) == 0);
31762 	SET_NFLG (((int8_t)(src)) < 0);
31763 m68k_incpc(6);
31764 fill_prefetch_0 ();
31765 	m68k_write_memory_8(dsta,src);
31766 }}}}return 24;
31767 }
CPUFUNC(op_11b8_5)31768 unsigned long CPUFUNC(op_11b8_5)(uint32_t opcode) /* MOVE */
31769 {
31770 	uint32_t dstreg = (opcode >> 9) & 7;
31771 	OpcodeFamily = 30; CurrentInstrCycles = 22;
31772 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
31773 {	int8_t src = m68k_read_memory_8(srca);
31774 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
31775 	BusCyclePenalty += 2;
31776 	CLEAR_CZNV;
31777 	SET_ZFLG (((int8_t)(src)) == 0);
31778 	SET_NFLG (((int8_t)(src)) < 0);
31779 m68k_incpc(6);
31780 fill_prefetch_0 ();
31781 	m68k_write_memory_8(dsta,src);
31782 }}}}return 22;
31783 }
CPUFUNC(op_11b9_5)31784 unsigned long CPUFUNC(op_11b9_5)(uint32_t opcode) /* MOVE */
31785 {
31786 	uint32_t dstreg = (opcode >> 9) & 7;
31787 	OpcodeFamily = 30; CurrentInstrCycles = 26;
31788 {{	uint32_t srca = get_ilong_prefetch(2);
31789 {	int8_t src = m68k_read_memory_8(srca);
31790 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
31791 	BusCyclePenalty += 2;
31792 	CLEAR_CZNV;
31793 	SET_ZFLG (((int8_t)(src)) == 0);
31794 	SET_NFLG (((int8_t)(src)) < 0);
31795 m68k_incpc(8);
31796 fill_prefetch_0 ();
31797 	m68k_write_memory_8(dsta,src);
31798 }}}}return 26;
31799 }
CPUFUNC(op_11ba_5)31800 unsigned long CPUFUNC(op_11ba_5)(uint32_t opcode) /* MOVE */
31801 {
31802 	uint32_t dstreg = (opcode >> 9) & 7;
31803 	OpcodeFamily = 30; CurrentInstrCycles = 22;
31804 {{	uint32_t srca = m68k_getpc () + 2;
31805 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
31806 {	int8_t src = m68k_read_memory_8(srca);
31807 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
31808 	BusCyclePenalty += 2;
31809 	CLEAR_CZNV;
31810 	SET_ZFLG (((int8_t)(src)) == 0);
31811 	SET_NFLG (((int8_t)(src)) < 0);
31812 m68k_incpc(6);
31813 fill_prefetch_0 ();
31814 	m68k_write_memory_8(dsta,src);
31815 }}}}return 22;
31816 }
CPUFUNC(op_11bb_5)31817 unsigned long CPUFUNC(op_11bb_5)(uint32_t opcode) /* MOVE */
31818 {
31819 	uint32_t dstreg = (opcode >> 9) & 7;
31820 	OpcodeFamily = 30; CurrentInstrCycles = 24;
31821 {{	uint32_t tmppc = m68k_getpc() + 2;
31822 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
31823 	BusCyclePenalty += 2;
31824 {	int8_t src = m68k_read_memory_8(srca);
31825 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
31826 	BusCyclePenalty += 2;
31827 	CLEAR_CZNV;
31828 	SET_ZFLG (((int8_t)(src)) == 0);
31829 	SET_NFLG (((int8_t)(src)) < 0);
31830 m68k_incpc(6);
31831 fill_prefetch_0 ();
31832 	m68k_write_memory_8(dsta,src);
31833 }}}}return 24;
31834 }
CPUFUNC(op_11bc_5)31835 unsigned long CPUFUNC(op_11bc_5)(uint32_t opcode) /* MOVE */
31836 {
31837 	uint32_t dstreg = (opcode >> 9) & 7;
31838 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31839 {{	int8_t src = get_ibyte_prefetch(2);
31840 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
31841 	BusCyclePenalty += 2;
31842 	CLEAR_CZNV;
31843 	SET_ZFLG (((int8_t)(src)) == 0);
31844 	SET_NFLG (((int8_t)(src)) < 0);
31845 m68k_incpc(6);
31846 fill_prefetch_0 ();
31847 	m68k_write_memory_8(dsta,src);
31848 }}}return 18;
31849 }
CPUFUNC(op_11c0_5)31850 unsigned long CPUFUNC(op_11c0_5)(uint32_t opcode) /* MOVE */
31851 {
31852 	uint32_t srcreg = (opcode & 7);
31853 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31854 {{	int8_t src = m68k_dreg(regs, srcreg);
31855 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
31856 	CLEAR_CZNV;
31857 	SET_ZFLG (((int8_t)(src)) == 0);
31858 	SET_NFLG (((int8_t)(src)) < 0);
31859 m68k_incpc(4);
31860 fill_prefetch_0 ();
31861 	m68k_write_memory_8(dsta,src);
31862 }}}return 12;
31863 }
CPUFUNC(op_11c8_5)31864 unsigned long CPUFUNC(op_11c8_5)(uint32_t opcode) /* MOVE */
31865 {
31866 	uint32_t srcreg = (opcode & 7);
31867 	OpcodeFamily = 30; CurrentInstrCycles = 12;
31868 {{	int8_t src = m68k_areg(regs, srcreg);
31869 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
31870 	CLEAR_CZNV;
31871 	SET_ZFLG (((int8_t)(src)) == 0);
31872 	SET_NFLG (((int8_t)(src)) < 0);
31873 m68k_incpc(4);
31874 fill_prefetch_0 ();
31875 	m68k_write_memory_8(dsta,src);
31876 }}}return 12;
31877 }
CPUFUNC(op_11d0_5)31878 unsigned long CPUFUNC(op_11d0_5)(uint32_t opcode) /* MOVE */
31879 {
31880 	uint32_t srcreg = (opcode & 7);
31881 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31882 {{	uint32_t srca = m68k_areg(regs, srcreg);
31883 {	int8_t src = m68k_read_memory_8(srca);
31884 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
31885 	CLEAR_CZNV;
31886 	SET_ZFLG (((int8_t)(src)) == 0);
31887 	SET_NFLG (((int8_t)(src)) < 0);
31888 m68k_incpc(4);
31889 fill_prefetch_0 ();
31890 	m68k_write_memory_8(dsta,src);
31891 }}}}return 16;
31892 }
CPUFUNC(op_11d8_5)31893 unsigned long CPUFUNC(op_11d8_5)(uint32_t opcode) /* MOVE */
31894 {
31895 	uint32_t srcreg = (opcode & 7);
31896 	OpcodeFamily = 30; CurrentInstrCycles = 16;
31897 {{	uint32_t srca = m68k_areg(regs, srcreg);
31898 {	int8_t src = m68k_read_memory_8(srca);
31899 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
31900 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
31901 	CLEAR_CZNV;
31902 	SET_ZFLG (((int8_t)(src)) == 0);
31903 	SET_NFLG (((int8_t)(src)) < 0);
31904 m68k_incpc(4);
31905 fill_prefetch_0 ();
31906 	m68k_write_memory_8(dsta,src);
31907 }}}}return 16;
31908 }
CPUFUNC(op_11e0_5)31909 unsigned long CPUFUNC(op_11e0_5)(uint32_t opcode) /* MOVE */
31910 {
31911 	uint32_t srcreg = (opcode & 7);
31912 	OpcodeFamily = 30; CurrentInstrCycles = 18;
31913 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
31914 {	int8_t src = m68k_read_memory_8(srca);
31915 	m68k_areg (regs, srcreg) = srca;
31916 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
31917 	CLEAR_CZNV;
31918 	SET_ZFLG (((int8_t)(src)) == 0);
31919 	SET_NFLG (((int8_t)(src)) < 0);
31920 m68k_incpc(4);
31921 fill_prefetch_0 ();
31922 	m68k_write_memory_8(dsta,src);
31923 }}}}return 18;
31924 }
CPUFUNC(op_11e8_5)31925 unsigned long CPUFUNC(op_11e8_5)(uint32_t opcode) /* MOVE */
31926 {
31927 	uint32_t srcreg = (opcode & 7);
31928 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31929 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
31930 {	int8_t src = m68k_read_memory_8(srca);
31931 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
31932 	CLEAR_CZNV;
31933 	SET_ZFLG (((int8_t)(src)) == 0);
31934 	SET_NFLG (((int8_t)(src)) < 0);
31935 m68k_incpc(6);
31936 fill_prefetch_0 ();
31937 	m68k_write_memory_8(dsta,src);
31938 }}}}return 20;
31939 }
CPUFUNC(op_11f0_5)31940 unsigned long CPUFUNC(op_11f0_5)(uint32_t opcode) /* MOVE */
31941 {
31942 	uint32_t srcreg = (opcode & 7);
31943 	OpcodeFamily = 30; CurrentInstrCycles = 22;
31944 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
31945 	BusCyclePenalty += 2;
31946 {	int8_t src = m68k_read_memory_8(srca);
31947 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
31948 	CLEAR_CZNV;
31949 	SET_ZFLG (((int8_t)(src)) == 0);
31950 	SET_NFLG (((int8_t)(src)) < 0);
31951 m68k_incpc(6);
31952 fill_prefetch_0 ();
31953 	m68k_write_memory_8(dsta,src);
31954 }}}}return 22;
31955 }
CPUFUNC(op_11f8_5)31956 unsigned long CPUFUNC(op_11f8_5)(uint32_t opcode) /* MOVE */
31957 {
31958 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31959 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
31960 {	int8_t src = m68k_read_memory_8(srca);
31961 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
31962 	CLEAR_CZNV;
31963 	SET_ZFLG (((int8_t)(src)) == 0);
31964 	SET_NFLG (((int8_t)(src)) < 0);
31965 m68k_incpc(6);
31966 fill_prefetch_0 ();
31967 	m68k_write_memory_8(dsta,src);
31968 }}}}return 20;
31969 }
CPUFUNC(op_11f9_5)31970 unsigned long CPUFUNC(op_11f9_5)(uint32_t opcode) /* MOVE */
31971 {
31972 	OpcodeFamily = 30; CurrentInstrCycles = 24;
31973 {{	uint32_t srca = get_ilong_prefetch(2);
31974 {	int8_t src = m68k_read_memory_8(srca);
31975 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
31976 	CLEAR_CZNV;
31977 	SET_ZFLG (((int8_t)(src)) == 0);
31978 	SET_NFLG (((int8_t)(src)) < 0);
31979 m68k_incpc(8);
31980 fill_prefetch_0 ();
31981 	m68k_write_memory_8(dsta,src);
31982 }}}}return 24;
31983 }
CPUFUNC(op_11fa_5)31984 unsigned long CPUFUNC(op_11fa_5)(uint32_t opcode) /* MOVE */
31985 {
31986 	OpcodeFamily = 30; CurrentInstrCycles = 20;
31987 {{	uint32_t srca = m68k_getpc () + 2;
31988 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
31989 {	int8_t src = m68k_read_memory_8(srca);
31990 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
31991 	CLEAR_CZNV;
31992 	SET_ZFLG (((int8_t)(src)) == 0);
31993 	SET_NFLG (((int8_t)(src)) < 0);
31994 m68k_incpc(6);
31995 fill_prefetch_0 ();
31996 	m68k_write_memory_8(dsta,src);
31997 }}}}return 20;
31998 }
CPUFUNC(op_11fb_5)31999 unsigned long CPUFUNC(op_11fb_5)(uint32_t opcode) /* MOVE */
32000 {
32001 	OpcodeFamily = 30; CurrentInstrCycles = 22;
32002 {{	uint32_t tmppc = m68k_getpc() + 2;
32003 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
32004 	BusCyclePenalty += 2;
32005 {	int8_t src = m68k_read_memory_8(srca);
32006 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
32007 	CLEAR_CZNV;
32008 	SET_ZFLG (((int8_t)(src)) == 0);
32009 	SET_NFLG (((int8_t)(src)) < 0);
32010 m68k_incpc(6);
32011 fill_prefetch_0 ();
32012 	m68k_write_memory_8(dsta,src);
32013 }}}}return 22;
32014 }
CPUFUNC(op_11fc_5)32015 unsigned long CPUFUNC(op_11fc_5)(uint32_t opcode) /* MOVE */
32016 {
32017 	OpcodeFamily = 30; CurrentInstrCycles = 16;
32018 {{	int8_t src = get_ibyte_prefetch(2);
32019 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
32020 	CLEAR_CZNV;
32021 	SET_ZFLG (((int8_t)(src)) == 0);
32022 	SET_NFLG (((int8_t)(src)) < 0);
32023 m68k_incpc(6);
32024 fill_prefetch_0 ();
32025 	m68k_write_memory_8(dsta,src);
32026 }}}return 16;
32027 }
CPUFUNC(op_13c0_5)32028 unsigned long CPUFUNC(op_13c0_5)(uint32_t opcode) /* MOVE */
32029 {
32030 	uint32_t srcreg = (opcode & 7);
32031 	OpcodeFamily = 30; CurrentInstrCycles = 16;
32032 {{	int8_t src = m68k_dreg(regs, srcreg);
32033 {	uint32_t dsta = get_ilong_prefetch(2);
32034 	CLEAR_CZNV;
32035 	SET_ZFLG (((int8_t)(src)) == 0);
32036 	SET_NFLG (((int8_t)(src)) < 0);
32037 m68k_incpc(6);
32038 fill_prefetch_0 ();
32039 	m68k_write_memory_8(dsta,src);
32040 }}}return 16;
32041 }
CPUFUNC(op_13c8_5)32042 unsigned long CPUFUNC(op_13c8_5)(uint32_t opcode) /* MOVE */
32043 {
32044 	uint32_t srcreg = (opcode & 7);
32045 	OpcodeFamily = 30; CurrentInstrCycles = 16;
32046 {{	int8_t src = m68k_areg(regs, srcreg);
32047 {	uint32_t dsta = get_ilong_prefetch(2);
32048 	CLEAR_CZNV;
32049 	SET_ZFLG (((int8_t)(src)) == 0);
32050 	SET_NFLG (((int8_t)(src)) < 0);
32051 m68k_incpc(6);
32052 fill_prefetch_0 ();
32053 	m68k_write_memory_8(dsta,src);
32054 }}}return 16;
32055 }
CPUFUNC(op_13d0_5)32056 unsigned long CPUFUNC(op_13d0_5)(uint32_t opcode) /* MOVE */
32057 {
32058 	uint32_t srcreg = (opcode & 7);
32059 	OpcodeFamily = 30; CurrentInstrCycles = 20;
32060 {{	uint32_t srca = m68k_areg(regs, srcreg);
32061 {	int8_t src = m68k_read_memory_8(srca);
32062 {	uint32_t dsta = get_ilong_prefetch(2);
32063 	CLEAR_CZNV;
32064 	SET_ZFLG (((int8_t)(src)) == 0);
32065 	SET_NFLG (((int8_t)(src)) < 0);
32066 m68k_incpc(6);
32067 fill_prefetch_0 ();
32068 	m68k_write_memory_8(dsta,src);
32069 }}}}return 20;
32070 }
CPUFUNC(op_13d8_5)32071 unsigned long CPUFUNC(op_13d8_5)(uint32_t opcode) /* MOVE */
32072 {
32073 	uint32_t srcreg = (opcode & 7);
32074 	OpcodeFamily = 30; CurrentInstrCycles = 20;
32075 {{	uint32_t srca = m68k_areg(regs, srcreg);
32076 {	int8_t src = m68k_read_memory_8(srca);
32077 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
32078 {	uint32_t dsta = get_ilong_prefetch(2);
32079 	CLEAR_CZNV;
32080 	SET_ZFLG (((int8_t)(src)) == 0);
32081 	SET_NFLG (((int8_t)(src)) < 0);
32082 m68k_incpc(6);
32083 fill_prefetch_0 ();
32084 	m68k_write_memory_8(dsta,src);
32085 }}}}return 20;
32086 }
CPUFUNC(op_13e0_5)32087 unsigned long CPUFUNC(op_13e0_5)(uint32_t opcode) /* MOVE */
32088 {
32089 	uint32_t srcreg = (opcode & 7);
32090 	OpcodeFamily = 30; CurrentInstrCycles = 22;
32091 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
32092 {	int8_t src = m68k_read_memory_8(srca);
32093 	m68k_areg (regs, srcreg) = srca;
32094 {	uint32_t dsta = get_ilong_prefetch(2);
32095 	CLEAR_CZNV;
32096 	SET_ZFLG (((int8_t)(src)) == 0);
32097 	SET_NFLG (((int8_t)(src)) < 0);
32098 m68k_incpc(6);
32099 fill_prefetch_0 ();
32100 	m68k_write_memory_8(dsta,src);
32101 }}}}return 22;
32102 }
CPUFUNC(op_13e8_5)32103 unsigned long CPUFUNC(op_13e8_5)(uint32_t opcode) /* MOVE */
32104 {
32105 	uint32_t srcreg = (opcode & 7);
32106 	OpcodeFamily = 30; CurrentInstrCycles = 24;
32107 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
32108 {	int8_t src = m68k_read_memory_8(srca);
32109 {	uint32_t dsta = get_ilong_prefetch(4);
32110 	CLEAR_CZNV;
32111 	SET_ZFLG (((int8_t)(src)) == 0);
32112 	SET_NFLG (((int8_t)(src)) < 0);
32113 m68k_incpc(8);
32114 fill_prefetch_0 ();
32115 	m68k_write_memory_8(dsta,src);
32116 }}}}return 24;
32117 }
CPUFUNC(op_13f0_5)32118 unsigned long CPUFUNC(op_13f0_5)(uint32_t opcode) /* MOVE */
32119 {
32120 	uint32_t srcreg = (opcode & 7);
32121 	OpcodeFamily = 30; CurrentInstrCycles = 26;
32122 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
32123 	BusCyclePenalty += 2;
32124 {	int8_t src = m68k_read_memory_8(srca);
32125 {	uint32_t dsta = get_ilong_prefetch(4);
32126 	CLEAR_CZNV;
32127 	SET_ZFLG (((int8_t)(src)) == 0);
32128 	SET_NFLG (((int8_t)(src)) < 0);
32129 m68k_incpc(8);
32130 fill_prefetch_0 ();
32131 	m68k_write_memory_8(dsta,src);
32132 }}}}return 26;
32133 }
CPUFUNC(op_13f8_5)32134 unsigned long CPUFUNC(op_13f8_5)(uint32_t opcode) /* MOVE */
32135 {
32136 	OpcodeFamily = 30; CurrentInstrCycles = 24;
32137 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
32138 {	int8_t src = m68k_read_memory_8(srca);
32139 {	uint32_t dsta = get_ilong_prefetch(4);
32140 	CLEAR_CZNV;
32141 	SET_ZFLG (((int8_t)(src)) == 0);
32142 	SET_NFLG (((int8_t)(src)) < 0);
32143 m68k_incpc(8);
32144 fill_prefetch_0 ();
32145 	m68k_write_memory_8(dsta,src);
32146 }}}}return 24;
32147 }
CPUFUNC(op_13f9_5)32148 unsigned long CPUFUNC(op_13f9_5)(uint32_t opcode) /* MOVE */
32149 {
32150 	OpcodeFamily = 30; CurrentInstrCycles = 28;
32151 {{	uint32_t srca = get_ilong_prefetch(2);
32152 {	int8_t src = m68k_read_memory_8(srca);
32153 {	uint32_t dsta = get_ilong_prefetch(6);
32154 	CLEAR_CZNV;
32155 	SET_ZFLG (((int8_t)(src)) == 0);
32156 	SET_NFLG (((int8_t)(src)) < 0);
32157 m68k_incpc(10);
32158 fill_prefetch_0 ();
32159 	m68k_write_memory_8(dsta,src);
32160 }}}}return 28;
32161 }
CPUFUNC(op_13fa_5)32162 unsigned long CPUFUNC(op_13fa_5)(uint32_t opcode) /* MOVE */
32163 {
32164 	OpcodeFamily = 30; CurrentInstrCycles = 24;
32165 {{	uint32_t srca = m68k_getpc () + 2;
32166 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
32167 {	int8_t src = m68k_read_memory_8(srca);
32168 {	uint32_t dsta = get_ilong_prefetch(4);
32169 	CLEAR_CZNV;
32170 	SET_ZFLG (((int8_t)(src)) == 0);
32171 	SET_NFLG (((int8_t)(src)) < 0);
32172 m68k_incpc(8);
32173 fill_prefetch_0 ();
32174 	m68k_write_memory_8(dsta,src);
32175 }}}}return 24;
32176 }
CPUFUNC(op_13fb_5)32177 unsigned long CPUFUNC(op_13fb_5)(uint32_t opcode) /* MOVE */
32178 {
32179 	OpcodeFamily = 30; CurrentInstrCycles = 26;
32180 {{	uint32_t tmppc = m68k_getpc() + 2;
32181 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
32182 	BusCyclePenalty += 2;
32183 {	int8_t src = m68k_read_memory_8(srca);
32184 {	uint32_t dsta = get_ilong_prefetch(4);
32185 	CLEAR_CZNV;
32186 	SET_ZFLG (((int8_t)(src)) == 0);
32187 	SET_NFLG (((int8_t)(src)) < 0);
32188 m68k_incpc(8);
32189 fill_prefetch_0 ();
32190 	m68k_write_memory_8(dsta,src);
32191 }}}}return 26;
32192 }
CPUFUNC(op_13fc_5)32193 unsigned long CPUFUNC(op_13fc_5)(uint32_t opcode) /* MOVE */
32194 {
32195 	OpcodeFamily = 30; CurrentInstrCycles = 20;
32196 {{	int8_t src = get_ibyte_prefetch(2);
32197 {	uint32_t dsta = get_ilong_prefetch(4);
32198 	CLEAR_CZNV;
32199 	SET_ZFLG (((int8_t)(src)) == 0);
32200 	SET_NFLG (((int8_t)(src)) < 0);
32201 m68k_incpc(8);
32202 fill_prefetch_0 ();
32203 	m68k_write_memory_8(dsta,src);
32204 }}}return 20;
32205 }
CPUFUNC(op_2000_5)32206 unsigned long CPUFUNC(op_2000_5)(uint32_t opcode) /* MOVE */
32207 {
32208 	uint32_t srcreg = (opcode & 7);
32209 	uint32_t dstreg = (opcode >> 9) & 7;
32210 	OpcodeFamily = 30; CurrentInstrCycles = 4;
32211 {{	int32_t src = m68k_dreg(regs, srcreg);
32212 {	CLEAR_CZNV;
32213 	SET_ZFLG (((int32_t)(src)) == 0);
32214 	SET_NFLG (((int32_t)(src)) < 0);
32215 	m68k_dreg(regs, dstreg) = (src);
32216 }}}m68k_incpc(2);
32217 fill_prefetch_2 ();
32218 return 4;
32219 }
CPUFUNC(op_2008_5)32220 unsigned long CPUFUNC(op_2008_5)(uint32_t opcode) /* MOVE */
32221 {
32222 	uint32_t srcreg = (opcode & 7);
32223 	uint32_t dstreg = (opcode >> 9) & 7;
32224 	OpcodeFamily = 30; CurrentInstrCycles = 4;
32225 {{	int32_t src = m68k_areg(regs, srcreg);
32226 {	CLEAR_CZNV;
32227 	SET_ZFLG (((int32_t)(src)) == 0);
32228 	SET_NFLG (((int32_t)(src)) < 0);
32229 	m68k_dreg(regs, dstreg) = (src);
32230 }}}m68k_incpc(2);
32231 fill_prefetch_2 ();
32232 return 4;
32233 }
CPUFUNC(op_2010_5)32234 unsigned long CPUFUNC(op_2010_5)(uint32_t opcode) /* MOVE */
32235 {
32236 	uint32_t srcreg = (opcode & 7);
32237 	uint32_t dstreg = (opcode >> 9) & 7;
32238 	OpcodeFamily = 30; CurrentInstrCycles = 12;
32239 {{	uint32_t srca = m68k_areg(regs, srcreg);
32240 	if ((srca & 1) != 0) {
32241 		last_fault_for_exception_3 = srca;
32242 		last_op_for_exception_3 = opcode;
32243 		last_addr_for_exception_3 = m68k_getpc() + 2;
32244 		Exception(3, 0, M68000_EXC_SRC_CPU);
32245 		goto endlabel1921;
32246 	}
32247 {{	int32_t src = m68k_read_memory_32(srca);
32248 {	CLEAR_CZNV;
32249 	SET_ZFLG (((int32_t)(src)) == 0);
32250 	SET_NFLG (((int32_t)(src)) < 0);
32251 	m68k_dreg(regs, dstreg) = (src);
32252 }}}}}m68k_incpc(2);
32253 fill_prefetch_2 ();
32254 endlabel1921: ;
32255 return 12;
32256 }
CPUFUNC(op_2018_5)32257 unsigned long CPUFUNC(op_2018_5)(uint32_t opcode) /* MOVE */
32258 {
32259 	uint32_t srcreg = (opcode & 7);
32260 	uint32_t dstreg = (opcode >> 9) & 7;
32261 	OpcodeFamily = 30; CurrentInstrCycles = 12;
32262 {{	uint32_t srca = m68k_areg(regs, srcreg);
32263 	if ((srca & 1) != 0) {
32264 		last_fault_for_exception_3 = srca;
32265 		last_op_for_exception_3 = opcode;
32266 		last_addr_for_exception_3 = m68k_getpc() + 2;
32267 		Exception(3, 0, M68000_EXC_SRC_CPU);
32268 		goto endlabel1922;
32269 	}
32270 {{	int32_t src = m68k_read_memory_32(srca);
32271 	m68k_areg(regs, srcreg) += 4;
32272 {	CLEAR_CZNV;
32273 	SET_ZFLG (((int32_t)(src)) == 0);
32274 	SET_NFLG (((int32_t)(src)) < 0);
32275 	m68k_dreg(regs, dstreg) = (src);
32276 }}}}}m68k_incpc(2);
32277 fill_prefetch_2 ();
32278 endlabel1922: ;
32279 return 12;
32280 }
CPUFUNC(op_2020_5)32281 unsigned long CPUFUNC(op_2020_5)(uint32_t opcode) /* MOVE */
32282 {
32283 	uint32_t srcreg = (opcode & 7);
32284 	uint32_t dstreg = (opcode >> 9) & 7;
32285 	OpcodeFamily = 30; CurrentInstrCycles = 14;
32286 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
32287 	if ((srca & 1) != 0) {
32288 		last_fault_for_exception_3 = srca;
32289 		last_op_for_exception_3 = opcode;
32290 		last_addr_for_exception_3 = m68k_getpc() + 2;
32291 		Exception(3, 0, M68000_EXC_SRC_CPU);
32292 		goto endlabel1923;
32293 	}
32294 {{	int32_t src = m68k_read_memory_32(srca);
32295 	m68k_areg (regs, srcreg) = srca;
32296 {	CLEAR_CZNV;
32297 	SET_ZFLG (((int32_t)(src)) == 0);
32298 	SET_NFLG (((int32_t)(src)) < 0);
32299 	m68k_dreg(regs, dstreg) = (src);
32300 }}}}}m68k_incpc(2);
32301 fill_prefetch_2 ();
32302 endlabel1923: ;
32303 return 14;
32304 }
CPUFUNC(op_2028_5)32305 unsigned long CPUFUNC(op_2028_5)(uint32_t opcode) /* MOVE */
32306 {
32307 	uint32_t srcreg = (opcode & 7);
32308 	uint32_t dstreg = (opcode >> 9) & 7;
32309 	OpcodeFamily = 30; CurrentInstrCycles = 16;
32310 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
32311 	if ((srca & 1) != 0) {
32312 		last_fault_for_exception_3 = srca;
32313 		last_op_for_exception_3 = opcode;
32314 		last_addr_for_exception_3 = m68k_getpc() + 4;
32315 		Exception(3, 0, M68000_EXC_SRC_CPU);
32316 		goto endlabel1924;
32317 	}
32318 {{	int32_t src = m68k_read_memory_32(srca);
32319 {	CLEAR_CZNV;
32320 	SET_ZFLG (((int32_t)(src)) == 0);
32321 	SET_NFLG (((int32_t)(src)) < 0);
32322 	m68k_dreg(regs, dstreg) = (src);
32323 }}}}}m68k_incpc(4);
32324 fill_prefetch_0 ();
32325 endlabel1924: ;
32326 return 16;
32327 }
CPUFUNC(op_2030_5)32328 unsigned long CPUFUNC(op_2030_5)(uint32_t opcode) /* MOVE */
32329 {
32330 	uint32_t srcreg = (opcode & 7);
32331 	uint32_t dstreg = (opcode >> 9) & 7;
32332 	OpcodeFamily = 30; CurrentInstrCycles = 18;
32333 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
32334 	BusCyclePenalty += 2;
32335 	if ((srca & 1) != 0) {
32336 		last_fault_for_exception_3 = srca;
32337 		last_op_for_exception_3 = opcode;
32338 		last_addr_for_exception_3 = m68k_getpc() + 4;
32339 		Exception(3, 0, M68000_EXC_SRC_CPU);
32340 		goto endlabel1925;
32341 	}
32342 {{	int32_t src = m68k_read_memory_32(srca);
32343 {	CLEAR_CZNV;
32344 	SET_ZFLG (((int32_t)(src)) == 0);
32345 	SET_NFLG (((int32_t)(src)) < 0);
32346 	m68k_dreg(regs, dstreg) = (src);
32347 }}}}}m68k_incpc(4);
32348 fill_prefetch_0 ();
32349 endlabel1925: ;
32350 return 18;
32351 }
CPUFUNC(op_2038_5)32352 unsigned long CPUFUNC(op_2038_5)(uint32_t opcode) /* MOVE */
32353 {
32354 	uint32_t dstreg = (opcode >> 9) & 7;
32355 	OpcodeFamily = 30; CurrentInstrCycles = 16;
32356 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
32357 	if ((srca & 1) != 0) {
32358 		last_fault_for_exception_3 = srca;
32359 		last_op_for_exception_3 = opcode;
32360 		last_addr_for_exception_3 = m68k_getpc() + 4;
32361 		Exception(3, 0, M68000_EXC_SRC_CPU);
32362 		goto endlabel1926;
32363 	}
32364 {{	int32_t src = m68k_read_memory_32(srca);
32365 {	CLEAR_CZNV;
32366 	SET_ZFLG (((int32_t)(src)) == 0);
32367 	SET_NFLG (((int32_t)(src)) < 0);
32368 	m68k_dreg(regs, dstreg) = (src);
32369 }}}}}m68k_incpc(4);
32370 fill_prefetch_0 ();
32371 endlabel1926: ;
32372 return 16;
32373 }
CPUFUNC(op_2039_5)32374 unsigned long CPUFUNC(op_2039_5)(uint32_t opcode) /* MOVE */
32375 {
32376 	uint32_t dstreg = (opcode >> 9) & 7;
32377 	OpcodeFamily = 30; CurrentInstrCycles = 20;
32378 {{	uint32_t srca = get_ilong_prefetch(2);
32379 	if ((srca & 1) != 0) {
32380 		last_fault_for_exception_3 = srca;
32381 		last_op_for_exception_3 = opcode;
32382 		last_addr_for_exception_3 = m68k_getpc() + 6;
32383 		Exception(3, 0, M68000_EXC_SRC_CPU);
32384 		goto endlabel1927;
32385 	}
32386 {{	int32_t src = m68k_read_memory_32(srca);
32387 {	CLEAR_CZNV;
32388 	SET_ZFLG (((int32_t)(src)) == 0);
32389 	SET_NFLG (((int32_t)(src)) < 0);
32390 	m68k_dreg(regs, dstreg) = (src);
32391 }}}}}m68k_incpc(6);
32392 fill_prefetch_0 ();
32393 endlabel1927: ;
32394 return 20;
32395 }
CPUFUNC(op_203a_5)32396 unsigned long CPUFUNC(op_203a_5)(uint32_t opcode) /* MOVE */
32397 {
32398 	uint32_t dstreg = (opcode >> 9) & 7;
32399 	OpcodeFamily = 30; CurrentInstrCycles = 16;
32400 {{	uint32_t srca = m68k_getpc () + 2;
32401 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
32402 	if ((srca & 1) != 0) {
32403 		last_fault_for_exception_3 = srca;
32404 		last_op_for_exception_3 = opcode;
32405 		last_addr_for_exception_3 = m68k_getpc() + 4;
32406 		Exception(3, 0, M68000_EXC_SRC_CPU);
32407 		goto endlabel1928;
32408 	}
32409 {{	int32_t src = m68k_read_memory_32(srca);
32410 {	CLEAR_CZNV;
32411 	SET_ZFLG (((int32_t)(src)) == 0);
32412 	SET_NFLG (((int32_t)(src)) < 0);
32413 	m68k_dreg(regs, dstreg) = (src);
32414 }}}}}m68k_incpc(4);
32415 fill_prefetch_0 ();
32416 endlabel1928: ;
32417 return 16;
32418 }
CPUFUNC(op_203b_5)32419 unsigned long CPUFUNC(op_203b_5)(uint32_t opcode) /* MOVE */
32420 {
32421 	uint32_t dstreg = (opcode >> 9) & 7;
32422 	OpcodeFamily = 30; CurrentInstrCycles = 18;
32423 {{	uint32_t tmppc = m68k_getpc() + 2;
32424 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
32425 	BusCyclePenalty += 2;
32426 	if ((srca & 1) != 0) {
32427 		last_fault_for_exception_3 = srca;
32428 		last_op_for_exception_3 = opcode;
32429 		last_addr_for_exception_3 = m68k_getpc() + 4;
32430 		Exception(3, 0, M68000_EXC_SRC_CPU);
32431 		goto endlabel1929;
32432 	}
32433 {{	int32_t src = m68k_read_memory_32(srca);
32434 {	CLEAR_CZNV;
32435 	SET_ZFLG (((int32_t)(src)) == 0);
32436 	SET_NFLG (((int32_t)(src)) < 0);
32437 	m68k_dreg(regs, dstreg) = (src);
32438 }}}}}m68k_incpc(4);
32439 fill_prefetch_0 ();
32440 endlabel1929: ;
32441 return 18;
32442 }
CPUFUNC(op_203c_5)32443 unsigned long CPUFUNC(op_203c_5)(uint32_t opcode) /* MOVE */
32444 {
32445 	uint32_t dstreg = (opcode >> 9) & 7;
32446 	OpcodeFamily = 30; CurrentInstrCycles = 12;
32447 {{	int32_t src = get_ilong_prefetch(2);
32448 {	CLEAR_CZNV;
32449 	SET_ZFLG (((int32_t)(src)) == 0);
32450 	SET_NFLG (((int32_t)(src)) < 0);
32451 	m68k_dreg(regs, dstreg) = (src);
32452 }}}m68k_incpc(6);
32453 fill_prefetch_0 ();
32454 return 12;
32455 }
CPUFUNC(op_2040_5)32456 unsigned long CPUFUNC(op_2040_5)(uint32_t opcode) /* MOVEA */
32457 {
32458 	uint32_t srcreg = (opcode & 7);
32459 	uint32_t dstreg = (opcode >> 9) & 7;
32460 	OpcodeFamily = 31; CurrentInstrCycles = 4;
32461 {{	int32_t src = m68k_dreg(regs, srcreg);
32462 {	uint32_t val = src;
32463 	m68k_areg(regs, dstreg) = (val);
32464 }}}m68k_incpc(2);
32465 fill_prefetch_2 ();
32466 return 4;
32467 }
CPUFUNC(op_2048_5)32468 unsigned long CPUFUNC(op_2048_5)(uint32_t opcode) /* MOVEA */
32469 {
32470 	uint32_t srcreg = (opcode & 7);
32471 	uint32_t dstreg = (opcode >> 9) & 7;
32472 	OpcodeFamily = 31; CurrentInstrCycles = 4;
32473 {{	int32_t src = m68k_areg(regs, srcreg);
32474 {	uint32_t val = src;
32475 	m68k_areg(regs, dstreg) = (val);
32476 }}}m68k_incpc(2);
32477 fill_prefetch_2 ();
32478 return 4;
32479 }
CPUFUNC(op_2050_5)32480 unsigned long CPUFUNC(op_2050_5)(uint32_t opcode) /* MOVEA */
32481 {
32482 	uint32_t srcreg = (opcode & 7);
32483 	uint32_t dstreg = (opcode >> 9) & 7;
32484 	OpcodeFamily = 31; CurrentInstrCycles = 12;
32485 {{	uint32_t srca = m68k_areg(regs, srcreg);
32486 	if ((srca & 1) != 0) {
32487 		last_fault_for_exception_3 = srca;
32488 		last_op_for_exception_3 = opcode;
32489 		last_addr_for_exception_3 = m68k_getpc() + 2;
32490 		Exception(3, 0, M68000_EXC_SRC_CPU);
32491 		goto endlabel1933;
32492 	}
32493 {{	int32_t src = m68k_read_memory_32(srca);
32494 {	uint32_t val = src;
32495 	m68k_areg(regs, dstreg) = (val);
32496 }}}}}m68k_incpc(2);
32497 fill_prefetch_2 ();
32498 endlabel1933: ;
32499 return 12;
32500 }
CPUFUNC(op_2058_5)32501 unsigned long CPUFUNC(op_2058_5)(uint32_t opcode) /* MOVEA */
32502 {
32503 	uint32_t srcreg = (opcode & 7);
32504 	uint32_t dstreg = (opcode >> 9) & 7;
32505 	OpcodeFamily = 31; CurrentInstrCycles = 12;
32506 {{	uint32_t srca = m68k_areg(regs, srcreg);
32507 	if ((srca & 1) != 0) {
32508 		last_fault_for_exception_3 = srca;
32509 		last_op_for_exception_3 = opcode;
32510 		last_addr_for_exception_3 = m68k_getpc() + 2;
32511 		Exception(3, 0, M68000_EXC_SRC_CPU);
32512 		goto endlabel1934;
32513 	}
32514 {{	int32_t src = m68k_read_memory_32(srca);
32515 	m68k_areg(regs, srcreg) += 4;
32516 {	uint32_t val = src;
32517 	m68k_areg(regs, dstreg) = (val);
32518 }}}}}m68k_incpc(2);
32519 fill_prefetch_2 ();
32520 endlabel1934: ;
32521 return 12;
32522 }
CPUFUNC(op_2060_5)32523 unsigned long CPUFUNC(op_2060_5)(uint32_t opcode) /* MOVEA */
32524 {
32525 	uint32_t srcreg = (opcode & 7);
32526 	uint32_t dstreg = (opcode >> 9) & 7;
32527 	OpcodeFamily = 31; CurrentInstrCycles = 14;
32528 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
32529 	if ((srca & 1) != 0) {
32530 		last_fault_for_exception_3 = srca;
32531 		last_op_for_exception_3 = opcode;
32532 		last_addr_for_exception_3 = m68k_getpc() + 2;
32533 		Exception(3, 0, M68000_EXC_SRC_CPU);
32534 		goto endlabel1935;
32535 	}
32536 {{	int32_t src = m68k_read_memory_32(srca);
32537 	m68k_areg (regs, srcreg) = srca;
32538 {	uint32_t val = src;
32539 	m68k_areg(regs, dstreg) = (val);
32540 }}}}}m68k_incpc(2);
32541 fill_prefetch_2 ();
32542 endlabel1935: ;
32543 return 14;
32544 }
CPUFUNC(op_2068_5)32545 unsigned long CPUFUNC(op_2068_5)(uint32_t opcode) /* MOVEA */
32546 {
32547 	uint32_t srcreg = (opcode & 7);
32548 	uint32_t dstreg = (opcode >> 9) & 7;
32549 	OpcodeFamily = 31; CurrentInstrCycles = 16;
32550 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
32551 	if ((srca & 1) != 0) {
32552 		last_fault_for_exception_3 = srca;
32553 		last_op_for_exception_3 = opcode;
32554 		last_addr_for_exception_3 = m68k_getpc() + 4;
32555 		Exception(3, 0, M68000_EXC_SRC_CPU);
32556 		goto endlabel1936;
32557 	}
32558 {{	int32_t src = m68k_read_memory_32(srca);
32559 {	uint32_t val = src;
32560 	m68k_areg(regs, dstreg) = (val);
32561 }}}}}m68k_incpc(4);
32562 fill_prefetch_0 ();
32563 endlabel1936: ;
32564 return 16;
32565 }
CPUFUNC(op_2070_5)32566 unsigned long CPUFUNC(op_2070_5)(uint32_t opcode) /* MOVEA */
32567 {
32568 	uint32_t srcreg = (opcode & 7);
32569 	uint32_t dstreg = (opcode >> 9) & 7;
32570 	OpcodeFamily = 31; CurrentInstrCycles = 18;
32571 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
32572 	BusCyclePenalty += 2;
32573 	if ((srca & 1) != 0) {
32574 		last_fault_for_exception_3 = srca;
32575 		last_op_for_exception_3 = opcode;
32576 		last_addr_for_exception_3 = m68k_getpc() + 4;
32577 		Exception(3, 0, M68000_EXC_SRC_CPU);
32578 		goto endlabel1937;
32579 	}
32580 {{	int32_t src = m68k_read_memory_32(srca);
32581 {	uint32_t val = src;
32582 	m68k_areg(regs, dstreg) = (val);
32583 }}}}}m68k_incpc(4);
32584 fill_prefetch_0 ();
32585 endlabel1937: ;
32586 return 18;
32587 }
CPUFUNC(op_2078_5)32588 unsigned long CPUFUNC(op_2078_5)(uint32_t opcode) /* MOVEA */
32589 {
32590 	uint32_t dstreg = (opcode >> 9) & 7;
32591 	OpcodeFamily = 31; CurrentInstrCycles = 16;
32592 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
32593 	if ((srca & 1) != 0) {
32594 		last_fault_for_exception_3 = srca;
32595 		last_op_for_exception_3 = opcode;
32596 		last_addr_for_exception_3 = m68k_getpc() + 4;
32597 		Exception(3, 0, M68000_EXC_SRC_CPU);
32598 		goto endlabel1938;
32599 	}
32600 {{	int32_t src = m68k_read_memory_32(srca);
32601 {	uint32_t val = src;
32602 	m68k_areg(regs, dstreg) = (val);
32603 }}}}}m68k_incpc(4);
32604 fill_prefetch_0 ();
32605 endlabel1938: ;
32606 return 16;
32607 }
CPUFUNC(op_2079_5)32608 unsigned long CPUFUNC(op_2079_5)(uint32_t opcode) /* MOVEA */
32609 {
32610 	uint32_t dstreg = (opcode >> 9) & 7;
32611 	OpcodeFamily = 31; CurrentInstrCycles = 20;
32612 {{	uint32_t srca = get_ilong_prefetch(2);
32613 	if ((srca & 1) != 0) {
32614 		last_fault_for_exception_3 = srca;
32615 		last_op_for_exception_3 = opcode;
32616 		last_addr_for_exception_3 = m68k_getpc() + 6;
32617 		Exception(3, 0, M68000_EXC_SRC_CPU);
32618 		goto endlabel1939;
32619 	}
32620 {{	int32_t src = m68k_read_memory_32(srca);
32621 {	uint32_t val = src;
32622 	m68k_areg(regs, dstreg) = (val);
32623 }}}}}m68k_incpc(6);
32624 fill_prefetch_0 ();
32625 endlabel1939: ;
32626 return 20;
32627 }
CPUFUNC(op_207a_5)32628 unsigned long CPUFUNC(op_207a_5)(uint32_t opcode) /* MOVEA */
32629 {
32630 	uint32_t dstreg = (opcode >> 9) & 7;
32631 	OpcodeFamily = 31; CurrentInstrCycles = 16;
32632 {{	uint32_t srca = m68k_getpc () + 2;
32633 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
32634 	if ((srca & 1) != 0) {
32635 		last_fault_for_exception_3 = srca;
32636 		last_op_for_exception_3 = opcode;
32637 		last_addr_for_exception_3 = m68k_getpc() + 4;
32638 		Exception(3, 0, M68000_EXC_SRC_CPU);
32639 		goto endlabel1940;
32640 	}
32641 {{	int32_t src = m68k_read_memory_32(srca);
32642 {	uint32_t val = src;
32643 	m68k_areg(regs, dstreg) = (val);
32644 }}}}}m68k_incpc(4);
32645 fill_prefetch_0 ();
32646 endlabel1940: ;
32647 return 16;
32648 }
CPUFUNC(op_207b_5)32649 unsigned long CPUFUNC(op_207b_5)(uint32_t opcode) /* MOVEA */
32650 {
32651 	uint32_t dstreg = (opcode >> 9) & 7;
32652 	OpcodeFamily = 31; CurrentInstrCycles = 18;
32653 {{	uint32_t tmppc = m68k_getpc() + 2;
32654 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
32655 	BusCyclePenalty += 2;
32656 	if ((srca & 1) != 0) {
32657 		last_fault_for_exception_3 = srca;
32658 		last_op_for_exception_3 = opcode;
32659 		last_addr_for_exception_3 = m68k_getpc() + 4;
32660 		Exception(3, 0, M68000_EXC_SRC_CPU);
32661 		goto endlabel1941;
32662 	}
32663 {{	int32_t src = m68k_read_memory_32(srca);
32664 {	uint32_t val = src;
32665 	m68k_areg(regs, dstreg) = (val);
32666 }}}}}m68k_incpc(4);
32667 fill_prefetch_0 ();
32668 endlabel1941: ;
32669 return 18;
32670 }
CPUFUNC(op_207c_5)32671 unsigned long CPUFUNC(op_207c_5)(uint32_t opcode) /* MOVEA */
32672 {
32673 	uint32_t dstreg = (opcode >> 9) & 7;
32674 	OpcodeFamily = 31; CurrentInstrCycles = 12;
32675 {{	int32_t src = get_ilong_prefetch(2);
32676 {	uint32_t val = src;
32677 	m68k_areg(regs, dstreg) = (val);
32678 }}}m68k_incpc(6);
32679 fill_prefetch_0 ();
32680 return 12;
32681 }
CPUFUNC(op_2080_5)32682 unsigned long CPUFUNC(op_2080_5)(uint32_t opcode) /* MOVE */
32683 {
32684 	uint32_t srcreg = (opcode & 7);
32685 	uint32_t dstreg = (opcode >> 9) & 7;
32686 	OpcodeFamily = 30; CurrentInstrCycles = 12;
32687 {{	int32_t src = m68k_dreg(regs, srcreg);
32688 {	uint32_t dsta = m68k_areg(regs, dstreg);
32689 	if ((dsta & 1) != 0) {
32690 		last_fault_for_exception_3 = dsta;
32691 		last_op_for_exception_3 = opcode;
32692 		last_addr_for_exception_3 = m68k_getpc() + 2;
32693 		Exception(3, 0, M68000_EXC_SRC_CPU);
32694 		goto endlabel1943;
32695 	}
32696 {	CLEAR_CZNV;
32697 	SET_ZFLG (((int32_t)(src)) == 0);
32698 	SET_NFLG (((int32_t)(src)) < 0);
32699 m68k_incpc(2);
32700 fill_prefetch_2 ();
32701 	m68k_write_memory_32(dsta,src);
32702 }}}}endlabel1943: ;
32703 return 12;
32704 }
CPUFUNC(op_2088_5)32705 unsigned long CPUFUNC(op_2088_5)(uint32_t opcode) /* MOVE */
32706 {
32707 	uint32_t srcreg = (opcode & 7);
32708 	uint32_t dstreg = (opcode >> 9) & 7;
32709 	OpcodeFamily = 30; CurrentInstrCycles = 12;
32710 {{	int32_t src = m68k_areg(regs, srcreg);
32711 {	uint32_t dsta = m68k_areg(regs, dstreg);
32712 	if ((dsta & 1) != 0) {
32713 		last_fault_for_exception_3 = dsta;
32714 		last_op_for_exception_3 = opcode;
32715 		last_addr_for_exception_3 = m68k_getpc() + 2;
32716 		Exception(3, 0, M68000_EXC_SRC_CPU);
32717 		goto endlabel1944;
32718 	}
32719 {	CLEAR_CZNV;
32720 	SET_ZFLG (((int32_t)(src)) == 0);
32721 	SET_NFLG (((int32_t)(src)) < 0);
32722 m68k_incpc(2);
32723 fill_prefetch_2 ();
32724 	m68k_write_memory_32(dsta,src);
32725 }}}}endlabel1944: ;
32726 return 12;
32727 }
CPUFUNC(op_2090_5)32728 unsigned long CPUFUNC(op_2090_5)(uint32_t opcode) /* MOVE */
32729 {
32730 	uint32_t srcreg = (opcode & 7);
32731 	uint32_t dstreg = (opcode >> 9) & 7;
32732 	OpcodeFamily = 30; CurrentInstrCycles = 20;
32733 {{	uint32_t srca = m68k_areg(regs, srcreg);
32734 	if ((srca & 1) != 0) {
32735 		last_fault_for_exception_3 = srca;
32736 		last_op_for_exception_3 = opcode;
32737 		last_addr_for_exception_3 = m68k_getpc() + 2;
32738 		Exception(3, 0, M68000_EXC_SRC_CPU);
32739 		goto endlabel1945;
32740 	}
32741 {{	int32_t src = m68k_read_memory_32(srca);
32742 {	uint32_t dsta = m68k_areg(regs, dstreg);
32743 	if ((dsta & 1) != 0) {
32744 		last_fault_for_exception_3 = dsta;
32745 		last_op_for_exception_3 = opcode;
32746 		last_addr_for_exception_3 = m68k_getpc() + 2;
32747 		Exception(3, 0, M68000_EXC_SRC_CPU);
32748 		goto endlabel1945;
32749 	}
32750 {	CLEAR_CZNV;
32751 	SET_ZFLG (((int32_t)(src)) == 0);
32752 	SET_NFLG (((int32_t)(src)) < 0);
32753 m68k_incpc(2);
32754 fill_prefetch_2 ();
32755 	m68k_write_memory_32(dsta,src);
32756 }}}}}}endlabel1945: ;
32757 return 20;
32758 }
CPUFUNC(op_2098_5)32759 unsigned long CPUFUNC(op_2098_5)(uint32_t opcode) /* MOVE */
32760 {
32761 	uint32_t srcreg = (opcode & 7);
32762 	uint32_t dstreg = (opcode >> 9) & 7;
32763 	OpcodeFamily = 30; CurrentInstrCycles = 20;
32764 {{	uint32_t srca = m68k_areg(regs, srcreg);
32765 	if ((srca & 1) != 0) {
32766 		last_fault_for_exception_3 = srca;
32767 		last_op_for_exception_3 = opcode;
32768 		last_addr_for_exception_3 = m68k_getpc() + 2;
32769 		Exception(3, 0, M68000_EXC_SRC_CPU);
32770 		goto endlabel1946;
32771 	}
32772 {{	int32_t src = m68k_read_memory_32(srca);
32773 	m68k_areg(regs, srcreg) += 4;
32774 {	uint32_t dsta = m68k_areg(regs, dstreg);
32775 	if ((dsta & 1) != 0) {
32776 		last_fault_for_exception_3 = dsta;
32777 		last_op_for_exception_3 = opcode;
32778 		last_addr_for_exception_3 = m68k_getpc() + 2;
32779 		Exception(3, 0, M68000_EXC_SRC_CPU);
32780 		goto endlabel1946;
32781 	}
32782 {	CLEAR_CZNV;
32783 	SET_ZFLG (((int32_t)(src)) == 0);
32784 	SET_NFLG (((int32_t)(src)) < 0);
32785 m68k_incpc(2);
32786 fill_prefetch_2 ();
32787 	m68k_write_memory_32(dsta,src);
32788 }}}}}}endlabel1946: ;
32789 return 20;
32790 }
CPUFUNC(op_20a0_5)32791 unsigned long CPUFUNC(op_20a0_5)(uint32_t opcode) /* MOVE */
32792 {
32793 	uint32_t srcreg = (opcode & 7);
32794 	uint32_t dstreg = (opcode >> 9) & 7;
32795 	OpcodeFamily = 30; CurrentInstrCycles = 22;
32796 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
32797 	if ((srca & 1) != 0) {
32798 		last_fault_for_exception_3 = srca;
32799 		last_op_for_exception_3 = opcode;
32800 		last_addr_for_exception_3 = m68k_getpc() + 2;
32801 		Exception(3, 0, M68000_EXC_SRC_CPU);
32802 		goto endlabel1947;
32803 	}
32804 {{	int32_t src = m68k_read_memory_32(srca);
32805 	m68k_areg (regs, srcreg) = srca;
32806 {	uint32_t dsta = m68k_areg(regs, dstreg);
32807 	if ((dsta & 1) != 0) {
32808 		last_fault_for_exception_3 = dsta;
32809 		last_op_for_exception_3 = opcode;
32810 		last_addr_for_exception_3 = m68k_getpc() + 2;
32811 		Exception(3, 0, M68000_EXC_SRC_CPU);
32812 		goto endlabel1947;
32813 	}
32814 {	CLEAR_CZNV;
32815 	SET_ZFLG (((int32_t)(src)) == 0);
32816 	SET_NFLG (((int32_t)(src)) < 0);
32817 m68k_incpc(2);
32818 fill_prefetch_2 ();
32819 	m68k_write_memory_32(dsta,src);
32820 }}}}}}endlabel1947: ;
32821 return 22;
32822 }
CPUFUNC(op_20a8_5)32823 unsigned long CPUFUNC(op_20a8_5)(uint32_t opcode) /* MOVE */
32824 {
32825 	uint32_t srcreg = (opcode & 7);
32826 	uint32_t dstreg = (opcode >> 9) & 7;
32827 	OpcodeFamily = 30; CurrentInstrCycles = 24;
32828 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
32829 	if ((srca & 1) != 0) {
32830 		last_fault_for_exception_3 = srca;
32831 		last_op_for_exception_3 = opcode;
32832 		last_addr_for_exception_3 = m68k_getpc() + 4;
32833 		Exception(3, 0, M68000_EXC_SRC_CPU);
32834 		goto endlabel1948;
32835 	}
32836 {{	int32_t src = m68k_read_memory_32(srca);
32837 {	uint32_t dsta = m68k_areg(regs, dstreg);
32838 	if ((dsta & 1) != 0) {
32839 		last_fault_for_exception_3 = dsta;
32840 		last_op_for_exception_3 = opcode;
32841 		last_addr_for_exception_3 = m68k_getpc() + 4;
32842 		Exception(3, 0, M68000_EXC_SRC_CPU);
32843 		goto endlabel1948;
32844 	}
32845 {	CLEAR_CZNV;
32846 	SET_ZFLG (((int32_t)(src)) == 0);
32847 	SET_NFLG (((int32_t)(src)) < 0);
32848 m68k_incpc(4);
32849 fill_prefetch_0 ();
32850 	m68k_write_memory_32(dsta,src);
32851 }}}}}}endlabel1948: ;
32852 return 24;
32853 }
CPUFUNC(op_20b0_5)32854 unsigned long CPUFUNC(op_20b0_5)(uint32_t opcode) /* MOVE */
32855 {
32856 	uint32_t srcreg = (opcode & 7);
32857 	uint32_t dstreg = (opcode >> 9) & 7;
32858 	OpcodeFamily = 30; CurrentInstrCycles = 26;
32859 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
32860 	BusCyclePenalty += 2;
32861 	if ((srca & 1) != 0) {
32862 		last_fault_for_exception_3 = srca;
32863 		last_op_for_exception_3 = opcode;
32864 		last_addr_for_exception_3 = m68k_getpc() + 4;
32865 		Exception(3, 0, M68000_EXC_SRC_CPU);
32866 		goto endlabel1949;
32867 	}
32868 {{	int32_t src = m68k_read_memory_32(srca);
32869 {	uint32_t dsta = m68k_areg(regs, dstreg);
32870 	if ((dsta & 1) != 0) {
32871 		last_fault_for_exception_3 = dsta;
32872 		last_op_for_exception_3 = opcode;
32873 		last_addr_for_exception_3 = m68k_getpc() + 4;
32874 		Exception(3, 0, M68000_EXC_SRC_CPU);
32875 		goto endlabel1949;
32876 	}
32877 {	CLEAR_CZNV;
32878 	SET_ZFLG (((int32_t)(src)) == 0);
32879 	SET_NFLG (((int32_t)(src)) < 0);
32880 m68k_incpc(4);
32881 fill_prefetch_0 ();
32882 	m68k_write_memory_32(dsta,src);
32883 }}}}}}endlabel1949: ;
32884 return 26;
32885 }
CPUFUNC(op_20b8_5)32886 unsigned long CPUFUNC(op_20b8_5)(uint32_t opcode) /* MOVE */
32887 {
32888 	uint32_t dstreg = (opcode >> 9) & 7;
32889 	OpcodeFamily = 30; CurrentInstrCycles = 24;
32890 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
32891 	if ((srca & 1) != 0) {
32892 		last_fault_for_exception_3 = srca;
32893 		last_op_for_exception_3 = opcode;
32894 		last_addr_for_exception_3 = m68k_getpc() + 4;
32895 		Exception(3, 0, M68000_EXC_SRC_CPU);
32896 		goto endlabel1950;
32897 	}
32898 {{	int32_t src = m68k_read_memory_32(srca);
32899 {	uint32_t dsta = m68k_areg(regs, dstreg);
32900 	if ((dsta & 1) != 0) {
32901 		last_fault_for_exception_3 = dsta;
32902 		last_op_for_exception_3 = opcode;
32903 		last_addr_for_exception_3 = m68k_getpc() + 4;
32904 		Exception(3, 0, M68000_EXC_SRC_CPU);
32905 		goto endlabel1950;
32906 	}
32907 {	CLEAR_CZNV;
32908 	SET_ZFLG (((int32_t)(src)) == 0);
32909 	SET_NFLG (((int32_t)(src)) < 0);
32910 m68k_incpc(4);
32911 fill_prefetch_0 ();
32912 	m68k_write_memory_32(dsta,src);
32913 }}}}}}endlabel1950: ;
32914 return 24;
32915 }
CPUFUNC(op_20b9_5)32916 unsigned long CPUFUNC(op_20b9_5)(uint32_t opcode) /* MOVE */
32917 {
32918 	uint32_t dstreg = (opcode >> 9) & 7;
32919 	OpcodeFamily = 30; CurrentInstrCycles = 28;
32920 {{	uint32_t srca = get_ilong_prefetch(2);
32921 	if ((srca & 1) != 0) {
32922 		last_fault_for_exception_3 = srca;
32923 		last_op_for_exception_3 = opcode;
32924 		last_addr_for_exception_3 = m68k_getpc() + 6;
32925 		Exception(3, 0, M68000_EXC_SRC_CPU);
32926 		goto endlabel1951;
32927 	}
32928 {{	int32_t src = m68k_read_memory_32(srca);
32929 {	uint32_t dsta = m68k_areg(regs, dstreg);
32930 	if ((dsta & 1) != 0) {
32931 		last_fault_for_exception_3 = dsta;
32932 		last_op_for_exception_3 = opcode;
32933 		last_addr_for_exception_3 = m68k_getpc() + 6;
32934 		Exception(3, 0, M68000_EXC_SRC_CPU);
32935 		goto endlabel1951;
32936 	}
32937 {	CLEAR_CZNV;
32938 	SET_ZFLG (((int32_t)(src)) == 0);
32939 	SET_NFLG (((int32_t)(src)) < 0);
32940 m68k_incpc(6);
32941 fill_prefetch_0 ();
32942 	m68k_write_memory_32(dsta,src);
32943 }}}}}}endlabel1951: ;
32944 return 28;
32945 }
CPUFUNC(op_20ba_5)32946 unsigned long CPUFUNC(op_20ba_5)(uint32_t opcode) /* MOVE */
32947 {
32948 	uint32_t dstreg = (opcode >> 9) & 7;
32949 	OpcodeFamily = 30; CurrentInstrCycles = 24;
32950 {{	uint32_t srca = m68k_getpc () + 2;
32951 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
32952 	if ((srca & 1) != 0) {
32953 		last_fault_for_exception_3 = srca;
32954 		last_op_for_exception_3 = opcode;
32955 		last_addr_for_exception_3 = m68k_getpc() + 4;
32956 		Exception(3, 0, M68000_EXC_SRC_CPU);
32957 		goto endlabel1952;
32958 	}
32959 {{	int32_t src = m68k_read_memory_32(srca);
32960 {	uint32_t dsta = m68k_areg(regs, dstreg);
32961 	if ((dsta & 1) != 0) {
32962 		last_fault_for_exception_3 = dsta;
32963 		last_op_for_exception_3 = opcode;
32964 		last_addr_for_exception_3 = m68k_getpc() + 4;
32965 		Exception(3, 0, M68000_EXC_SRC_CPU);
32966 		goto endlabel1952;
32967 	}
32968 {	CLEAR_CZNV;
32969 	SET_ZFLG (((int32_t)(src)) == 0);
32970 	SET_NFLG (((int32_t)(src)) < 0);
32971 m68k_incpc(4);
32972 fill_prefetch_0 ();
32973 	m68k_write_memory_32(dsta,src);
32974 }}}}}}endlabel1952: ;
32975 return 24;
32976 }
CPUFUNC(op_20bb_5)32977 unsigned long CPUFUNC(op_20bb_5)(uint32_t opcode) /* MOVE */
32978 {
32979 	uint32_t dstreg = (opcode >> 9) & 7;
32980 	OpcodeFamily = 30; CurrentInstrCycles = 26;
32981 {{	uint32_t tmppc = m68k_getpc() + 2;
32982 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
32983 	BusCyclePenalty += 2;
32984 	if ((srca & 1) != 0) {
32985 		last_fault_for_exception_3 = srca;
32986 		last_op_for_exception_3 = opcode;
32987 		last_addr_for_exception_3 = m68k_getpc() + 4;
32988 		Exception(3, 0, M68000_EXC_SRC_CPU);
32989 		goto endlabel1953;
32990 	}
32991 {{	int32_t src = m68k_read_memory_32(srca);
32992 {	uint32_t dsta = m68k_areg(regs, dstreg);
32993 	if ((dsta & 1) != 0) {
32994 		last_fault_for_exception_3 = dsta;
32995 		last_op_for_exception_3 = opcode;
32996 		last_addr_for_exception_3 = m68k_getpc() + 4;
32997 		Exception(3, 0, M68000_EXC_SRC_CPU);
32998 		goto endlabel1953;
32999 	}
33000 {	CLEAR_CZNV;
33001 	SET_ZFLG (((int32_t)(src)) == 0);
33002 	SET_NFLG (((int32_t)(src)) < 0);
33003 m68k_incpc(4);
33004 fill_prefetch_0 ();
33005 	m68k_write_memory_32(dsta,src);
33006 }}}}}}endlabel1953: ;
33007 return 26;
33008 }
CPUFUNC(op_20bc_5)33009 unsigned long CPUFUNC(op_20bc_5)(uint32_t opcode) /* MOVE */
33010 {
33011 	uint32_t dstreg = (opcode >> 9) & 7;
33012 	OpcodeFamily = 30; CurrentInstrCycles = 20;
33013 {{	int32_t src = get_ilong_prefetch(2);
33014 {	uint32_t dsta = m68k_areg(regs, dstreg);
33015 	if ((dsta & 1) != 0) {
33016 		last_fault_for_exception_3 = dsta;
33017 		last_op_for_exception_3 = opcode;
33018 		last_addr_for_exception_3 = m68k_getpc() + 6;
33019 		Exception(3, 0, M68000_EXC_SRC_CPU);
33020 		goto endlabel1954;
33021 	}
33022 {	CLEAR_CZNV;
33023 	SET_ZFLG (((int32_t)(src)) == 0);
33024 	SET_NFLG (((int32_t)(src)) < 0);
33025 m68k_incpc(6);
33026 fill_prefetch_0 ();
33027 	m68k_write_memory_32(dsta,src);
33028 }}}}endlabel1954: ;
33029 return 20;
33030 }
CPUFUNC(op_20c0_5)33031 unsigned long CPUFUNC(op_20c0_5)(uint32_t opcode) /* MOVE */
33032 {
33033 	uint32_t srcreg = (opcode & 7);
33034 	uint32_t dstreg = (opcode >> 9) & 7;
33035 	OpcodeFamily = 30; CurrentInstrCycles = 12;
33036 {{	int32_t src = m68k_dreg(regs, srcreg);
33037 {	uint32_t dsta = m68k_areg(regs, dstreg);
33038 	if ((dsta & 1) != 0) {
33039 		last_fault_for_exception_3 = dsta;
33040 		last_op_for_exception_3 = opcode;
33041 		last_addr_for_exception_3 = m68k_getpc() + 2;
33042 		Exception(3, 0, M68000_EXC_SRC_CPU);
33043 		goto endlabel1955;
33044 	}
33045 {	m68k_areg(regs, dstreg) += 4;
33046 	CLEAR_CZNV;
33047 	SET_ZFLG (((int32_t)(src)) == 0);
33048 	SET_NFLG (((int32_t)(src)) < 0);
33049 m68k_incpc(2);
33050 fill_prefetch_2 ();
33051 	m68k_write_memory_32(dsta,src);
33052 }}}}endlabel1955: ;
33053 return 12;
33054 }
CPUFUNC(op_20c8_5)33055 unsigned long CPUFUNC(op_20c8_5)(uint32_t opcode) /* MOVE */
33056 {
33057 	uint32_t srcreg = (opcode & 7);
33058 	uint32_t dstreg = (opcode >> 9) & 7;
33059 	OpcodeFamily = 30; CurrentInstrCycles = 12;
33060 {{	int32_t src = m68k_areg(regs, srcreg);
33061 {	uint32_t dsta = m68k_areg(regs, dstreg);
33062 	if ((dsta & 1) != 0) {
33063 		last_fault_for_exception_3 = dsta;
33064 		last_op_for_exception_3 = opcode;
33065 		last_addr_for_exception_3 = m68k_getpc() + 2;
33066 		Exception(3, 0, M68000_EXC_SRC_CPU);
33067 		goto endlabel1956;
33068 	}
33069 {	m68k_areg(regs, dstreg) += 4;
33070 	CLEAR_CZNV;
33071 	SET_ZFLG (((int32_t)(src)) == 0);
33072 	SET_NFLG (((int32_t)(src)) < 0);
33073 m68k_incpc(2);
33074 fill_prefetch_2 ();
33075 	m68k_write_memory_32(dsta,src);
33076 }}}}endlabel1956: ;
33077 return 12;
33078 }
CPUFUNC(op_20d0_5)33079 unsigned long CPUFUNC(op_20d0_5)(uint32_t opcode) /* MOVE */
33080 {
33081 	uint32_t srcreg = (opcode & 7);
33082 	uint32_t dstreg = (opcode >> 9) & 7;
33083 	OpcodeFamily = 30; CurrentInstrCycles = 20;
33084 {{	uint32_t srca = m68k_areg(regs, srcreg);
33085 	if ((srca & 1) != 0) {
33086 		last_fault_for_exception_3 = srca;
33087 		last_op_for_exception_3 = opcode;
33088 		last_addr_for_exception_3 = m68k_getpc() + 2;
33089 		Exception(3, 0, M68000_EXC_SRC_CPU);
33090 		goto endlabel1957;
33091 	}
33092 {{	int32_t src = m68k_read_memory_32(srca);
33093 {	uint32_t dsta = m68k_areg(regs, dstreg);
33094 	if ((dsta & 1) != 0) {
33095 		last_fault_for_exception_3 = dsta;
33096 		last_op_for_exception_3 = opcode;
33097 		last_addr_for_exception_3 = m68k_getpc() + 2;
33098 		Exception(3, 0, M68000_EXC_SRC_CPU);
33099 		goto endlabel1957;
33100 	}
33101 {	m68k_areg(regs, dstreg) += 4;
33102 	CLEAR_CZNV;
33103 	SET_ZFLG (((int32_t)(src)) == 0);
33104 	SET_NFLG (((int32_t)(src)) < 0);
33105 m68k_incpc(2);
33106 fill_prefetch_2 ();
33107 	m68k_write_memory_32(dsta,src);
33108 }}}}}}endlabel1957: ;
33109 return 20;
33110 }
CPUFUNC(op_20d8_5)33111 unsigned long CPUFUNC(op_20d8_5)(uint32_t opcode) /* MOVE */
33112 {
33113 	uint32_t srcreg = (opcode & 7);
33114 	uint32_t dstreg = (opcode >> 9) & 7;
33115 	OpcodeFamily = 30; CurrentInstrCycles = 20;
33116 {{	uint32_t srca = m68k_areg(regs, srcreg);
33117 	if ((srca & 1) != 0) {
33118 		last_fault_for_exception_3 = srca;
33119 		last_op_for_exception_3 = opcode;
33120 		last_addr_for_exception_3 = m68k_getpc() + 2;
33121 		Exception(3, 0, M68000_EXC_SRC_CPU);
33122 		goto endlabel1958;
33123 	}
33124 {{	int32_t src = m68k_read_memory_32(srca);
33125 	m68k_areg(regs, srcreg) += 4;
33126 {	uint32_t dsta = m68k_areg(regs, dstreg);
33127 	if ((dsta & 1) != 0) {
33128 		last_fault_for_exception_3 = dsta;
33129 		last_op_for_exception_3 = opcode;
33130 		last_addr_for_exception_3 = m68k_getpc() + 2;
33131 		Exception(3, 0, M68000_EXC_SRC_CPU);
33132 		goto endlabel1958;
33133 	}
33134 {	m68k_areg(regs, dstreg) += 4;
33135 	CLEAR_CZNV;
33136 	SET_ZFLG (((int32_t)(src)) == 0);
33137 	SET_NFLG (((int32_t)(src)) < 0);
33138 m68k_incpc(2);
33139 fill_prefetch_2 ();
33140 	m68k_write_memory_32(dsta,src);
33141 }}}}}}endlabel1958: ;
33142 return 20;
33143 }
CPUFUNC(op_20e0_5)33144 unsigned long CPUFUNC(op_20e0_5)(uint32_t opcode) /* MOVE */
33145 {
33146 	uint32_t srcreg = (opcode & 7);
33147 	uint32_t dstreg = (opcode >> 9) & 7;
33148 	OpcodeFamily = 30; CurrentInstrCycles = 22;
33149 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
33150 	if ((srca & 1) != 0) {
33151 		last_fault_for_exception_3 = srca;
33152 		last_op_for_exception_3 = opcode;
33153 		last_addr_for_exception_3 = m68k_getpc() + 2;
33154 		Exception(3, 0, M68000_EXC_SRC_CPU);
33155 		goto endlabel1959;
33156 	}
33157 {{	int32_t src = m68k_read_memory_32(srca);
33158 	m68k_areg (regs, srcreg) = srca;
33159 {	uint32_t dsta = m68k_areg(regs, dstreg);
33160 	if ((dsta & 1) != 0) {
33161 		last_fault_for_exception_3 = dsta;
33162 		last_op_for_exception_3 = opcode;
33163 		last_addr_for_exception_3 = m68k_getpc() + 2;
33164 		Exception(3, 0, M68000_EXC_SRC_CPU);
33165 		goto endlabel1959;
33166 	}
33167 {	m68k_areg(regs, dstreg) += 4;
33168 	CLEAR_CZNV;
33169 	SET_ZFLG (((int32_t)(src)) == 0);
33170 	SET_NFLG (((int32_t)(src)) < 0);
33171 m68k_incpc(2);
33172 fill_prefetch_2 ();
33173 	m68k_write_memory_32(dsta,src);
33174 }}}}}}endlabel1959: ;
33175 return 22;
33176 }
CPUFUNC(op_20e8_5)33177 unsigned long CPUFUNC(op_20e8_5)(uint32_t opcode) /* MOVE */
33178 {
33179 	uint32_t srcreg = (opcode & 7);
33180 	uint32_t dstreg = (opcode >> 9) & 7;
33181 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33182 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33183 	if ((srca & 1) != 0) {
33184 		last_fault_for_exception_3 = srca;
33185 		last_op_for_exception_3 = opcode;
33186 		last_addr_for_exception_3 = m68k_getpc() + 4;
33187 		Exception(3, 0, M68000_EXC_SRC_CPU);
33188 		goto endlabel1960;
33189 	}
33190 {{	int32_t src = m68k_read_memory_32(srca);
33191 {	uint32_t dsta = m68k_areg(regs, dstreg);
33192 	if ((dsta & 1) != 0) {
33193 		last_fault_for_exception_3 = dsta;
33194 		last_op_for_exception_3 = opcode;
33195 		last_addr_for_exception_3 = m68k_getpc() + 4;
33196 		Exception(3, 0, M68000_EXC_SRC_CPU);
33197 		goto endlabel1960;
33198 	}
33199 {	m68k_areg(regs, dstreg) += 4;
33200 	CLEAR_CZNV;
33201 	SET_ZFLG (((int32_t)(src)) == 0);
33202 	SET_NFLG (((int32_t)(src)) < 0);
33203 m68k_incpc(4);
33204 fill_prefetch_0 ();
33205 	m68k_write_memory_32(dsta,src);
33206 }}}}}}endlabel1960: ;
33207 return 24;
33208 }
CPUFUNC(op_20f0_5)33209 unsigned long CPUFUNC(op_20f0_5)(uint32_t opcode) /* MOVE */
33210 {
33211 	uint32_t srcreg = (opcode & 7);
33212 	uint32_t dstreg = (opcode >> 9) & 7;
33213 	OpcodeFamily = 30; CurrentInstrCycles = 26;
33214 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
33215 	BusCyclePenalty += 2;
33216 	if ((srca & 1) != 0) {
33217 		last_fault_for_exception_3 = srca;
33218 		last_op_for_exception_3 = opcode;
33219 		last_addr_for_exception_3 = m68k_getpc() + 4;
33220 		Exception(3, 0, M68000_EXC_SRC_CPU);
33221 		goto endlabel1961;
33222 	}
33223 {{	int32_t src = m68k_read_memory_32(srca);
33224 {	uint32_t dsta = m68k_areg(regs, dstreg);
33225 	if ((dsta & 1) != 0) {
33226 		last_fault_for_exception_3 = dsta;
33227 		last_op_for_exception_3 = opcode;
33228 		last_addr_for_exception_3 = m68k_getpc() + 4;
33229 		Exception(3, 0, M68000_EXC_SRC_CPU);
33230 		goto endlabel1961;
33231 	}
33232 {	m68k_areg(regs, dstreg) += 4;
33233 	CLEAR_CZNV;
33234 	SET_ZFLG (((int32_t)(src)) == 0);
33235 	SET_NFLG (((int32_t)(src)) < 0);
33236 m68k_incpc(4);
33237 fill_prefetch_0 ();
33238 	m68k_write_memory_32(dsta,src);
33239 }}}}}}endlabel1961: ;
33240 return 26;
33241 }
CPUFUNC(op_20f8_5)33242 unsigned long CPUFUNC(op_20f8_5)(uint32_t opcode) /* MOVE */
33243 {
33244 	uint32_t dstreg = (opcode >> 9) & 7;
33245 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33246 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
33247 	if ((srca & 1) != 0) {
33248 		last_fault_for_exception_3 = srca;
33249 		last_op_for_exception_3 = opcode;
33250 		last_addr_for_exception_3 = m68k_getpc() + 4;
33251 		Exception(3, 0, M68000_EXC_SRC_CPU);
33252 		goto endlabel1962;
33253 	}
33254 {{	int32_t src = m68k_read_memory_32(srca);
33255 {	uint32_t dsta = m68k_areg(regs, dstreg);
33256 	if ((dsta & 1) != 0) {
33257 		last_fault_for_exception_3 = dsta;
33258 		last_op_for_exception_3 = opcode;
33259 		last_addr_for_exception_3 = m68k_getpc() + 4;
33260 		Exception(3, 0, M68000_EXC_SRC_CPU);
33261 		goto endlabel1962;
33262 	}
33263 {	m68k_areg(regs, dstreg) += 4;
33264 	CLEAR_CZNV;
33265 	SET_ZFLG (((int32_t)(src)) == 0);
33266 	SET_NFLG (((int32_t)(src)) < 0);
33267 m68k_incpc(4);
33268 fill_prefetch_0 ();
33269 	m68k_write_memory_32(dsta,src);
33270 }}}}}}endlabel1962: ;
33271 return 24;
33272 }
CPUFUNC(op_20f9_5)33273 unsigned long CPUFUNC(op_20f9_5)(uint32_t opcode) /* MOVE */
33274 {
33275 	uint32_t dstreg = (opcode >> 9) & 7;
33276 	OpcodeFamily = 30; CurrentInstrCycles = 28;
33277 {{	uint32_t srca = get_ilong_prefetch(2);
33278 	if ((srca & 1) != 0) {
33279 		last_fault_for_exception_3 = srca;
33280 		last_op_for_exception_3 = opcode;
33281 		last_addr_for_exception_3 = m68k_getpc() + 6;
33282 		Exception(3, 0, M68000_EXC_SRC_CPU);
33283 		goto endlabel1963;
33284 	}
33285 {{	int32_t src = m68k_read_memory_32(srca);
33286 {	uint32_t dsta = m68k_areg(regs, dstreg);
33287 	if ((dsta & 1) != 0) {
33288 		last_fault_for_exception_3 = dsta;
33289 		last_op_for_exception_3 = opcode;
33290 		last_addr_for_exception_3 = m68k_getpc() + 6;
33291 		Exception(3, 0, M68000_EXC_SRC_CPU);
33292 		goto endlabel1963;
33293 	}
33294 {	m68k_areg(regs, dstreg) += 4;
33295 	CLEAR_CZNV;
33296 	SET_ZFLG (((int32_t)(src)) == 0);
33297 	SET_NFLG (((int32_t)(src)) < 0);
33298 m68k_incpc(6);
33299 fill_prefetch_0 ();
33300 	m68k_write_memory_32(dsta,src);
33301 }}}}}}endlabel1963: ;
33302 return 28;
33303 }
CPUFUNC(op_20fa_5)33304 unsigned long CPUFUNC(op_20fa_5)(uint32_t opcode) /* MOVE */
33305 {
33306 	uint32_t dstreg = (opcode >> 9) & 7;
33307 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33308 {{	uint32_t srca = m68k_getpc () + 2;
33309 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
33310 	if ((srca & 1) != 0) {
33311 		last_fault_for_exception_3 = srca;
33312 		last_op_for_exception_3 = opcode;
33313 		last_addr_for_exception_3 = m68k_getpc() + 4;
33314 		Exception(3, 0, M68000_EXC_SRC_CPU);
33315 		goto endlabel1964;
33316 	}
33317 {{	int32_t src = m68k_read_memory_32(srca);
33318 {	uint32_t dsta = m68k_areg(regs, dstreg);
33319 	if ((dsta & 1) != 0) {
33320 		last_fault_for_exception_3 = dsta;
33321 		last_op_for_exception_3 = opcode;
33322 		last_addr_for_exception_3 = m68k_getpc() + 4;
33323 		Exception(3, 0, M68000_EXC_SRC_CPU);
33324 		goto endlabel1964;
33325 	}
33326 {	m68k_areg(regs, dstreg) += 4;
33327 	CLEAR_CZNV;
33328 	SET_ZFLG (((int32_t)(src)) == 0);
33329 	SET_NFLG (((int32_t)(src)) < 0);
33330 m68k_incpc(4);
33331 fill_prefetch_0 ();
33332 	m68k_write_memory_32(dsta,src);
33333 }}}}}}endlabel1964: ;
33334 return 24;
33335 }
CPUFUNC(op_20fb_5)33336 unsigned long CPUFUNC(op_20fb_5)(uint32_t opcode) /* MOVE */
33337 {
33338 	uint32_t dstreg = (opcode >> 9) & 7;
33339 	OpcodeFamily = 30; CurrentInstrCycles = 26;
33340 {{	uint32_t tmppc = m68k_getpc() + 2;
33341 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
33342 	BusCyclePenalty += 2;
33343 	if ((srca & 1) != 0) {
33344 		last_fault_for_exception_3 = srca;
33345 		last_op_for_exception_3 = opcode;
33346 		last_addr_for_exception_3 = m68k_getpc() + 4;
33347 		Exception(3, 0, M68000_EXC_SRC_CPU);
33348 		goto endlabel1965;
33349 	}
33350 {{	int32_t src = m68k_read_memory_32(srca);
33351 {	uint32_t dsta = m68k_areg(regs, dstreg);
33352 	if ((dsta & 1) != 0) {
33353 		last_fault_for_exception_3 = dsta;
33354 		last_op_for_exception_3 = opcode;
33355 		last_addr_for_exception_3 = m68k_getpc() + 4;
33356 		Exception(3, 0, M68000_EXC_SRC_CPU);
33357 		goto endlabel1965;
33358 	}
33359 {	m68k_areg(regs, dstreg) += 4;
33360 	CLEAR_CZNV;
33361 	SET_ZFLG (((int32_t)(src)) == 0);
33362 	SET_NFLG (((int32_t)(src)) < 0);
33363 m68k_incpc(4);
33364 fill_prefetch_0 ();
33365 	m68k_write_memory_32(dsta,src);
33366 }}}}}}endlabel1965: ;
33367 return 26;
33368 }
CPUFUNC(op_20fc_5)33369 unsigned long CPUFUNC(op_20fc_5)(uint32_t opcode) /* MOVE */
33370 {
33371 	uint32_t dstreg = (opcode >> 9) & 7;
33372 	OpcodeFamily = 30; CurrentInstrCycles = 20;
33373 {{	int32_t src = get_ilong_prefetch(2);
33374 {	uint32_t dsta = m68k_areg(regs, dstreg);
33375 	if ((dsta & 1) != 0) {
33376 		last_fault_for_exception_3 = dsta;
33377 		last_op_for_exception_3 = opcode;
33378 		last_addr_for_exception_3 = m68k_getpc() + 6;
33379 		Exception(3, 0, M68000_EXC_SRC_CPU);
33380 		goto endlabel1966;
33381 	}
33382 {	m68k_areg(regs, dstreg) += 4;
33383 	CLEAR_CZNV;
33384 	SET_ZFLG (((int32_t)(src)) == 0);
33385 	SET_NFLG (((int32_t)(src)) < 0);
33386 m68k_incpc(6);
33387 fill_prefetch_0 ();
33388 	m68k_write_memory_32(dsta,src);
33389 }}}}endlabel1966: ;
33390 return 20;
33391 }
CPUFUNC(op_2100_5)33392 unsigned long CPUFUNC(op_2100_5)(uint32_t opcode) /* MOVE */
33393 {
33394 	uint32_t srcreg = (opcode & 7);
33395 	uint32_t dstreg = (opcode >> 9) & 7;
33396 	OpcodeFamily = 30; CurrentInstrCycles = 12;
33397 {{	int32_t src = m68k_dreg(regs, srcreg);
33398 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33399 	if ((dsta & 1) != 0) {
33400 		last_fault_for_exception_3 = dsta;
33401 		last_op_for_exception_3 = opcode;
33402 		last_addr_for_exception_3 = m68k_getpc() + 2;
33403 		Exception(3, 0, M68000_EXC_SRC_CPU);
33404 		goto endlabel1967;
33405 	}
33406 {	m68k_areg (regs, dstreg) = dsta;
33407 	CLEAR_CZNV;
33408 	SET_ZFLG (((int32_t)(src)) == 0);
33409 	SET_NFLG (((int32_t)(src)) < 0);
33410 m68k_incpc(2);
33411 fill_prefetch_2 ();
33412 	m68k_write_memory_32(dsta,src);
33413 }}}}endlabel1967: ;
33414 return 12;
33415 }
CPUFUNC(op_2108_5)33416 unsigned long CPUFUNC(op_2108_5)(uint32_t opcode) /* MOVE */
33417 {
33418 	uint32_t srcreg = (opcode & 7);
33419 	uint32_t dstreg = (opcode >> 9) & 7;
33420 	OpcodeFamily = 30; CurrentInstrCycles = 12;
33421 {{	int32_t src = m68k_areg(regs, srcreg);
33422 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33423 	if ((dsta & 1) != 0) {
33424 		last_fault_for_exception_3 = dsta;
33425 		last_op_for_exception_3 = opcode;
33426 		last_addr_for_exception_3 = m68k_getpc() + 2;
33427 		Exception(3, 0, M68000_EXC_SRC_CPU);
33428 		goto endlabel1968;
33429 	}
33430 {	m68k_areg (regs, dstreg) = dsta;
33431 	CLEAR_CZNV;
33432 	SET_ZFLG (((int32_t)(src)) == 0);
33433 	SET_NFLG (((int32_t)(src)) < 0);
33434 m68k_incpc(2);
33435 fill_prefetch_2 ();
33436 	m68k_write_memory_32(dsta,src);
33437 }}}}endlabel1968: ;
33438 return 12;
33439 }
CPUFUNC(op_2110_5)33440 unsigned long CPUFUNC(op_2110_5)(uint32_t opcode) /* MOVE */
33441 {
33442 	uint32_t srcreg = (opcode & 7);
33443 	uint32_t dstreg = (opcode >> 9) & 7;
33444 	OpcodeFamily = 30; CurrentInstrCycles = 20;
33445 {{	uint32_t srca = m68k_areg(regs, srcreg);
33446 	if ((srca & 1) != 0) {
33447 		last_fault_for_exception_3 = srca;
33448 		last_op_for_exception_3 = opcode;
33449 		last_addr_for_exception_3 = m68k_getpc() + 2;
33450 		Exception(3, 0, M68000_EXC_SRC_CPU);
33451 		goto endlabel1969;
33452 	}
33453 {{	int32_t src = m68k_read_memory_32(srca);
33454 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33455 	if ((dsta & 1) != 0) {
33456 		last_fault_for_exception_3 = dsta;
33457 		last_op_for_exception_3 = opcode;
33458 		last_addr_for_exception_3 = m68k_getpc() + 2;
33459 		Exception(3, 0, M68000_EXC_SRC_CPU);
33460 		goto endlabel1969;
33461 	}
33462 {	m68k_areg (regs, dstreg) = dsta;
33463 	CLEAR_CZNV;
33464 	SET_ZFLG (((int32_t)(src)) == 0);
33465 	SET_NFLG (((int32_t)(src)) < 0);
33466 m68k_incpc(2);
33467 fill_prefetch_2 ();
33468 	m68k_write_memory_32(dsta,src);
33469 }}}}}}endlabel1969: ;
33470 return 20;
33471 }
CPUFUNC(op_2118_5)33472 unsigned long CPUFUNC(op_2118_5)(uint32_t opcode) /* MOVE */
33473 {
33474 	uint32_t srcreg = (opcode & 7);
33475 	uint32_t dstreg = (opcode >> 9) & 7;
33476 	OpcodeFamily = 30; CurrentInstrCycles = 20;
33477 {{	uint32_t srca = m68k_areg(regs, srcreg);
33478 	if ((srca & 1) != 0) {
33479 		last_fault_for_exception_3 = srca;
33480 		last_op_for_exception_3 = opcode;
33481 		last_addr_for_exception_3 = m68k_getpc() + 2;
33482 		Exception(3, 0, M68000_EXC_SRC_CPU);
33483 		goto endlabel1970;
33484 	}
33485 {{	int32_t src = m68k_read_memory_32(srca);
33486 	m68k_areg(regs, srcreg) += 4;
33487 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33488 	if ((dsta & 1) != 0) {
33489 		last_fault_for_exception_3 = dsta;
33490 		last_op_for_exception_3 = opcode;
33491 		last_addr_for_exception_3 = m68k_getpc() + 2;
33492 		Exception(3, 0, M68000_EXC_SRC_CPU);
33493 		goto endlabel1970;
33494 	}
33495 {	m68k_areg (regs, dstreg) = dsta;
33496 	CLEAR_CZNV;
33497 	SET_ZFLG (((int32_t)(src)) == 0);
33498 	SET_NFLG (((int32_t)(src)) < 0);
33499 m68k_incpc(2);
33500 fill_prefetch_2 ();
33501 	m68k_write_memory_32(dsta,src);
33502 }}}}}}endlabel1970: ;
33503 return 20;
33504 }
CPUFUNC(op_2120_5)33505 unsigned long CPUFUNC(op_2120_5)(uint32_t opcode) /* MOVE */
33506 {
33507 	uint32_t srcreg = (opcode & 7);
33508 	uint32_t dstreg = (opcode >> 9) & 7;
33509 	OpcodeFamily = 30; CurrentInstrCycles = 22;
33510 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
33511 	if ((srca & 1) != 0) {
33512 		last_fault_for_exception_3 = srca;
33513 		last_op_for_exception_3 = opcode;
33514 		last_addr_for_exception_3 = m68k_getpc() + 2;
33515 		Exception(3, 0, M68000_EXC_SRC_CPU);
33516 		goto endlabel1971;
33517 	}
33518 {{	int32_t src = m68k_read_memory_32(srca);
33519 	m68k_areg (regs, srcreg) = srca;
33520 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33521 	if ((dsta & 1) != 0) {
33522 		last_fault_for_exception_3 = dsta;
33523 		last_op_for_exception_3 = opcode;
33524 		last_addr_for_exception_3 = m68k_getpc() + 2;
33525 		Exception(3, 0, M68000_EXC_SRC_CPU);
33526 		goto endlabel1971;
33527 	}
33528 {	m68k_areg (regs, dstreg) = dsta;
33529 	CLEAR_CZNV;
33530 	SET_ZFLG (((int32_t)(src)) == 0);
33531 	SET_NFLG (((int32_t)(src)) < 0);
33532 m68k_incpc(2);
33533 fill_prefetch_2 ();
33534 	m68k_write_memory_32(dsta,src);
33535 }}}}}}endlabel1971: ;
33536 return 22;
33537 }
CPUFUNC(op_2128_5)33538 unsigned long CPUFUNC(op_2128_5)(uint32_t opcode) /* MOVE */
33539 {
33540 	uint32_t srcreg = (opcode & 7);
33541 	uint32_t dstreg = (opcode >> 9) & 7;
33542 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33543 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33544 	if ((srca & 1) != 0) {
33545 		last_fault_for_exception_3 = srca;
33546 		last_op_for_exception_3 = opcode;
33547 		last_addr_for_exception_3 = m68k_getpc() + 4;
33548 		Exception(3, 0, M68000_EXC_SRC_CPU);
33549 		goto endlabel1972;
33550 	}
33551 {{	int32_t src = m68k_read_memory_32(srca);
33552 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33553 	if ((dsta & 1) != 0) {
33554 		last_fault_for_exception_3 = dsta;
33555 		last_op_for_exception_3 = opcode;
33556 		last_addr_for_exception_3 = m68k_getpc() + 4;
33557 		Exception(3, 0, M68000_EXC_SRC_CPU);
33558 		goto endlabel1972;
33559 	}
33560 {	m68k_areg (regs, dstreg) = dsta;
33561 	CLEAR_CZNV;
33562 	SET_ZFLG (((int32_t)(src)) == 0);
33563 	SET_NFLG (((int32_t)(src)) < 0);
33564 m68k_incpc(4);
33565 fill_prefetch_0 ();
33566 	m68k_write_memory_32(dsta,src);
33567 }}}}}}endlabel1972: ;
33568 return 24;
33569 }
CPUFUNC(op_2130_5)33570 unsigned long CPUFUNC(op_2130_5)(uint32_t opcode) /* MOVE */
33571 {
33572 	uint32_t srcreg = (opcode & 7);
33573 	uint32_t dstreg = (opcode >> 9) & 7;
33574 	OpcodeFamily = 30; CurrentInstrCycles = 26;
33575 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
33576 	BusCyclePenalty += 2;
33577 	if ((srca & 1) != 0) {
33578 		last_fault_for_exception_3 = srca;
33579 		last_op_for_exception_3 = opcode;
33580 		last_addr_for_exception_3 = m68k_getpc() + 4;
33581 		Exception(3, 0, M68000_EXC_SRC_CPU);
33582 		goto endlabel1973;
33583 	}
33584 {{	int32_t src = m68k_read_memory_32(srca);
33585 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33586 	if ((dsta & 1) != 0) {
33587 		last_fault_for_exception_3 = dsta;
33588 		last_op_for_exception_3 = opcode;
33589 		last_addr_for_exception_3 = m68k_getpc() + 4;
33590 		Exception(3, 0, M68000_EXC_SRC_CPU);
33591 		goto endlabel1973;
33592 	}
33593 {	m68k_areg (regs, dstreg) = dsta;
33594 	CLEAR_CZNV;
33595 	SET_ZFLG (((int32_t)(src)) == 0);
33596 	SET_NFLG (((int32_t)(src)) < 0);
33597 m68k_incpc(4);
33598 fill_prefetch_0 ();
33599 	m68k_write_memory_32(dsta,src);
33600 }}}}}}endlabel1973: ;
33601 return 26;
33602 }
CPUFUNC(op_2138_5)33603 unsigned long CPUFUNC(op_2138_5)(uint32_t opcode) /* MOVE */
33604 {
33605 	uint32_t dstreg = (opcode >> 9) & 7;
33606 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33607 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
33608 	if ((srca & 1) != 0) {
33609 		last_fault_for_exception_3 = srca;
33610 		last_op_for_exception_3 = opcode;
33611 		last_addr_for_exception_3 = m68k_getpc() + 4;
33612 		Exception(3, 0, M68000_EXC_SRC_CPU);
33613 		goto endlabel1974;
33614 	}
33615 {{	int32_t src = m68k_read_memory_32(srca);
33616 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33617 	if ((dsta & 1) != 0) {
33618 		last_fault_for_exception_3 = dsta;
33619 		last_op_for_exception_3 = opcode;
33620 		last_addr_for_exception_3 = m68k_getpc() + 4;
33621 		Exception(3, 0, M68000_EXC_SRC_CPU);
33622 		goto endlabel1974;
33623 	}
33624 {	m68k_areg (regs, dstreg) = dsta;
33625 	CLEAR_CZNV;
33626 	SET_ZFLG (((int32_t)(src)) == 0);
33627 	SET_NFLG (((int32_t)(src)) < 0);
33628 m68k_incpc(4);
33629 fill_prefetch_0 ();
33630 	m68k_write_memory_32(dsta,src);
33631 }}}}}}endlabel1974: ;
33632 return 24;
33633 }
33634 #endif
33635 
33636 #ifdef PART_3
CPUFUNC(op_2139_5)33637 unsigned long CPUFUNC(op_2139_5)(uint32_t opcode) /* MOVE */
33638 {
33639 	uint32_t dstreg = (opcode >> 9) & 7;
33640 	OpcodeFamily = 30; CurrentInstrCycles = 28;
33641 {{	uint32_t srca = get_ilong_prefetch(2);
33642 	if ((srca & 1) != 0) {
33643 		last_fault_for_exception_3 = srca;
33644 		last_op_for_exception_3 = opcode;
33645 		last_addr_for_exception_3 = m68k_getpc() + 6;
33646 		Exception(3, 0, M68000_EXC_SRC_CPU);
33647 		goto endlabel1975;
33648 	}
33649 {{	int32_t src = m68k_read_memory_32(srca);
33650 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33651 	if ((dsta & 1) != 0) {
33652 		last_fault_for_exception_3 = dsta;
33653 		last_op_for_exception_3 = opcode;
33654 		last_addr_for_exception_3 = m68k_getpc() + 6;
33655 		Exception(3, 0, M68000_EXC_SRC_CPU);
33656 		goto endlabel1975;
33657 	}
33658 {	m68k_areg (regs, dstreg) = dsta;
33659 	CLEAR_CZNV;
33660 	SET_ZFLG (((int32_t)(src)) == 0);
33661 	SET_NFLG (((int32_t)(src)) < 0);
33662 m68k_incpc(6);
33663 fill_prefetch_0 ();
33664 	m68k_write_memory_32(dsta,src);
33665 }}}}}}endlabel1975: ;
33666 return 28;
33667 }
CPUFUNC(op_213a_5)33668 unsigned long CPUFUNC(op_213a_5)(uint32_t opcode) /* MOVE */
33669 {
33670 	uint32_t dstreg = (opcode >> 9) & 7;
33671 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33672 {{	uint32_t srca = m68k_getpc () + 2;
33673 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
33674 	if ((srca & 1) != 0) {
33675 		last_fault_for_exception_3 = srca;
33676 		last_op_for_exception_3 = opcode;
33677 		last_addr_for_exception_3 = m68k_getpc() + 4;
33678 		Exception(3, 0, M68000_EXC_SRC_CPU);
33679 		goto endlabel1976;
33680 	}
33681 {{	int32_t src = m68k_read_memory_32(srca);
33682 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33683 	if ((dsta & 1) != 0) {
33684 		last_fault_for_exception_3 = dsta;
33685 		last_op_for_exception_3 = opcode;
33686 		last_addr_for_exception_3 = m68k_getpc() + 4;
33687 		Exception(3, 0, M68000_EXC_SRC_CPU);
33688 		goto endlabel1976;
33689 	}
33690 {	m68k_areg (regs, dstreg) = dsta;
33691 	CLEAR_CZNV;
33692 	SET_ZFLG (((int32_t)(src)) == 0);
33693 	SET_NFLG (((int32_t)(src)) < 0);
33694 m68k_incpc(4);
33695 fill_prefetch_0 ();
33696 	m68k_write_memory_32(dsta,src);
33697 }}}}}}endlabel1976: ;
33698 return 24;
33699 }
CPUFUNC(op_213b_5)33700 unsigned long CPUFUNC(op_213b_5)(uint32_t opcode) /* MOVE */
33701 {
33702 	uint32_t dstreg = (opcode >> 9) & 7;
33703 	OpcodeFamily = 30; CurrentInstrCycles = 26;
33704 {{	uint32_t tmppc = m68k_getpc() + 2;
33705 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
33706 	BusCyclePenalty += 2;
33707 	if ((srca & 1) != 0) {
33708 		last_fault_for_exception_3 = srca;
33709 		last_op_for_exception_3 = opcode;
33710 		last_addr_for_exception_3 = m68k_getpc() + 4;
33711 		Exception(3, 0, M68000_EXC_SRC_CPU);
33712 		goto endlabel1977;
33713 	}
33714 {{	int32_t src = m68k_read_memory_32(srca);
33715 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33716 	if ((dsta & 1) != 0) {
33717 		last_fault_for_exception_3 = dsta;
33718 		last_op_for_exception_3 = opcode;
33719 		last_addr_for_exception_3 = m68k_getpc() + 4;
33720 		Exception(3, 0, M68000_EXC_SRC_CPU);
33721 		goto endlabel1977;
33722 	}
33723 {	m68k_areg (regs, dstreg) = dsta;
33724 	CLEAR_CZNV;
33725 	SET_ZFLG (((int32_t)(src)) == 0);
33726 	SET_NFLG (((int32_t)(src)) < 0);
33727 m68k_incpc(4);
33728 fill_prefetch_0 ();
33729 	m68k_write_memory_32(dsta,src);
33730 }}}}}}endlabel1977: ;
33731 return 26;
33732 }
CPUFUNC(op_213c_5)33733 unsigned long CPUFUNC(op_213c_5)(uint32_t opcode) /* MOVE */
33734 {
33735 	uint32_t dstreg = (opcode >> 9) & 7;
33736 	OpcodeFamily = 30; CurrentInstrCycles = 20;
33737 {{	int32_t src = get_ilong_prefetch(2);
33738 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
33739 	if ((dsta & 1) != 0) {
33740 		last_fault_for_exception_3 = dsta;
33741 		last_op_for_exception_3 = opcode;
33742 		last_addr_for_exception_3 = m68k_getpc() + 6;
33743 		Exception(3, 0, M68000_EXC_SRC_CPU);
33744 		goto endlabel1978;
33745 	}
33746 {	m68k_areg (regs, dstreg) = dsta;
33747 	CLEAR_CZNV;
33748 	SET_ZFLG (((int32_t)(src)) == 0);
33749 	SET_NFLG (((int32_t)(src)) < 0);
33750 m68k_incpc(6);
33751 fill_prefetch_0 ();
33752 	m68k_write_memory_32(dsta,src);
33753 }}}}endlabel1978: ;
33754 return 20;
33755 }
CPUFUNC(op_2140_5)33756 unsigned long CPUFUNC(op_2140_5)(uint32_t opcode) /* MOVE */
33757 {
33758 	uint32_t srcreg = (opcode & 7);
33759 	uint32_t dstreg = (opcode >> 9) & 7;
33760 	OpcodeFamily = 30; CurrentInstrCycles = 16;
33761 {{	int32_t src = m68k_dreg(regs, srcreg);
33762 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33763 	if ((dsta & 1) != 0) {
33764 		last_fault_for_exception_3 = dsta;
33765 		last_op_for_exception_3 = opcode;
33766 		last_addr_for_exception_3 = m68k_getpc() + 4;
33767 		Exception(3, 0, M68000_EXC_SRC_CPU);
33768 		goto endlabel1979;
33769 	}
33770 {	CLEAR_CZNV;
33771 	SET_ZFLG (((int32_t)(src)) == 0);
33772 	SET_NFLG (((int32_t)(src)) < 0);
33773 m68k_incpc(4);
33774 fill_prefetch_0 ();
33775 	m68k_write_memory_32(dsta,src);
33776 }}}}endlabel1979: ;
33777 return 16;
33778 }
CPUFUNC(op_2148_5)33779 unsigned long CPUFUNC(op_2148_5)(uint32_t opcode) /* MOVE */
33780 {
33781 	uint32_t srcreg = (opcode & 7);
33782 	uint32_t dstreg = (opcode >> 9) & 7;
33783 	OpcodeFamily = 30; CurrentInstrCycles = 16;
33784 {{	int32_t src = m68k_areg(regs, srcreg);
33785 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33786 	if ((dsta & 1) != 0) {
33787 		last_fault_for_exception_3 = dsta;
33788 		last_op_for_exception_3 = opcode;
33789 		last_addr_for_exception_3 = m68k_getpc() + 4;
33790 		Exception(3, 0, M68000_EXC_SRC_CPU);
33791 		goto endlabel1980;
33792 	}
33793 {	CLEAR_CZNV;
33794 	SET_ZFLG (((int32_t)(src)) == 0);
33795 	SET_NFLG (((int32_t)(src)) < 0);
33796 m68k_incpc(4);
33797 fill_prefetch_0 ();
33798 	m68k_write_memory_32(dsta,src);
33799 }}}}endlabel1980: ;
33800 return 16;
33801 }
CPUFUNC(op_2150_5)33802 unsigned long CPUFUNC(op_2150_5)(uint32_t opcode) /* MOVE */
33803 {
33804 	uint32_t srcreg = (opcode & 7);
33805 	uint32_t dstreg = (opcode >> 9) & 7;
33806 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33807 {{	uint32_t srca = m68k_areg(regs, srcreg);
33808 	if ((srca & 1) != 0) {
33809 		last_fault_for_exception_3 = srca;
33810 		last_op_for_exception_3 = opcode;
33811 		last_addr_for_exception_3 = m68k_getpc() + 2;
33812 		Exception(3, 0, M68000_EXC_SRC_CPU);
33813 		goto endlabel1981;
33814 	}
33815 {{	int32_t src = m68k_read_memory_32(srca);
33816 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33817 	if ((dsta & 1) != 0) {
33818 		last_fault_for_exception_3 = dsta;
33819 		last_op_for_exception_3 = opcode;
33820 		last_addr_for_exception_3 = m68k_getpc() + 4;
33821 		Exception(3, 0, M68000_EXC_SRC_CPU);
33822 		goto endlabel1981;
33823 	}
33824 {	CLEAR_CZNV;
33825 	SET_ZFLG (((int32_t)(src)) == 0);
33826 	SET_NFLG (((int32_t)(src)) < 0);
33827 m68k_incpc(4);
33828 fill_prefetch_0 ();
33829 	m68k_write_memory_32(dsta,src);
33830 }}}}}}endlabel1981: ;
33831 return 24;
33832 }
CPUFUNC(op_2158_5)33833 unsigned long CPUFUNC(op_2158_5)(uint32_t opcode) /* MOVE */
33834 {
33835 	uint32_t srcreg = (opcode & 7);
33836 	uint32_t dstreg = (opcode >> 9) & 7;
33837 	OpcodeFamily = 30; CurrentInstrCycles = 24;
33838 {{	uint32_t srca = m68k_areg(regs, srcreg);
33839 	if ((srca & 1) != 0) {
33840 		last_fault_for_exception_3 = srca;
33841 		last_op_for_exception_3 = opcode;
33842 		last_addr_for_exception_3 = m68k_getpc() + 2;
33843 		Exception(3, 0, M68000_EXC_SRC_CPU);
33844 		goto endlabel1982;
33845 	}
33846 {{	int32_t src = m68k_read_memory_32(srca);
33847 	m68k_areg(regs, srcreg) += 4;
33848 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33849 	if ((dsta & 1) != 0) {
33850 		last_fault_for_exception_3 = dsta;
33851 		last_op_for_exception_3 = opcode;
33852 		last_addr_for_exception_3 = m68k_getpc() + 4;
33853 		Exception(3, 0, M68000_EXC_SRC_CPU);
33854 		goto endlabel1982;
33855 	}
33856 {	CLEAR_CZNV;
33857 	SET_ZFLG (((int32_t)(src)) == 0);
33858 	SET_NFLG (((int32_t)(src)) < 0);
33859 m68k_incpc(4);
33860 fill_prefetch_0 ();
33861 	m68k_write_memory_32(dsta,src);
33862 }}}}}}endlabel1982: ;
33863 return 24;
33864 }
CPUFUNC(op_2160_5)33865 unsigned long CPUFUNC(op_2160_5)(uint32_t opcode) /* MOVE */
33866 {
33867 	uint32_t srcreg = (opcode & 7);
33868 	uint32_t dstreg = (opcode >> 9) & 7;
33869 	OpcodeFamily = 30; CurrentInstrCycles = 26;
33870 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
33871 	if ((srca & 1) != 0) {
33872 		last_fault_for_exception_3 = srca;
33873 		last_op_for_exception_3 = opcode;
33874 		last_addr_for_exception_3 = m68k_getpc() + 2;
33875 		Exception(3, 0, M68000_EXC_SRC_CPU);
33876 		goto endlabel1983;
33877 	}
33878 {{	int32_t src = m68k_read_memory_32(srca);
33879 	m68k_areg (regs, srcreg) = srca;
33880 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33881 	if ((dsta & 1) != 0) {
33882 		last_fault_for_exception_3 = dsta;
33883 		last_op_for_exception_3 = opcode;
33884 		last_addr_for_exception_3 = m68k_getpc() + 4;
33885 		Exception(3, 0, M68000_EXC_SRC_CPU);
33886 		goto endlabel1983;
33887 	}
33888 {	CLEAR_CZNV;
33889 	SET_ZFLG (((int32_t)(src)) == 0);
33890 	SET_NFLG (((int32_t)(src)) < 0);
33891 m68k_incpc(4);
33892 fill_prefetch_0 ();
33893 	m68k_write_memory_32(dsta,src);
33894 }}}}}}endlabel1983: ;
33895 return 26;
33896 }
CPUFUNC(op_2168_5)33897 unsigned long CPUFUNC(op_2168_5)(uint32_t opcode) /* MOVE */
33898 {
33899 	uint32_t srcreg = (opcode & 7);
33900 	uint32_t dstreg = (opcode >> 9) & 7;
33901 	OpcodeFamily = 30; CurrentInstrCycles = 28;
33902 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
33903 	if ((srca & 1) != 0) {
33904 		last_fault_for_exception_3 = srca;
33905 		last_op_for_exception_3 = opcode;
33906 		last_addr_for_exception_3 = m68k_getpc() + 4;
33907 		Exception(3, 0, M68000_EXC_SRC_CPU);
33908 		goto endlabel1984;
33909 	}
33910 {{	int32_t src = m68k_read_memory_32(srca);
33911 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
33912 	if ((dsta & 1) != 0) {
33913 		last_fault_for_exception_3 = dsta;
33914 		last_op_for_exception_3 = opcode;
33915 		last_addr_for_exception_3 = m68k_getpc() + 6;
33916 		Exception(3, 0, M68000_EXC_SRC_CPU);
33917 		goto endlabel1984;
33918 	}
33919 {	CLEAR_CZNV;
33920 	SET_ZFLG (((int32_t)(src)) == 0);
33921 	SET_NFLG (((int32_t)(src)) < 0);
33922 m68k_incpc(6);
33923 fill_prefetch_0 ();
33924 	m68k_write_memory_32(dsta,src);
33925 }}}}}}endlabel1984: ;
33926 return 28;
33927 }
CPUFUNC(op_2170_5)33928 unsigned long CPUFUNC(op_2170_5)(uint32_t opcode) /* MOVE */
33929 {
33930 	uint32_t srcreg = (opcode & 7);
33931 	uint32_t dstreg = (opcode >> 9) & 7;
33932 	OpcodeFamily = 30; CurrentInstrCycles = 30;
33933 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
33934 	BusCyclePenalty += 2;
33935 	if ((srca & 1) != 0) {
33936 		last_fault_for_exception_3 = srca;
33937 		last_op_for_exception_3 = opcode;
33938 		last_addr_for_exception_3 = m68k_getpc() + 4;
33939 		Exception(3, 0, M68000_EXC_SRC_CPU);
33940 		goto endlabel1985;
33941 	}
33942 {{	int32_t src = m68k_read_memory_32(srca);
33943 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
33944 	if ((dsta & 1) != 0) {
33945 		last_fault_for_exception_3 = dsta;
33946 		last_op_for_exception_3 = opcode;
33947 		last_addr_for_exception_3 = m68k_getpc() + 6;
33948 		Exception(3, 0, M68000_EXC_SRC_CPU);
33949 		goto endlabel1985;
33950 	}
33951 {	CLEAR_CZNV;
33952 	SET_ZFLG (((int32_t)(src)) == 0);
33953 	SET_NFLG (((int32_t)(src)) < 0);
33954 m68k_incpc(6);
33955 fill_prefetch_0 ();
33956 	m68k_write_memory_32(dsta,src);
33957 }}}}}}endlabel1985: ;
33958 return 30;
33959 }
CPUFUNC(op_2178_5)33960 unsigned long CPUFUNC(op_2178_5)(uint32_t opcode) /* MOVE */
33961 {
33962 	uint32_t dstreg = (opcode >> 9) & 7;
33963 	OpcodeFamily = 30; CurrentInstrCycles = 28;
33964 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
33965 	if ((srca & 1) != 0) {
33966 		last_fault_for_exception_3 = srca;
33967 		last_op_for_exception_3 = opcode;
33968 		last_addr_for_exception_3 = m68k_getpc() + 4;
33969 		Exception(3, 0, M68000_EXC_SRC_CPU);
33970 		goto endlabel1986;
33971 	}
33972 {{	int32_t src = m68k_read_memory_32(srca);
33973 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
33974 	if ((dsta & 1) != 0) {
33975 		last_fault_for_exception_3 = dsta;
33976 		last_op_for_exception_3 = opcode;
33977 		last_addr_for_exception_3 = m68k_getpc() + 6;
33978 		Exception(3, 0, M68000_EXC_SRC_CPU);
33979 		goto endlabel1986;
33980 	}
33981 {	CLEAR_CZNV;
33982 	SET_ZFLG (((int32_t)(src)) == 0);
33983 	SET_NFLG (((int32_t)(src)) < 0);
33984 m68k_incpc(6);
33985 fill_prefetch_0 ();
33986 	m68k_write_memory_32(dsta,src);
33987 }}}}}}endlabel1986: ;
33988 return 28;
33989 }
CPUFUNC(op_2179_5)33990 unsigned long CPUFUNC(op_2179_5)(uint32_t opcode) /* MOVE */
33991 {
33992 	uint32_t dstreg = (opcode >> 9) & 7;
33993 	OpcodeFamily = 30; CurrentInstrCycles = 32;
33994 {{	uint32_t srca = get_ilong_prefetch(2);
33995 	if ((srca & 1) != 0) {
33996 		last_fault_for_exception_3 = srca;
33997 		last_op_for_exception_3 = opcode;
33998 		last_addr_for_exception_3 = m68k_getpc() + 6;
33999 		Exception(3, 0, M68000_EXC_SRC_CPU);
34000 		goto endlabel1987;
34001 	}
34002 {{	int32_t src = m68k_read_memory_32(srca);
34003 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
34004 	if ((dsta & 1) != 0) {
34005 		last_fault_for_exception_3 = dsta;
34006 		last_op_for_exception_3 = opcode;
34007 		last_addr_for_exception_3 = m68k_getpc() + 8;
34008 		Exception(3, 0, M68000_EXC_SRC_CPU);
34009 		goto endlabel1987;
34010 	}
34011 {	CLEAR_CZNV;
34012 	SET_ZFLG (((int32_t)(src)) == 0);
34013 	SET_NFLG (((int32_t)(src)) < 0);
34014 m68k_incpc(8);
34015 fill_prefetch_0 ();
34016 	m68k_write_memory_32(dsta,src);
34017 }}}}}}endlabel1987: ;
34018 return 32;
34019 }
CPUFUNC(op_217a_5)34020 unsigned long CPUFUNC(op_217a_5)(uint32_t opcode) /* MOVE */
34021 {
34022 	uint32_t dstreg = (opcode >> 9) & 7;
34023 	OpcodeFamily = 30; CurrentInstrCycles = 28;
34024 {{	uint32_t srca = m68k_getpc () + 2;
34025 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
34026 	if ((srca & 1) != 0) {
34027 		last_fault_for_exception_3 = srca;
34028 		last_op_for_exception_3 = opcode;
34029 		last_addr_for_exception_3 = m68k_getpc() + 4;
34030 		Exception(3, 0, M68000_EXC_SRC_CPU);
34031 		goto endlabel1988;
34032 	}
34033 {{	int32_t src = m68k_read_memory_32(srca);
34034 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
34035 	if ((dsta & 1) != 0) {
34036 		last_fault_for_exception_3 = dsta;
34037 		last_op_for_exception_3 = opcode;
34038 		last_addr_for_exception_3 = m68k_getpc() + 6;
34039 		Exception(3, 0, M68000_EXC_SRC_CPU);
34040 		goto endlabel1988;
34041 	}
34042 {	CLEAR_CZNV;
34043 	SET_ZFLG (((int32_t)(src)) == 0);
34044 	SET_NFLG (((int32_t)(src)) < 0);
34045 m68k_incpc(6);
34046 fill_prefetch_0 ();
34047 	m68k_write_memory_32(dsta,src);
34048 }}}}}}endlabel1988: ;
34049 return 28;
34050 }
CPUFUNC(op_217b_5)34051 unsigned long CPUFUNC(op_217b_5)(uint32_t opcode) /* MOVE */
34052 {
34053 	uint32_t dstreg = (opcode >> 9) & 7;
34054 	OpcodeFamily = 30; CurrentInstrCycles = 30;
34055 {{	uint32_t tmppc = m68k_getpc() + 2;
34056 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
34057 	BusCyclePenalty += 2;
34058 	if ((srca & 1) != 0) {
34059 		last_fault_for_exception_3 = srca;
34060 		last_op_for_exception_3 = opcode;
34061 		last_addr_for_exception_3 = m68k_getpc() + 4;
34062 		Exception(3, 0, M68000_EXC_SRC_CPU);
34063 		goto endlabel1989;
34064 	}
34065 {{	int32_t src = m68k_read_memory_32(srca);
34066 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
34067 	if ((dsta & 1) != 0) {
34068 		last_fault_for_exception_3 = dsta;
34069 		last_op_for_exception_3 = opcode;
34070 		last_addr_for_exception_3 = m68k_getpc() + 6;
34071 		Exception(3, 0, M68000_EXC_SRC_CPU);
34072 		goto endlabel1989;
34073 	}
34074 {	CLEAR_CZNV;
34075 	SET_ZFLG (((int32_t)(src)) == 0);
34076 	SET_NFLG (((int32_t)(src)) < 0);
34077 m68k_incpc(6);
34078 fill_prefetch_0 ();
34079 	m68k_write_memory_32(dsta,src);
34080 }}}}}}endlabel1989: ;
34081 return 30;
34082 }
CPUFUNC(op_217c_5)34083 unsigned long CPUFUNC(op_217c_5)(uint32_t opcode) /* MOVE */
34084 {
34085 	uint32_t dstreg = (opcode >> 9) & 7;
34086 	OpcodeFamily = 30; CurrentInstrCycles = 24;
34087 {{	int32_t src = get_ilong_prefetch(2);
34088 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
34089 	if ((dsta & 1) != 0) {
34090 		last_fault_for_exception_3 = dsta;
34091 		last_op_for_exception_3 = opcode;
34092 		last_addr_for_exception_3 = m68k_getpc() + 8;
34093 		Exception(3, 0, M68000_EXC_SRC_CPU);
34094 		goto endlabel1990;
34095 	}
34096 {	CLEAR_CZNV;
34097 	SET_ZFLG (((int32_t)(src)) == 0);
34098 	SET_NFLG (((int32_t)(src)) < 0);
34099 m68k_incpc(8);
34100 fill_prefetch_0 ();
34101 	m68k_write_memory_32(dsta,src);
34102 }}}}endlabel1990: ;
34103 return 24;
34104 }
CPUFUNC(op_2180_5)34105 unsigned long CPUFUNC(op_2180_5)(uint32_t opcode) /* MOVE */
34106 {
34107 	uint32_t srcreg = (opcode & 7);
34108 	uint32_t dstreg = (opcode >> 9) & 7;
34109 	OpcodeFamily = 30; CurrentInstrCycles = 18;
34110 {{	int32_t src = m68k_dreg(regs, srcreg);
34111 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
34112 	BusCyclePenalty += 2;
34113 	if ((dsta & 1) != 0) {
34114 		last_fault_for_exception_3 = dsta;
34115 		last_op_for_exception_3 = opcode;
34116 		last_addr_for_exception_3 = m68k_getpc() + 4;
34117 		Exception(3, 0, M68000_EXC_SRC_CPU);
34118 		goto endlabel1991;
34119 	}
34120 {	CLEAR_CZNV;
34121 	SET_ZFLG (((int32_t)(src)) == 0);
34122 	SET_NFLG (((int32_t)(src)) < 0);
34123 m68k_incpc(4);
34124 fill_prefetch_0 ();
34125 	m68k_write_memory_32(dsta,src);
34126 }}}}endlabel1991: ;
34127 return 18;
34128 }
CPUFUNC(op_2188_5)34129 unsigned long CPUFUNC(op_2188_5)(uint32_t opcode) /* MOVE */
34130 {
34131 	uint32_t srcreg = (opcode & 7);
34132 	uint32_t dstreg = (opcode >> 9) & 7;
34133 	OpcodeFamily = 30; CurrentInstrCycles = 18;
34134 {{	int32_t src = m68k_areg(regs, srcreg);
34135 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
34136 	BusCyclePenalty += 2;
34137 	if ((dsta & 1) != 0) {
34138 		last_fault_for_exception_3 = dsta;
34139 		last_op_for_exception_3 = opcode;
34140 		last_addr_for_exception_3 = m68k_getpc() + 4;
34141 		Exception(3, 0, M68000_EXC_SRC_CPU);
34142 		goto endlabel1992;
34143 	}
34144 {	CLEAR_CZNV;
34145 	SET_ZFLG (((int32_t)(src)) == 0);
34146 	SET_NFLG (((int32_t)(src)) < 0);
34147 m68k_incpc(4);
34148 fill_prefetch_0 ();
34149 	m68k_write_memory_32(dsta,src);
34150 }}}}endlabel1992: ;
34151 return 18;
34152 }
CPUFUNC(op_2190_5)34153 unsigned long CPUFUNC(op_2190_5)(uint32_t opcode) /* MOVE */
34154 {
34155 	uint32_t srcreg = (opcode & 7);
34156 	uint32_t dstreg = (opcode >> 9) & 7;
34157 	OpcodeFamily = 30; CurrentInstrCycles = 26;
34158 {{	uint32_t srca = m68k_areg(regs, srcreg);
34159 	if ((srca & 1) != 0) {
34160 		last_fault_for_exception_3 = srca;
34161 		last_op_for_exception_3 = opcode;
34162 		last_addr_for_exception_3 = m68k_getpc() + 2;
34163 		Exception(3, 0, M68000_EXC_SRC_CPU);
34164 		goto endlabel1993;
34165 	}
34166 {{	int32_t src = m68k_read_memory_32(srca);
34167 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
34168 	BusCyclePenalty += 2;
34169 	if ((dsta & 1) != 0) {
34170 		last_fault_for_exception_3 = dsta;
34171 		last_op_for_exception_3 = opcode;
34172 		last_addr_for_exception_3 = m68k_getpc() + 4;
34173 		Exception(3, 0, M68000_EXC_SRC_CPU);
34174 		goto endlabel1993;
34175 	}
34176 {	CLEAR_CZNV;
34177 	SET_ZFLG (((int32_t)(src)) == 0);
34178 	SET_NFLG (((int32_t)(src)) < 0);
34179 m68k_incpc(4);
34180 fill_prefetch_0 ();
34181 	m68k_write_memory_32(dsta,src);
34182 }}}}}}endlabel1993: ;
34183 return 26;
34184 }
CPUFUNC(op_2198_5)34185 unsigned long CPUFUNC(op_2198_5)(uint32_t opcode) /* MOVE */
34186 {
34187 	uint32_t srcreg = (opcode & 7);
34188 	uint32_t dstreg = (opcode >> 9) & 7;
34189 	OpcodeFamily = 30; CurrentInstrCycles = 26;
34190 {{	uint32_t srca = m68k_areg(regs, srcreg);
34191 	if ((srca & 1) != 0) {
34192 		last_fault_for_exception_3 = srca;
34193 		last_op_for_exception_3 = opcode;
34194 		last_addr_for_exception_3 = m68k_getpc() + 2;
34195 		Exception(3, 0, M68000_EXC_SRC_CPU);
34196 		goto endlabel1994;
34197 	}
34198 {{	int32_t src = m68k_read_memory_32(srca);
34199 	m68k_areg(regs, srcreg) += 4;
34200 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
34201 	BusCyclePenalty += 2;
34202 	if ((dsta & 1) != 0) {
34203 		last_fault_for_exception_3 = dsta;
34204 		last_op_for_exception_3 = opcode;
34205 		last_addr_for_exception_3 = m68k_getpc() + 4;
34206 		Exception(3, 0, M68000_EXC_SRC_CPU);
34207 		goto endlabel1994;
34208 	}
34209 {	CLEAR_CZNV;
34210 	SET_ZFLG (((int32_t)(src)) == 0);
34211 	SET_NFLG (((int32_t)(src)) < 0);
34212 m68k_incpc(4);
34213 fill_prefetch_0 ();
34214 	m68k_write_memory_32(dsta,src);
34215 }}}}}}endlabel1994: ;
34216 return 26;
34217 }
CPUFUNC(op_21a0_5)34218 unsigned long CPUFUNC(op_21a0_5)(uint32_t opcode) /* MOVE */
34219 {
34220 	uint32_t srcreg = (opcode & 7);
34221 	uint32_t dstreg = (opcode >> 9) & 7;
34222 	OpcodeFamily = 30; CurrentInstrCycles = 28;
34223 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
34224 	if ((srca & 1) != 0) {
34225 		last_fault_for_exception_3 = srca;
34226 		last_op_for_exception_3 = opcode;
34227 		last_addr_for_exception_3 = m68k_getpc() + 2;
34228 		Exception(3, 0, M68000_EXC_SRC_CPU);
34229 		goto endlabel1995;
34230 	}
34231 {{	int32_t src = m68k_read_memory_32(srca);
34232 	m68k_areg (regs, srcreg) = srca;
34233 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
34234 	BusCyclePenalty += 2;
34235 	if ((dsta & 1) != 0) {
34236 		last_fault_for_exception_3 = dsta;
34237 		last_op_for_exception_3 = opcode;
34238 		last_addr_for_exception_3 = m68k_getpc() + 4;
34239 		Exception(3, 0, M68000_EXC_SRC_CPU);
34240 		goto endlabel1995;
34241 	}
34242 {	CLEAR_CZNV;
34243 	SET_ZFLG (((int32_t)(src)) == 0);
34244 	SET_NFLG (((int32_t)(src)) < 0);
34245 m68k_incpc(4);
34246 fill_prefetch_0 ();
34247 	m68k_write_memory_32(dsta,src);
34248 }}}}}}endlabel1995: ;
34249 return 28;
34250 }
CPUFUNC(op_21a8_5)34251 unsigned long CPUFUNC(op_21a8_5)(uint32_t opcode) /* MOVE */
34252 {
34253 	uint32_t srcreg = (opcode & 7);
34254 	uint32_t dstreg = (opcode >> 9) & 7;
34255 	OpcodeFamily = 30; CurrentInstrCycles = 30;
34256 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
34257 	if ((srca & 1) != 0) {
34258 		last_fault_for_exception_3 = srca;
34259 		last_op_for_exception_3 = opcode;
34260 		last_addr_for_exception_3 = m68k_getpc() + 4;
34261 		Exception(3, 0, M68000_EXC_SRC_CPU);
34262 		goto endlabel1996;
34263 	}
34264 {{	int32_t src = m68k_read_memory_32(srca);
34265 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
34266 	BusCyclePenalty += 2;
34267 	if ((dsta & 1) != 0) {
34268 		last_fault_for_exception_3 = dsta;
34269 		last_op_for_exception_3 = opcode;
34270 		last_addr_for_exception_3 = m68k_getpc() + 6;
34271 		Exception(3, 0, M68000_EXC_SRC_CPU);
34272 		goto endlabel1996;
34273 	}
34274 {	CLEAR_CZNV;
34275 	SET_ZFLG (((int32_t)(src)) == 0);
34276 	SET_NFLG (((int32_t)(src)) < 0);
34277 m68k_incpc(6);
34278 fill_prefetch_0 ();
34279 	m68k_write_memory_32(dsta,src);
34280 }}}}}}endlabel1996: ;
34281 return 30;
34282 }
CPUFUNC(op_21b0_5)34283 unsigned long CPUFUNC(op_21b0_5)(uint32_t opcode) /* MOVE */
34284 {
34285 	uint32_t srcreg = (opcode & 7);
34286 	uint32_t dstreg = (opcode >> 9) & 7;
34287 	OpcodeFamily = 30; CurrentInstrCycles = 32;
34288 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
34289 	BusCyclePenalty += 2;
34290 	if ((srca & 1) != 0) {
34291 		last_fault_for_exception_3 = srca;
34292 		last_op_for_exception_3 = opcode;
34293 		last_addr_for_exception_3 = m68k_getpc() + 4;
34294 		Exception(3, 0, M68000_EXC_SRC_CPU);
34295 		goto endlabel1997;
34296 	}
34297 {{	int32_t src = m68k_read_memory_32(srca);
34298 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
34299 	BusCyclePenalty += 2;
34300 	if ((dsta & 1) != 0) {
34301 		last_fault_for_exception_3 = dsta;
34302 		last_op_for_exception_3 = opcode;
34303 		last_addr_for_exception_3 = m68k_getpc() + 6;
34304 		Exception(3, 0, M68000_EXC_SRC_CPU);
34305 		goto endlabel1997;
34306 	}
34307 {	CLEAR_CZNV;
34308 	SET_ZFLG (((int32_t)(src)) == 0);
34309 	SET_NFLG (((int32_t)(src)) < 0);
34310 m68k_incpc(6);
34311 fill_prefetch_0 ();
34312 	m68k_write_memory_32(dsta,src);
34313 }}}}}}endlabel1997: ;
34314 return 32;
34315 }
CPUFUNC(op_21b8_5)34316 unsigned long CPUFUNC(op_21b8_5)(uint32_t opcode) /* MOVE */
34317 {
34318 	uint32_t dstreg = (opcode >> 9) & 7;
34319 	OpcodeFamily = 30; CurrentInstrCycles = 30;
34320 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
34321 	if ((srca & 1) != 0) {
34322 		last_fault_for_exception_3 = srca;
34323 		last_op_for_exception_3 = opcode;
34324 		last_addr_for_exception_3 = m68k_getpc() + 4;
34325 		Exception(3, 0, M68000_EXC_SRC_CPU);
34326 		goto endlabel1998;
34327 	}
34328 {{	int32_t src = m68k_read_memory_32(srca);
34329 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
34330 	BusCyclePenalty += 2;
34331 	if ((dsta & 1) != 0) {
34332 		last_fault_for_exception_3 = dsta;
34333 		last_op_for_exception_3 = opcode;
34334 		last_addr_for_exception_3 = m68k_getpc() + 6;
34335 		Exception(3, 0, M68000_EXC_SRC_CPU);
34336 		goto endlabel1998;
34337 	}
34338 {	CLEAR_CZNV;
34339 	SET_ZFLG (((int32_t)(src)) == 0);
34340 	SET_NFLG (((int32_t)(src)) < 0);
34341 m68k_incpc(6);
34342 fill_prefetch_0 ();
34343 	m68k_write_memory_32(dsta,src);
34344 }}}}}}endlabel1998: ;
34345 return 30;
34346 }
CPUFUNC(op_21b9_5)34347 unsigned long CPUFUNC(op_21b9_5)(uint32_t opcode) /* MOVE */
34348 {
34349 	uint32_t dstreg = (opcode >> 9) & 7;
34350 	OpcodeFamily = 30; CurrentInstrCycles = 34;
34351 {{	uint32_t srca = get_ilong_prefetch(2);
34352 	if ((srca & 1) != 0) {
34353 		last_fault_for_exception_3 = srca;
34354 		last_op_for_exception_3 = opcode;
34355 		last_addr_for_exception_3 = m68k_getpc() + 6;
34356 		Exception(3, 0, M68000_EXC_SRC_CPU);
34357 		goto endlabel1999;
34358 	}
34359 {{	int32_t src = m68k_read_memory_32(srca);
34360 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
34361 	BusCyclePenalty += 2;
34362 	if ((dsta & 1) != 0) {
34363 		last_fault_for_exception_3 = dsta;
34364 		last_op_for_exception_3 = opcode;
34365 		last_addr_for_exception_3 = m68k_getpc() + 8;
34366 		Exception(3, 0, M68000_EXC_SRC_CPU);
34367 		goto endlabel1999;
34368 	}
34369 {	CLEAR_CZNV;
34370 	SET_ZFLG (((int32_t)(src)) == 0);
34371 	SET_NFLG (((int32_t)(src)) < 0);
34372 m68k_incpc(8);
34373 fill_prefetch_0 ();
34374 	m68k_write_memory_32(dsta,src);
34375 }}}}}}endlabel1999: ;
34376 return 34;
34377 }
CPUFUNC(op_21ba_5)34378 unsigned long CPUFUNC(op_21ba_5)(uint32_t opcode) /* MOVE */
34379 {
34380 	uint32_t dstreg = (opcode >> 9) & 7;
34381 	OpcodeFamily = 30; CurrentInstrCycles = 30;
34382 {{	uint32_t srca = m68k_getpc () + 2;
34383 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
34384 	if ((srca & 1) != 0) {
34385 		last_fault_for_exception_3 = srca;
34386 		last_op_for_exception_3 = opcode;
34387 		last_addr_for_exception_3 = m68k_getpc() + 4;
34388 		Exception(3, 0, M68000_EXC_SRC_CPU);
34389 		goto endlabel2000;
34390 	}
34391 {{	int32_t src = m68k_read_memory_32(srca);
34392 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
34393 	BusCyclePenalty += 2;
34394 	if ((dsta & 1) != 0) {
34395 		last_fault_for_exception_3 = dsta;
34396 		last_op_for_exception_3 = opcode;
34397 		last_addr_for_exception_3 = m68k_getpc() + 6;
34398 		Exception(3, 0, M68000_EXC_SRC_CPU);
34399 		goto endlabel2000;
34400 	}
34401 {	CLEAR_CZNV;
34402 	SET_ZFLG (((int32_t)(src)) == 0);
34403 	SET_NFLG (((int32_t)(src)) < 0);
34404 m68k_incpc(6);
34405 fill_prefetch_0 ();
34406 	m68k_write_memory_32(dsta,src);
34407 }}}}}}endlabel2000: ;
34408 return 30;
34409 }
CPUFUNC(op_21bb_5)34410 unsigned long CPUFUNC(op_21bb_5)(uint32_t opcode) /* MOVE */
34411 {
34412 	uint32_t dstreg = (opcode >> 9) & 7;
34413 	OpcodeFamily = 30; CurrentInstrCycles = 32;
34414 {{	uint32_t tmppc = m68k_getpc() + 2;
34415 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
34416 	BusCyclePenalty += 2;
34417 	if ((srca & 1) != 0) {
34418 		last_fault_for_exception_3 = srca;
34419 		last_op_for_exception_3 = opcode;
34420 		last_addr_for_exception_3 = m68k_getpc() + 4;
34421 		Exception(3, 0, M68000_EXC_SRC_CPU);
34422 		goto endlabel2001;
34423 	}
34424 {{	int32_t src = m68k_read_memory_32(srca);
34425 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
34426 	BusCyclePenalty += 2;
34427 	if ((dsta & 1) != 0) {
34428 		last_fault_for_exception_3 = dsta;
34429 		last_op_for_exception_3 = opcode;
34430 		last_addr_for_exception_3 = m68k_getpc() + 6;
34431 		Exception(3, 0, M68000_EXC_SRC_CPU);
34432 		goto endlabel2001;
34433 	}
34434 {	CLEAR_CZNV;
34435 	SET_ZFLG (((int32_t)(src)) == 0);
34436 	SET_NFLG (((int32_t)(src)) < 0);
34437 m68k_incpc(6);
34438 fill_prefetch_0 ();
34439 	m68k_write_memory_32(dsta,src);
34440 }}}}}}endlabel2001: ;
34441 return 32;
34442 }
CPUFUNC(op_21bc_5)34443 unsigned long CPUFUNC(op_21bc_5)(uint32_t opcode) /* MOVE */
34444 {
34445 	uint32_t dstreg = (opcode >> 9) & 7;
34446 	OpcodeFamily = 30; CurrentInstrCycles = 26;
34447 {{	int32_t src = get_ilong_prefetch(2);
34448 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
34449 	BusCyclePenalty += 2;
34450 	if ((dsta & 1) != 0) {
34451 		last_fault_for_exception_3 = dsta;
34452 		last_op_for_exception_3 = opcode;
34453 		last_addr_for_exception_3 = m68k_getpc() + 8;
34454 		Exception(3, 0, M68000_EXC_SRC_CPU);
34455 		goto endlabel2002;
34456 	}
34457 {	CLEAR_CZNV;
34458 	SET_ZFLG (((int32_t)(src)) == 0);
34459 	SET_NFLG (((int32_t)(src)) < 0);
34460 m68k_incpc(8);
34461 fill_prefetch_0 ();
34462 	m68k_write_memory_32(dsta,src);
34463 }}}}endlabel2002: ;
34464 return 26;
34465 }
CPUFUNC(op_21c0_5)34466 unsigned long CPUFUNC(op_21c0_5)(uint32_t opcode) /* MOVE */
34467 {
34468 	uint32_t srcreg = (opcode & 7);
34469 	OpcodeFamily = 30; CurrentInstrCycles = 16;
34470 {{	int32_t src = m68k_dreg(regs, srcreg);
34471 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
34472 	if ((dsta & 1) != 0) {
34473 		last_fault_for_exception_3 = dsta;
34474 		last_op_for_exception_3 = opcode;
34475 		last_addr_for_exception_3 = m68k_getpc() + 4;
34476 		Exception(3, 0, M68000_EXC_SRC_CPU);
34477 		goto endlabel2003;
34478 	}
34479 {	CLEAR_CZNV;
34480 	SET_ZFLG (((int32_t)(src)) == 0);
34481 	SET_NFLG (((int32_t)(src)) < 0);
34482 m68k_incpc(4);
34483 fill_prefetch_0 ();
34484 	m68k_write_memory_32(dsta,src);
34485 }}}}endlabel2003: ;
34486 return 16;
34487 }
CPUFUNC(op_21c8_5)34488 unsigned long CPUFUNC(op_21c8_5)(uint32_t opcode) /* MOVE */
34489 {
34490 	uint32_t srcreg = (opcode & 7);
34491 	OpcodeFamily = 30; CurrentInstrCycles = 16;
34492 {{	int32_t src = m68k_areg(regs, srcreg);
34493 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
34494 	if ((dsta & 1) != 0) {
34495 		last_fault_for_exception_3 = dsta;
34496 		last_op_for_exception_3 = opcode;
34497 		last_addr_for_exception_3 = m68k_getpc() + 4;
34498 		Exception(3, 0, M68000_EXC_SRC_CPU);
34499 		goto endlabel2004;
34500 	}
34501 {	CLEAR_CZNV;
34502 	SET_ZFLG (((int32_t)(src)) == 0);
34503 	SET_NFLG (((int32_t)(src)) < 0);
34504 m68k_incpc(4);
34505 fill_prefetch_0 ();
34506 	m68k_write_memory_32(dsta,src);
34507 }}}}endlabel2004: ;
34508 return 16;
34509 }
CPUFUNC(op_21d0_5)34510 unsigned long CPUFUNC(op_21d0_5)(uint32_t opcode) /* MOVE */
34511 {
34512 	uint32_t srcreg = (opcode & 7);
34513 	OpcodeFamily = 30; CurrentInstrCycles = 24;
34514 {{	uint32_t srca = m68k_areg(regs, srcreg);
34515 	if ((srca & 1) != 0) {
34516 		last_fault_for_exception_3 = srca;
34517 		last_op_for_exception_3 = opcode;
34518 		last_addr_for_exception_3 = m68k_getpc() + 2;
34519 		Exception(3, 0, M68000_EXC_SRC_CPU);
34520 		goto endlabel2005;
34521 	}
34522 {{	int32_t src = m68k_read_memory_32(srca);
34523 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
34524 	if ((dsta & 1) != 0) {
34525 		last_fault_for_exception_3 = dsta;
34526 		last_op_for_exception_3 = opcode;
34527 		last_addr_for_exception_3 = m68k_getpc() + 4;
34528 		Exception(3, 0, M68000_EXC_SRC_CPU);
34529 		goto endlabel2005;
34530 	}
34531 {	CLEAR_CZNV;
34532 	SET_ZFLG (((int32_t)(src)) == 0);
34533 	SET_NFLG (((int32_t)(src)) < 0);
34534 m68k_incpc(4);
34535 fill_prefetch_0 ();
34536 	m68k_write_memory_32(dsta,src);
34537 }}}}}}endlabel2005: ;
34538 return 24;
34539 }
CPUFUNC(op_21d8_5)34540 unsigned long CPUFUNC(op_21d8_5)(uint32_t opcode) /* MOVE */
34541 {
34542 	uint32_t srcreg = (opcode & 7);
34543 	OpcodeFamily = 30; CurrentInstrCycles = 24;
34544 {{	uint32_t srca = m68k_areg(regs, srcreg);
34545 	if ((srca & 1) != 0) {
34546 		last_fault_for_exception_3 = srca;
34547 		last_op_for_exception_3 = opcode;
34548 		last_addr_for_exception_3 = m68k_getpc() + 2;
34549 		Exception(3, 0, M68000_EXC_SRC_CPU);
34550 		goto endlabel2006;
34551 	}
34552 {{	int32_t src = m68k_read_memory_32(srca);
34553 	m68k_areg(regs, srcreg) += 4;
34554 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
34555 	if ((dsta & 1) != 0) {
34556 		last_fault_for_exception_3 = dsta;
34557 		last_op_for_exception_3 = opcode;
34558 		last_addr_for_exception_3 = m68k_getpc() + 4;
34559 		Exception(3, 0, M68000_EXC_SRC_CPU);
34560 		goto endlabel2006;
34561 	}
34562 {	CLEAR_CZNV;
34563 	SET_ZFLG (((int32_t)(src)) == 0);
34564 	SET_NFLG (((int32_t)(src)) < 0);
34565 m68k_incpc(4);
34566 fill_prefetch_0 ();
34567 	m68k_write_memory_32(dsta,src);
34568 }}}}}}endlabel2006: ;
34569 return 24;
34570 }
CPUFUNC(op_21e0_5)34571 unsigned long CPUFUNC(op_21e0_5)(uint32_t opcode) /* MOVE */
34572 {
34573 	uint32_t srcreg = (opcode & 7);
34574 	OpcodeFamily = 30; CurrentInstrCycles = 26;
34575 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
34576 	if ((srca & 1) != 0) {
34577 		last_fault_for_exception_3 = srca;
34578 		last_op_for_exception_3 = opcode;
34579 		last_addr_for_exception_3 = m68k_getpc() + 2;
34580 		Exception(3, 0, M68000_EXC_SRC_CPU);
34581 		goto endlabel2007;
34582 	}
34583 {{	int32_t src = m68k_read_memory_32(srca);
34584 	m68k_areg (regs, srcreg) = srca;
34585 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
34586 	if ((dsta & 1) != 0) {
34587 		last_fault_for_exception_3 = dsta;
34588 		last_op_for_exception_3 = opcode;
34589 		last_addr_for_exception_3 = m68k_getpc() + 4;
34590 		Exception(3, 0, M68000_EXC_SRC_CPU);
34591 		goto endlabel2007;
34592 	}
34593 {	CLEAR_CZNV;
34594 	SET_ZFLG (((int32_t)(src)) == 0);
34595 	SET_NFLG (((int32_t)(src)) < 0);
34596 m68k_incpc(4);
34597 fill_prefetch_0 ();
34598 	m68k_write_memory_32(dsta,src);
34599 }}}}}}endlabel2007: ;
34600 return 26;
34601 }
CPUFUNC(op_21e8_5)34602 unsigned long CPUFUNC(op_21e8_5)(uint32_t opcode) /* MOVE */
34603 {
34604 	uint32_t srcreg = (opcode & 7);
34605 	OpcodeFamily = 30; CurrentInstrCycles = 28;
34606 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
34607 	if ((srca & 1) != 0) {
34608 		last_fault_for_exception_3 = srca;
34609 		last_op_for_exception_3 = opcode;
34610 		last_addr_for_exception_3 = m68k_getpc() + 4;
34611 		Exception(3, 0, M68000_EXC_SRC_CPU);
34612 		goto endlabel2008;
34613 	}
34614 {{	int32_t src = m68k_read_memory_32(srca);
34615 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
34616 	if ((dsta & 1) != 0) {
34617 		last_fault_for_exception_3 = dsta;
34618 		last_op_for_exception_3 = opcode;
34619 		last_addr_for_exception_3 = m68k_getpc() + 6;
34620 		Exception(3, 0, M68000_EXC_SRC_CPU);
34621 		goto endlabel2008;
34622 	}
34623 {	CLEAR_CZNV;
34624 	SET_ZFLG (((int32_t)(src)) == 0);
34625 	SET_NFLG (((int32_t)(src)) < 0);
34626 m68k_incpc(6);
34627 fill_prefetch_0 ();
34628 	m68k_write_memory_32(dsta,src);
34629 }}}}}}endlabel2008: ;
34630 return 28;
34631 }
CPUFUNC(op_21f0_5)34632 unsigned long CPUFUNC(op_21f0_5)(uint32_t opcode) /* MOVE */
34633 {
34634 	uint32_t srcreg = (opcode & 7);
34635 	OpcodeFamily = 30; CurrentInstrCycles = 30;
34636 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
34637 	BusCyclePenalty += 2;
34638 	if ((srca & 1) != 0) {
34639 		last_fault_for_exception_3 = srca;
34640 		last_op_for_exception_3 = opcode;
34641 		last_addr_for_exception_3 = m68k_getpc() + 4;
34642 		Exception(3, 0, M68000_EXC_SRC_CPU);
34643 		goto endlabel2009;
34644 	}
34645 {{	int32_t src = m68k_read_memory_32(srca);
34646 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
34647 	if ((dsta & 1) != 0) {
34648 		last_fault_for_exception_3 = dsta;
34649 		last_op_for_exception_3 = opcode;
34650 		last_addr_for_exception_3 = m68k_getpc() + 6;
34651 		Exception(3, 0, M68000_EXC_SRC_CPU);
34652 		goto endlabel2009;
34653 	}
34654 {	CLEAR_CZNV;
34655 	SET_ZFLG (((int32_t)(src)) == 0);
34656 	SET_NFLG (((int32_t)(src)) < 0);
34657 m68k_incpc(6);
34658 fill_prefetch_0 ();
34659 	m68k_write_memory_32(dsta,src);
34660 }}}}}}endlabel2009: ;
34661 return 30;
34662 }
CPUFUNC(op_21f8_5)34663 unsigned long CPUFUNC(op_21f8_5)(uint32_t opcode) /* MOVE */
34664 {
34665 	OpcodeFamily = 30; CurrentInstrCycles = 28;
34666 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
34667 	if ((srca & 1) != 0) {
34668 		last_fault_for_exception_3 = srca;
34669 		last_op_for_exception_3 = opcode;
34670 		last_addr_for_exception_3 = m68k_getpc() + 4;
34671 		Exception(3, 0, M68000_EXC_SRC_CPU);
34672 		goto endlabel2010;
34673 	}
34674 {{	int32_t src = m68k_read_memory_32(srca);
34675 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
34676 	if ((dsta & 1) != 0) {
34677 		last_fault_for_exception_3 = dsta;
34678 		last_op_for_exception_3 = opcode;
34679 		last_addr_for_exception_3 = m68k_getpc() + 6;
34680 		Exception(3, 0, M68000_EXC_SRC_CPU);
34681 		goto endlabel2010;
34682 	}
34683 {	CLEAR_CZNV;
34684 	SET_ZFLG (((int32_t)(src)) == 0);
34685 	SET_NFLG (((int32_t)(src)) < 0);
34686 m68k_incpc(6);
34687 fill_prefetch_0 ();
34688 	m68k_write_memory_32(dsta,src);
34689 }}}}}}endlabel2010: ;
34690 return 28;
34691 }
CPUFUNC(op_21f9_5)34692 unsigned long CPUFUNC(op_21f9_5)(uint32_t opcode) /* MOVE */
34693 {
34694 	OpcodeFamily = 30; CurrentInstrCycles = 32;
34695 {{	uint32_t srca = get_ilong_prefetch(2);
34696 	if ((srca & 1) != 0) {
34697 		last_fault_for_exception_3 = srca;
34698 		last_op_for_exception_3 = opcode;
34699 		last_addr_for_exception_3 = m68k_getpc() + 6;
34700 		Exception(3, 0, M68000_EXC_SRC_CPU);
34701 		goto endlabel2011;
34702 	}
34703 {{	int32_t src = m68k_read_memory_32(srca);
34704 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
34705 	if ((dsta & 1) != 0) {
34706 		last_fault_for_exception_3 = dsta;
34707 		last_op_for_exception_3 = opcode;
34708 		last_addr_for_exception_3 = m68k_getpc() + 8;
34709 		Exception(3, 0, M68000_EXC_SRC_CPU);
34710 		goto endlabel2011;
34711 	}
34712 {	CLEAR_CZNV;
34713 	SET_ZFLG (((int32_t)(src)) == 0);
34714 	SET_NFLG (((int32_t)(src)) < 0);
34715 m68k_incpc(8);
34716 fill_prefetch_0 ();
34717 	m68k_write_memory_32(dsta,src);
34718 }}}}}}endlabel2011: ;
34719 return 32;
34720 }
CPUFUNC(op_21fa_5)34721 unsigned long CPUFUNC(op_21fa_5)(uint32_t opcode) /* MOVE */
34722 {
34723 	OpcodeFamily = 30; CurrentInstrCycles = 28;
34724 {{	uint32_t srca = m68k_getpc () + 2;
34725 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
34726 	if ((srca & 1) != 0) {
34727 		last_fault_for_exception_3 = srca;
34728 		last_op_for_exception_3 = opcode;
34729 		last_addr_for_exception_3 = m68k_getpc() + 4;
34730 		Exception(3, 0, M68000_EXC_SRC_CPU);
34731 		goto endlabel2012;
34732 	}
34733 {{	int32_t src = m68k_read_memory_32(srca);
34734 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
34735 	if ((dsta & 1) != 0) {
34736 		last_fault_for_exception_3 = dsta;
34737 		last_op_for_exception_3 = opcode;
34738 		last_addr_for_exception_3 = m68k_getpc() + 6;
34739 		Exception(3, 0, M68000_EXC_SRC_CPU);
34740 		goto endlabel2012;
34741 	}
34742 {	CLEAR_CZNV;
34743 	SET_ZFLG (((int32_t)(src)) == 0);
34744 	SET_NFLG (((int32_t)(src)) < 0);
34745 m68k_incpc(6);
34746 fill_prefetch_0 ();
34747 	m68k_write_memory_32(dsta,src);
34748 }}}}}}endlabel2012: ;
34749 return 28;
34750 }
CPUFUNC(op_21fb_5)34751 unsigned long CPUFUNC(op_21fb_5)(uint32_t opcode) /* MOVE */
34752 {
34753 	OpcodeFamily = 30; CurrentInstrCycles = 30;
34754 {{	uint32_t tmppc = m68k_getpc() + 2;
34755 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
34756 	BusCyclePenalty += 2;
34757 	if ((srca & 1) != 0) {
34758 		last_fault_for_exception_3 = srca;
34759 		last_op_for_exception_3 = opcode;
34760 		last_addr_for_exception_3 = m68k_getpc() + 4;
34761 		Exception(3, 0, M68000_EXC_SRC_CPU);
34762 		goto endlabel2013;
34763 	}
34764 {{	int32_t src = m68k_read_memory_32(srca);
34765 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
34766 	if ((dsta & 1) != 0) {
34767 		last_fault_for_exception_3 = dsta;
34768 		last_op_for_exception_3 = opcode;
34769 		last_addr_for_exception_3 = m68k_getpc() + 6;
34770 		Exception(3, 0, M68000_EXC_SRC_CPU);
34771 		goto endlabel2013;
34772 	}
34773 {	CLEAR_CZNV;
34774 	SET_ZFLG (((int32_t)(src)) == 0);
34775 	SET_NFLG (((int32_t)(src)) < 0);
34776 m68k_incpc(6);
34777 fill_prefetch_0 ();
34778 	m68k_write_memory_32(dsta,src);
34779 }}}}}}endlabel2013: ;
34780 return 30;
34781 }
CPUFUNC(op_21fc_5)34782 unsigned long CPUFUNC(op_21fc_5)(uint32_t opcode) /* MOVE */
34783 {
34784 	OpcodeFamily = 30; CurrentInstrCycles = 24;
34785 {{	int32_t src = get_ilong_prefetch(2);
34786 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
34787 	if ((dsta & 1) != 0) {
34788 		last_fault_for_exception_3 = dsta;
34789 		last_op_for_exception_3 = opcode;
34790 		last_addr_for_exception_3 = m68k_getpc() + 8;
34791 		Exception(3, 0, M68000_EXC_SRC_CPU);
34792 		goto endlabel2014;
34793 	}
34794 {	CLEAR_CZNV;
34795 	SET_ZFLG (((int32_t)(src)) == 0);
34796 	SET_NFLG (((int32_t)(src)) < 0);
34797 m68k_incpc(8);
34798 fill_prefetch_0 ();
34799 	m68k_write_memory_32(dsta,src);
34800 }}}}endlabel2014: ;
34801 return 24;
34802 }
CPUFUNC(op_23c0_5)34803 unsigned long CPUFUNC(op_23c0_5)(uint32_t opcode) /* MOVE */
34804 {
34805 	uint32_t srcreg = (opcode & 7);
34806 	OpcodeFamily = 30; CurrentInstrCycles = 20;
34807 {{	int32_t src = m68k_dreg(regs, srcreg);
34808 {	uint32_t dsta = get_ilong_prefetch(2);
34809 	if ((dsta & 1) != 0) {
34810 		last_fault_for_exception_3 = dsta;
34811 		last_op_for_exception_3 = opcode;
34812 		last_addr_for_exception_3 = m68k_getpc() + 6;
34813 		Exception(3, 0, M68000_EXC_SRC_CPU);
34814 		goto endlabel2015;
34815 	}
34816 {	CLEAR_CZNV;
34817 	SET_ZFLG (((int32_t)(src)) == 0);
34818 	SET_NFLG (((int32_t)(src)) < 0);
34819 m68k_incpc(6);
34820 fill_prefetch_0 ();
34821 	m68k_write_memory_32(dsta,src);
34822 }}}}endlabel2015: ;
34823 return 20;
34824 }
CPUFUNC(op_23c8_5)34825 unsigned long CPUFUNC(op_23c8_5)(uint32_t opcode) /* MOVE */
34826 {
34827 	uint32_t srcreg = (opcode & 7);
34828 	OpcodeFamily = 30; CurrentInstrCycles = 20;
34829 {{	int32_t src = m68k_areg(regs, srcreg);
34830 {	uint32_t dsta = get_ilong_prefetch(2);
34831 	if ((dsta & 1) != 0) {
34832 		last_fault_for_exception_3 = dsta;
34833 		last_op_for_exception_3 = opcode;
34834 		last_addr_for_exception_3 = m68k_getpc() + 6;
34835 		Exception(3, 0, M68000_EXC_SRC_CPU);
34836 		goto endlabel2016;
34837 	}
34838 {	CLEAR_CZNV;
34839 	SET_ZFLG (((int32_t)(src)) == 0);
34840 	SET_NFLG (((int32_t)(src)) < 0);
34841 m68k_incpc(6);
34842 fill_prefetch_0 ();
34843 	m68k_write_memory_32(dsta,src);
34844 }}}}endlabel2016: ;
34845 return 20;
34846 }
CPUFUNC(op_23d0_5)34847 unsigned long CPUFUNC(op_23d0_5)(uint32_t opcode) /* MOVE */
34848 {
34849 	uint32_t srcreg = (opcode & 7);
34850 	OpcodeFamily = 30; CurrentInstrCycles = 28;
34851 {{	uint32_t srca = m68k_areg(regs, srcreg);
34852 	if ((srca & 1) != 0) {
34853 		last_fault_for_exception_3 = srca;
34854 		last_op_for_exception_3 = opcode;
34855 		last_addr_for_exception_3 = m68k_getpc() + 2;
34856 		Exception(3, 0, M68000_EXC_SRC_CPU);
34857 		goto endlabel2017;
34858 	}
34859 {{	int32_t src = m68k_read_memory_32(srca);
34860 {	uint32_t dsta = get_ilong_prefetch(2);
34861 	if ((dsta & 1) != 0) {
34862 		last_fault_for_exception_3 = dsta;
34863 		last_op_for_exception_3 = opcode;
34864 		last_addr_for_exception_3 = m68k_getpc() + 6;
34865 		Exception(3, 0, M68000_EXC_SRC_CPU);
34866 		goto endlabel2017;
34867 	}
34868 {	CLEAR_CZNV;
34869 	SET_ZFLG (((int32_t)(src)) == 0);
34870 	SET_NFLG (((int32_t)(src)) < 0);
34871 m68k_incpc(6);
34872 fill_prefetch_0 ();
34873 	m68k_write_memory_32(dsta,src);
34874 }}}}}}endlabel2017: ;
34875 return 28;
34876 }
CPUFUNC(op_23d8_5)34877 unsigned long CPUFUNC(op_23d8_5)(uint32_t opcode) /* MOVE */
34878 {
34879 	uint32_t srcreg = (opcode & 7);
34880 	OpcodeFamily = 30; CurrentInstrCycles = 28;
34881 {{	uint32_t srca = m68k_areg(regs, srcreg);
34882 	if ((srca & 1) != 0) {
34883 		last_fault_for_exception_3 = srca;
34884 		last_op_for_exception_3 = opcode;
34885 		last_addr_for_exception_3 = m68k_getpc() + 2;
34886 		Exception(3, 0, M68000_EXC_SRC_CPU);
34887 		goto endlabel2018;
34888 	}
34889 {{	int32_t src = m68k_read_memory_32(srca);
34890 	m68k_areg(regs, srcreg) += 4;
34891 {	uint32_t dsta = get_ilong_prefetch(2);
34892 	if ((dsta & 1) != 0) {
34893 		last_fault_for_exception_3 = dsta;
34894 		last_op_for_exception_3 = opcode;
34895 		last_addr_for_exception_3 = m68k_getpc() + 6;
34896 		Exception(3, 0, M68000_EXC_SRC_CPU);
34897 		goto endlabel2018;
34898 	}
34899 {	CLEAR_CZNV;
34900 	SET_ZFLG (((int32_t)(src)) == 0);
34901 	SET_NFLG (((int32_t)(src)) < 0);
34902 m68k_incpc(6);
34903 fill_prefetch_0 ();
34904 	m68k_write_memory_32(dsta,src);
34905 }}}}}}endlabel2018: ;
34906 return 28;
34907 }
CPUFUNC(op_23e0_5)34908 unsigned long CPUFUNC(op_23e0_5)(uint32_t opcode) /* MOVE */
34909 {
34910 	uint32_t srcreg = (opcode & 7);
34911 	OpcodeFamily = 30; CurrentInstrCycles = 30;
34912 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
34913 	if ((srca & 1) != 0) {
34914 		last_fault_for_exception_3 = srca;
34915 		last_op_for_exception_3 = opcode;
34916 		last_addr_for_exception_3 = m68k_getpc() + 2;
34917 		Exception(3, 0, M68000_EXC_SRC_CPU);
34918 		goto endlabel2019;
34919 	}
34920 {{	int32_t src = m68k_read_memory_32(srca);
34921 	m68k_areg (regs, srcreg) = srca;
34922 {	uint32_t dsta = get_ilong_prefetch(2);
34923 	if ((dsta & 1) != 0) {
34924 		last_fault_for_exception_3 = dsta;
34925 		last_op_for_exception_3 = opcode;
34926 		last_addr_for_exception_3 = m68k_getpc() + 6;
34927 		Exception(3, 0, M68000_EXC_SRC_CPU);
34928 		goto endlabel2019;
34929 	}
34930 {	CLEAR_CZNV;
34931 	SET_ZFLG (((int32_t)(src)) == 0);
34932 	SET_NFLG (((int32_t)(src)) < 0);
34933 m68k_incpc(6);
34934 fill_prefetch_0 ();
34935 	m68k_write_memory_32(dsta,src);
34936 }}}}}}endlabel2019: ;
34937 return 30;
34938 }
CPUFUNC(op_23e8_5)34939 unsigned long CPUFUNC(op_23e8_5)(uint32_t opcode) /* MOVE */
34940 {
34941 	uint32_t srcreg = (opcode & 7);
34942 	OpcodeFamily = 30; CurrentInstrCycles = 32;
34943 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
34944 	if ((srca & 1) != 0) {
34945 		last_fault_for_exception_3 = srca;
34946 		last_op_for_exception_3 = opcode;
34947 		last_addr_for_exception_3 = m68k_getpc() + 4;
34948 		Exception(3, 0, M68000_EXC_SRC_CPU);
34949 		goto endlabel2020;
34950 	}
34951 {{	int32_t src = m68k_read_memory_32(srca);
34952 {	uint32_t dsta = get_ilong_prefetch(4);
34953 	if ((dsta & 1) != 0) {
34954 		last_fault_for_exception_3 = dsta;
34955 		last_op_for_exception_3 = opcode;
34956 		last_addr_for_exception_3 = m68k_getpc() + 8;
34957 		Exception(3, 0, M68000_EXC_SRC_CPU);
34958 		goto endlabel2020;
34959 	}
34960 {	CLEAR_CZNV;
34961 	SET_ZFLG (((int32_t)(src)) == 0);
34962 	SET_NFLG (((int32_t)(src)) < 0);
34963 m68k_incpc(8);
34964 fill_prefetch_0 ();
34965 	m68k_write_memory_32(dsta,src);
34966 }}}}}}endlabel2020: ;
34967 return 32;
34968 }
CPUFUNC(op_23f0_5)34969 unsigned long CPUFUNC(op_23f0_5)(uint32_t opcode) /* MOVE */
34970 {
34971 	uint32_t srcreg = (opcode & 7);
34972 	OpcodeFamily = 30; CurrentInstrCycles = 34;
34973 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
34974 	BusCyclePenalty += 2;
34975 	if ((srca & 1) != 0) {
34976 		last_fault_for_exception_3 = srca;
34977 		last_op_for_exception_3 = opcode;
34978 		last_addr_for_exception_3 = m68k_getpc() + 4;
34979 		Exception(3, 0, M68000_EXC_SRC_CPU);
34980 		goto endlabel2021;
34981 	}
34982 {{	int32_t src = m68k_read_memory_32(srca);
34983 {	uint32_t dsta = get_ilong_prefetch(4);
34984 	if ((dsta & 1) != 0) {
34985 		last_fault_for_exception_3 = dsta;
34986 		last_op_for_exception_3 = opcode;
34987 		last_addr_for_exception_3 = m68k_getpc() + 8;
34988 		Exception(3, 0, M68000_EXC_SRC_CPU);
34989 		goto endlabel2021;
34990 	}
34991 {	CLEAR_CZNV;
34992 	SET_ZFLG (((int32_t)(src)) == 0);
34993 	SET_NFLG (((int32_t)(src)) < 0);
34994 m68k_incpc(8);
34995 fill_prefetch_0 ();
34996 	m68k_write_memory_32(dsta,src);
34997 }}}}}}endlabel2021: ;
34998 return 34;
34999 }
CPUFUNC(op_23f8_5)35000 unsigned long CPUFUNC(op_23f8_5)(uint32_t opcode) /* MOVE */
35001 {
35002 	OpcodeFamily = 30; CurrentInstrCycles = 32;
35003 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
35004 	if ((srca & 1) != 0) {
35005 		last_fault_for_exception_3 = srca;
35006 		last_op_for_exception_3 = opcode;
35007 		last_addr_for_exception_3 = m68k_getpc() + 4;
35008 		Exception(3, 0, M68000_EXC_SRC_CPU);
35009 		goto endlabel2022;
35010 	}
35011 {{	int32_t src = m68k_read_memory_32(srca);
35012 {	uint32_t dsta = get_ilong_prefetch(4);
35013 	if ((dsta & 1) != 0) {
35014 		last_fault_for_exception_3 = dsta;
35015 		last_op_for_exception_3 = opcode;
35016 		last_addr_for_exception_3 = m68k_getpc() + 8;
35017 		Exception(3, 0, M68000_EXC_SRC_CPU);
35018 		goto endlabel2022;
35019 	}
35020 {	CLEAR_CZNV;
35021 	SET_ZFLG (((int32_t)(src)) == 0);
35022 	SET_NFLG (((int32_t)(src)) < 0);
35023 m68k_incpc(8);
35024 fill_prefetch_0 ();
35025 	m68k_write_memory_32(dsta,src);
35026 }}}}}}endlabel2022: ;
35027 return 32;
35028 }
CPUFUNC(op_23f9_5)35029 unsigned long CPUFUNC(op_23f9_5)(uint32_t opcode) /* MOVE */
35030 {
35031 	OpcodeFamily = 30; CurrentInstrCycles = 36;
35032 {{	uint32_t srca = get_ilong_prefetch(2);
35033 	if ((srca & 1) != 0) {
35034 		last_fault_for_exception_3 = srca;
35035 		last_op_for_exception_3 = opcode;
35036 		last_addr_for_exception_3 = m68k_getpc() + 6;
35037 		Exception(3, 0, M68000_EXC_SRC_CPU);
35038 		goto endlabel2023;
35039 	}
35040 {{	int32_t src = m68k_read_memory_32(srca);
35041 {	uint32_t dsta = get_ilong_prefetch(6);
35042 	if ((dsta & 1) != 0) {
35043 		last_fault_for_exception_3 = dsta;
35044 		last_op_for_exception_3 = opcode;
35045 		last_addr_for_exception_3 = m68k_getpc() + 10;
35046 		Exception(3, 0, M68000_EXC_SRC_CPU);
35047 		goto endlabel2023;
35048 	}
35049 {	CLEAR_CZNV;
35050 	SET_ZFLG (((int32_t)(src)) == 0);
35051 	SET_NFLG (((int32_t)(src)) < 0);
35052 m68k_incpc(10);
35053 fill_prefetch_0 ();
35054 	m68k_write_memory_32(dsta,src);
35055 }}}}}}endlabel2023: ;
35056 return 36;
35057 }
CPUFUNC(op_23fa_5)35058 unsigned long CPUFUNC(op_23fa_5)(uint32_t opcode) /* MOVE */
35059 {
35060 	OpcodeFamily = 30; CurrentInstrCycles = 32;
35061 {{	uint32_t srca = m68k_getpc () + 2;
35062 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
35063 	if ((srca & 1) != 0) {
35064 		last_fault_for_exception_3 = srca;
35065 		last_op_for_exception_3 = opcode;
35066 		last_addr_for_exception_3 = m68k_getpc() + 4;
35067 		Exception(3, 0, M68000_EXC_SRC_CPU);
35068 		goto endlabel2024;
35069 	}
35070 {{	int32_t src = m68k_read_memory_32(srca);
35071 {	uint32_t dsta = get_ilong_prefetch(4);
35072 	if ((dsta & 1) != 0) {
35073 		last_fault_for_exception_3 = dsta;
35074 		last_op_for_exception_3 = opcode;
35075 		last_addr_for_exception_3 = m68k_getpc() + 8;
35076 		Exception(3, 0, M68000_EXC_SRC_CPU);
35077 		goto endlabel2024;
35078 	}
35079 {	CLEAR_CZNV;
35080 	SET_ZFLG (((int32_t)(src)) == 0);
35081 	SET_NFLG (((int32_t)(src)) < 0);
35082 m68k_incpc(8);
35083 fill_prefetch_0 ();
35084 	m68k_write_memory_32(dsta,src);
35085 }}}}}}endlabel2024: ;
35086 return 32;
35087 }
CPUFUNC(op_23fb_5)35088 unsigned long CPUFUNC(op_23fb_5)(uint32_t opcode) /* MOVE */
35089 {
35090 	OpcodeFamily = 30; CurrentInstrCycles = 34;
35091 {{	uint32_t tmppc = m68k_getpc() + 2;
35092 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
35093 	BusCyclePenalty += 2;
35094 	if ((srca & 1) != 0) {
35095 		last_fault_for_exception_3 = srca;
35096 		last_op_for_exception_3 = opcode;
35097 		last_addr_for_exception_3 = m68k_getpc() + 4;
35098 		Exception(3, 0, M68000_EXC_SRC_CPU);
35099 		goto endlabel2025;
35100 	}
35101 {{	int32_t src = m68k_read_memory_32(srca);
35102 {	uint32_t dsta = get_ilong_prefetch(4);
35103 	if ((dsta & 1) != 0) {
35104 		last_fault_for_exception_3 = dsta;
35105 		last_op_for_exception_3 = opcode;
35106 		last_addr_for_exception_3 = m68k_getpc() + 8;
35107 		Exception(3, 0, M68000_EXC_SRC_CPU);
35108 		goto endlabel2025;
35109 	}
35110 {	CLEAR_CZNV;
35111 	SET_ZFLG (((int32_t)(src)) == 0);
35112 	SET_NFLG (((int32_t)(src)) < 0);
35113 m68k_incpc(8);
35114 fill_prefetch_0 ();
35115 	m68k_write_memory_32(dsta,src);
35116 }}}}}}endlabel2025: ;
35117 return 34;
35118 }
CPUFUNC(op_23fc_5)35119 unsigned long CPUFUNC(op_23fc_5)(uint32_t opcode) /* MOVE */
35120 {
35121 	OpcodeFamily = 30; CurrentInstrCycles = 28;
35122 {{	int32_t src = get_ilong_prefetch(2);
35123 {	uint32_t dsta = get_ilong_prefetch(6);
35124 	if ((dsta & 1) != 0) {
35125 		last_fault_for_exception_3 = dsta;
35126 		last_op_for_exception_3 = opcode;
35127 		last_addr_for_exception_3 = m68k_getpc() + 10;
35128 		Exception(3, 0, M68000_EXC_SRC_CPU);
35129 		goto endlabel2026;
35130 	}
35131 {	CLEAR_CZNV;
35132 	SET_ZFLG (((int32_t)(src)) == 0);
35133 	SET_NFLG (((int32_t)(src)) < 0);
35134 m68k_incpc(10);
35135 fill_prefetch_0 ();
35136 	m68k_write_memory_32(dsta,src);
35137 }}}}endlabel2026: ;
35138 return 28;
35139 }
CPUFUNC(op_3000_5)35140 unsigned long CPUFUNC(op_3000_5)(uint32_t opcode) /* MOVE */
35141 {
35142 	uint32_t srcreg = (opcode & 7);
35143 	uint32_t dstreg = (opcode >> 9) & 7;
35144 	OpcodeFamily = 30; CurrentInstrCycles = 4;
35145 {{	int16_t src = m68k_dreg(regs, srcreg);
35146 {	CLEAR_CZNV;
35147 	SET_ZFLG (((int16_t)(src)) == 0);
35148 	SET_NFLG (((int16_t)(src)) < 0);
35149 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35150 }}}m68k_incpc(2);
35151 fill_prefetch_2 ();
35152 return 4;
35153 }
CPUFUNC(op_3008_5)35154 unsigned long CPUFUNC(op_3008_5)(uint32_t opcode) /* MOVE */
35155 {
35156 	uint32_t srcreg = (opcode & 7);
35157 	uint32_t dstreg = (opcode >> 9) & 7;
35158 	OpcodeFamily = 30; CurrentInstrCycles = 4;
35159 {{	int16_t src = m68k_areg(regs, srcreg);
35160 {	CLEAR_CZNV;
35161 	SET_ZFLG (((int16_t)(src)) == 0);
35162 	SET_NFLG (((int16_t)(src)) < 0);
35163 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35164 }}}m68k_incpc(2);
35165 fill_prefetch_2 ();
35166 return 4;
35167 }
CPUFUNC(op_3010_5)35168 unsigned long CPUFUNC(op_3010_5)(uint32_t opcode) /* MOVE */
35169 {
35170 	uint32_t srcreg = (opcode & 7);
35171 	uint32_t dstreg = (opcode >> 9) & 7;
35172 	OpcodeFamily = 30; CurrentInstrCycles = 8;
35173 {{	uint32_t srca = m68k_areg(regs, srcreg);
35174 	if ((srca & 1) != 0) {
35175 		last_fault_for_exception_3 = srca;
35176 		last_op_for_exception_3 = opcode;
35177 		last_addr_for_exception_3 = m68k_getpc() + 2;
35178 		Exception(3, 0, M68000_EXC_SRC_CPU);
35179 		goto endlabel2029;
35180 	}
35181 {{	int16_t src = m68k_read_memory_16(srca);
35182 {	CLEAR_CZNV;
35183 	SET_ZFLG (((int16_t)(src)) == 0);
35184 	SET_NFLG (((int16_t)(src)) < 0);
35185 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35186 }}}}}m68k_incpc(2);
35187 fill_prefetch_2 ();
35188 endlabel2029: ;
35189 return 8;
35190 }
CPUFUNC(op_3018_5)35191 unsigned long CPUFUNC(op_3018_5)(uint32_t opcode) /* MOVE */
35192 {
35193 	uint32_t srcreg = (opcode & 7);
35194 	uint32_t dstreg = (opcode >> 9) & 7;
35195 	OpcodeFamily = 30; CurrentInstrCycles = 8;
35196 {{	uint32_t srca = m68k_areg(regs, srcreg);
35197 	if ((srca & 1) != 0) {
35198 		last_fault_for_exception_3 = srca;
35199 		last_op_for_exception_3 = opcode;
35200 		last_addr_for_exception_3 = m68k_getpc() + 2;
35201 		Exception(3, 0, M68000_EXC_SRC_CPU);
35202 		goto endlabel2030;
35203 	}
35204 {{	int16_t src = m68k_read_memory_16(srca);
35205 	m68k_areg(regs, srcreg) += 2;
35206 {	CLEAR_CZNV;
35207 	SET_ZFLG (((int16_t)(src)) == 0);
35208 	SET_NFLG (((int16_t)(src)) < 0);
35209 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35210 }}}}}m68k_incpc(2);
35211 fill_prefetch_2 ();
35212 endlabel2030: ;
35213 return 8;
35214 }
CPUFUNC(op_3020_5)35215 unsigned long CPUFUNC(op_3020_5)(uint32_t opcode) /* MOVE */
35216 {
35217 	uint32_t srcreg = (opcode & 7);
35218 	uint32_t dstreg = (opcode >> 9) & 7;
35219 	OpcodeFamily = 30; CurrentInstrCycles = 10;
35220 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
35221 	if ((srca & 1) != 0) {
35222 		last_fault_for_exception_3 = srca;
35223 		last_op_for_exception_3 = opcode;
35224 		last_addr_for_exception_3 = m68k_getpc() + 2;
35225 		Exception(3, 0, M68000_EXC_SRC_CPU);
35226 		goto endlabel2031;
35227 	}
35228 {{	int16_t src = m68k_read_memory_16(srca);
35229 	m68k_areg (regs, srcreg) = srca;
35230 {	CLEAR_CZNV;
35231 	SET_ZFLG (((int16_t)(src)) == 0);
35232 	SET_NFLG (((int16_t)(src)) < 0);
35233 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35234 }}}}}m68k_incpc(2);
35235 fill_prefetch_2 ();
35236 endlabel2031: ;
35237 return 10;
35238 }
CPUFUNC(op_3028_5)35239 unsigned long CPUFUNC(op_3028_5)(uint32_t opcode) /* MOVE */
35240 {
35241 	uint32_t srcreg = (opcode & 7);
35242 	uint32_t dstreg = (opcode >> 9) & 7;
35243 	OpcodeFamily = 30; CurrentInstrCycles = 12;
35244 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
35245 	if ((srca & 1) != 0) {
35246 		last_fault_for_exception_3 = srca;
35247 		last_op_for_exception_3 = opcode;
35248 		last_addr_for_exception_3 = m68k_getpc() + 4;
35249 		Exception(3, 0, M68000_EXC_SRC_CPU);
35250 		goto endlabel2032;
35251 	}
35252 {{	int16_t src = m68k_read_memory_16(srca);
35253 {	CLEAR_CZNV;
35254 	SET_ZFLG (((int16_t)(src)) == 0);
35255 	SET_NFLG (((int16_t)(src)) < 0);
35256 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35257 }}}}}m68k_incpc(4);
35258 fill_prefetch_0 ();
35259 endlabel2032: ;
35260 return 12;
35261 }
CPUFUNC(op_3030_5)35262 unsigned long CPUFUNC(op_3030_5)(uint32_t opcode) /* MOVE */
35263 {
35264 	uint32_t srcreg = (opcode & 7);
35265 	uint32_t dstreg = (opcode >> 9) & 7;
35266 	OpcodeFamily = 30; CurrentInstrCycles = 14;
35267 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
35268 	BusCyclePenalty += 2;
35269 	if ((srca & 1) != 0) {
35270 		last_fault_for_exception_3 = srca;
35271 		last_op_for_exception_3 = opcode;
35272 		last_addr_for_exception_3 = m68k_getpc() + 4;
35273 		Exception(3, 0, M68000_EXC_SRC_CPU);
35274 		goto endlabel2033;
35275 	}
35276 {{	int16_t src = m68k_read_memory_16(srca);
35277 {	CLEAR_CZNV;
35278 	SET_ZFLG (((int16_t)(src)) == 0);
35279 	SET_NFLG (((int16_t)(src)) < 0);
35280 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35281 }}}}}m68k_incpc(4);
35282 fill_prefetch_0 ();
35283 endlabel2033: ;
35284 return 14;
35285 }
CPUFUNC(op_3038_5)35286 unsigned long CPUFUNC(op_3038_5)(uint32_t opcode) /* MOVE */
35287 {
35288 	uint32_t dstreg = (opcode >> 9) & 7;
35289 	OpcodeFamily = 30; CurrentInstrCycles = 12;
35290 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
35291 	if ((srca & 1) != 0) {
35292 		last_fault_for_exception_3 = srca;
35293 		last_op_for_exception_3 = opcode;
35294 		last_addr_for_exception_3 = m68k_getpc() + 4;
35295 		Exception(3, 0, M68000_EXC_SRC_CPU);
35296 		goto endlabel2034;
35297 	}
35298 {{	int16_t src = m68k_read_memory_16(srca);
35299 {	CLEAR_CZNV;
35300 	SET_ZFLG (((int16_t)(src)) == 0);
35301 	SET_NFLG (((int16_t)(src)) < 0);
35302 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35303 }}}}}m68k_incpc(4);
35304 fill_prefetch_0 ();
35305 endlabel2034: ;
35306 return 12;
35307 }
CPUFUNC(op_3039_5)35308 unsigned long CPUFUNC(op_3039_5)(uint32_t opcode) /* MOVE */
35309 {
35310 	uint32_t dstreg = (opcode >> 9) & 7;
35311 	OpcodeFamily = 30; CurrentInstrCycles = 16;
35312 {{	uint32_t srca = get_ilong_prefetch(2);
35313 	if ((srca & 1) != 0) {
35314 		last_fault_for_exception_3 = srca;
35315 		last_op_for_exception_3 = opcode;
35316 		last_addr_for_exception_3 = m68k_getpc() + 6;
35317 		Exception(3, 0, M68000_EXC_SRC_CPU);
35318 		goto endlabel2035;
35319 	}
35320 {{	int16_t src = m68k_read_memory_16(srca);
35321 {	CLEAR_CZNV;
35322 	SET_ZFLG (((int16_t)(src)) == 0);
35323 	SET_NFLG (((int16_t)(src)) < 0);
35324 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35325 }}}}}m68k_incpc(6);
35326 fill_prefetch_0 ();
35327 endlabel2035: ;
35328 return 16;
35329 }
CPUFUNC(op_303a_5)35330 unsigned long CPUFUNC(op_303a_5)(uint32_t opcode) /* MOVE */
35331 {
35332 	uint32_t dstreg = (opcode >> 9) & 7;
35333 	OpcodeFamily = 30; CurrentInstrCycles = 12;
35334 {{	uint32_t srca = m68k_getpc () + 2;
35335 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
35336 	if ((srca & 1) != 0) {
35337 		last_fault_for_exception_3 = srca;
35338 		last_op_for_exception_3 = opcode;
35339 		last_addr_for_exception_3 = m68k_getpc() + 4;
35340 		Exception(3, 0, M68000_EXC_SRC_CPU);
35341 		goto endlabel2036;
35342 	}
35343 {{	int16_t src = m68k_read_memory_16(srca);
35344 {	CLEAR_CZNV;
35345 	SET_ZFLG (((int16_t)(src)) == 0);
35346 	SET_NFLG (((int16_t)(src)) < 0);
35347 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35348 }}}}}m68k_incpc(4);
35349 fill_prefetch_0 ();
35350 endlabel2036: ;
35351 return 12;
35352 }
CPUFUNC(op_303b_5)35353 unsigned long CPUFUNC(op_303b_5)(uint32_t opcode) /* MOVE */
35354 {
35355 	uint32_t dstreg = (opcode >> 9) & 7;
35356 	OpcodeFamily = 30; CurrentInstrCycles = 14;
35357 {{	uint32_t tmppc = m68k_getpc() + 2;
35358 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
35359 	BusCyclePenalty += 2;
35360 	if ((srca & 1) != 0) {
35361 		last_fault_for_exception_3 = srca;
35362 		last_op_for_exception_3 = opcode;
35363 		last_addr_for_exception_3 = m68k_getpc() + 4;
35364 		Exception(3, 0, M68000_EXC_SRC_CPU);
35365 		goto endlabel2037;
35366 	}
35367 {{	int16_t src = m68k_read_memory_16(srca);
35368 {	CLEAR_CZNV;
35369 	SET_ZFLG (((int16_t)(src)) == 0);
35370 	SET_NFLG (((int16_t)(src)) < 0);
35371 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35372 }}}}}m68k_incpc(4);
35373 fill_prefetch_0 ();
35374 endlabel2037: ;
35375 return 14;
35376 }
CPUFUNC(op_303c_5)35377 unsigned long CPUFUNC(op_303c_5)(uint32_t opcode) /* MOVE */
35378 {
35379 	uint32_t dstreg = (opcode >> 9) & 7;
35380 	OpcodeFamily = 30; CurrentInstrCycles = 8;
35381 {{	int16_t src = get_iword_prefetch(2);
35382 {	CLEAR_CZNV;
35383 	SET_ZFLG (((int16_t)(src)) == 0);
35384 	SET_NFLG (((int16_t)(src)) < 0);
35385 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
35386 }}}m68k_incpc(4);
35387 fill_prefetch_0 ();
35388 return 8;
35389 }
CPUFUNC(op_3040_5)35390 unsigned long CPUFUNC(op_3040_5)(uint32_t opcode) /* MOVEA */
35391 {
35392 	uint32_t srcreg = (opcode & 7);
35393 	uint32_t dstreg = (opcode >> 9) & 7;
35394 	OpcodeFamily = 31; CurrentInstrCycles = 4;
35395 {{	int16_t src = m68k_dreg(regs, srcreg);
35396 {	uint32_t val = (int32_t)(int16_t)src;
35397 	m68k_areg(regs, dstreg) = (val);
35398 }}}m68k_incpc(2);
35399 fill_prefetch_2 ();
35400 return 4;
35401 }
CPUFUNC(op_3048_5)35402 unsigned long CPUFUNC(op_3048_5)(uint32_t opcode) /* MOVEA */
35403 {
35404 	uint32_t srcreg = (opcode & 7);
35405 	uint32_t dstreg = (opcode >> 9) & 7;
35406 	OpcodeFamily = 31; CurrentInstrCycles = 4;
35407 {{	int16_t src = m68k_areg(regs, srcreg);
35408 {	uint32_t val = (int32_t)(int16_t)src;
35409 	m68k_areg(regs, dstreg) = (val);
35410 }}}m68k_incpc(2);
35411 fill_prefetch_2 ();
35412 return 4;
35413 }
CPUFUNC(op_3050_5)35414 unsigned long CPUFUNC(op_3050_5)(uint32_t opcode) /* MOVEA */
35415 {
35416 	uint32_t srcreg = (opcode & 7);
35417 	uint32_t dstreg = (opcode >> 9) & 7;
35418 	OpcodeFamily = 31; CurrentInstrCycles = 8;
35419 {{	uint32_t srca = m68k_areg(regs, srcreg);
35420 	if ((srca & 1) != 0) {
35421 		last_fault_for_exception_3 = srca;
35422 		last_op_for_exception_3 = opcode;
35423 		last_addr_for_exception_3 = m68k_getpc() + 2;
35424 		Exception(3, 0, M68000_EXC_SRC_CPU);
35425 		goto endlabel2041;
35426 	}
35427 {{	int16_t src = m68k_read_memory_16(srca);
35428 {	uint32_t val = (int32_t)(int16_t)src;
35429 	m68k_areg(regs, dstreg) = (val);
35430 }}}}}m68k_incpc(2);
35431 fill_prefetch_2 ();
35432 endlabel2041: ;
35433 return 8;
35434 }
CPUFUNC(op_3058_5)35435 unsigned long CPUFUNC(op_3058_5)(uint32_t opcode) /* MOVEA */
35436 {
35437 	uint32_t srcreg = (opcode & 7);
35438 	uint32_t dstreg = (opcode >> 9) & 7;
35439 	OpcodeFamily = 31; CurrentInstrCycles = 8;
35440 {{	uint32_t srca = m68k_areg(regs, srcreg);
35441 	if ((srca & 1) != 0) {
35442 		last_fault_for_exception_3 = srca;
35443 		last_op_for_exception_3 = opcode;
35444 		last_addr_for_exception_3 = m68k_getpc() + 2;
35445 		Exception(3, 0, M68000_EXC_SRC_CPU);
35446 		goto endlabel2042;
35447 	}
35448 {{	int16_t src = m68k_read_memory_16(srca);
35449 	m68k_areg(regs, srcreg) += 2;
35450 {	uint32_t val = (int32_t)(int16_t)src;
35451 	m68k_areg(regs, dstreg) = (val);
35452 }}}}}m68k_incpc(2);
35453 fill_prefetch_2 ();
35454 endlabel2042: ;
35455 return 8;
35456 }
CPUFUNC(op_3060_5)35457 unsigned long CPUFUNC(op_3060_5)(uint32_t opcode) /* MOVEA */
35458 {
35459 	uint32_t srcreg = (opcode & 7);
35460 	uint32_t dstreg = (opcode >> 9) & 7;
35461 	OpcodeFamily = 31; CurrentInstrCycles = 10;
35462 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
35463 	if ((srca & 1) != 0) {
35464 		last_fault_for_exception_3 = srca;
35465 		last_op_for_exception_3 = opcode;
35466 		last_addr_for_exception_3 = m68k_getpc() + 2;
35467 		Exception(3, 0, M68000_EXC_SRC_CPU);
35468 		goto endlabel2043;
35469 	}
35470 {{	int16_t src = m68k_read_memory_16(srca);
35471 	m68k_areg (regs, srcreg) = srca;
35472 {	uint32_t val = (int32_t)(int16_t)src;
35473 	m68k_areg(regs, dstreg) = (val);
35474 }}}}}m68k_incpc(2);
35475 fill_prefetch_2 ();
35476 endlabel2043: ;
35477 return 10;
35478 }
CPUFUNC(op_3068_5)35479 unsigned long CPUFUNC(op_3068_5)(uint32_t opcode) /* MOVEA */
35480 {
35481 	uint32_t srcreg = (opcode & 7);
35482 	uint32_t dstreg = (opcode >> 9) & 7;
35483 	OpcodeFamily = 31; CurrentInstrCycles = 12;
35484 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
35485 	if ((srca & 1) != 0) {
35486 		last_fault_for_exception_3 = srca;
35487 		last_op_for_exception_3 = opcode;
35488 		last_addr_for_exception_3 = m68k_getpc() + 4;
35489 		Exception(3, 0, M68000_EXC_SRC_CPU);
35490 		goto endlabel2044;
35491 	}
35492 {{	int16_t src = m68k_read_memory_16(srca);
35493 {	uint32_t val = (int32_t)(int16_t)src;
35494 	m68k_areg(regs, dstreg) = (val);
35495 }}}}}m68k_incpc(4);
35496 fill_prefetch_0 ();
35497 endlabel2044: ;
35498 return 12;
35499 }
CPUFUNC(op_3070_5)35500 unsigned long CPUFUNC(op_3070_5)(uint32_t opcode) /* MOVEA */
35501 {
35502 	uint32_t srcreg = (opcode & 7);
35503 	uint32_t dstreg = (opcode >> 9) & 7;
35504 	OpcodeFamily = 31; CurrentInstrCycles = 14;
35505 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
35506 	BusCyclePenalty += 2;
35507 	if ((srca & 1) != 0) {
35508 		last_fault_for_exception_3 = srca;
35509 		last_op_for_exception_3 = opcode;
35510 		last_addr_for_exception_3 = m68k_getpc() + 4;
35511 		Exception(3, 0, M68000_EXC_SRC_CPU);
35512 		goto endlabel2045;
35513 	}
35514 {{	int16_t src = m68k_read_memory_16(srca);
35515 {	uint32_t val = (int32_t)(int16_t)src;
35516 	m68k_areg(regs, dstreg) = (val);
35517 }}}}}m68k_incpc(4);
35518 fill_prefetch_0 ();
35519 endlabel2045: ;
35520 return 14;
35521 }
CPUFUNC(op_3078_5)35522 unsigned long CPUFUNC(op_3078_5)(uint32_t opcode) /* MOVEA */
35523 {
35524 	uint32_t dstreg = (opcode >> 9) & 7;
35525 	OpcodeFamily = 31; CurrentInstrCycles = 12;
35526 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
35527 	if ((srca & 1) != 0) {
35528 		last_fault_for_exception_3 = srca;
35529 		last_op_for_exception_3 = opcode;
35530 		last_addr_for_exception_3 = m68k_getpc() + 4;
35531 		Exception(3, 0, M68000_EXC_SRC_CPU);
35532 		goto endlabel2046;
35533 	}
35534 {{	int16_t src = m68k_read_memory_16(srca);
35535 {	uint32_t val = (int32_t)(int16_t)src;
35536 	m68k_areg(regs, dstreg) = (val);
35537 }}}}}m68k_incpc(4);
35538 fill_prefetch_0 ();
35539 endlabel2046: ;
35540 return 12;
35541 }
CPUFUNC(op_3079_5)35542 unsigned long CPUFUNC(op_3079_5)(uint32_t opcode) /* MOVEA */
35543 {
35544 	uint32_t dstreg = (opcode >> 9) & 7;
35545 	OpcodeFamily = 31; CurrentInstrCycles = 16;
35546 {{	uint32_t srca = get_ilong_prefetch(2);
35547 	if ((srca & 1) != 0) {
35548 		last_fault_for_exception_3 = srca;
35549 		last_op_for_exception_3 = opcode;
35550 		last_addr_for_exception_3 = m68k_getpc() + 6;
35551 		Exception(3, 0, M68000_EXC_SRC_CPU);
35552 		goto endlabel2047;
35553 	}
35554 {{	int16_t src = m68k_read_memory_16(srca);
35555 {	uint32_t val = (int32_t)(int16_t)src;
35556 	m68k_areg(regs, dstreg) = (val);
35557 }}}}}m68k_incpc(6);
35558 fill_prefetch_0 ();
35559 endlabel2047: ;
35560 return 16;
35561 }
CPUFUNC(op_307a_5)35562 unsigned long CPUFUNC(op_307a_5)(uint32_t opcode) /* MOVEA */
35563 {
35564 	uint32_t dstreg = (opcode >> 9) & 7;
35565 	OpcodeFamily = 31; CurrentInstrCycles = 12;
35566 {{	uint32_t srca = m68k_getpc () + 2;
35567 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
35568 	if ((srca & 1) != 0) {
35569 		last_fault_for_exception_3 = srca;
35570 		last_op_for_exception_3 = opcode;
35571 		last_addr_for_exception_3 = m68k_getpc() + 4;
35572 		Exception(3, 0, M68000_EXC_SRC_CPU);
35573 		goto endlabel2048;
35574 	}
35575 {{	int16_t src = m68k_read_memory_16(srca);
35576 {	uint32_t val = (int32_t)(int16_t)src;
35577 	m68k_areg(regs, dstreg) = (val);
35578 }}}}}m68k_incpc(4);
35579 fill_prefetch_0 ();
35580 endlabel2048: ;
35581 return 12;
35582 }
CPUFUNC(op_307b_5)35583 unsigned long CPUFUNC(op_307b_5)(uint32_t opcode) /* MOVEA */
35584 {
35585 	uint32_t dstreg = (opcode >> 9) & 7;
35586 	OpcodeFamily = 31; CurrentInstrCycles = 14;
35587 {{	uint32_t tmppc = m68k_getpc() + 2;
35588 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
35589 	BusCyclePenalty += 2;
35590 	if ((srca & 1) != 0) {
35591 		last_fault_for_exception_3 = srca;
35592 		last_op_for_exception_3 = opcode;
35593 		last_addr_for_exception_3 = m68k_getpc() + 4;
35594 		Exception(3, 0, M68000_EXC_SRC_CPU);
35595 		goto endlabel2049;
35596 	}
35597 {{	int16_t src = m68k_read_memory_16(srca);
35598 {	uint32_t val = (int32_t)(int16_t)src;
35599 	m68k_areg(regs, dstreg) = (val);
35600 }}}}}m68k_incpc(4);
35601 fill_prefetch_0 ();
35602 endlabel2049: ;
35603 return 14;
35604 }
CPUFUNC(op_307c_5)35605 unsigned long CPUFUNC(op_307c_5)(uint32_t opcode) /* MOVEA */
35606 {
35607 	uint32_t dstreg = (opcode >> 9) & 7;
35608 	OpcodeFamily = 31; CurrentInstrCycles = 8;
35609 {{	int16_t src = get_iword_prefetch(2);
35610 {	uint32_t val = (int32_t)(int16_t)src;
35611 	m68k_areg(regs, dstreg) = (val);
35612 }}}m68k_incpc(4);
35613 fill_prefetch_0 ();
35614 return 8;
35615 }
CPUFUNC(op_3080_5)35616 unsigned long CPUFUNC(op_3080_5)(uint32_t opcode) /* MOVE */
35617 {
35618 	uint32_t srcreg = (opcode & 7);
35619 	uint32_t dstreg = (opcode >> 9) & 7;
35620 	OpcodeFamily = 30; CurrentInstrCycles = 8;
35621 {{	int16_t src = m68k_dreg(regs, srcreg);
35622 {	uint32_t dsta = m68k_areg(regs, dstreg);
35623 	if ((dsta & 1) != 0) {
35624 		last_fault_for_exception_3 = dsta;
35625 		last_op_for_exception_3 = opcode;
35626 		last_addr_for_exception_3 = m68k_getpc() + 2;
35627 		Exception(3, 0, M68000_EXC_SRC_CPU);
35628 		goto endlabel2051;
35629 	}
35630 {	CLEAR_CZNV;
35631 	SET_ZFLG (((int16_t)(src)) == 0);
35632 	SET_NFLG (((int16_t)(src)) < 0);
35633 m68k_incpc(2);
35634 fill_prefetch_2 ();
35635 	m68k_write_memory_16(dsta,src);
35636 }}}}endlabel2051: ;
35637 return 8;
35638 }
CPUFUNC(op_3088_5)35639 unsigned long CPUFUNC(op_3088_5)(uint32_t opcode) /* MOVE */
35640 {
35641 	uint32_t srcreg = (opcode & 7);
35642 	uint32_t dstreg = (opcode >> 9) & 7;
35643 	OpcodeFamily = 30; CurrentInstrCycles = 8;
35644 {{	int16_t src = m68k_areg(regs, srcreg);
35645 {	uint32_t dsta = m68k_areg(regs, dstreg);
35646 	if ((dsta & 1) != 0) {
35647 		last_fault_for_exception_3 = dsta;
35648 		last_op_for_exception_3 = opcode;
35649 		last_addr_for_exception_3 = m68k_getpc() + 2;
35650 		Exception(3, 0, M68000_EXC_SRC_CPU);
35651 		goto endlabel2052;
35652 	}
35653 {	CLEAR_CZNV;
35654 	SET_ZFLG (((int16_t)(src)) == 0);
35655 	SET_NFLG (((int16_t)(src)) < 0);
35656 m68k_incpc(2);
35657 fill_prefetch_2 ();
35658 	m68k_write_memory_16(dsta,src);
35659 }}}}endlabel2052: ;
35660 return 8;
35661 }
CPUFUNC(op_3090_5)35662 unsigned long CPUFUNC(op_3090_5)(uint32_t opcode) /* MOVE */
35663 {
35664 	uint32_t srcreg = (opcode & 7);
35665 	uint32_t dstreg = (opcode >> 9) & 7;
35666 	OpcodeFamily = 30; CurrentInstrCycles = 12;
35667 {{	uint32_t srca = m68k_areg(regs, srcreg);
35668 	if ((srca & 1) != 0) {
35669 		last_fault_for_exception_3 = srca;
35670 		last_op_for_exception_3 = opcode;
35671 		last_addr_for_exception_3 = m68k_getpc() + 2;
35672 		Exception(3, 0, M68000_EXC_SRC_CPU);
35673 		goto endlabel2053;
35674 	}
35675 {{	int16_t src = m68k_read_memory_16(srca);
35676 {	uint32_t dsta = m68k_areg(regs, dstreg);
35677 	if ((dsta & 1) != 0) {
35678 		last_fault_for_exception_3 = dsta;
35679 		last_op_for_exception_3 = opcode;
35680 		last_addr_for_exception_3 = m68k_getpc() + 2;
35681 		Exception(3, 0, M68000_EXC_SRC_CPU);
35682 		goto endlabel2053;
35683 	}
35684 {	CLEAR_CZNV;
35685 	SET_ZFLG (((int16_t)(src)) == 0);
35686 	SET_NFLG (((int16_t)(src)) < 0);
35687 m68k_incpc(2);
35688 fill_prefetch_2 ();
35689 	m68k_write_memory_16(dsta,src);
35690 }}}}}}endlabel2053: ;
35691 return 12;
35692 }
CPUFUNC(op_3098_5)35693 unsigned long CPUFUNC(op_3098_5)(uint32_t opcode) /* MOVE */
35694 {
35695 	uint32_t srcreg = (opcode & 7);
35696 	uint32_t dstreg = (opcode >> 9) & 7;
35697 	OpcodeFamily = 30; CurrentInstrCycles = 12;
35698 {{	uint32_t srca = m68k_areg(regs, srcreg);
35699 	if ((srca & 1) != 0) {
35700 		last_fault_for_exception_3 = srca;
35701 		last_op_for_exception_3 = opcode;
35702 		last_addr_for_exception_3 = m68k_getpc() + 2;
35703 		Exception(3, 0, M68000_EXC_SRC_CPU);
35704 		goto endlabel2054;
35705 	}
35706 {{	int16_t src = m68k_read_memory_16(srca);
35707 	m68k_areg(regs, srcreg) += 2;
35708 {	uint32_t dsta = m68k_areg(regs, dstreg);
35709 	if ((dsta & 1) != 0) {
35710 		last_fault_for_exception_3 = dsta;
35711 		last_op_for_exception_3 = opcode;
35712 		last_addr_for_exception_3 = m68k_getpc() + 2;
35713 		Exception(3, 0, M68000_EXC_SRC_CPU);
35714 		goto endlabel2054;
35715 	}
35716 {	CLEAR_CZNV;
35717 	SET_ZFLG (((int16_t)(src)) == 0);
35718 	SET_NFLG (((int16_t)(src)) < 0);
35719 m68k_incpc(2);
35720 fill_prefetch_2 ();
35721 	m68k_write_memory_16(dsta,src);
35722 }}}}}}endlabel2054: ;
35723 return 12;
35724 }
CPUFUNC(op_30a0_5)35725 unsigned long CPUFUNC(op_30a0_5)(uint32_t opcode) /* MOVE */
35726 {
35727 	uint32_t srcreg = (opcode & 7);
35728 	uint32_t dstreg = (opcode >> 9) & 7;
35729 	OpcodeFamily = 30; CurrentInstrCycles = 14;
35730 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
35731 	if ((srca & 1) != 0) {
35732 		last_fault_for_exception_3 = srca;
35733 		last_op_for_exception_3 = opcode;
35734 		last_addr_for_exception_3 = m68k_getpc() + 2;
35735 		Exception(3, 0, M68000_EXC_SRC_CPU);
35736 		goto endlabel2055;
35737 	}
35738 {{	int16_t src = m68k_read_memory_16(srca);
35739 	m68k_areg (regs, srcreg) = srca;
35740 {	uint32_t dsta = m68k_areg(regs, dstreg);
35741 	if ((dsta & 1) != 0) {
35742 		last_fault_for_exception_3 = dsta;
35743 		last_op_for_exception_3 = opcode;
35744 		last_addr_for_exception_3 = m68k_getpc() + 2;
35745 		Exception(3, 0, M68000_EXC_SRC_CPU);
35746 		goto endlabel2055;
35747 	}
35748 {	CLEAR_CZNV;
35749 	SET_ZFLG (((int16_t)(src)) == 0);
35750 	SET_NFLG (((int16_t)(src)) < 0);
35751 m68k_incpc(2);
35752 fill_prefetch_2 ();
35753 	m68k_write_memory_16(dsta,src);
35754 }}}}}}endlabel2055: ;
35755 return 14;
35756 }
CPUFUNC(op_30a8_5)35757 unsigned long CPUFUNC(op_30a8_5)(uint32_t opcode) /* MOVE */
35758 {
35759 	uint32_t srcreg = (opcode & 7);
35760 	uint32_t dstreg = (opcode >> 9) & 7;
35761 	OpcodeFamily = 30; CurrentInstrCycles = 16;
35762 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
35763 	if ((srca & 1) != 0) {
35764 		last_fault_for_exception_3 = srca;
35765 		last_op_for_exception_3 = opcode;
35766 		last_addr_for_exception_3 = m68k_getpc() + 4;
35767 		Exception(3, 0, M68000_EXC_SRC_CPU);
35768 		goto endlabel2056;
35769 	}
35770 {{	int16_t src = m68k_read_memory_16(srca);
35771 {	uint32_t dsta = m68k_areg(regs, dstreg);
35772 	if ((dsta & 1) != 0) {
35773 		last_fault_for_exception_3 = dsta;
35774 		last_op_for_exception_3 = opcode;
35775 		last_addr_for_exception_3 = m68k_getpc() + 4;
35776 		Exception(3, 0, M68000_EXC_SRC_CPU);
35777 		goto endlabel2056;
35778 	}
35779 {	CLEAR_CZNV;
35780 	SET_ZFLG (((int16_t)(src)) == 0);
35781 	SET_NFLG (((int16_t)(src)) < 0);
35782 m68k_incpc(4);
35783 fill_prefetch_0 ();
35784 	m68k_write_memory_16(dsta,src);
35785 }}}}}}endlabel2056: ;
35786 return 16;
35787 }
CPUFUNC(op_30b0_5)35788 unsigned long CPUFUNC(op_30b0_5)(uint32_t opcode) /* MOVE */
35789 {
35790 	uint32_t srcreg = (opcode & 7);
35791 	uint32_t dstreg = (opcode >> 9) & 7;
35792 	OpcodeFamily = 30; CurrentInstrCycles = 18;
35793 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
35794 	BusCyclePenalty += 2;
35795 	if ((srca & 1) != 0) {
35796 		last_fault_for_exception_3 = srca;
35797 		last_op_for_exception_3 = opcode;
35798 		last_addr_for_exception_3 = m68k_getpc() + 4;
35799 		Exception(3, 0, M68000_EXC_SRC_CPU);
35800 		goto endlabel2057;
35801 	}
35802 {{	int16_t src = m68k_read_memory_16(srca);
35803 {	uint32_t dsta = m68k_areg(regs, dstreg);
35804 	if ((dsta & 1) != 0) {
35805 		last_fault_for_exception_3 = dsta;
35806 		last_op_for_exception_3 = opcode;
35807 		last_addr_for_exception_3 = m68k_getpc() + 4;
35808 		Exception(3, 0, M68000_EXC_SRC_CPU);
35809 		goto endlabel2057;
35810 	}
35811 {	CLEAR_CZNV;
35812 	SET_ZFLG (((int16_t)(src)) == 0);
35813 	SET_NFLG (((int16_t)(src)) < 0);
35814 m68k_incpc(4);
35815 fill_prefetch_0 ();
35816 	m68k_write_memory_16(dsta,src);
35817 }}}}}}endlabel2057: ;
35818 return 18;
35819 }
CPUFUNC(op_30b8_5)35820 unsigned long CPUFUNC(op_30b8_5)(uint32_t opcode) /* MOVE */
35821 {
35822 	uint32_t dstreg = (opcode >> 9) & 7;
35823 	OpcodeFamily = 30; CurrentInstrCycles = 16;
35824 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
35825 	if ((srca & 1) != 0) {
35826 		last_fault_for_exception_3 = srca;
35827 		last_op_for_exception_3 = opcode;
35828 		last_addr_for_exception_3 = m68k_getpc() + 4;
35829 		Exception(3, 0, M68000_EXC_SRC_CPU);
35830 		goto endlabel2058;
35831 	}
35832 {{	int16_t src = m68k_read_memory_16(srca);
35833 {	uint32_t dsta = m68k_areg(regs, dstreg);
35834 	if ((dsta & 1) != 0) {
35835 		last_fault_for_exception_3 = dsta;
35836 		last_op_for_exception_3 = opcode;
35837 		last_addr_for_exception_3 = m68k_getpc() + 4;
35838 		Exception(3, 0, M68000_EXC_SRC_CPU);
35839 		goto endlabel2058;
35840 	}
35841 {	CLEAR_CZNV;
35842 	SET_ZFLG (((int16_t)(src)) == 0);
35843 	SET_NFLG (((int16_t)(src)) < 0);
35844 m68k_incpc(4);
35845 fill_prefetch_0 ();
35846 	m68k_write_memory_16(dsta,src);
35847 }}}}}}endlabel2058: ;
35848 return 16;
35849 }
CPUFUNC(op_30b9_5)35850 unsigned long CPUFUNC(op_30b9_5)(uint32_t opcode) /* MOVE */
35851 {
35852 	uint32_t dstreg = (opcode >> 9) & 7;
35853 	OpcodeFamily = 30; CurrentInstrCycles = 20;
35854 {{	uint32_t srca = get_ilong_prefetch(2);
35855 	if ((srca & 1) != 0) {
35856 		last_fault_for_exception_3 = srca;
35857 		last_op_for_exception_3 = opcode;
35858 		last_addr_for_exception_3 = m68k_getpc() + 6;
35859 		Exception(3, 0, M68000_EXC_SRC_CPU);
35860 		goto endlabel2059;
35861 	}
35862 {{	int16_t src = m68k_read_memory_16(srca);
35863 {	uint32_t dsta = m68k_areg(regs, dstreg);
35864 	if ((dsta & 1) != 0) {
35865 		last_fault_for_exception_3 = dsta;
35866 		last_op_for_exception_3 = opcode;
35867 		last_addr_for_exception_3 = m68k_getpc() + 6;
35868 		Exception(3, 0, M68000_EXC_SRC_CPU);
35869 		goto endlabel2059;
35870 	}
35871 {	CLEAR_CZNV;
35872 	SET_ZFLG (((int16_t)(src)) == 0);
35873 	SET_NFLG (((int16_t)(src)) < 0);
35874 m68k_incpc(6);
35875 fill_prefetch_0 ();
35876 	m68k_write_memory_16(dsta,src);
35877 }}}}}}endlabel2059: ;
35878 return 20;
35879 }
CPUFUNC(op_30ba_5)35880 unsigned long CPUFUNC(op_30ba_5)(uint32_t opcode) /* MOVE */
35881 {
35882 	uint32_t dstreg = (opcode >> 9) & 7;
35883 	OpcodeFamily = 30; CurrentInstrCycles = 16;
35884 {{	uint32_t srca = m68k_getpc () + 2;
35885 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
35886 	if ((srca & 1) != 0) {
35887 		last_fault_for_exception_3 = srca;
35888 		last_op_for_exception_3 = opcode;
35889 		last_addr_for_exception_3 = m68k_getpc() + 4;
35890 		Exception(3, 0, M68000_EXC_SRC_CPU);
35891 		goto endlabel2060;
35892 	}
35893 {{	int16_t src = m68k_read_memory_16(srca);
35894 {	uint32_t dsta = m68k_areg(regs, dstreg);
35895 	if ((dsta & 1) != 0) {
35896 		last_fault_for_exception_3 = dsta;
35897 		last_op_for_exception_3 = opcode;
35898 		last_addr_for_exception_3 = m68k_getpc() + 4;
35899 		Exception(3, 0, M68000_EXC_SRC_CPU);
35900 		goto endlabel2060;
35901 	}
35902 {	CLEAR_CZNV;
35903 	SET_ZFLG (((int16_t)(src)) == 0);
35904 	SET_NFLG (((int16_t)(src)) < 0);
35905 m68k_incpc(4);
35906 fill_prefetch_0 ();
35907 	m68k_write_memory_16(dsta,src);
35908 }}}}}}endlabel2060: ;
35909 return 16;
35910 }
CPUFUNC(op_30bb_5)35911 unsigned long CPUFUNC(op_30bb_5)(uint32_t opcode) /* MOVE */
35912 {
35913 	uint32_t dstreg = (opcode >> 9) & 7;
35914 	OpcodeFamily = 30; CurrentInstrCycles = 18;
35915 {{	uint32_t tmppc = m68k_getpc() + 2;
35916 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
35917 	BusCyclePenalty += 2;
35918 	if ((srca & 1) != 0) {
35919 		last_fault_for_exception_3 = srca;
35920 		last_op_for_exception_3 = opcode;
35921 		last_addr_for_exception_3 = m68k_getpc() + 4;
35922 		Exception(3, 0, M68000_EXC_SRC_CPU);
35923 		goto endlabel2061;
35924 	}
35925 {{	int16_t src = m68k_read_memory_16(srca);
35926 {	uint32_t dsta = m68k_areg(regs, dstreg);
35927 	if ((dsta & 1) != 0) {
35928 		last_fault_for_exception_3 = dsta;
35929 		last_op_for_exception_3 = opcode;
35930 		last_addr_for_exception_3 = m68k_getpc() + 4;
35931 		Exception(3, 0, M68000_EXC_SRC_CPU);
35932 		goto endlabel2061;
35933 	}
35934 {	CLEAR_CZNV;
35935 	SET_ZFLG (((int16_t)(src)) == 0);
35936 	SET_NFLG (((int16_t)(src)) < 0);
35937 m68k_incpc(4);
35938 fill_prefetch_0 ();
35939 	m68k_write_memory_16(dsta,src);
35940 }}}}}}endlabel2061: ;
35941 return 18;
35942 }
CPUFUNC(op_30bc_5)35943 unsigned long CPUFUNC(op_30bc_5)(uint32_t opcode) /* MOVE */
35944 {
35945 	uint32_t dstreg = (opcode >> 9) & 7;
35946 	OpcodeFamily = 30; CurrentInstrCycles = 12;
35947 {{	int16_t src = get_iword_prefetch(2);
35948 {	uint32_t dsta = m68k_areg(regs, dstreg);
35949 	if ((dsta & 1) != 0) {
35950 		last_fault_for_exception_3 = dsta;
35951 		last_op_for_exception_3 = opcode;
35952 		last_addr_for_exception_3 = m68k_getpc() + 4;
35953 		Exception(3, 0, M68000_EXC_SRC_CPU);
35954 		goto endlabel2062;
35955 	}
35956 {	CLEAR_CZNV;
35957 	SET_ZFLG (((int16_t)(src)) == 0);
35958 	SET_NFLG (((int16_t)(src)) < 0);
35959 m68k_incpc(4);
35960 fill_prefetch_0 ();
35961 	m68k_write_memory_16(dsta,src);
35962 }}}}endlabel2062: ;
35963 return 12;
35964 }
CPUFUNC(op_30c0_5)35965 unsigned long CPUFUNC(op_30c0_5)(uint32_t opcode) /* MOVE */
35966 {
35967 	uint32_t srcreg = (opcode & 7);
35968 	uint32_t dstreg = (opcode >> 9) & 7;
35969 	OpcodeFamily = 30; CurrentInstrCycles = 8;
35970 {{	int16_t src = m68k_dreg(regs, srcreg);
35971 {	uint32_t dsta = m68k_areg(regs, dstreg);
35972 	if ((dsta & 1) != 0) {
35973 		last_fault_for_exception_3 = dsta;
35974 		last_op_for_exception_3 = opcode;
35975 		last_addr_for_exception_3 = m68k_getpc() + 2;
35976 		Exception(3, 0, M68000_EXC_SRC_CPU);
35977 		goto endlabel2063;
35978 	}
35979 {	m68k_areg(regs, dstreg) += 2;
35980 	CLEAR_CZNV;
35981 	SET_ZFLG (((int16_t)(src)) == 0);
35982 	SET_NFLG (((int16_t)(src)) < 0);
35983 m68k_incpc(2);
35984 fill_prefetch_2 ();
35985 	m68k_write_memory_16(dsta,src);
35986 }}}}endlabel2063: ;
35987 return 8;
35988 }
CPUFUNC(op_30c8_5)35989 unsigned long CPUFUNC(op_30c8_5)(uint32_t opcode) /* MOVE */
35990 {
35991 	uint32_t srcreg = (opcode & 7);
35992 	uint32_t dstreg = (opcode >> 9) & 7;
35993 	OpcodeFamily = 30; CurrentInstrCycles = 8;
35994 {{	int16_t src = m68k_areg(regs, srcreg);
35995 {	uint32_t dsta = m68k_areg(regs, dstreg);
35996 	if ((dsta & 1) != 0) {
35997 		last_fault_for_exception_3 = dsta;
35998 		last_op_for_exception_3 = opcode;
35999 		last_addr_for_exception_3 = m68k_getpc() + 2;
36000 		Exception(3, 0, M68000_EXC_SRC_CPU);
36001 		goto endlabel2064;
36002 	}
36003 {	m68k_areg(regs, dstreg) += 2;
36004 	CLEAR_CZNV;
36005 	SET_ZFLG (((int16_t)(src)) == 0);
36006 	SET_NFLG (((int16_t)(src)) < 0);
36007 m68k_incpc(2);
36008 fill_prefetch_2 ();
36009 	m68k_write_memory_16(dsta,src);
36010 }}}}endlabel2064: ;
36011 return 8;
36012 }
CPUFUNC(op_30d0_5)36013 unsigned long CPUFUNC(op_30d0_5)(uint32_t opcode) /* MOVE */
36014 {
36015 	uint32_t srcreg = (opcode & 7);
36016 	uint32_t dstreg = (opcode >> 9) & 7;
36017 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36018 {{	uint32_t srca = m68k_areg(regs, srcreg);
36019 	if ((srca & 1) != 0) {
36020 		last_fault_for_exception_3 = srca;
36021 		last_op_for_exception_3 = opcode;
36022 		last_addr_for_exception_3 = m68k_getpc() + 2;
36023 		Exception(3, 0, M68000_EXC_SRC_CPU);
36024 		goto endlabel2065;
36025 	}
36026 {{	int16_t src = m68k_read_memory_16(srca);
36027 {	uint32_t dsta = m68k_areg(regs, dstreg);
36028 	if ((dsta & 1) != 0) {
36029 		last_fault_for_exception_3 = dsta;
36030 		last_op_for_exception_3 = opcode;
36031 		last_addr_for_exception_3 = m68k_getpc() + 2;
36032 		Exception(3, 0, M68000_EXC_SRC_CPU);
36033 		goto endlabel2065;
36034 	}
36035 {	m68k_areg(regs, dstreg) += 2;
36036 	CLEAR_CZNV;
36037 	SET_ZFLG (((int16_t)(src)) == 0);
36038 	SET_NFLG (((int16_t)(src)) < 0);
36039 m68k_incpc(2);
36040 fill_prefetch_2 ();
36041 	m68k_write_memory_16(dsta,src);
36042 }}}}}}endlabel2065: ;
36043 return 12;
36044 }
CPUFUNC(op_30d8_5)36045 unsigned long CPUFUNC(op_30d8_5)(uint32_t opcode) /* MOVE */
36046 {
36047 	uint32_t srcreg = (opcode & 7);
36048 	uint32_t dstreg = (opcode >> 9) & 7;
36049 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36050 {{	uint32_t srca = m68k_areg(regs, srcreg);
36051 	if ((srca & 1) != 0) {
36052 		last_fault_for_exception_3 = srca;
36053 		last_op_for_exception_3 = opcode;
36054 		last_addr_for_exception_3 = m68k_getpc() + 2;
36055 		Exception(3, 0, M68000_EXC_SRC_CPU);
36056 		goto endlabel2066;
36057 	}
36058 {{	int16_t src = m68k_read_memory_16(srca);
36059 	m68k_areg(regs, srcreg) += 2;
36060 {	uint32_t dsta = m68k_areg(regs, dstreg);
36061 	if ((dsta & 1) != 0) {
36062 		last_fault_for_exception_3 = dsta;
36063 		last_op_for_exception_3 = opcode;
36064 		last_addr_for_exception_3 = m68k_getpc() + 2;
36065 		Exception(3, 0, M68000_EXC_SRC_CPU);
36066 		goto endlabel2066;
36067 	}
36068 {	m68k_areg(regs, dstreg) += 2;
36069 	CLEAR_CZNV;
36070 	SET_ZFLG (((int16_t)(src)) == 0);
36071 	SET_NFLG (((int16_t)(src)) < 0);
36072 m68k_incpc(2);
36073 fill_prefetch_2 ();
36074 	m68k_write_memory_16(dsta,src);
36075 }}}}}}endlabel2066: ;
36076 return 12;
36077 }
CPUFUNC(op_30e0_5)36078 unsigned long CPUFUNC(op_30e0_5)(uint32_t opcode) /* MOVE */
36079 {
36080 	uint32_t srcreg = (opcode & 7);
36081 	uint32_t dstreg = (opcode >> 9) & 7;
36082 	OpcodeFamily = 30; CurrentInstrCycles = 14;
36083 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
36084 	if ((srca & 1) != 0) {
36085 		last_fault_for_exception_3 = srca;
36086 		last_op_for_exception_3 = opcode;
36087 		last_addr_for_exception_3 = m68k_getpc() + 2;
36088 		Exception(3, 0, M68000_EXC_SRC_CPU);
36089 		goto endlabel2067;
36090 	}
36091 {{	int16_t src = m68k_read_memory_16(srca);
36092 	m68k_areg (regs, srcreg) = srca;
36093 {	uint32_t dsta = m68k_areg(regs, dstreg);
36094 	if ((dsta & 1) != 0) {
36095 		last_fault_for_exception_3 = dsta;
36096 		last_op_for_exception_3 = opcode;
36097 		last_addr_for_exception_3 = m68k_getpc() + 2;
36098 		Exception(3, 0, M68000_EXC_SRC_CPU);
36099 		goto endlabel2067;
36100 	}
36101 {	m68k_areg(regs, dstreg) += 2;
36102 	CLEAR_CZNV;
36103 	SET_ZFLG (((int16_t)(src)) == 0);
36104 	SET_NFLG (((int16_t)(src)) < 0);
36105 m68k_incpc(2);
36106 fill_prefetch_2 ();
36107 	m68k_write_memory_16(dsta,src);
36108 }}}}}}endlabel2067: ;
36109 return 14;
36110 }
CPUFUNC(op_30e8_5)36111 unsigned long CPUFUNC(op_30e8_5)(uint32_t opcode) /* MOVE */
36112 {
36113 	uint32_t srcreg = (opcode & 7);
36114 	uint32_t dstreg = (opcode >> 9) & 7;
36115 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36116 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36117 	if ((srca & 1) != 0) {
36118 		last_fault_for_exception_3 = srca;
36119 		last_op_for_exception_3 = opcode;
36120 		last_addr_for_exception_3 = m68k_getpc() + 4;
36121 		Exception(3, 0, M68000_EXC_SRC_CPU);
36122 		goto endlabel2068;
36123 	}
36124 {{	int16_t src = m68k_read_memory_16(srca);
36125 {	uint32_t dsta = m68k_areg(regs, dstreg);
36126 	if ((dsta & 1) != 0) {
36127 		last_fault_for_exception_3 = dsta;
36128 		last_op_for_exception_3 = opcode;
36129 		last_addr_for_exception_3 = m68k_getpc() + 4;
36130 		Exception(3, 0, M68000_EXC_SRC_CPU);
36131 		goto endlabel2068;
36132 	}
36133 {	m68k_areg(regs, dstreg) += 2;
36134 	CLEAR_CZNV;
36135 	SET_ZFLG (((int16_t)(src)) == 0);
36136 	SET_NFLG (((int16_t)(src)) < 0);
36137 m68k_incpc(4);
36138 fill_prefetch_0 ();
36139 	m68k_write_memory_16(dsta,src);
36140 }}}}}}endlabel2068: ;
36141 return 16;
36142 }
CPUFUNC(op_30f0_5)36143 unsigned long CPUFUNC(op_30f0_5)(uint32_t opcode) /* MOVE */
36144 {
36145 	uint32_t srcreg = (opcode & 7);
36146 	uint32_t dstreg = (opcode >> 9) & 7;
36147 	OpcodeFamily = 30; CurrentInstrCycles = 18;
36148 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
36149 	BusCyclePenalty += 2;
36150 	if ((srca & 1) != 0) {
36151 		last_fault_for_exception_3 = srca;
36152 		last_op_for_exception_3 = opcode;
36153 		last_addr_for_exception_3 = m68k_getpc() + 4;
36154 		Exception(3, 0, M68000_EXC_SRC_CPU);
36155 		goto endlabel2069;
36156 	}
36157 {{	int16_t src = m68k_read_memory_16(srca);
36158 {	uint32_t dsta = m68k_areg(regs, dstreg);
36159 	if ((dsta & 1) != 0) {
36160 		last_fault_for_exception_3 = dsta;
36161 		last_op_for_exception_3 = opcode;
36162 		last_addr_for_exception_3 = m68k_getpc() + 4;
36163 		Exception(3, 0, M68000_EXC_SRC_CPU);
36164 		goto endlabel2069;
36165 	}
36166 {	m68k_areg(regs, dstreg) += 2;
36167 	CLEAR_CZNV;
36168 	SET_ZFLG (((int16_t)(src)) == 0);
36169 	SET_NFLG (((int16_t)(src)) < 0);
36170 m68k_incpc(4);
36171 fill_prefetch_0 ();
36172 	m68k_write_memory_16(dsta,src);
36173 }}}}}}endlabel2069: ;
36174 return 18;
36175 }
CPUFUNC(op_30f8_5)36176 unsigned long CPUFUNC(op_30f8_5)(uint32_t opcode) /* MOVE */
36177 {
36178 	uint32_t dstreg = (opcode >> 9) & 7;
36179 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36180 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
36181 	if ((srca & 1) != 0) {
36182 		last_fault_for_exception_3 = srca;
36183 		last_op_for_exception_3 = opcode;
36184 		last_addr_for_exception_3 = m68k_getpc() + 4;
36185 		Exception(3, 0, M68000_EXC_SRC_CPU);
36186 		goto endlabel2070;
36187 	}
36188 {{	int16_t src = m68k_read_memory_16(srca);
36189 {	uint32_t dsta = m68k_areg(regs, dstreg);
36190 	if ((dsta & 1) != 0) {
36191 		last_fault_for_exception_3 = dsta;
36192 		last_op_for_exception_3 = opcode;
36193 		last_addr_for_exception_3 = m68k_getpc() + 4;
36194 		Exception(3, 0, M68000_EXC_SRC_CPU);
36195 		goto endlabel2070;
36196 	}
36197 {	m68k_areg(regs, dstreg) += 2;
36198 	CLEAR_CZNV;
36199 	SET_ZFLG (((int16_t)(src)) == 0);
36200 	SET_NFLG (((int16_t)(src)) < 0);
36201 m68k_incpc(4);
36202 fill_prefetch_0 ();
36203 	m68k_write_memory_16(dsta,src);
36204 }}}}}}endlabel2070: ;
36205 return 16;
36206 }
CPUFUNC(op_30f9_5)36207 unsigned long CPUFUNC(op_30f9_5)(uint32_t opcode) /* MOVE */
36208 {
36209 	uint32_t dstreg = (opcode >> 9) & 7;
36210 	OpcodeFamily = 30; CurrentInstrCycles = 20;
36211 {{	uint32_t srca = get_ilong_prefetch(2);
36212 	if ((srca & 1) != 0) {
36213 		last_fault_for_exception_3 = srca;
36214 		last_op_for_exception_3 = opcode;
36215 		last_addr_for_exception_3 = m68k_getpc() + 6;
36216 		Exception(3, 0, M68000_EXC_SRC_CPU);
36217 		goto endlabel2071;
36218 	}
36219 {{	int16_t src = m68k_read_memory_16(srca);
36220 {	uint32_t dsta = m68k_areg(regs, dstreg);
36221 	if ((dsta & 1) != 0) {
36222 		last_fault_for_exception_3 = dsta;
36223 		last_op_for_exception_3 = opcode;
36224 		last_addr_for_exception_3 = m68k_getpc() + 6;
36225 		Exception(3, 0, M68000_EXC_SRC_CPU);
36226 		goto endlabel2071;
36227 	}
36228 {	m68k_areg(regs, dstreg) += 2;
36229 	CLEAR_CZNV;
36230 	SET_ZFLG (((int16_t)(src)) == 0);
36231 	SET_NFLG (((int16_t)(src)) < 0);
36232 m68k_incpc(6);
36233 fill_prefetch_0 ();
36234 	m68k_write_memory_16(dsta,src);
36235 }}}}}}endlabel2071: ;
36236 return 20;
36237 }
CPUFUNC(op_30fa_5)36238 unsigned long CPUFUNC(op_30fa_5)(uint32_t opcode) /* MOVE */
36239 {
36240 	uint32_t dstreg = (opcode >> 9) & 7;
36241 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36242 {{	uint32_t srca = m68k_getpc () + 2;
36243 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
36244 	if ((srca & 1) != 0) {
36245 		last_fault_for_exception_3 = srca;
36246 		last_op_for_exception_3 = opcode;
36247 		last_addr_for_exception_3 = m68k_getpc() + 4;
36248 		Exception(3, 0, M68000_EXC_SRC_CPU);
36249 		goto endlabel2072;
36250 	}
36251 {{	int16_t src = m68k_read_memory_16(srca);
36252 {	uint32_t dsta = m68k_areg(regs, dstreg);
36253 	if ((dsta & 1) != 0) {
36254 		last_fault_for_exception_3 = dsta;
36255 		last_op_for_exception_3 = opcode;
36256 		last_addr_for_exception_3 = m68k_getpc() + 4;
36257 		Exception(3, 0, M68000_EXC_SRC_CPU);
36258 		goto endlabel2072;
36259 	}
36260 {	m68k_areg(regs, dstreg) += 2;
36261 	CLEAR_CZNV;
36262 	SET_ZFLG (((int16_t)(src)) == 0);
36263 	SET_NFLG (((int16_t)(src)) < 0);
36264 m68k_incpc(4);
36265 fill_prefetch_0 ();
36266 	m68k_write_memory_16(dsta,src);
36267 }}}}}}endlabel2072: ;
36268 return 16;
36269 }
CPUFUNC(op_30fb_5)36270 unsigned long CPUFUNC(op_30fb_5)(uint32_t opcode) /* MOVE */
36271 {
36272 	uint32_t dstreg = (opcode >> 9) & 7;
36273 	OpcodeFamily = 30; CurrentInstrCycles = 18;
36274 {{	uint32_t tmppc = m68k_getpc() + 2;
36275 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
36276 	BusCyclePenalty += 2;
36277 	if ((srca & 1) != 0) {
36278 		last_fault_for_exception_3 = srca;
36279 		last_op_for_exception_3 = opcode;
36280 		last_addr_for_exception_3 = m68k_getpc() + 4;
36281 		Exception(3, 0, M68000_EXC_SRC_CPU);
36282 		goto endlabel2073;
36283 	}
36284 {{	int16_t src = m68k_read_memory_16(srca);
36285 {	uint32_t dsta = m68k_areg(regs, dstreg);
36286 	if ((dsta & 1) != 0) {
36287 		last_fault_for_exception_3 = dsta;
36288 		last_op_for_exception_3 = opcode;
36289 		last_addr_for_exception_3 = m68k_getpc() + 4;
36290 		Exception(3, 0, M68000_EXC_SRC_CPU);
36291 		goto endlabel2073;
36292 	}
36293 {	m68k_areg(regs, dstreg) += 2;
36294 	CLEAR_CZNV;
36295 	SET_ZFLG (((int16_t)(src)) == 0);
36296 	SET_NFLG (((int16_t)(src)) < 0);
36297 m68k_incpc(4);
36298 fill_prefetch_0 ();
36299 	m68k_write_memory_16(dsta,src);
36300 }}}}}}endlabel2073: ;
36301 return 18;
36302 }
CPUFUNC(op_30fc_5)36303 unsigned long CPUFUNC(op_30fc_5)(uint32_t opcode) /* MOVE */
36304 {
36305 	uint32_t dstreg = (opcode >> 9) & 7;
36306 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36307 {{	int16_t src = get_iword_prefetch(2);
36308 {	uint32_t dsta = m68k_areg(regs, dstreg);
36309 	if ((dsta & 1) != 0) {
36310 		last_fault_for_exception_3 = dsta;
36311 		last_op_for_exception_3 = opcode;
36312 		last_addr_for_exception_3 = m68k_getpc() + 4;
36313 		Exception(3, 0, M68000_EXC_SRC_CPU);
36314 		goto endlabel2074;
36315 	}
36316 {	m68k_areg(regs, dstreg) += 2;
36317 	CLEAR_CZNV;
36318 	SET_ZFLG (((int16_t)(src)) == 0);
36319 	SET_NFLG (((int16_t)(src)) < 0);
36320 m68k_incpc(4);
36321 fill_prefetch_0 ();
36322 	m68k_write_memory_16(dsta,src);
36323 }}}}endlabel2074: ;
36324 return 12;
36325 }
CPUFUNC(op_3100_5)36326 unsigned long CPUFUNC(op_3100_5)(uint32_t opcode) /* MOVE */
36327 {
36328 	uint32_t srcreg = (opcode & 7);
36329 	uint32_t dstreg = (opcode >> 9) & 7;
36330 	OpcodeFamily = 30; CurrentInstrCycles = 8;
36331 {{	int16_t src = m68k_dreg(regs, srcreg);
36332 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36333 	if ((dsta & 1) != 0) {
36334 		last_fault_for_exception_3 = dsta;
36335 		last_op_for_exception_3 = opcode;
36336 		last_addr_for_exception_3 = m68k_getpc() + 2;
36337 		Exception(3, 0, M68000_EXC_SRC_CPU);
36338 		goto endlabel2075;
36339 	}
36340 {	m68k_areg (regs, dstreg) = dsta;
36341 	CLEAR_CZNV;
36342 	SET_ZFLG (((int16_t)(src)) == 0);
36343 	SET_NFLG (((int16_t)(src)) < 0);
36344 m68k_incpc(2);
36345 fill_prefetch_2 ();
36346 	m68k_write_memory_16(dsta,src);
36347 }}}}endlabel2075: ;
36348 return 8;
36349 }
CPUFUNC(op_3108_5)36350 unsigned long CPUFUNC(op_3108_5)(uint32_t opcode) /* MOVE */
36351 {
36352 	uint32_t srcreg = (opcode & 7);
36353 	uint32_t dstreg = (opcode >> 9) & 7;
36354 	OpcodeFamily = 30; CurrentInstrCycles = 8;
36355 {{	int16_t src = m68k_areg(regs, srcreg);
36356 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36357 	if ((dsta & 1) != 0) {
36358 		last_fault_for_exception_3 = dsta;
36359 		last_op_for_exception_3 = opcode;
36360 		last_addr_for_exception_3 = m68k_getpc() + 2;
36361 		Exception(3, 0, M68000_EXC_SRC_CPU);
36362 		goto endlabel2076;
36363 	}
36364 {	m68k_areg (regs, dstreg) = dsta;
36365 	CLEAR_CZNV;
36366 	SET_ZFLG (((int16_t)(src)) == 0);
36367 	SET_NFLG (((int16_t)(src)) < 0);
36368 m68k_incpc(2);
36369 fill_prefetch_2 ();
36370 	m68k_write_memory_16(dsta,src);
36371 }}}}endlabel2076: ;
36372 return 8;
36373 }
CPUFUNC(op_3110_5)36374 unsigned long CPUFUNC(op_3110_5)(uint32_t opcode) /* MOVE */
36375 {
36376 	uint32_t srcreg = (opcode & 7);
36377 	uint32_t dstreg = (opcode >> 9) & 7;
36378 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36379 {{	uint32_t srca = m68k_areg(regs, srcreg);
36380 	if ((srca & 1) != 0) {
36381 		last_fault_for_exception_3 = srca;
36382 		last_op_for_exception_3 = opcode;
36383 		last_addr_for_exception_3 = m68k_getpc() + 2;
36384 		Exception(3, 0, M68000_EXC_SRC_CPU);
36385 		goto endlabel2077;
36386 	}
36387 {{	int16_t src = m68k_read_memory_16(srca);
36388 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36389 	if ((dsta & 1) != 0) {
36390 		last_fault_for_exception_3 = dsta;
36391 		last_op_for_exception_3 = opcode;
36392 		last_addr_for_exception_3 = m68k_getpc() + 2;
36393 		Exception(3, 0, M68000_EXC_SRC_CPU);
36394 		goto endlabel2077;
36395 	}
36396 {	m68k_areg (regs, dstreg) = dsta;
36397 	CLEAR_CZNV;
36398 	SET_ZFLG (((int16_t)(src)) == 0);
36399 	SET_NFLG (((int16_t)(src)) < 0);
36400 m68k_incpc(2);
36401 fill_prefetch_2 ();
36402 	m68k_write_memory_16(dsta,src);
36403 }}}}}}endlabel2077: ;
36404 return 12;
36405 }
CPUFUNC(op_3118_5)36406 unsigned long CPUFUNC(op_3118_5)(uint32_t opcode) /* MOVE */
36407 {
36408 	uint32_t srcreg = (opcode & 7);
36409 	uint32_t dstreg = (opcode >> 9) & 7;
36410 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36411 {{	uint32_t srca = m68k_areg(regs, srcreg);
36412 	if ((srca & 1) != 0) {
36413 		last_fault_for_exception_3 = srca;
36414 		last_op_for_exception_3 = opcode;
36415 		last_addr_for_exception_3 = m68k_getpc() + 2;
36416 		Exception(3, 0, M68000_EXC_SRC_CPU);
36417 		goto endlabel2078;
36418 	}
36419 {{	int16_t src = m68k_read_memory_16(srca);
36420 	m68k_areg(regs, srcreg) += 2;
36421 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36422 	if ((dsta & 1) != 0) {
36423 		last_fault_for_exception_3 = dsta;
36424 		last_op_for_exception_3 = opcode;
36425 		last_addr_for_exception_3 = m68k_getpc() + 2;
36426 		Exception(3, 0, M68000_EXC_SRC_CPU);
36427 		goto endlabel2078;
36428 	}
36429 {	m68k_areg (regs, dstreg) = dsta;
36430 	CLEAR_CZNV;
36431 	SET_ZFLG (((int16_t)(src)) == 0);
36432 	SET_NFLG (((int16_t)(src)) < 0);
36433 m68k_incpc(2);
36434 fill_prefetch_2 ();
36435 	m68k_write_memory_16(dsta,src);
36436 }}}}}}endlabel2078: ;
36437 return 12;
36438 }
CPUFUNC(op_3120_5)36439 unsigned long CPUFUNC(op_3120_5)(uint32_t opcode) /* MOVE */
36440 {
36441 	uint32_t srcreg = (opcode & 7);
36442 	uint32_t dstreg = (opcode >> 9) & 7;
36443 	OpcodeFamily = 30; CurrentInstrCycles = 14;
36444 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
36445 	if ((srca & 1) != 0) {
36446 		last_fault_for_exception_3 = srca;
36447 		last_op_for_exception_3 = opcode;
36448 		last_addr_for_exception_3 = m68k_getpc() + 2;
36449 		Exception(3, 0, M68000_EXC_SRC_CPU);
36450 		goto endlabel2079;
36451 	}
36452 {{	int16_t src = m68k_read_memory_16(srca);
36453 	m68k_areg (regs, srcreg) = srca;
36454 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36455 	if ((dsta & 1) != 0) {
36456 		last_fault_for_exception_3 = dsta;
36457 		last_op_for_exception_3 = opcode;
36458 		last_addr_for_exception_3 = m68k_getpc() + 2;
36459 		Exception(3, 0, M68000_EXC_SRC_CPU);
36460 		goto endlabel2079;
36461 	}
36462 {	m68k_areg (regs, dstreg) = dsta;
36463 	CLEAR_CZNV;
36464 	SET_ZFLG (((int16_t)(src)) == 0);
36465 	SET_NFLG (((int16_t)(src)) < 0);
36466 m68k_incpc(2);
36467 fill_prefetch_2 ();
36468 	m68k_write_memory_16(dsta,src);
36469 }}}}}}endlabel2079: ;
36470 return 14;
36471 }
CPUFUNC(op_3128_5)36472 unsigned long CPUFUNC(op_3128_5)(uint32_t opcode) /* MOVE */
36473 {
36474 	uint32_t srcreg = (opcode & 7);
36475 	uint32_t dstreg = (opcode >> 9) & 7;
36476 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36477 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36478 	if ((srca & 1) != 0) {
36479 		last_fault_for_exception_3 = srca;
36480 		last_op_for_exception_3 = opcode;
36481 		last_addr_for_exception_3 = m68k_getpc() + 4;
36482 		Exception(3, 0, M68000_EXC_SRC_CPU);
36483 		goto endlabel2080;
36484 	}
36485 {{	int16_t src = m68k_read_memory_16(srca);
36486 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36487 	if ((dsta & 1) != 0) {
36488 		last_fault_for_exception_3 = dsta;
36489 		last_op_for_exception_3 = opcode;
36490 		last_addr_for_exception_3 = m68k_getpc() + 4;
36491 		Exception(3, 0, M68000_EXC_SRC_CPU);
36492 		goto endlabel2080;
36493 	}
36494 {	m68k_areg (regs, dstreg) = dsta;
36495 	CLEAR_CZNV;
36496 	SET_ZFLG (((int16_t)(src)) == 0);
36497 	SET_NFLG (((int16_t)(src)) < 0);
36498 m68k_incpc(4);
36499 fill_prefetch_0 ();
36500 	m68k_write_memory_16(dsta,src);
36501 }}}}}}endlabel2080: ;
36502 return 16;
36503 }
CPUFUNC(op_3130_5)36504 unsigned long CPUFUNC(op_3130_5)(uint32_t opcode) /* MOVE */
36505 {
36506 	uint32_t srcreg = (opcode & 7);
36507 	uint32_t dstreg = (opcode >> 9) & 7;
36508 	OpcodeFamily = 30; CurrentInstrCycles = 18;
36509 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
36510 	BusCyclePenalty += 2;
36511 	if ((srca & 1) != 0) {
36512 		last_fault_for_exception_3 = srca;
36513 		last_op_for_exception_3 = opcode;
36514 		last_addr_for_exception_3 = m68k_getpc() + 4;
36515 		Exception(3, 0, M68000_EXC_SRC_CPU);
36516 		goto endlabel2081;
36517 	}
36518 {{	int16_t src = m68k_read_memory_16(srca);
36519 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36520 	if ((dsta & 1) != 0) {
36521 		last_fault_for_exception_3 = dsta;
36522 		last_op_for_exception_3 = opcode;
36523 		last_addr_for_exception_3 = m68k_getpc() + 4;
36524 		Exception(3, 0, M68000_EXC_SRC_CPU);
36525 		goto endlabel2081;
36526 	}
36527 {	m68k_areg (regs, dstreg) = dsta;
36528 	CLEAR_CZNV;
36529 	SET_ZFLG (((int16_t)(src)) == 0);
36530 	SET_NFLG (((int16_t)(src)) < 0);
36531 m68k_incpc(4);
36532 fill_prefetch_0 ();
36533 	m68k_write_memory_16(dsta,src);
36534 }}}}}}endlabel2081: ;
36535 return 18;
36536 }
CPUFUNC(op_3138_5)36537 unsigned long CPUFUNC(op_3138_5)(uint32_t opcode) /* MOVE */
36538 {
36539 	uint32_t dstreg = (opcode >> 9) & 7;
36540 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36541 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
36542 	if ((srca & 1) != 0) {
36543 		last_fault_for_exception_3 = srca;
36544 		last_op_for_exception_3 = opcode;
36545 		last_addr_for_exception_3 = m68k_getpc() + 4;
36546 		Exception(3, 0, M68000_EXC_SRC_CPU);
36547 		goto endlabel2082;
36548 	}
36549 {{	int16_t src = m68k_read_memory_16(srca);
36550 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36551 	if ((dsta & 1) != 0) {
36552 		last_fault_for_exception_3 = dsta;
36553 		last_op_for_exception_3 = opcode;
36554 		last_addr_for_exception_3 = m68k_getpc() + 4;
36555 		Exception(3, 0, M68000_EXC_SRC_CPU);
36556 		goto endlabel2082;
36557 	}
36558 {	m68k_areg (regs, dstreg) = dsta;
36559 	CLEAR_CZNV;
36560 	SET_ZFLG (((int16_t)(src)) == 0);
36561 	SET_NFLG (((int16_t)(src)) < 0);
36562 m68k_incpc(4);
36563 fill_prefetch_0 ();
36564 	m68k_write_memory_16(dsta,src);
36565 }}}}}}endlabel2082: ;
36566 return 16;
36567 }
CPUFUNC(op_3139_5)36568 unsigned long CPUFUNC(op_3139_5)(uint32_t opcode) /* MOVE */
36569 {
36570 	uint32_t dstreg = (opcode >> 9) & 7;
36571 	OpcodeFamily = 30; CurrentInstrCycles = 20;
36572 {{	uint32_t srca = get_ilong_prefetch(2);
36573 	if ((srca & 1) != 0) {
36574 		last_fault_for_exception_3 = srca;
36575 		last_op_for_exception_3 = opcode;
36576 		last_addr_for_exception_3 = m68k_getpc() + 6;
36577 		Exception(3, 0, M68000_EXC_SRC_CPU);
36578 		goto endlabel2083;
36579 	}
36580 {{	int16_t src = m68k_read_memory_16(srca);
36581 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36582 	if ((dsta & 1) != 0) {
36583 		last_fault_for_exception_3 = dsta;
36584 		last_op_for_exception_3 = opcode;
36585 		last_addr_for_exception_3 = m68k_getpc() + 6;
36586 		Exception(3, 0, M68000_EXC_SRC_CPU);
36587 		goto endlabel2083;
36588 	}
36589 {	m68k_areg (regs, dstreg) = dsta;
36590 	CLEAR_CZNV;
36591 	SET_ZFLG (((int16_t)(src)) == 0);
36592 	SET_NFLG (((int16_t)(src)) < 0);
36593 m68k_incpc(6);
36594 fill_prefetch_0 ();
36595 	m68k_write_memory_16(dsta,src);
36596 }}}}}}endlabel2083: ;
36597 return 20;
36598 }
CPUFUNC(op_313a_5)36599 unsigned long CPUFUNC(op_313a_5)(uint32_t opcode) /* MOVE */
36600 {
36601 	uint32_t dstreg = (opcode >> 9) & 7;
36602 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36603 {{	uint32_t srca = m68k_getpc () + 2;
36604 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
36605 	if ((srca & 1) != 0) {
36606 		last_fault_for_exception_3 = srca;
36607 		last_op_for_exception_3 = opcode;
36608 		last_addr_for_exception_3 = m68k_getpc() + 4;
36609 		Exception(3, 0, M68000_EXC_SRC_CPU);
36610 		goto endlabel2084;
36611 	}
36612 {{	int16_t src = m68k_read_memory_16(srca);
36613 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36614 	if ((dsta & 1) != 0) {
36615 		last_fault_for_exception_3 = dsta;
36616 		last_op_for_exception_3 = opcode;
36617 		last_addr_for_exception_3 = m68k_getpc() + 4;
36618 		Exception(3, 0, M68000_EXC_SRC_CPU);
36619 		goto endlabel2084;
36620 	}
36621 {	m68k_areg (regs, dstreg) = dsta;
36622 	CLEAR_CZNV;
36623 	SET_ZFLG (((int16_t)(src)) == 0);
36624 	SET_NFLG (((int16_t)(src)) < 0);
36625 m68k_incpc(4);
36626 fill_prefetch_0 ();
36627 	m68k_write_memory_16(dsta,src);
36628 }}}}}}endlabel2084: ;
36629 return 16;
36630 }
CPUFUNC(op_313b_5)36631 unsigned long CPUFUNC(op_313b_5)(uint32_t opcode) /* MOVE */
36632 {
36633 	uint32_t dstreg = (opcode >> 9) & 7;
36634 	OpcodeFamily = 30; CurrentInstrCycles = 18;
36635 {{	uint32_t tmppc = m68k_getpc() + 2;
36636 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
36637 	BusCyclePenalty += 2;
36638 	if ((srca & 1) != 0) {
36639 		last_fault_for_exception_3 = srca;
36640 		last_op_for_exception_3 = opcode;
36641 		last_addr_for_exception_3 = m68k_getpc() + 4;
36642 		Exception(3, 0, M68000_EXC_SRC_CPU);
36643 		goto endlabel2085;
36644 	}
36645 {{	int16_t src = m68k_read_memory_16(srca);
36646 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36647 	if ((dsta & 1) != 0) {
36648 		last_fault_for_exception_3 = dsta;
36649 		last_op_for_exception_3 = opcode;
36650 		last_addr_for_exception_3 = m68k_getpc() + 4;
36651 		Exception(3, 0, M68000_EXC_SRC_CPU);
36652 		goto endlabel2085;
36653 	}
36654 {	m68k_areg (regs, dstreg) = dsta;
36655 	CLEAR_CZNV;
36656 	SET_ZFLG (((int16_t)(src)) == 0);
36657 	SET_NFLG (((int16_t)(src)) < 0);
36658 m68k_incpc(4);
36659 fill_prefetch_0 ();
36660 	m68k_write_memory_16(dsta,src);
36661 }}}}}}endlabel2085: ;
36662 return 18;
36663 }
CPUFUNC(op_313c_5)36664 unsigned long CPUFUNC(op_313c_5)(uint32_t opcode) /* MOVE */
36665 {
36666 	uint32_t dstreg = (opcode >> 9) & 7;
36667 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36668 {{	int16_t src = get_iword_prefetch(2);
36669 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
36670 	if ((dsta & 1) != 0) {
36671 		last_fault_for_exception_3 = dsta;
36672 		last_op_for_exception_3 = opcode;
36673 		last_addr_for_exception_3 = m68k_getpc() + 4;
36674 		Exception(3, 0, M68000_EXC_SRC_CPU);
36675 		goto endlabel2086;
36676 	}
36677 {	m68k_areg (regs, dstreg) = dsta;
36678 	CLEAR_CZNV;
36679 	SET_ZFLG (((int16_t)(src)) == 0);
36680 	SET_NFLG (((int16_t)(src)) < 0);
36681 m68k_incpc(4);
36682 fill_prefetch_0 ();
36683 	m68k_write_memory_16(dsta,src);
36684 }}}}endlabel2086: ;
36685 return 12;
36686 }
CPUFUNC(op_3140_5)36687 unsigned long CPUFUNC(op_3140_5)(uint32_t opcode) /* MOVE */
36688 {
36689 	uint32_t srcreg = (opcode & 7);
36690 	uint32_t dstreg = (opcode >> 9) & 7;
36691 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36692 {{	int16_t src = m68k_dreg(regs, srcreg);
36693 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36694 	if ((dsta & 1) != 0) {
36695 		last_fault_for_exception_3 = dsta;
36696 		last_op_for_exception_3 = opcode;
36697 		last_addr_for_exception_3 = m68k_getpc() + 4;
36698 		Exception(3, 0, M68000_EXC_SRC_CPU);
36699 		goto endlabel2087;
36700 	}
36701 {	CLEAR_CZNV;
36702 	SET_ZFLG (((int16_t)(src)) == 0);
36703 	SET_NFLG (((int16_t)(src)) < 0);
36704 m68k_incpc(4);
36705 fill_prefetch_0 ();
36706 	m68k_write_memory_16(dsta,src);
36707 }}}}endlabel2087: ;
36708 return 12;
36709 }
CPUFUNC(op_3148_5)36710 unsigned long CPUFUNC(op_3148_5)(uint32_t opcode) /* MOVE */
36711 {
36712 	uint32_t srcreg = (opcode & 7);
36713 	uint32_t dstreg = (opcode >> 9) & 7;
36714 	OpcodeFamily = 30; CurrentInstrCycles = 12;
36715 {{	int16_t src = m68k_areg(regs, srcreg);
36716 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36717 	if ((dsta & 1) != 0) {
36718 		last_fault_for_exception_3 = dsta;
36719 		last_op_for_exception_3 = opcode;
36720 		last_addr_for_exception_3 = m68k_getpc() + 4;
36721 		Exception(3, 0, M68000_EXC_SRC_CPU);
36722 		goto endlabel2088;
36723 	}
36724 {	CLEAR_CZNV;
36725 	SET_ZFLG (((int16_t)(src)) == 0);
36726 	SET_NFLG (((int16_t)(src)) < 0);
36727 m68k_incpc(4);
36728 fill_prefetch_0 ();
36729 	m68k_write_memory_16(dsta,src);
36730 }}}}endlabel2088: ;
36731 return 12;
36732 }
CPUFUNC(op_3150_5)36733 unsigned long CPUFUNC(op_3150_5)(uint32_t opcode) /* MOVE */
36734 {
36735 	uint32_t srcreg = (opcode & 7);
36736 	uint32_t dstreg = (opcode >> 9) & 7;
36737 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36738 {{	uint32_t srca = m68k_areg(regs, srcreg);
36739 	if ((srca & 1) != 0) {
36740 		last_fault_for_exception_3 = srca;
36741 		last_op_for_exception_3 = opcode;
36742 		last_addr_for_exception_3 = m68k_getpc() + 2;
36743 		Exception(3, 0, M68000_EXC_SRC_CPU);
36744 		goto endlabel2089;
36745 	}
36746 {{	int16_t src = m68k_read_memory_16(srca);
36747 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36748 	if ((dsta & 1) != 0) {
36749 		last_fault_for_exception_3 = dsta;
36750 		last_op_for_exception_3 = opcode;
36751 		last_addr_for_exception_3 = m68k_getpc() + 4;
36752 		Exception(3, 0, M68000_EXC_SRC_CPU);
36753 		goto endlabel2089;
36754 	}
36755 {	CLEAR_CZNV;
36756 	SET_ZFLG (((int16_t)(src)) == 0);
36757 	SET_NFLG (((int16_t)(src)) < 0);
36758 m68k_incpc(4);
36759 fill_prefetch_0 ();
36760 	m68k_write_memory_16(dsta,src);
36761 }}}}}}endlabel2089: ;
36762 return 16;
36763 }
CPUFUNC(op_3158_5)36764 unsigned long CPUFUNC(op_3158_5)(uint32_t opcode) /* MOVE */
36765 {
36766 	uint32_t srcreg = (opcode & 7);
36767 	uint32_t dstreg = (opcode >> 9) & 7;
36768 	OpcodeFamily = 30; CurrentInstrCycles = 16;
36769 {{	uint32_t srca = m68k_areg(regs, srcreg);
36770 	if ((srca & 1) != 0) {
36771 		last_fault_for_exception_3 = srca;
36772 		last_op_for_exception_3 = opcode;
36773 		last_addr_for_exception_3 = m68k_getpc() + 2;
36774 		Exception(3, 0, M68000_EXC_SRC_CPU);
36775 		goto endlabel2090;
36776 	}
36777 {{	int16_t src = m68k_read_memory_16(srca);
36778 	m68k_areg(regs, srcreg) += 2;
36779 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36780 	if ((dsta & 1) != 0) {
36781 		last_fault_for_exception_3 = dsta;
36782 		last_op_for_exception_3 = opcode;
36783 		last_addr_for_exception_3 = m68k_getpc() + 4;
36784 		Exception(3, 0, M68000_EXC_SRC_CPU);
36785 		goto endlabel2090;
36786 	}
36787 {	CLEAR_CZNV;
36788 	SET_ZFLG (((int16_t)(src)) == 0);
36789 	SET_NFLG (((int16_t)(src)) < 0);
36790 m68k_incpc(4);
36791 fill_prefetch_0 ();
36792 	m68k_write_memory_16(dsta,src);
36793 }}}}}}endlabel2090: ;
36794 return 16;
36795 }
CPUFUNC(op_3160_5)36796 unsigned long CPUFUNC(op_3160_5)(uint32_t opcode) /* MOVE */
36797 {
36798 	uint32_t srcreg = (opcode & 7);
36799 	uint32_t dstreg = (opcode >> 9) & 7;
36800 	OpcodeFamily = 30; CurrentInstrCycles = 18;
36801 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
36802 	if ((srca & 1) != 0) {
36803 		last_fault_for_exception_3 = srca;
36804 		last_op_for_exception_3 = opcode;
36805 		last_addr_for_exception_3 = m68k_getpc() + 2;
36806 		Exception(3, 0, M68000_EXC_SRC_CPU);
36807 		goto endlabel2091;
36808 	}
36809 {{	int16_t src = m68k_read_memory_16(srca);
36810 	m68k_areg (regs, srcreg) = srca;
36811 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36812 	if ((dsta & 1) != 0) {
36813 		last_fault_for_exception_3 = dsta;
36814 		last_op_for_exception_3 = opcode;
36815 		last_addr_for_exception_3 = m68k_getpc() + 4;
36816 		Exception(3, 0, M68000_EXC_SRC_CPU);
36817 		goto endlabel2091;
36818 	}
36819 {	CLEAR_CZNV;
36820 	SET_ZFLG (((int16_t)(src)) == 0);
36821 	SET_NFLG (((int16_t)(src)) < 0);
36822 m68k_incpc(4);
36823 fill_prefetch_0 ();
36824 	m68k_write_memory_16(dsta,src);
36825 }}}}}}endlabel2091: ;
36826 return 18;
36827 }
CPUFUNC(op_3168_5)36828 unsigned long CPUFUNC(op_3168_5)(uint32_t opcode) /* MOVE */
36829 {
36830 	uint32_t srcreg = (opcode & 7);
36831 	uint32_t dstreg = (opcode >> 9) & 7;
36832 	OpcodeFamily = 30; CurrentInstrCycles = 20;
36833 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
36834 	if ((srca & 1) != 0) {
36835 		last_fault_for_exception_3 = srca;
36836 		last_op_for_exception_3 = opcode;
36837 		last_addr_for_exception_3 = m68k_getpc() + 4;
36838 		Exception(3, 0, M68000_EXC_SRC_CPU);
36839 		goto endlabel2092;
36840 	}
36841 {{	int16_t src = m68k_read_memory_16(srca);
36842 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
36843 	if ((dsta & 1) != 0) {
36844 		last_fault_for_exception_3 = dsta;
36845 		last_op_for_exception_3 = opcode;
36846 		last_addr_for_exception_3 = m68k_getpc() + 6;
36847 		Exception(3, 0, M68000_EXC_SRC_CPU);
36848 		goto endlabel2092;
36849 	}
36850 {	CLEAR_CZNV;
36851 	SET_ZFLG (((int16_t)(src)) == 0);
36852 	SET_NFLG (((int16_t)(src)) < 0);
36853 m68k_incpc(6);
36854 fill_prefetch_0 ();
36855 	m68k_write_memory_16(dsta,src);
36856 }}}}}}endlabel2092: ;
36857 return 20;
36858 }
CPUFUNC(op_3170_5)36859 unsigned long CPUFUNC(op_3170_5)(uint32_t opcode) /* MOVE */
36860 {
36861 	uint32_t srcreg = (opcode & 7);
36862 	uint32_t dstreg = (opcode >> 9) & 7;
36863 	OpcodeFamily = 30; CurrentInstrCycles = 22;
36864 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
36865 	BusCyclePenalty += 2;
36866 	if ((srca & 1) != 0) {
36867 		last_fault_for_exception_3 = srca;
36868 		last_op_for_exception_3 = opcode;
36869 		last_addr_for_exception_3 = m68k_getpc() + 4;
36870 		Exception(3, 0, M68000_EXC_SRC_CPU);
36871 		goto endlabel2093;
36872 	}
36873 {{	int16_t src = m68k_read_memory_16(srca);
36874 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
36875 	if ((dsta & 1) != 0) {
36876 		last_fault_for_exception_3 = dsta;
36877 		last_op_for_exception_3 = opcode;
36878 		last_addr_for_exception_3 = m68k_getpc() + 6;
36879 		Exception(3, 0, M68000_EXC_SRC_CPU);
36880 		goto endlabel2093;
36881 	}
36882 {	CLEAR_CZNV;
36883 	SET_ZFLG (((int16_t)(src)) == 0);
36884 	SET_NFLG (((int16_t)(src)) < 0);
36885 m68k_incpc(6);
36886 fill_prefetch_0 ();
36887 	m68k_write_memory_16(dsta,src);
36888 }}}}}}endlabel2093: ;
36889 return 22;
36890 }
CPUFUNC(op_3178_5)36891 unsigned long CPUFUNC(op_3178_5)(uint32_t opcode) /* MOVE */
36892 {
36893 	uint32_t dstreg = (opcode >> 9) & 7;
36894 	OpcodeFamily = 30; CurrentInstrCycles = 20;
36895 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
36896 	if ((srca & 1) != 0) {
36897 		last_fault_for_exception_3 = srca;
36898 		last_op_for_exception_3 = opcode;
36899 		last_addr_for_exception_3 = m68k_getpc() + 4;
36900 		Exception(3, 0, M68000_EXC_SRC_CPU);
36901 		goto endlabel2094;
36902 	}
36903 {{	int16_t src = m68k_read_memory_16(srca);
36904 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
36905 	if ((dsta & 1) != 0) {
36906 		last_fault_for_exception_3 = dsta;
36907 		last_op_for_exception_3 = opcode;
36908 		last_addr_for_exception_3 = m68k_getpc() + 6;
36909 		Exception(3, 0, M68000_EXC_SRC_CPU);
36910 		goto endlabel2094;
36911 	}
36912 {	CLEAR_CZNV;
36913 	SET_ZFLG (((int16_t)(src)) == 0);
36914 	SET_NFLG (((int16_t)(src)) < 0);
36915 m68k_incpc(6);
36916 fill_prefetch_0 ();
36917 	m68k_write_memory_16(dsta,src);
36918 }}}}}}endlabel2094: ;
36919 return 20;
36920 }
CPUFUNC(op_3179_5)36921 unsigned long CPUFUNC(op_3179_5)(uint32_t opcode) /* MOVE */
36922 {
36923 	uint32_t dstreg = (opcode >> 9) & 7;
36924 	OpcodeFamily = 30; CurrentInstrCycles = 24;
36925 {{	uint32_t srca = get_ilong_prefetch(2);
36926 	if ((srca & 1) != 0) {
36927 		last_fault_for_exception_3 = srca;
36928 		last_op_for_exception_3 = opcode;
36929 		last_addr_for_exception_3 = m68k_getpc() + 6;
36930 		Exception(3, 0, M68000_EXC_SRC_CPU);
36931 		goto endlabel2095;
36932 	}
36933 {{	int16_t src = m68k_read_memory_16(srca);
36934 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(6);
36935 	if ((dsta & 1) != 0) {
36936 		last_fault_for_exception_3 = dsta;
36937 		last_op_for_exception_3 = opcode;
36938 		last_addr_for_exception_3 = m68k_getpc() + 8;
36939 		Exception(3, 0, M68000_EXC_SRC_CPU);
36940 		goto endlabel2095;
36941 	}
36942 {	CLEAR_CZNV;
36943 	SET_ZFLG (((int16_t)(src)) == 0);
36944 	SET_NFLG (((int16_t)(src)) < 0);
36945 m68k_incpc(8);
36946 fill_prefetch_0 ();
36947 	m68k_write_memory_16(dsta,src);
36948 }}}}}}endlabel2095: ;
36949 return 24;
36950 }
CPUFUNC(op_317a_5)36951 unsigned long CPUFUNC(op_317a_5)(uint32_t opcode) /* MOVE */
36952 {
36953 	uint32_t dstreg = (opcode >> 9) & 7;
36954 	OpcodeFamily = 30; CurrentInstrCycles = 20;
36955 {{	uint32_t srca = m68k_getpc () + 2;
36956 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
36957 	if ((srca & 1) != 0) {
36958 		last_fault_for_exception_3 = srca;
36959 		last_op_for_exception_3 = opcode;
36960 		last_addr_for_exception_3 = m68k_getpc() + 4;
36961 		Exception(3, 0, M68000_EXC_SRC_CPU);
36962 		goto endlabel2096;
36963 	}
36964 {{	int16_t src = m68k_read_memory_16(srca);
36965 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
36966 	if ((dsta & 1) != 0) {
36967 		last_fault_for_exception_3 = dsta;
36968 		last_op_for_exception_3 = opcode;
36969 		last_addr_for_exception_3 = m68k_getpc() + 6;
36970 		Exception(3, 0, M68000_EXC_SRC_CPU);
36971 		goto endlabel2096;
36972 	}
36973 {	CLEAR_CZNV;
36974 	SET_ZFLG (((int16_t)(src)) == 0);
36975 	SET_NFLG (((int16_t)(src)) < 0);
36976 m68k_incpc(6);
36977 fill_prefetch_0 ();
36978 	m68k_write_memory_16(dsta,src);
36979 }}}}}}endlabel2096: ;
36980 return 20;
36981 }
CPUFUNC(op_317b_5)36982 unsigned long CPUFUNC(op_317b_5)(uint32_t opcode) /* MOVE */
36983 {
36984 	uint32_t dstreg = (opcode >> 9) & 7;
36985 	OpcodeFamily = 30; CurrentInstrCycles = 22;
36986 {{	uint32_t tmppc = m68k_getpc() + 2;
36987 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
36988 	BusCyclePenalty += 2;
36989 	if ((srca & 1) != 0) {
36990 		last_fault_for_exception_3 = srca;
36991 		last_op_for_exception_3 = opcode;
36992 		last_addr_for_exception_3 = m68k_getpc() + 4;
36993 		Exception(3, 0, M68000_EXC_SRC_CPU);
36994 		goto endlabel2097;
36995 	}
36996 {{	int16_t src = m68k_read_memory_16(srca);
36997 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
36998 	if ((dsta & 1) != 0) {
36999 		last_fault_for_exception_3 = dsta;
37000 		last_op_for_exception_3 = opcode;
37001 		last_addr_for_exception_3 = m68k_getpc() + 6;
37002 		Exception(3, 0, M68000_EXC_SRC_CPU);
37003 		goto endlabel2097;
37004 	}
37005 {	CLEAR_CZNV;
37006 	SET_ZFLG (((int16_t)(src)) == 0);
37007 	SET_NFLG (((int16_t)(src)) < 0);
37008 m68k_incpc(6);
37009 fill_prefetch_0 ();
37010 	m68k_write_memory_16(dsta,src);
37011 }}}}}}endlabel2097: ;
37012 return 22;
37013 }
CPUFUNC(op_317c_5)37014 unsigned long CPUFUNC(op_317c_5)(uint32_t opcode) /* MOVE */
37015 {
37016 	uint32_t dstreg = (opcode >> 9) & 7;
37017 	OpcodeFamily = 30; CurrentInstrCycles = 16;
37018 {{	int16_t src = get_iword_prefetch(2);
37019 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
37020 	if ((dsta & 1) != 0) {
37021 		last_fault_for_exception_3 = dsta;
37022 		last_op_for_exception_3 = opcode;
37023 		last_addr_for_exception_3 = m68k_getpc() + 6;
37024 		Exception(3, 0, M68000_EXC_SRC_CPU);
37025 		goto endlabel2098;
37026 	}
37027 {	CLEAR_CZNV;
37028 	SET_ZFLG (((int16_t)(src)) == 0);
37029 	SET_NFLG (((int16_t)(src)) < 0);
37030 m68k_incpc(6);
37031 fill_prefetch_0 ();
37032 	m68k_write_memory_16(dsta,src);
37033 }}}}endlabel2098: ;
37034 return 16;
37035 }
CPUFUNC(op_3180_5)37036 unsigned long CPUFUNC(op_3180_5)(uint32_t opcode) /* MOVE */
37037 {
37038 	uint32_t srcreg = (opcode & 7);
37039 	uint32_t dstreg = (opcode >> 9) & 7;
37040 	OpcodeFamily = 30; CurrentInstrCycles = 14;
37041 {{	int16_t src = m68k_dreg(regs, srcreg);
37042 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
37043 	BusCyclePenalty += 2;
37044 	if ((dsta & 1) != 0) {
37045 		last_fault_for_exception_3 = dsta;
37046 		last_op_for_exception_3 = opcode;
37047 		last_addr_for_exception_3 = m68k_getpc() + 4;
37048 		Exception(3, 0, M68000_EXC_SRC_CPU);
37049 		goto endlabel2099;
37050 	}
37051 {	CLEAR_CZNV;
37052 	SET_ZFLG (((int16_t)(src)) == 0);
37053 	SET_NFLG (((int16_t)(src)) < 0);
37054 m68k_incpc(4);
37055 fill_prefetch_0 ();
37056 	m68k_write_memory_16(dsta,src);
37057 }}}}endlabel2099: ;
37058 return 14;
37059 }
CPUFUNC(op_3188_5)37060 unsigned long CPUFUNC(op_3188_5)(uint32_t opcode) /* MOVE */
37061 {
37062 	uint32_t srcreg = (opcode & 7);
37063 	uint32_t dstreg = (opcode >> 9) & 7;
37064 	OpcodeFamily = 30; CurrentInstrCycles = 14;
37065 {{	int16_t src = m68k_areg(regs, srcreg);
37066 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
37067 	BusCyclePenalty += 2;
37068 	if ((dsta & 1) != 0) {
37069 		last_fault_for_exception_3 = dsta;
37070 		last_op_for_exception_3 = opcode;
37071 		last_addr_for_exception_3 = m68k_getpc() + 4;
37072 		Exception(3, 0, M68000_EXC_SRC_CPU);
37073 		goto endlabel2100;
37074 	}
37075 {	CLEAR_CZNV;
37076 	SET_ZFLG (((int16_t)(src)) == 0);
37077 	SET_NFLG (((int16_t)(src)) < 0);
37078 m68k_incpc(4);
37079 fill_prefetch_0 ();
37080 	m68k_write_memory_16(dsta,src);
37081 }}}}endlabel2100: ;
37082 return 14;
37083 }
CPUFUNC(op_3190_5)37084 unsigned long CPUFUNC(op_3190_5)(uint32_t opcode) /* MOVE */
37085 {
37086 	uint32_t srcreg = (opcode & 7);
37087 	uint32_t dstreg = (opcode >> 9) & 7;
37088 	OpcodeFamily = 30; CurrentInstrCycles = 18;
37089 {{	uint32_t srca = m68k_areg(regs, srcreg);
37090 	if ((srca & 1) != 0) {
37091 		last_fault_for_exception_3 = srca;
37092 		last_op_for_exception_3 = opcode;
37093 		last_addr_for_exception_3 = m68k_getpc() + 2;
37094 		Exception(3, 0, M68000_EXC_SRC_CPU);
37095 		goto endlabel2101;
37096 	}
37097 {{	int16_t src = m68k_read_memory_16(srca);
37098 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
37099 	BusCyclePenalty += 2;
37100 	if ((dsta & 1) != 0) {
37101 		last_fault_for_exception_3 = dsta;
37102 		last_op_for_exception_3 = opcode;
37103 		last_addr_for_exception_3 = m68k_getpc() + 4;
37104 		Exception(3, 0, M68000_EXC_SRC_CPU);
37105 		goto endlabel2101;
37106 	}
37107 {	CLEAR_CZNV;
37108 	SET_ZFLG (((int16_t)(src)) == 0);
37109 	SET_NFLG (((int16_t)(src)) < 0);
37110 m68k_incpc(4);
37111 fill_prefetch_0 ();
37112 	m68k_write_memory_16(dsta,src);
37113 }}}}}}endlabel2101: ;
37114 return 18;
37115 }
CPUFUNC(op_3198_5)37116 unsigned long CPUFUNC(op_3198_5)(uint32_t opcode) /* MOVE */
37117 {
37118 	uint32_t srcreg = (opcode & 7);
37119 	uint32_t dstreg = (opcode >> 9) & 7;
37120 	OpcodeFamily = 30; CurrentInstrCycles = 18;
37121 {{	uint32_t srca = m68k_areg(regs, srcreg);
37122 	if ((srca & 1) != 0) {
37123 		last_fault_for_exception_3 = srca;
37124 		last_op_for_exception_3 = opcode;
37125 		last_addr_for_exception_3 = m68k_getpc() + 2;
37126 		Exception(3, 0, M68000_EXC_SRC_CPU);
37127 		goto endlabel2102;
37128 	}
37129 {{	int16_t src = m68k_read_memory_16(srca);
37130 	m68k_areg(regs, srcreg) += 2;
37131 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
37132 	BusCyclePenalty += 2;
37133 	if ((dsta & 1) != 0) {
37134 		last_fault_for_exception_3 = dsta;
37135 		last_op_for_exception_3 = opcode;
37136 		last_addr_for_exception_3 = m68k_getpc() + 4;
37137 		Exception(3, 0, M68000_EXC_SRC_CPU);
37138 		goto endlabel2102;
37139 	}
37140 {	CLEAR_CZNV;
37141 	SET_ZFLG (((int16_t)(src)) == 0);
37142 	SET_NFLG (((int16_t)(src)) < 0);
37143 m68k_incpc(4);
37144 fill_prefetch_0 ();
37145 	m68k_write_memory_16(dsta,src);
37146 }}}}}}endlabel2102: ;
37147 return 18;
37148 }
CPUFUNC(op_31a0_5)37149 unsigned long CPUFUNC(op_31a0_5)(uint32_t opcode) /* MOVE */
37150 {
37151 	uint32_t srcreg = (opcode & 7);
37152 	uint32_t dstreg = (opcode >> 9) & 7;
37153 	OpcodeFamily = 30; CurrentInstrCycles = 20;
37154 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
37155 	if ((srca & 1) != 0) {
37156 		last_fault_for_exception_3 = srca;
37157 		last_op_for_exception_3 = opcode;
37158 		last_addr_for_exception_3 = m68k_getpc() + 2;
37159 		Exception(3, 0, M68000_EXC_SRC_CPU);
37160 		goto endlabel2103;
37161 	}
37162 {{	int16_t src = m68k_read_memory_16(srca);
37163 	m68k_areg (regs, srcreg) = srca;
37164 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
37165 	BusCyclePenalty += 2;
37166 	if ((dsta & 1) != 0) {
37167 		last_fault_for_exception_3 = dsta;
37168 		last_op_for_exception_3 = opcode;
37169 		last_addr_for_exception_3 = m68k_getpc() + 4;
37170 		Exception(3, 0, M68000_EXC_SRC_CPU);
37171 		goto endlabel2103;
37172 	}
37173 {	CLEAR_CZNV;
37174 	SET_ZFLG (((int16_t)(src)) == 0);
37175 	SET_NFLG (((int16_t)(src)) < 0);
37176 m68k_incpc(4);
37177 fill_prefetch_0 ();
37178 	m68k_write_memory_16(dsta,src);
37179 }}}}}}endlabel2103: ;
37180 return 20;
37181 }
CPUFUNC(op_31a8_5)37182 unsigned long CPUFUNC(op_31a8_5)(uint32_t opcode) /* MOVE */
37183 {
37184 	uint32_t srcreg = (opcode & 7);
37185 	uint32_t dstreg = (opcode >> 9) & 7;
37186 	OpcodeFamily = 30; CurrentInstrCycles = 22;
37187 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
37188 	if ((srca & 1) != 0) {
37189 		last_fault_for_exception_3 = srca;
37190 		last_op_for_exception_3 = opcode;
37191 		last_addr_for_exception_3 = m68k_getpc() + 4;
37192 		Exception(3, 0, M68000_EXC_SRC_CPU);
37193 		goto endlabel2104;
37194 	}
37195 {{	int16_t src = m68k_read_memory_16(srca);
37196 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
37197 	BusCyclePenalty += 2;
37198 	if ((dsta & 1) != 0) {
37199 		last_fault_for_exception_3 = dsta;
37200 		last_op_for_exception_3 = opcode;
37201 		last_addr_for_exception_3 = m68k_getpc() + 6;
37202 		Exception(3, 0, M68000_EXC_SRC_CPU);
37203 		goto endlabel2104;
37204 	}
37205 {	CLEAR_CZNV;
37206 	SET_ZFLG (((int16_t)(src)) == 0);
37207 	SET_NFLG (((int16_t)(src)) < 0);
37208 m68k_incpc(6);
37209 fill_prefetch_0 ();
37210 	m68k_write_memory_16(dsta,src);
37211 }}}}}}endlabel2104: ;
37212 return 22;
37213 }
CPUFUNC(op_31b0_5)37214 unsigned long CPUFUNC(op_31b0_5)(uint32_t opcode) /* MOVE */
37215 {
37216 	uint32_t srcreg = (opcode & 7);
37217 	uint32_t dstreg = (opcode >> 9) & 7;
37218 	OpcodeFamily = 30; CurrentInstrCycles = 24;
37219 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
37220 	BusCyclePenalty += 2;
37221 	if ((srca & 1) != 0) {
37222 		last_fault_for_exception_3 = srca;
37223 		last_op_for_exception_3 = opcode;
37224 		last_addr_for_exception_3 = m68k_getpc() + 4;
37225 		Exception(3, 0, M68000_EXC_SRC_CPU);
37226 		goto endlabel2105;
37227 	}
37228 {{	int16_t src = m68k_read_memory_16(srca);
37229 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
37230 	BusCyclePenalty += 2;
37231 	if ((dsta & 1) != 0) {
37232 		last_fault_for_exception_3 = dsta;
37233 		last_op_for_exception_3 = opcode;
37234 		last_addr_for_exception_3 = m68k_getpc() + 6;
37235 		Exception(3, 0, M68000_EXC_SRC_CPU);
37236 		goto endlabel2105;
37237 	}
37238 {	CLEAR_CZNV;
37239 	SET_ZFLG (((int16_t)(src)) == 0);
37240 	SET_NFLG (((int16_t)(src)) < 0);
37241 m68k_incpc(6);
37242 fill_prefetch_0 ();
37243 	m68k_write_memory_16(dsta,src);
37244 }}}}}}endlabel2105: ;
37245 return 24;
37246 }
CPUFUNC(op_31b8_5)37247 unsigned long CPUFUNC(op_31b8_5)(uint32_t opcode) /* MOVE */
37248 {
37249 	uint32_t dstreg = (opcode >> 9) & 7;
37250 	OpcodeFamily = 30; CurrentInstrCycles = 22;
37251 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
37252 	if ((srca & 1) != 0) {
37253 		last_fault_for_exception_3 = srca;
37254 		last_op_for_exception_3 = opcode;
37255 		last_addr_for_exception_3 = m68k_getpc() + 4;
37256 		Exception(3, 0, M68000_EXC_SRC_CPU);
37257 		goto endlabel2106;
37258 	}
37259 {{	int16_t src = m68k_read_memory_16(srca);
37260 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
37261 	BusCyclePenalty += 2;
37262 	if ((dsta & 1) != 0) {
37263 		last_fault_for_exception_3 = dsta;
37264 		last_op_for_exception_3 = opcode;
37265 		last_addr_for_exception_3 = m68k_getpc() + 6;
37266 		Exception(3, 0, M68000_EXC_SRC_CPU);
37267 		goto endlabel2106;
37268 	}
37269 {	CLEAR_CZNV;
37270 	SET_ZFLG (((int16_t)(src)) == 0);
37271 	SET_NFLG (((int16_t)(src)) < 0);
37272 m68k_incpc(6);
37273 fill_prefetch_0 ();
37274 	m68k_write_memory_16(dsta,src);
37275 }}}}}}endlabel2106: ;
37276 return 22;
37277 }
CPUFUNC(op_31b9_5)37278 unsigned long CPUFUNC(op_31b9_5)(uint32_t opcode) /* MOVE */
37279 {
37280 	uint32_t dstreg = (opcode >> 9) & 7;
37281 	OpcodeFamily = 30; CurrentInstrCycles = 26;
37282 {{	uint32_t srca = get_ilong_prefetch(2);
37283 	if ((srca & 1) != 0) {
37284 		last_fault_for_exception_3 = srca;
37285 		last_op_for_exception_3 = opcode;
37286 		last_addr_for_exception_3 = m68k_getpc() + 6;
37287 		Exception(3, 0, M68000_EXC_SRC_CPU);
37288 		goto endlabel2107;
37289 	}
37290 {{	int16_t src = m68k_read_memory_16(srca);
37291 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(6));
37292 	BusCyclePenalty += 2;
37293 	if ((dsta & 1) != 0) {
37294 		last_fault_for_exception_3 = dsta;
37295 		last_op_for_exception_3 = opcode;
37296 		last_addr_for_exception_3 = m68k_getpc() + 8;
37297 		Exception(3, 0, M68000_EXC_SRC_CPU);
37298 		goto endlabel2107;
37299 	}
37300 {	CLEAR_CZNV;
37301 	SET_ZFLG (((int16_t)(src)) == 0);
37302 	SET_NFLG (((int16_t)(src)) < 0);
37303 m68k_incpc(8);
37304 fill_prefetch_0 ();
37305 	m68k_write_memory_16(dsta,src);
37306 }}}}}}endlabel2107: ;
37307 return 26;
37308 }
CPUFUNC(op_31ba_5)37309 unsigned long CPUFUNC(op_31ba_5)(uint32_t opcode) /* MOVE */
37310 {
37311 	uint32_t dstreg = (opcode >> 9) & 7;
37312 	OpcodeFamily = 30; CurrentInstrCycles = 22;
37313 {{	uint32_t srca = m68k_getpc () + 2;
37314 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
37315 	if ((srca & 1) != 0) {
37316 		last_fault_for_exception_3 = srca;
37317 		last_op_for_exception_3 = opcode;
37318 		last_addr_for_exception_3 = m68k_getpc() + 4;
37319 		Exception(3, 0, M68000_EXC_SRC_CPU);
37320 		goto endlabel2108;
37321 	}
37322 {{	int16_t src = m68k_read_memory_16(srca);
37323 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
37324 	BusCyclePenalty += 2;
37325 	if ((dsta & 1) != 0) {
37326 		last_fault_for_exception_3 = dsta;
37327 		last_op_for_exception_3 = opcode;
37328 		last_addr_for_exception_3 = m68k_getpc() + 6;
37329 		Exception(3, 0, M68000_EXC_SRC_CPU);
37330 		goto endlabel2108;
37331 	}
37332 {	CLEAR_CZNV;
37333 	SET_ZFLG (((int16_t)(src)) == 0);
37334 	SET_NFLG (((int16_t)(src)) < 0);
37335 m68k_incpc(6);
37336 fill_prefetch_0 ();
37337 	m68k_write_memory_16(dsta,src);
37338 }}}}}}endlabel2108: ;
37339 return 22;
37340 }
CPUFUNC(op_31bb_5)37341 unsigned long CPUFUNC(op_31bb_5)(uint32_t opcode) /* MOVE */
37342 {
37343 	uint32_t dstreg = (opcode >> 9) & 7;
37344 	OpcodeFamily = 30; CurrentInstrCycles = 24;
37345 {{	uint32_t tmppc = m68k_getpc() + 2;
37346 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
37347 	BusCyclePenalty += 2;
37348 	if ((srca & 1) != 0) {
37349 		last_fault_for_exception_3 = srca;
37350 		last_op_for_exception_3 = opcode;
37351 		last_addr_for_exception_3 = m68k_getpc() + 4;
37352 		Exception(3, 0, M68000_EXC_SRC_CPU);
37353 		goto endlabel2109;
37354 	}
37355 {{	int16_t src = m68k_read_memory_16(srca);
37356 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
37357 	BusCyclePenalty += 2;
37358 	if ((dsta & 1) != 0) {
37359 		last_fault_for_exception_3 = dsta;
37360 		last_op_for_exception_3 = opcode;
37361 		last_addr_for_exception_3 = m68k_getpc() + 6;
37362 		Exception(3, 0, M68000_EXC_SRC_CPU);
37363 		goto endlabel2109;
37364 	}
37365 {	CLEAR_CZNV;
37366 	SET_ZFLG (((int16_t)(src)) == 0);
37367 	SET_NFLG (((int16_t)(src)) < 0);
37368 m68k_incpc(6);
37369 fill_prefetch_0 ();
37370 	m68k_write_memory_16(dsta,src);
37371 }}}}}}endlabel2109: ;
37372 return 24;
37373 }
CPUFUNC(op_31bc_5)37374 unsigned long CPUFUNC(op_31bc_5)(uint32_t opcode) /* MOVE */
37375 {
37376 	uint32_t dstreg = (opcode >> 9) & 7;
37377 	OpcodeFamily = 30; CurrentInstrCycles = 18;
37378 {{	int16_t src = get_iword_prefetch(2);
37379 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
37380 	BusCyclePenalty += 2;
37381 	if ((dsta & 1) != 0) {
37382 		last_fault_for_exception_3 = dsta;
37383 		last_op_for_exception_3 = opcode;
37384 		last_addr_for_exception_3 = m68k_getpc() + 6;
37385 		Exception(3, 0, M68000_EXC_SRC_CPU);
37386 		goto endlabel2110;
37387 	}
37388 {	CLEAR_CZNV;
37389 	SET_ZFLG (((int16_t)(src)) == 0);
37390 	SET_NFLG (((int16_t)(src)) < 0);
37391 m68k_incpc(6);
37392 fill_prefetch_0 ();
37393 	m68k_write_memory_16(dsta,src);
37394 }}}}endlabel2110: ;
37395 return 18;
37396 }
CPUFUNC(op_31c0_5)37397 unsigned long CPUFUNC(op_31c0_5)(uint32_t opcode) /* MOVE */
37398 {
37399 	uint32_t srcreg = (opcode & 7);
37400 	OpcodeFamily = 30; CurrentInstrCycles = 12;
37401 {{	int16_t src = m68k_dreg(regs, srcreg);
37402 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
37403 	if ((dsta & 1) != 0) {
37404 		last_fault_for_exception_3 = dsta;
37405 		last_op_for_exception_3 = opcode;
37406 		last_addr_for_exception_3 = m68k_getpc() + 4;
37407 		Exception(3, 0, M68000_EXC_SRC_CPU);
37408 		goto endlabel2111;
37409 	}
37410 {	CLEAR_CZNV;
37411 	SET_ZFLG (((int16_t)(src)) == 0);
37412 	SET_NFLG (((int16_t)(src)) < 0);
37413 m68k_incpc(4);
37414 fill_prefetch_0 ();
37415 	m68k_write_memory_16(dsta,src);
37416 }}}}endlabel2111: ;
37417 return 12;
37418 }
CPUFUNC(op_31c8_5)37419 unsigned long CPUFUNC(op_31c8_5)(uint32_t opcode) /* MOVE */
37420 {
37421 	uint32_t srcreg = (opcode & 7);
37422 	OpcodeFamily = 30; CurrentInstrCycles = 12;
37423 {{	int16_t src = m68k_areg(regs, srcreg);
37424 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
37425 	if ((dsta & 1) != 0) {
37426 		last_fault_for_exception_3 = dsta;
37427 		last_op_for_exception_3 = opcode;
37428 		last_addr_for_exception_3 = m68k_getpc() + 4;
37429 		Exception(3, 0, M68000_EXC_SRC_CPU);
37430 		goto endlabel2112;
37431 	}
37432 {	CLEAR_CZNV;
37433 	SET_ZFLG (((int16_t)(src)) == 0);
37434 	SET_NFLG (((int16_t)(src)) < 0);
37435 m68k_incpc(4);
37436 fill_prefetch_0 ();
37437 	m68k_write_memory_16(dsta,src);
37438 }}}}endlabel2112: ;
37439 return 12;
37440 }
CPUFUNC(op_31d0_5)37441 unsigned long CPUFUNC(op_31d0_5)(uint32_t opcode) /* MOVE */
37442 {
37443 	uint32_t srcreg = (opcode & 7);
37444 	OpcodeFamily = 30; CurrentInstrCycles = 16;
37445 {{	uint32_t srca = m68k_areg(regs, srcreg);
37446 	if ((srca & 1) != 0) {
37447 		last_fault_for_exception_3 = srca;
37448 		last_op_for_exception_3 = opcode;
37449 		last_addr_for_exception_3 = m68k_getpc() + 2;
37450 		Exception(3, 0, M68000_EXC_SRC_CPU);
37451 		goto endlabel2113;
37452 	}
37453 {{	int16_t src = m68k_read_memory_16(srca);
37454 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
37455 	if ((dsta & 1) != 0) {
37456 		last_fault_for_exception_3 = dsta;
37457 		last_op_for_exception_3 = opcode;
37458 		last_addr_for_exception_3 = m68k_getpc() + 4;
37459 		Exception(3, 0, M68000_EXC_SRC_CPU);
37460 		goto endlabel2113;
37461 	}
37462 {	CLEAR_CZNV;
37463 	SET_ZFLG (((int16_t)(src)) == 0);
37464 	SET_NFLG (((int16_t)(src)) < 0);
37465 m68k_incpc(4);
37466 fill_prefetch_0 ();
37467 	m68k_write_memory_16(dsta,src);
37468 }}}}}}endlabel2113: ;
37469 return 16;
37470 }
CPUFUNC(op_31d8_5)37471 unsigned long CPUFUNC(op_31d8_5)(uint32_t opcode) /* MOVE */
37472 {
37473 	uint32_t srcreg = (opcode & 7);
37474 	OpcodeFamily = 30; CurrentInstrCycles = 16;
37475 {{	uint32_t srca = m68k_areg(regs, srcreg);
37476 	if ((srca & 1) != 0) {
37477 		last_fault_for_exception_3 = srca;
37478 		last_op_for_exception_3 = opcode;
37479 		last_addr_for_exception_3 = m68k_getpc() + 2;
37480 		Exception(3, 0, M68000_EXC_SRC_CPU);
37481 		goto endlabel2114;
37482 	}
37483 {{	int16_t src = m68k_read_memory_16(srca);
37484 	m68k_areg(regs, srcreg) += 2;
37485 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
37486 	if ((dsta & 1) != 0) {
37487 		last_fault_for_exception_3 = dsta;
37488 		last_op_for_exception_3 = opcode;
37489 		last_addr_for_exception_3 = m68k_getpc() + 4;
37490 		Exception(3, 0, M68000_EXC_SRC_CPU);
37491 		goto endlabel2114;
37492 	}
37493 {	CLEAR_CZNV;
37494 	SET_ZFLG (((int16_t)(src)) == 0);
37495 	SET_NFLG (((int16_t)(src)) < 0);
37496 m68k_incpc(4);
37497 fill_prefetch_0 ();
37498 	m68k_write_memory_16(dsta,src);
37499 }}}}}}endlabel2114: ;
37500 return 16;
37501 }
CPUFUNC(op_31e0_5)37502 unsigned long CPUFUNC(op_31e0_5)(uint32_t opcode) /* MOVE */
37503 {
37504 	uint32_t srcreg = (opcode & 7);
37505 	OpcodeFamily = 30; CurrentInstrCycles = 18;
37506 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
37507 	if ((srca & 1) != 0) {
37508 		last_fault_for_exception_3 = srca;
37509 		last_op_for_exception_3 = opcode;
37510 		last_addr_for_exception_3 = m68k_getpc() + 2;
37511 		Exception(3, 0, M68000_EXC_SRC_CPU);
37512 		goto endlabel2115;
37513 	}
37514 {{	int16_t src = m68k_read_memory_16(srca);
37515 	m68k_areg (regs, srcreg) = srca;
37516 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
37517 	if ((dsta & 1) != 0) {
37518 		last_fault_for_exception_3 = dsta;
37519 		last_op_for_exception_3 = opcode;
37520 		last_addr_for_exception_3 = m68k_getpc() + 4;
37521 		Exception(3, 0, M68000_EXC_SRC_CPU);
37522 		goto endlabel2115;
37523 	}
37524 {	CLEAR_CZNV;
37525 	SET_ZFLG (((int16_t)(src)) == 0);
37526 	SET_NFLG (((int16_t)(src)) < 0);
37527 m68k_incpc(4);
37528 fill_prefetch_0 ();
37529 	m68k_write_memory_16(dsta,src);
37530 }}}}}}endlabel2115: ;
37531 return 18;
37532 }
CPUFUNC(op_31e8_5)37533 unsigned long CPUFUNC(op_31e8_5)(uint32_t opcode) /* MOVE */
37534 {
37535 	uint32_t srcreg = (opcode & 7);
37536 	OpcodeFamily = 30; CurrentInstrCycles = 20;
37537 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
37538 	if ((srca & 1) != 0) {
37539 		last_fault_for_exception_3 = srca;
37540 		last_op_for_exception_3 = opcode;
37541 		last_addr_for_exception_3 = m68k_getpc() + 4;
37542 		Exception(3, 0, M68000_EXC_SRC_CPU);
37543 		goto endlabel2116;
37544 	}
37545 {{	int16_t src = m68k_read_memory_16(srca);
37546 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
37547 	if ((dsta & 1) != 0) {
37548 		last_fault_for_exception_3 = dsta;
37549 		last_op_for_exception_3 = opcode;
37550 		last_addr_for_exception_3 = m68k_getpc() + 6;
37551 		Exception(3, 0, M68000_EXC_SRC_CPU);
37552 		goto endlabel2116;
37553 	}
37554 {	CLEAR_CZNV;
37555 	SET_ZFLG (((int16_t)(src)) == 0);
37556 	SET_NFLG (((int16_t)(src)) < 0);
37557 m68k_incpc(6);
37558 fill_prefetch_0 ();
37559 	m68k_write_memory_16(dsta,src);
37560 }}}}}}endlabel2116: ;
37561 return 20;
37562 }
CPUFUNC(op_31f0_5)37563 unsigned long CPUFUNC(op_31f0_5)(uint32_t opcode) /* MOVE */
37564 {
37565 	uint32_t srcreg = (opcode & 7);
37566 	OpcodeFamily = 30; CurrentInstrCycles = 22;
37567 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
37568 	BusCyclePenalty += 2;
37569 	if ((srca & 1) != 0) {
37570 		last_fault_for_exception_3 = srca;
37571 		last_op_for_exception_3 = opcode;
37572 		last_addr_for_exception_3 = m68k_getpc() + 4;
37573 		Exception(3, 0, M68000_EXC_SRC_CPU);
37574 		goto endlabel2117;
37575 	}
37576 {{	int16_t src = m68k_read_memory_16(srca);
37577 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
37578 	if ((dsta & 1) != 0) {
37579 		last_fault_for_exception_3 = dsta;
37580 		last_op_for_exception_3 = opcode;
37581 		last_addr_for_exception_3 = m68k_getpc() + 6;
37582 		Exception(3, 0, M68000_EXC_SRC_CPU);
37583 		goto endlabel2117;
37584 	}
37585 {	CLEAR_CZNV;
37586 	SET_ZFLG (((int16_t)(src)) == 0);
37587 	SET_NFLG (((int16_t)(src)) < 0);
37588 m68k_incpc(6);
37589 fill_prefetch_0 ();
37590 	m68k_write_memory_16(dsta,src);
37591 }}}}}}endlabel2117: ;
37592 return 22;
37593 }
CPUFUNC(op_31f8_5)37594 unsigned long CPUFUNC(op_31f8_5)(uint32_t opcode) /* MOVE */
37595 {
37596 	OpcodeFamily = 30; CurrentInstrCycles = 20;
37597 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
37598 	if ((srca & 1) != 0) {
37599 		last_fault_for_exception_3 = srca;
37600 		last_op_for_exception_3 = opcode;
37601 		last_addr_for_exception_3 = m68k_getpc() + 4;
37602 		Exception(3, 0, M68000_EXC_SRC_CPU);
37603 		goto endlabel2118;
37604 	}
37605 {{	int16_t src = m68k_read_memory_16(srca);
37606 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
37607 	if ((dsta & 1) != 0) {
37608 		last_fault_for_exception_3 = dsta;
37609 		last_op_for_exception_3 = opcode;
37610 		last_addr_for_exception_3 = m68k_getpc() + 6;
37611 		Exception(3, 0, M68000_EXC_SRC_CPU);
37612 		goto endlabel2118;
37613 	}
37614 {	CLEAR_CZNV;
37615 	SET_ZFLG (((int16_t)(src)) == 0);
37616 	SET_NFLG (((int16_t)(src)) < 0);
37617 m68k_incpc(6);
37618 fill_prefetch_0 ();
37619 	m68k_write_memory_16(dsta,src);
37620 }}}}}}endlabel2118: ;
37621 return 20;
37622 }
CPUFUNC(op_31f9_5)37623 unsigned long CPUFUNC(op_31f9_5)(uint32_t opcode) /* MOVE */
37624 {
37625 	OpcodeFamily = 30; CurrentInstrCycles = 24;
37626 {{	uint32_t srca = get_ilong_prefetch(2);
37627 	if ((srca & 1) != 0) {
37628 		last_fault_for_exception_3 = srca;
37629 		last_op_for_exception_3 = opcode;
37630 		last_addr_for_exception_3 = m68k_getpc() + 6;
37631 		Exception(3, 0, M68000_EXC_SRC_CPU);
37632 		goto endlabel2119;
37633 	}
37634 {{	int16_t src = m68k_read_memory_16(srca);
37635 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(6);
37636 	if ((dsta & 1) != 0) {
37637 		last_fault_for_exception_3 = dsta;
37638 		last_op_for_exception_3 = opcode;
37639 		last_addr_for_exception_3 = m68k_getpc() + 8;
37640 		Exception(3, 0, M68000_EXC_SRC_CPU);
37641 		goto endlabel2119;
37642 	}
37643 {	CLEAR_CZNV;
37644 	SET_ZFLG (((int16_t)(src)) == 0);
37645 	SET_NFLG (((int16_t)(src)) < 0);
37646 m68k_incpc(8);
37647 fill_prefetch_0 ();
37648 	m68k_write_memory_16(dsta,src);
37649 }}}}}}endlabel2119: ;
37650 return 24;
37651 }
CPUFUNC(op_31fa_5)37652 unsigned long CPUFUNC(op_31fa_5)(uint32_t opcode) /* MOVE */
37653 {
37654 	OpcodeFamily = 30; CurrentInstrCycles = 20;
37655 {{	uint32_t srca = m68k_getpc () + 2;
37656 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
37657 	if ((srca & 1) != 0) {
37658 		last_fault_for_exception_3 = srca;
37659 		last_op_for_exception_3 = opcode;
37660 		last_addr_for_exception_3 = m68k_getpc() + 4;
37661 		Exception(3, 0, M68000_EXC_SRC_CPU);
37662 		goto endlabel2120;
37663 	}
37664 {{	int16_t src = m68k_read_memory_16(srca);
37665 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
37666 	if ((dsta & 1) != 0) {
37667 		last_fault_for_exception_3 = dsta;
37668 		last_op_for_exception_3 = opcode;
37669 		last_addr_for_exception_3 = m68k_getpc() + 6;
37670 		Exception(3, 0, M68000_EXC_SRC_CPU);
37671 		goto endlabel2120;
37672 	}
37673 {	CLEAR_CZNV;
37674 	SET_ZFLG (((int16_t)(src)) == 0);
37675 	SET_NFLG (((int16_t)(src)) < 0);
37676 m68k_incpc(6);
37677 fill_prefetch_0 ();
37678 	m68k_write_memory_16(dsta,src);
37679 }}}}}}endlabel2120: ;
37680 return 20;
37681 }
CPUFUNC(op_31fb_5)37682 unsigned long CPUFUNC(op_31fb_5)(uint32_t opcode) /* MOVE */
37683 {
37684 	OpcodeFamily = 30; CurrentInstrCycles = 22;
37685 {{	uint32_t tmppc = m68k_getpc() + 2;
37686 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
37687 	BusCyclePenalty += 2;
37688 	if ((srca & 1) != 0) {
37689 		last_fault_for_exception_3 = srca;
37690 		last_op_for_exception_3 = opcode;
37691 		last_addr_for_exception_3 = m68k_getpc() + 4;
37692 		Exception(3, 0, M68000_EXC_SRC_CPU);
37693 		goto endlabel2121;
37694 	}
37695 {{	int16_t src = m68k_read_memory_16(srca);
37696 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
37697 	if ((dsta & 1) != 0) {
37698 		last_fault_for_exception_3 = dsta;
37699 		last_op_for_exception_3 = opcode;
37700 		last_addr_for_exception_3 = m68k_getpc() + 6;
37701 		Exception(3, 0, M68000_EXC_SRC_CPU);
37702 		goto endlabel2121;
37703 	}
37704 {	CLEAR_CZNV;
37705 	SET_ZFLG (((int16_t)(src)) == 0);
37706 	SET_NFLG (((int16_t)(src)) < 0);
37707 m68k_incpc(6);
37708 fill_prefetch_0 ();
37709 	m68k_write_memory_16(dsta,src);
37710 }}}}}}endlabel2121: ;
37711 return 22;
37712 }
CPUFUNC(op_31fc_5)37713 unsigned long CPUFUNC(op_31fc_5)(uint32_t opcode) /* MOVE */
37714 {
37715 	OpcodeFamily = 30; CurrentInstrCycles = 16;
37716 {{	int16_t src = get_iword_prefetch(2);
37717 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(4);
37718 	if ((dsta & 1) != 0) {
37719 		last_fault_for_exception_3 = dsta;
37720 		last_op_for_exception_3 = opcode;
37721 		last_addr_for_exception_3 = m68k_getpc() + 6;
37722 		Exception(3, 0, M68000_EXC_SRC_CPU);
37723 		goto endlabel2122;
37724 	}
37725 {	CLEAR_CZNV;
37726 	SET_ZFLG (((int16_t)(src)) == 0);
37727 	SET_NFLG (((int16_t)(src)) < 0);
37728 m68k_incpc(6);
37729 fill_prefetch_0 ();
37730 	m68k_write_memory_16(dsta,src);
37731 }}}}endlabel2122: ;
37732 return 16;
37733 }
CPUFUNC(op_33c0_5)37734 unsigned long CPUFUNC(op_33c0_5)(uint32_t opcode) /* MOVE */
37735 {
37736 	uint32_t srcreg = (opcode & 7);
37737 	OpcodeFamily = 30; CurrentInstrCycles = 16;
37738 {{	int16_t src = m68k_dreg(regs, srcreg);
37739 {	uint32_t dsta = get_ilong_prefetch(2);
37740 	if ((dsta & 1) != 0) {
37741 		last_fault_for_exception_3 = dsta;
37742 		last_op_for_exception_3 = opcode;
37743 		last_addr_for_exception_3 = m68k_getpc() + 6;
37744 		Exception(3, 0, M68000_EXC_SRC_CPU);
37745 		goto endlabel2123;
37746 	}
37747 {	CLEAR_CZNV;
37748 	SET_ZFLG (((int16_t)(src)) == 0);
37749 	SET_NFLG (((int16_t)(src)) < 0);
37750 m68k_incpc(6);
37751 fill_prefetch_0 ();
37752 	m68k_write_memory_16(dsta,src);
37753 }}}}endlabel2123: ;
37754 return 16;
37755 }
CPUFUNC(op_33c8_5)37756 unsigned long CPUFUNC(op_33c8_5)(uint32_t opcode) /* MOVE */
37757 {
37758 	uint32_t srcreg = (opcode & 7);
37759 	OpcodeFamily = 30; CurrentInstrCycles = 16;
37760 {{	int16_t src = m68k_areg(regs, srcreg);
37761 {	uint32_t dsta = get_ilong_prefetch(2);
37762 	if ((dsta & 1) != 0) {
37763 		last_fault_for_exception_3 = dsta;
37764 		last_op_for_exception_3 = opcode;
37765 		last_addr_for_exception_3 = m68k_getpc() + 6;
37766 		Exception(3, 0, M68000_EXC_SRC_CPU);
37767 		goto endlabel2124;
37768 	}
37769 {	CLEAR_CZNV;
37770 	SET_ZFLG (((int16_t)(src)) == 0);
37771 	SET_NFLG (((int16_t)(src)) < 0);
37772 m68k_incpc(6);
37773 fill_prefetch_0 ();
37774 	m68k_write_memory_16(dsta,src);
37775 }}}}endlabel2124: ;
37776 return 16;
37777 }
CPUFUNC(op_33d0_5)37778 unsigned long CPUFUNC(op_33d0_5)(uint32_t opcode) /* MOVE */
37779 {
37780 	uint32_t srcreg = (opcode & 7);
37781 	OpcodeFamily = 30; CurrentInstrCycles = 20;
37782 {{	uint32_t srca = m68k_areg(regs, srcreg);
37783 	if ((srca & 1) != 0) {
37784 		last_fault_for_exception_3 = srca;
37785 		last_op_for_exception_3 = opcode;
37786 		last_addr_for_exception_3 = m68k_getpc() + 2;
37787 		Exception(3, 0, M68000_EXC_SRC_CPU);
37788 		goto endlabel2125;
37789 	}
37790 {{	int16_t src = m68k_read_memory_16(srca);
37791 {	uint32_t dsta = get_ilong_prefetch(2);
37792 	if ((dsta & 1) != 0) {
37793 		last_fault_for_exception_3 = dsta;
37794 		last_op_for_exception_3 = opcode;
37795 		last_addr_for_exception_3 = m68k_getpc() + 6;
37796 		Exception(3, 0, M68000_EXC_SRC_CPU);
37797 		goto endlabel2125;
37798 	}
37799 {	CLEAR_CZNV;
37800 	SET_ZFLG (((int16_t)(src)) == 0);
37801 	SET_NFLG (((int16_t)(src)) < 0);
37802 m68k_incpc(6);
37803 fill_prefetch_0 ();
37804 	m68k_write_memory_16(dsta,src);
37805 }}}}}}endlabel2125: ;
37806 return 20;
37807 }
CPUFUNC(op_33d8_5)37808 unsigned long CPUFUNC(op_33d8_5)(uint32_t opcode) /* MOVE */
37809 {
37810 	uint32_t srcreg = (opcode & 7);
37811 	OpcodeFamily = 30; CurrentInstrCycles = 20;
37812 {{	uint32_t srca = m68k_areg(regs, srcreg);
37813 	if ((srca & 1) != 0) {
37814 		last_fault_for_exception_3 = srca;
37815 		last_op_for_exception_3 = opcode;
37816 		last_addr_for_exception_3 = m68k_getpc() + 2;
37817 		Exception(3, 0, M68000_EXC_SRC_CPU);
37818 		goto endlabel2126;
37819 	}
37820 {{	int16_t src = m68k_read_memory_16(srca);
37821 	m68k_areg(regs, srcreg) += 2;
37822 {	uint32_t dsta = get_ilong_prefetch(2);
37823 	if ((dsta & 1) != 0) {
37824 		last_fault_for_exception_3 = dsta;
37825 		last_op_for_exception_3 = opcode;
37826 		last_addr_for_exception_3 = m68k_getpc() + 6;
37827 		Exception(3, 0, M68000_EXC_SRC_CPU);
37828 		goto endlabel2126;
37829 	}
37830 {	CLEAR_CZNV;
37831 	SET_ZFLG (((int16_t)(src)) == 0);
37832 	SET_NFLG (((int16_t)(src)) < 0);
37833 m68k_incpc(6);
37834 fill_prefetch_0 ();
37835 	m68k_write_memory_16(dsta,src);
37836 }}}}}}endlabel2126: ;
37837 return 20;
37838 }
CPUFUNC(op_33e0_5)37839 unsigned long CPUFUNC(op_33e0_5)(uint32_t opcode) /* MOVE */
37840 {
37841 	uint32_t srcreg = (opcode & 7);
37842 	OpcodeFamily = 30; CurrentInstrCycles = 22;
37843 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
37844 	if ((srca & 1) != 0) {
37845 		last_fault_for_exception_3 = srca;
37846 		last_op_for_exception_3 = opcode;
37847 		last_addr_for_exception_3 = m68k_getpc() + 2;
37848 		Exception(3, 0, M68000_EXC_SRC_CPU);
37849 		goto endlabel2127;
37850 	}
37851 {{	int16_t src = m68k_read_memory_16(srca);
37852 	m68k_areg (regs, srcreg) = srca;
37853 {	uint32_t dsta = get_ilong_prefetch(2);
37854 	if ((dsta & 1) != 0) {
37855 		last_fault_for_exception_3 = dsta;
37856 		last_op_for_exception_3 = opcode;
37857 		last_addr_for_exception_3 = m68k_getpc() + 6;
37858 		Exception(3, 0, M68000_EXC_SRC_CPU);
37859 		goto endlabel2127;
37860 	}
37861 {	CLEAR_CZNV;
37862 	SET_ZFLG (((int16_t)(src)) == 0);
37863 	SET_NFLG (((int16_t)(src)) < 0);
37864 m68k_incpc(6);
37865 fill_prefetch_0 ();
37866 	m68k_write_memory_16(dsta,src);
37867 }}}}}}endlabel2127: ;
37868 return 22;
37869 }
CPUFUNC(op_33e8_5)37870 unsigned long CPUFUNC(op_33e8_5)(uint32_t opcode) /* MOVE */
37871 {
37872 	uint32_t srcreg = (opcode & 7);
37873 	OpcodeFamily = 30; CurrentInstrCycles = 24;
37874 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
37875 	if ((srca & 1) != 0) {
37876 		last_fault_for_exception_3 = srca;
37877 		last_op_for_exception_3 = opcode;
37878 		last_addr_for_exception_3 = m68k_getpc() + 4;
37879 		Exception(3, 0, M68000_EXC_SRC_CPU);
37880 		goto endlabel2128;
37881 	}
37882 {{	int16_t src = m68k_read_memory_16(srca);
37883 {	uint32_t dsta = get_ilong_prefetch(4);
37884 	if ((dsta & 1) != 0) {
37885 		last_fault_for_exception_3 = dsta;
37886 		last_op_for_exception_3 = opcode;
37887 		last_addr_for_exception_3 = m68k_getpc() + 8;
37888 		Exception(3, 0, M68000_EXC_SRC_CPU);
37889 		goto endlabel2128;
37890 	}
37891 {	CLEAR_CZNV;
37892 	SET_ZFLG (((int16_t)(src)) == 0);
37893 	SET_NFLG (((int16_t)(src)) < 0);
37894 m68k_incpc(8);
37895 fill_prefetch_0 ();
37896 	m68k_write_memory_16(dsta,src);
37897 }}}}}}endlabel2128: ;
37898 return 24;
37899 }
CPUFUNC(op_33f0_5)37900 unsigned long CPUFUNC(op_33f0_5)(uint32_t opcode) /* MOVE */
37901 {
37902 	uint32_t srcreg = (opcode & 7);
37903 	OpcodeFamily = 30; CurrentInstrCycles = 26;
37904 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
37905 	BusCyclePenalty += 2;
37906 	if ((srca & 1) != 0) {
37907 		last_fault_for_exception_3 = srca;
37908 		last_op_for_exception_3 = opcode;
37909 		last_addr_for_exception_3 = m68k_getpc() + 4;
37910 		Exception(3, 0, M68000_EXC_SRC_CPU);
37911 		goto endlabel2129;
37912 	}
37913 {{	int16_t src = m68k_read_memory_16(srca);
37914 {	uint32_t dsta = get_ilong_prefetch(4);
37915 	if ((dsta & 1) != 0) {
37916 		last_fault_for_exception_3 = dsta;
37917 		last_op_for_exception_3 = opcode;
37918 		last_addr_for_exception_3 = m68k_getpc() + 8;
37919 		Exception(3, 0, M68000_EXC_SRC_CPU);
37920 		goto endlabel2129;
37921 	}
37922 {	CLEAR_CZNV;
37923 	SET_ZFLG (((int16_t)(src)) == 0);
37924 	SET_NFLG (((int16_t)(src)) < 0);
37925 m68k_incpc(8);
37926 fill_prefetch_0 ();
37927 	m68k_write_memory_16(dsta,src);
37928 }}}}}}endlabel2129: ;
37929 return 26;
37930 }
CPUFUNC(op_33f8_5)37931 unsigned long CPUFUNC(op_33f8_5)(uint32_t opcode) /* MOVE */
37932 {
37933 	OpcodeFamily = 30; CurrentInstrCycles = 24;
37934 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
37935 	if ((srca & 1) != 0) {
37936 		last_fault_for_exception_3 = srca;
37937 		last_op_for_exception_3 = opcode;
37938 		last_addr_for_exception_3 = m68k_getpc() + 4;
37939 		Exception(3, 0, M68000_EXC_SRC_CPU);
37940 		goto endlabel2130;
37941 	}
37942 {{	int16_t src = m68k_read_memory_16(srca);
37943 {	uint32_t dsta = get_ilong_prefetch(4);
37944 	if ((dsta & 1) != 0) {
37945 		last_fault_for_exception_3 = dsta;
37946 		last_op_for_exception_3 = opcode;
37947 		last_addr_for_exception_3 = m68k_getpc() + 8;
37948 		Exception(3, 0, M68000_EXC_SRC_CPU);
37949 		goto endlabel2130;
37950 	}
37951 {	CLEAR_CZNV;
37952 	SET_ZFLG (((int16_t)(src)) == 0);
37953 	SET_NFLG (((int16_t)(src)) < 0);
37954 m68k_incpc(8);
37955 fill_prefetch_0 ();
37956 	m68k_write_memory_16(dsta,src);
37957 }}}}}}endlabel2130: ;
37958 return 24;
37959 }
CPUFUNC(op_33f9_5)37960 unsigned long CPUFUNC(op_33f9_5)(uint32_t opcode) /* MOVE */
37961 {
37962 	OpcodeFamily = 30; CurrentInstrCycles = 28;
37963 {{	uint32_t srca = get_ilong_prefetch(2);
37964 	if ((srca & 1) != 0) {
37965 		last_fault_for_exception_3 = srca;
37966 		last_op_for_exception_3 = opcode;
37967 		last_addr_for_exception_3 = m68k_getpc() + 6;
37968 		Exception(3, 0, M68000_EXC_SRC_CPU);
37969 		goto endlabel2131;
37970 	}
37971 {{	int16_t src = m68k_read_memory_16(srca);
37972 {	uint32_t dsta = get_ilong_prefetch(6);
37973 	if ((dsta & 1) != 0) {
37974 		last_fault_for_exception_3 = dsta;
37975 		last_op_for_exception_3 = opcode;
37976 		last_addr_for_exception_3 = m68k_getpc() + 10;
37977 		Exception(3, 0, M68000_EXC_SRC_CPU);
37978 		goto endlabel2131;
37979 	}
37980 {	CLEAR_CZNV;
37981 	SET_ZFLG (((int16_t)(src)) == 0);
37982 	SET_NFLG (((int16_t)(src)) < 0);
37983 m68k_incpc(10);
37984 fill_prefetch_0 ();
37985 	m68k_write_memory_16(dsta,src);
37986 }}}}}}endlabel2131: ;
37987 return 28;
37988 }
CPUFUNC(op_33fa_5)37989 unsigned long CPUFUNC(op_33fa_5)(uint32_t opcode) /* MOVE */
37990 {
37991 	OpcodeFamily = 30; CurrentInstrCycles = 24;
37992 {{	uint32_t srca = m68k_getpc () + 2;
37993 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
37994 	if ((srca & 1) != 0) {
37995 		last_fault_for_exception_3 = srca;
37996 		last_op_for_exception_3 = opcode;
37997 		last_addr_for_exception_3 = m68k_getpc() + 4;
37998 		Exception(3, 0, M68000_EXC_SRC_CPU);
37999 		goto endlabel2132;
38000 	}
38001 {{	int16_t src = m68k_read_memory_16(srca);
38002 {	uint32_t dsta = get_ilong_prefetch(4);
38003 	if ((dsta & 1) != 0) {
38004 		last_fault_for_exception_3 = dsta;
38005 		last_op_for_exception_3 = opcode;
38006 		last_addr_for_exception_3 = m68k_getpc() + 8;
38007 		Exception(3, 0, M68000_EXC_SRC_CPU);
38008 		goto endlabel2132;
38009 	}
38010 {	CLEAR_CZNV;
38011 	SET_ZFLG (((int16_t)(src)) == 0);
38012 	SET_NFLG (((int16_t)(src)) < 0);
38013 m68k_incpc(8);
38014 fill_prefetch_0 ();
38015 	m68k_write_memory_16(dsta,src);
38016 }}}}}}endlabel2132: ;
38017 return 24;
38018 }
CPUFUNC(op_33fb_5)38019 unsigned long CPUFUNC(op_33fb_5)(uint32_t opcode) /* MOVE */
38020 {
38021 	OpcodeFamily = 30; CurrentInstrCycles = 26;
38022 {{	uint32_t tmppc = m68k_getpc() + 2;
38023 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
38024 	BusCyclePenalty += 2;
38025 	if ((srca & 1) != 0) {
38026 		last_fault_for_exception_3 = srca;
38027 		last_op_for_exception_3 = opcode;
38028 		last_addr_for_exception_3 = m68k_getpc() + 4;
38029 		Exception(3, 0, M68000_EXC_SRC_CPU);
38030 		goto endlabel2133;
38031 	}
38032 {{	int16_t src = m68k_read_memory_16(srca);
38033 {	uint32_t dsta = get_ilong_prefetch(4);
38034 	if ((dsta & 1) != 0) {
38035 		last_fault_for_exception_3 = dsta;
38036 		last_op_for_exception_3 = opcode;
38037 		last_addr_for_exception_3 = m68k_getpc() + 8;
38038 		Exception(3, 0, M68000_EXC_SRC_CPU);
38039 		goto endlabel2133;
38040 	}
38041 {	CLEAR_CZNV;
38042 	SET_ZFLG (((int16_t)(src)) == 0);
38043 	SET_NFLG (((int16_t)(src)) < 0);
38044 m68k_incpc(8);
38045 fill_prefetch_0 ();
38046 	m68k_write_memory_16(dsta,src);
38047 }}}}}}endlabel2133: ;
38048 return 26;
38049 }
CPUFUNC(op_33fc_5)38050 unsigned long CPUFUNC(op_33fc_5)(uint32_t opcode) /* MOVE */
38051 {
38052 	OpcodeFamily = 30; CurrentInstrCycles = 20;
38053 {{	int16_t src = get_iword_prefetch(2);
38054 {	uint32_t dsta = get_ilong_prefetch(4);
38055 	if ((dsta & 1) != 0) {
38056 		last_fault_for_exception_3 = dsta;
38057 		last_op_for_exception_3 = opcode;
38058 		last_addr_for_exception_3 = m68k_getpc() + 8;
38059 		Exception(3, 0, M68000_EXC_SRC_CPU);
38060 		goto endlabel2134;
38061 	}
38062 {	CLEAR_CZNV;
38063 	SET_ZFLG (((int16_t)(src)) == 0);
38064 	SET_NFLG (((int16_t)(src)) < 0);
38065 m68k_incpc(8);
38066 fill_prefetch_0 ();
38067 	m68k_write_memory_16(dsta,src);
38068 }}}}endlabel2134: ;
38069 return 20;
38070 }
CPUFUNC(op_4000_5)38071 unsigned long CPUFUNC(op_4000_5)(uint32_t opcode) /* NEGX */
38072 {
38073 	uint32_t srcreg = (opcode & 7);
38074 	OpcodeFamily = 16; CurrentInstrCycles = 4;
38075 {{	int8_t src = m68k_dreg(regs, srcreg);
38076 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38077 {	int flgs = ((int8_t)(src)) < 0;
38078 	int flgo = ((int8_t)(0)) < 0;
38079 	int flgn = ((int8_t)(newv)) < 0;
38080 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38081 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38082 	COPY_CARRY;
38083 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38084 	SET_NFLG (((int8_t)(newv)) < 0);
38085 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((newv) & 0xff);
38086 }}}}m68k_incpc(2);
38087 fill_prefetch_2 ();
38088 return 4;
38089 }
CPUFUNC(op_4010_5)38090 unsigned long CPUFUNC(op_4010_5)(uint32_t opcode) /* NEGX */
38091 {
38092 	uint32_t srcreg = (opcode & 7);
38093 	OpcodeFamily = 16; CurrentInstrCycles = 12;
38094 {{	uint32_t srca = m68k_areg(regs, srcreg);
38095 {	int8_t src = m68k_read_memory_8(srca);
38096 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38097 {	int flgs = ((int8_t)(src)) < 0;
38098 	int flgo = ((int8_t)(0)) < 0;
38099 	int flgn = ((int8_t)(newv)) < 0;
38100 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38101 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38102 	COPY_CARRY;
38103 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38104 	SET_NFLG (((int8_t)(newv)) < 0);
38105 m68k_incpc(2);
38106 fill_prefetch_2 ();
38107 	m68k_write_memory_8(srca,newv);
38108 }}}}}return 12;
38109 }
CPUFUNC(op_4018_5)38110 unsigned long CPUFUNC(op_4018_5)(uint32_t opcode) /* NEGX */
38111 {
38112 	uint32_t srcreg = (opcode & 7);
38113 	OpcodeFamily = 16; CurrentInstrCycles = 12;
38114 {{	uint32_t srca = m68k_areg(regs, srcreg);
38115 {	int8_t src = m68k_read_memory_8(srca);
38116 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
38117 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38118 {	int flgs = ((int8_t)(src)) < 0;
38119 	int flgo = ((int8_t)(0)) < 0;
38120 	int flgn = ((int8_t)(newv)) < 0;
38121 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38122 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38123 	COPY_CARRY;
38124 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38125 	SET_NFLG (((int8_t)(newv)) < 0);
38126 m68k_incpc(2);
38127 fill_prefetch_2 ();
38128 	m68k_write_memory_8(srca,newv);
38129 }}}}}return 12;
38130 }
CPUFUNC(op_4020_5)38131 unsigned long CPUFUNC(op_4020_5)(uint32_t opcode) /* NEGX */
38132 {
38133 	uint32_t srcreg = (opcode & 7);
38134 	OpcodeFamily = 16; CurrentInstrCycles = 14;
38135 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
38136 {	int8_t src = m68k_read_memory_8(srca);
38137 	m68k_areg (regs, srcreg) = srca;
38138 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38139 {	int flgs = ((int8_t)(src)) < 0;
38140 	int flgo = ((int8_t)(0)) < 0;
38141 	int flgn = ((int8_t)(newv)) < 0;
38142 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38143 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38144 	COPY_CARRY;
38145 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38146 	SET_NFLG (((int8_t)(newv)) < 0);
38147 m68k_incpc(2);
38148 fill_prefetch_2 ();
38149 	m68k_write_memory_8(srca,newv);
38150 }}}}}return 14;
38151 }
CPUFUNC(op_4028_5)38152 unsigned long CPUFUNC(op_4028_5)(uint32_t opcode) /* NEGX */
38153 {
38154 	uint32_t srcreg = (opcode & 7);
38155 	OpcodeFamily = 16; CurrentInstrCycles = 16;
38156 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
38157 {	int8_t src = m68k_read_memory_8(srca);
38158 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38159 {	int flgs = ((int8_t)(src)) < 0;
38160 	int flgo = ((int8_t)(0)) < 0;
38161 	int flgn = ((int8_t)(newv)) < 0;
38162 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38163 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38164 	COPY_CARRY;
38165 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38166 	SET_NFLG (((int8_t)(newv)) < 0);
38167 m68k_incpc(4);
38168 fill_prefetch_0 ();
38169 	m68k_write_memory_8(srca,newv);
38170 }}}}}return 16;
38171 }
CPUFUNC(op_4030_5)38172 unsigned long CPUFUNC(op_4030_5)(uint32_t opcode) /* NEGX */
38173 {
38174 	uint32_t srcreg = (opcode & 7);
38175 	OpcodeFamily = 16; CurrentInstrCycles = 18;
38176 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
38177 	BusCyclePenalty += 2;
38178 {	int8_t src = m68k_read_memory_8(srca);
38179 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38180 {	int flgs = ((int8_t)(src)) < 0;
38181 	int flgo = ((int8_t)(0)) < 0;
38182 	int flgn = ((int8_t)(newv)) < 0;
38183 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38184 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38185 	COPY_CARRY;
38186 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38187 	SET_NFLG (((int8_t)(newv)) < 0);
38188 m68k_incpc(4);
38189 fill_prefetch_0 ();
38190 	m68k_write_memory_8(srca,newv);
38191 }}}}}return 18;
38192 }
CPUFUNC(op_4038_5)38193 unsigned long CPUFUNC(op_4038_5)(uint32_t opcode) /* NEGX */
38194 {
38195 	OpcodeFamily = 16; CurrentInstrCycles = 16;
38196 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
38197 {	int8_t src = m68k_read_memory_8(srca);
38198 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38199 {	int flgs = ((int8_t)(src)) < 0;
38200 	int flgo = ((int8_t)(0)) < 0;
38201 	int flgn = ((int8_t)(newv)) < 0;
38202 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38203 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38204 	COPY_CARRY;
38205 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38206 	SET_NFLG (((int8_t)(newv)) < 0);
38207 m68k_incpc(4);
38208 fill_prefetch_0 ();
38209 	m68k_write_memory_8(srca,newv);
38210 }}}}}return 16;
38211 }
CPUFUNC(op_4039_5)38212 unsigned long CPUFUNC(op_4039_5)(uint32_t opcode) /* NEGX */
38213 {
38214 	OpcodeFamily = 16; CurrentInstrCycles = 20;
38215 {{	uint32_t srca = get_ilong_prefetch(2);
38216 {	int8_t src = m68k_read_memory_8(srca);
38217 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38218 {	int flgs = ((int8_t)(src)) < 0;
38219 	int flgo = ((int8_t)(0)) < 0;
38220 	int flgn = ((int8_t)(newv)) < 0;
38221 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38222 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38223 	COPY_CARRY;
38224 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
38225 	SET_NFLG (((int8_t)(newv)) < 0);
38226 m68k_incpc(6);
38227 fill_prefetch_0 ();
38228 	m68k_write_memory_8(srca,newv);
38229 }}}}}return 20;
38230 }
CPUFUNC(op_4040_5)38231 unsigned long CPUFUNC(op_4040_5)(uint32_t opcode) /* NEGX */
38232 {
38233 	uint32_t srcreg = (opcode & 7);
38234 	OpcodeFamily = 16; CurrentInstrCycles = 4;
38235 {{	int16_t src = m68k_dreg(regs, srcreg);
38236 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38237 {	int flgs = ((int16_t)(src)) < 0;
38238 	int flgo = ((int16_t)(0)) < 0;
38239 	int flgn = ((int16_t)(newv)) < 0;
38240 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38241 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38242 	COPY_CARRY;
38243 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38244 	SET_NFLG (((int16_t)(newv)) < 0);
38245 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((newv) & 0xffff);
38246 }}}}m68k_incpc(2);
38247 fill_prefetch_2 ();
38248 return 4;
38249 }
CPUFUNC(op_4050_5)38250 unsigned long CPUFUNC(op_4050_5)(uint32_t opcode) /* NEGX */
38251 {
38252 	uint32_t srcreg = (opcode & 7);
38253 	OpcodeFamily = 16; CurrentInstrCycles = 12;
38254 {{	uint32_t srca = m68k_areg(regs, srcreg);
38255 	if ((srca & 1) != 0) {
38256 		last_fault_for_exception_3 = srca;
38257 		last_op_for_exception_3 = opcode;
38258 		last_addr_for_exception_3 = m68k_getpc() + 2;
38259 		Exception(3, 0, M68000_EXC_SRC_CPU);
38260 		goto endlabel2144;
38261 	}
38262 {{	int16_t src = m68k_read_memory_16(srca);
38263 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38264 {	int flgs = ((int16_t)(src)) < 0;
38265 	int flgo = ((int16_t)(0)) < 0;
38266 	int flgn = ((int16_t)(newv)) < 0;
38267 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38268 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38269 	COPY_CARRY;
38270 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38271 	SET_NFLG (((int16_t)(newv)) < 0);
38272 m68k_incpc(2);
38273 fill_prefetch_2 ();
38274 	m68k_write_memory_16(srca,newv);
38275 }}}}}}endlabel2144: ;
38276 return 12;
38277 }
CPUFUNC(op_4058_5)38278 unsigned long CPUFUNC(op_4058_5)(uint32_t opcode) /* NEGX */
38279 {
38280 	uint32_t srcreg = (opcode & 7);
38281 	OpcodeFamily = 16; CurrentInstrCycles = 12;
38282 {{	uint32_t srca = m68k_areg(regs, srcreg);
38283 	if ((srca & 1) != 0) {
38284 		last_fault_for_exception_3 = srca;
38285 		last_op_for_exception_3 = opcode;
38286 		last_addr_for_exception_3 = m68k_getpc() + 2;
38287 		Exception(3, 0, M68000_EXC_SRC_CPU);
38288 		goto endlabel2145;
38289 	}
38290 {{	int16_t src = m68k_read_memory_16(srca);
38291 	m68k_areg(regs, srcreg) += 2;
38292 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38293 {	int flgs = ((int16_t)(src)) < 0;
38294 	int flgo = ((int16_t)(0)) < 0;
38295 	int flgn = ((int16_t)(newv)) < 0;
38296 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38297 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38298 	COPY_CARRY;
38299 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38300 	SET_NFLG (((int16_t)(newv)) < 0);
38301 m68k_incpc(2);
38302 fill_prefetch_2 ();
38303 	m68k_write_memory_16(srca,newv);
38304 }}}}}}endlabel2145: ;
38305 return 12;
38306 }
CPUFUNC(op_4060_5)38307 unsigned long CPUFUNC(op_4060_5)(uint32_t opcode) /* NEGX */
38308 {
38309 	uint32_t srcreg = (opcode & 7);
38310 	OpcodeFamily = 16; CurrentInstrCycles = 14;
38311 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
38312 	if ((srca & 1) != 0) {
38313 		last_fault_for_exception_3 = srca;
38314 		last_op_for_exception_3 = opcode;
38315 		last_addr_for_exception_3 = m68k_getpc() + 2;
38316 		Exception(3, 0, M68000_EXC_SRC_CPU);
38317 		goto endlabel2146;
38318 	}
38319 {{	int16_t src = m68k_read_memory_16(srca);
38320 	m68k_areg (regs, srcreg) = srca;
38321 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38322 {	int flgs = ((int16_t)(src)) < 0;
38323 	int flgo = ((int16_t)(0)) < 0;
38324 	int flgn = ((int16_t)(newv)) < 0;
38325 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38326 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38327 	COPY_CARRY;
38328 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38329 	SET_NFLG (((int16_t)(newv)) < 0);
38330 m68k_incpc(2);
38331 fill_prefetch_2 ();
38332 	m68k_write_memory_16(srca,newv);
38333 }}}}}}endlabel2146: ;
38334 return 14;
38335 }
CPUFUNC(op_4068_5)38336 unsigned long CPUFUNC(op_4068_5)(uint32_t opcode) /* NEGX */
38337 {
38338 	uint32_t srcreg = (opcode & 7);
38339 	OpcodeFamily = 16; CurrentInstrCycles = 16;
38340 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
38341 	if ((srca & 1) != 0) {
38342 		last_fault_for_exception_3 = srca;
38343 		last_op_for_exception_3 = opcode;
38344 		last_addr_for_exception_3 = m68k_getpc() + 4;
38345 		Exception(3, 0, M68000_EXC_SRC_CPU);
38346 		goto endlabel2147;
38347 	}
38348 {{	int16_t src = m68k_read_memory_16(srca);
38349 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38350 {	int flgs = ((int16_t)(src)) < 0;
38351 	int flgo = ((int16_t)(0)) < 0;
38352 	int flgn = ((int16_t)(newv)) < 0;
38353 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38354 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38355 	COPY_CARRY;
38356 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38357 	SET_NFLG (((int16_t)(newv)) < 0);
38358 m68k_incpc(4);
38359 fill_prefetch_0 ();
38360 	m68k_write_memory_16(srca,newv);
38361 }}}}}}endlabel2147: ;
38362 return 16;
38363 }
CPUFUNC(op_4070_5)38364 unsigned long CPUFUNC(op_4070_5)(uint32_t opcode) /* NEGX */
38365 {
38366 	uint32_t srcreg = (opcode & 7);
38367 	OpcodeFamily = 16; CurrentInstrCycles = 18;
38368 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
38369 	BusCyclePenalty += 2;
38370 	if ((srca & 1) != 0) {
38371 		last_fault_for_exception_3 = srca;
38372 		last_op_for_exception_3 = opcode;
38373 		last_addr_for_exception_3 = m68k_getpc() + 4;
38374 		Exception(3, 0, M68000_EXC_SRC_CPU);
38375 		goto endlabel2148;
38376 	}
38377 {{	int16_t src = m68k_read_memory_16(srca);
38378 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38379 {	int flgs = ((int16_t)(src)) < 0;
38380 	int flgo = ((int16_t)(0)) < 0;
38381 	int flgn = ((int16_t)(newv)) < 0;
38382 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38383 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38384 	COPY_CARRY;
38385 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38386 	SET_NFLG (((int16_t)(newv)) < 0);
38387 m68k_incpc(4);
38388 fill_prefetch_0 ();
38389 	m68k_write_memory_16(srca,newv);
38390 }}}}}}endlabel2148: ;
38391 return 18;
38392 }
CPUFUNC(op_4078_5)38393 unsigned long CPUFUNC(op_4078_5)(uint32_t opcode) /* NEGX */
38394 {
38395 	OpcodeFamily = 16; CurrentInstrCycles = 16;
38396 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
38397 	if ((srca & 1) != 0) {
38398 		last_fault_for_exception_3 = srca;
38399 		last_op_for_exception_3 = opcode;
38400 		last_addr_for_exception_3 = m68k_getpc() + 4;
38401 		Exception(3, 0, M68000_EXC_SRC_CPU);
38402 		goto endlabel2149;
38403 	}
38404 {{	int16_t src = m68k_read_memory_16(srca);
38405 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38406 {	int flgs = ((int16_t)(src)) < 0;
38407 	int flgo = ((int16_t)(0)) < 0;
38408 	int flgn = ((int16_t)(newv)) < 0;
38409 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38410 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38411 	COPY_CARRY;
38412 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38413 	SET_NFLG (((int16_t)(newv)) < 0);
38414 m68k_incpc(4);
38415 fill_prefetch_0 ();
38416 	m68k_write_memory_16(srca,newv);
38417 }}}}}}endlabel2149: ;
38418 return 16;
38419 }
CPUFUNC(op_4079_5)38420 unsigned long CPUFUNC(op_4079_5)(uint32_t opcode) /* NEGX */
38421 {
38422 	OpcodeFamily = 16; CurrentInstrCycles = 20;
38423 {{	uint32_t srca = get_ilong_prefetch(2);
38424 	if ((srca & 1) != 0) {
38425 		last_fault_for_exception_3 = srca;
38426 		last_op_for_exception_3 = opcode;
38427 		last_addr_for_exception_3 = m68k_getpc() + 6;
38428 		Exception(3, 0, M68000_EXC_SRC_CPU);
38429 		goto endlabel2150;
38430 	}
38431 {{	int16_t src = m68k_read_memory_16(srca);
38432 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38433 {	int flgs = ((int16_t)(src)) < 0;
38434 	int flgo = ((int16_t)(0)) < 0;
38435 	int flgn = ((int16_t)(newv)) < 0;
38436 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38437 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38438 	COPY_CARRY;
38439 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
38440 	SET_NFLG (((int16_t)(newv)) < 0);
38441 m68k_incpc(6);
38442 fill_prefetch_0 ();
38443 	m68k_write_memory_16(srca,newv);
38444 }}}}}}endlabel2150: ;
38445 return 20;
38446 }
CPUFUNC(op_4080_5)38447 unsigned long CPUFUNC(op_4080_5)(uint32_t opcode) /* NEGX */
38448 {
38449 	uint32_t srcreg = (opcode & 7);
38450 	OpcodeFamily = 16; CurrentInstrCycles = 6;
38451 {{	int32_t src = m68k_dreg(regs, srcreg);
38452 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38453 {	int flgs = ((int32_t)(src)) < 0;
38454 	int flgo = ((int32_t)(0)) < 0;
38455 	int flgn = ((int32_t)(newv)) < 0;
38456 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38457 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38458 	COPY_CARRY;
38459 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38460 	SET_NFLG (((int32_t)(newv)) < 0);
38461 	m68k_dreg(regs, srcreg) = (newv);
38462 }}}}m68k_incpc(2);
38463 fill_prefetch_2 ();
38464 return 6;
38465 }
CPUFUNC(op_4090_5)38466 unsigned long CPUFUNC(op_4090_5)(uint32_t opcode) /* NEGX */
38467 {
38468 	uint32_t srcreg = (opcode & 7);
38469 	OpcodeFamily = 16; CurrentInstrCycles = 20;
38470 {{	uint32_t srca = m68k_areg(regs, srcreg);
38471 	if ((srca & 1) != 0) {
38472 		last_fault_for_exception_3 = srca;
38473 		last_op_for_exception_3 = opcode;
38474 		last_addr_for_exception_3 = m68k_getpc() + 2;
38475 		Exception(3, 0, M68000_EXC_SRC_CPU);
38476 		goto endlabel2152;
38477 	}
38478 {{	int32_t src = m68k_read_memory_32(srca);
38479 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38480 {	int flgs = ((int32_t)(src)) < 0;
38481 	int flgo = ((int32_t)(0)) < 0;
38482 	int flgn = ((int32_t)(newv)) < 0;
38483 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38484 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38485 	COPY_CARRY;
38486 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38487 	SET_NFLG (((int32_t)(newv)) < 0);
38488 m68k_incpc(2);
38489 fill_prefetch_2 ();
38490 	m68k_write_memory_32(srca,newv);
38491 }}}}}}endlabel2152: ;
38492 return 20;
38493 }
CPUFUNC(op_4098_5)38494 unsigned long CPUFUNC(op_4098_5)(uint32_t opcode) /* NEGX */
38495 {
38496 	uint32_t srcreg = (opcode & 7);
38497 	OpcodeFamily = 16; CurrentInstrCycles = 20;
38498 {{	uint32_t srca = m68k_areg(regs, srcreg);
38499 	if ((srca & 1) != 0) {
38500 		last_fault_for_exception_3 = srca;
38501 		last_op_for_exception_3 = opcode;
38502 		last_addr_for_exception_3 = m68k_getpc() + 2;
38503 		Exception(3, 0, M68000_EXC_SRC_CPU);
38504 		goto endlabel2153;
38505 	}
38506 {{	int32_t src = m68k_read_memory_32(srca);
38507 	m68k_areg(regs, srcreg) += 4;
38508 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38509 {	int flgs = ((int32_t)(src)) < 0;
38510 	int flgo = ((int32_t)(0)) < 0;
38511 	int flgn = ((int32_t)(newv)) < 0;
38512 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38513 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38514 	COPY_CARRY;
38515 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38516 	SET_NFLG (((int32_t)(newv)) < 0);
38517 m68k_incpc(2);
38518 fill_prefetch_2 ();
38519 	m68k_write_memory_32(srca,newv);
38520 }}}}}}endlabel2153: ;
38521 return 20;
38522 }
CPUFUNC(op_40a0_5)38523 unsigned long CPUFUNC(op_40a0_5)(uint32_t opcode) /* NEGX */
38524 {
38525 	uint32_t srcreg = (opcode & 7);
38526 	OpcodeFamily = 16; CurrentInstrCycles = 22;
38527 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
38528 	if ((srca & 1) != 0) {
38529 		last_fault_for_exception_3 = srca;
38530 		last_op_for_exception_3 = opcode;
38531 		last_addr_for_exception_3 = m68k_getpc() + 2;
38532 		Exception(3, 0, M68000_EXC_SRC_CPU);
38533 		goto endlabel2154;
38534 	}
38535 {{	int32_t src = m68k_read_memory_32(srca);
38536 	m68k_areg (regs, srcreg) = srca;
38537 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38538 {	int flgs = ((int32_t)(src)) < 0;
38539 	int flgo = ((int32_t)(0)) < 0;
38540 	int flgn = ((int32_t)(newv)) < 0;
38541 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38542 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38543 	COPY_CARRY;
38544 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38545 	SET_NFLG (((int32_t)(newv)) < 0);
38546 m68k_incpc(2);
38547 fill_prefetch_2 ();
38548 	m68k_write_memory_32(srca,newv);
38549 }}}}}}endlabel2154: ;
38550 return 22;
38551 }
CPUFUNC(op_40a8_5)38552 unsigned long CPUFUNC(op_40a8_5)(uint32_t opcode) /* NEGX */
38553 {
38554 	uint32_t srcreg = (opcode & 7);
38555 	OpcodeFamily = 16; CurrentInstrCycles = 24;
38556 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
38557 	if ((srca & 1) != 0) {
38558 		last_fault_for_exception_3 = srca;
38559 		last_op_for_exception_3 = opcode;
38560 		last_addr_for_exception_3 = m68k_getpc() + 4;
38561 		Exception(3, 0, M68000_EXC_SRC_CPU);
38562 		goto endlabel2155;
38563 	}
38564 {{	int32_t src = m68k_read_memory_32(srca);
38565 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38566 {	int flgs = ((int32_t)(src)) < 0;
38567 	int flgo = ((int32_t)(0)) < 0;
38568 	int flgn = ((int32_t)(newv)) < 0;
38569 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38570 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38571 	COPY_CARRY;
38572 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38573 	SET_NFLG (((int32_t)(newv)) < 0);
38574 m68k_incpc(4);
38575 fill_prefetch_0 ();
38576 	m68k_write_memory_32(srca,newv);
38577 }}}}}}endlabel2155: ;
38578 return 24;
38579 }
CPUFUNC(op_40b0_5)38580 unsigned long CPUFUNC(op_40b0_5)(uint32_t opcode) /* NEGX */
38581 {
38582 	uint32_t srcreg = (opcode & 7);
38583 	OpcodeFamily = 16; CurrentInstrCycles = 26;
38584 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
38585 	BusCyclePenalty += 2;
38586 	if ((srca & 1) != 0) {
38587 		last_fault_for_exception_3 = srca;
38588 		last_op_for_exception_3 = opcode;
38589 		last_addr_for_exception_3 = m68k_getpc() + 4;
38590 		Exception(3, 0, M68000_EXC_SRC_CPU);
38591 		goto endlabel2156;
38592 	}
38593 {{	int32_t src = m68k_read_memory_32(srca);
38594 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38595 {	int flgs = ((int32_t)(src)) < 0;
38596 	int flgo = ((int32_t)(0)) < 0;
38597 	int flgn = ((int32_t)(newv)) < 0;
38598 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38599 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38600 	COPY_CARRY;
38601 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38602 	SET_NFLG (((int32_t)(newv)) < 0);
38603 m68k_incpc(4);
38604 fill_prefetch_0 ();
38605 	m68k_write_memory_32(srca,newv);
38606 }}}}}}endlabel2156: ;
38607 return 26;
38608 }
CPUFUNC(op_40b8_5)38609 unsigned long CPUFUNC(op_40b8_5)(uint32_t opcode) /* NEGX */
38610 {
38611 	OpcodeFamily = 16; CurrentInstrCycles = 24;
38612 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
38613 	if ((srca & 1) != 0) {
38614 		last_fault_for_exception_3 = srca;
38615 		last_op_for_exception_3 = opcode;
38616 		last_addr_for_exception_3 = m68k_getpc() + 4;
38617 		Exception(3, 0, M68000_EXC_SRC_CPU);
38618 		goto endlabel2157;
38619 	}
38620 {{	int32_t src = m68k_read_memory_32(srca);
38621 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38622 {	int flgs = ((int32_t)(src)) < 0;
38623 	int flgo = ((int32_t)(0)) < 0;
38624 	int flgn = ((int32_t)(newv)) < 0;
38625 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38626 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38627 	COPY_CARRY;
38628 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38629 	SET_NFLG (((int32_t)(newv)) < 0);
38630 m68k_incpc(4);
38631 fill_prefetch_0 ();
38632 	m68k_write_memory_32(srca,newv);
38633 }}}}}}endlabel2157: ;
38634 return 24;
38635 }
CPUFUNC(op_40b9_5)38636 unsigned long CPUFUNC(op_40b9_5)(uint32_t opcode) /* NEGX */
38637 {
38638 	OpcodeFamily = 16; CurrentInstrCycles = 28;
38639 {{	uint32_t srca = get_ilong_prefetch(2);
38640 	if ((srca & 1) != 0) {
38641 		last_fault_for_exception_3 = srca;
38642 		last_op_for_exception_3 = opcode;
38643 		last_addr_for_exception_3 = m68k_getpc() + 6;
38644 		Exception(3, 0, M68000_EXC_SRC_CPU);
38645 		goto endlabel2158;
38646 	}
38647 {{	int32_t src = m68k_read_memory_32(srca);
38648 {	uint32_t newv = 0 - src - (GET_XFLG ? 1 : 0);
38649 {	int flgs = ((int32_t)(src)) < 0;
38650 	int flgo = ((int32_t)(0)) < 0;
38651 	int flgn = ((int32_t)(newv)) < 0;
38652 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
38653 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
38654 	COPY_CARRY;
38655 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
38656 	SET_NFLG (((int32_t)(newv)) < 0);
38657 m68k_incpc(6);
38658 fill_prefetch_0 ();
38659 	m68k_write_memory_32(srca,newv);
38660 }}}}}}endlabel2158: ;
38661 return 28;
38662 }
CPUFUNC(op_40c0_5)38663 unsigned long CPUFUNC(op_40c0_5)(uint32_t opcode) /* MVSR2 */
38664 {
38665 	uint32_t srcreg = (opcode & 7);
38666 	OpcodeFamily = 32; CurrentInstrCycles = 6;
38667 {{	MakeSR();
38668 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((regs.sr) & 0xffff);
38669 }}m68k_incpc(2);
38670 fill_prefetch_2 ();
38671 return 6;
38672 }
CPUFUNC(op_40d0_5)38673 unsigned long CPUFUNC(op_40d0_5)(uint32_t opcode) /* MVSR2 */
38674 {
38675 	uint32_t srcreg = (opcode & 7);
38676 	OpcodeFamily = 32; CurrentInstrCycles = 12;
38677 {{	uint32_t srca = m68k_areg(regs, srcreg);
38678 	if ((srca & 1) != 0) {
38679 		last_fault_for_exception_3 = srca;
38680 		last_op_for_exception_3 = opcode;
38681 		last_addr_for_exception_3 = m68k_getpc() + 2;
38682 		Exception(3, 0, M68000_EXC_SRC_CPU);
38683 		goto endlabel2160;
38684 	}
38685 {	MakeSR();
38686 m68k_incpc(2);
38687 fill_prefetch_2 ();
38688 	m68k_write_memory_16(srca,regs.sr);
38689 }}}endlabel2160: ;
38690 return 12;
38691 }
CPUFUNC(op_40d8_5)38692 unsigned long CPUFUNC(op_40d8_5)(uint32_t opcode) /* MVSR2 */
38693 {
38694 	uint32_t srcreg = (opcode & 7);
38695 	OpcodeFamily = 32; CurrentInstrCycles = 12;
38696 {{	uint32_t srca = m68k_areg(regs, srcreg);
38697 	if ((srca & 1) != 0) {
38698 		last_fault_for_exception_3 = srca;
38699 		last_op_for_exception_3 = opcode;
38700 		last_addr_for_exception_3 = m68k_getpc() + 2;
38701 		Exception(3, 0, M68000_EXC_SRC_CPU);
38702 		goto endlabel2161;
38703 	}
38704 {	m68k_areg(regs, srcreg) += 2;
38705 	MakeSR();
38706 m68k_incpc(2);
38707 fill_prefetch_2 ();
38708 	m68k_write_memory_16(srca,regs.sr);
38709 }}}endlabel2161: ;
38710 return 12;
38711 }
CPUFUNC(op_40e0_5)38712 unsigned long CPUFUNC(op_40e0_5)(uint32_t opcode) /* MVSR2 */
38713 {
38714 	uint32_t srcreg = (opcode & 7);
38715 	OpcodeFamily = 32; CurrentInstrCycles = 14;
38716 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
38717 	if ((srca & 1) != 0) {
38718 		last_fault_for_exception_3 = srca;
38719 		last_op_for_exception_3 = opcode;
38720 		last_addr_for_exception_3 = m68k_getpc() + 2;
38721 		Exception(3, 0, M68000_EXC_SRC_CPU);
38722 		goto endlabel2162;
38723 	}
38724 {	m68k_areg (regs, srcreg) = srca;
38725 	MakeSR();
38726 m68k_incpc(2);
38727 fill_prefetch_2 ();
38728 	m68k_write_memory_16(srca,regs.sr);
38729 }}}endlabel2162: ;
38730 return 14;
38731 }
CPUFUNC(op_40e8_5)38732 unsigned long CPUFUNC(op_40e8_5)(uint32_t opcode) /* MVSR2 */
38733 {
38734 	uint32_t srcreg = (opcode & 7);
38735 	OpcodeFamily = 32; CurrentInstrCycles = 16;
38736 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
38737 	if ((srca & 1) != 0) {
38738 		last_fault_for_exception_3 = srca;
38739 		last_op_for_exception_3 = opcode;
38740 		last_addr_for_exception_3 = m68k_getpc() + 4;
38741 		Exception(3, 0, M68000_EXC_SRC_CPU);
38742 		goto endlabel2163;
38743 	}
38744 {	MakeSR();
38745 m68k_incpc(4);
38746 fill_prefetch_0 ();
38747 	m68k_write_memory_16(srca,regs.sr);
38748 }}}endlabel2163: ;
38749 return 16;
38750 }
CPUFUNC(op_40f0_5)38751 unsigned long CPUFUNC(op_40f0_5)(uint32_t opcode) /* MVSR2 */
38752 {
38753 	uint32_t srcreg = (opcode & 7);
38754 	OpcodeFamily = 32; CurrentInstrCycles = 18;
38755 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
38756 	BusCyclePenalty += 2;
38757 	if ((srca & 1) != 0) {
38758 		last_fault_for_exception_3 = srca;
38759 		last_op_for_exception_3 = opcode;
38760 		last_addr_for_exception_3 = m68k_getpc() + 4;
38761 		Exception(3, 0, M68000_EXC_SRC_CPU);
38762 		goto endlabel2164;
38763 	}
38764 {	MakeSR();
38765 m68k_incpc(4);
38766 fill_prefetch_0 ();
38767 	m68k_write_memory_16(srca,regs.sr);
38768 }}}endlabel2164: ;
38769 return 18;
38770 }
CPUFUNC(op_40f8_5)38771 unsigned long CPUFUNC(op_40f8_5)(uint32_t opcode) /* MVSR2 */
38772 {
38773 	OpcodeFamily = 32; CurrentInstrCycles = 16;
38774 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
38775 	if ((srca & 1) != 0) {
38776 		last_fault_for_exception_3 = srca;
38777 		last_op_for_exception_3 = opcode;
38778 		last_addr_for_exception_3 = m68k_getpc() + 4;
38779 		Exception(3, 0, M68000_EXC_SRC_CPU);
38780 		goto endlabel2165;
38781 	}
38782 {	MakeSR();
38783 m68k_incpc(4);
38784 fill_prefetch_0 ();
38785 	m68k_write_memory_16(srca,regs.sr);
38786 }}}endlabel2165: ;
38787 return 16;
38788 }
CPUFUNC(op_40f9_5)38789 unsigned long CPUFUNC(op_40f9_5)(uint32_t opcode) /* MVSR2 */
38790 {
38791 	OpcodeFamily = 32; CurrentInstrCycles = 20;
38792 {{	uint32_t srca = get_ilong_prefetch(2);
38793 	if ((srca & 1) != 0) {
38794 		last_fault_for_exception_3 = srca;
38795 		last_op_for_exception_3 = opcode;
38796 		last_addr_for_exception_3 = m68k_getpc() + 6;
38797 		Exception(3, 0, M68000_EXC_SRC_CPU);
38798 		goto endlabel2166;
38799 	}
38800 {	MakeSR();
38801 m68k_incpc(6);
38802 fill_prefetch_0 ();
38803 	m68k_write_memory_16(srca,regs.sr);
38804 }}}endlabel2166: ;
38805 return 20;
38806 }
CPUFUNC(op_4180_5)38807 unsigned long CPUFUNC(op_4180_5)(uint32_t opcode) /* CHK */
38808 {
38809 	uint32_t srcreg = (opcode & 7);
38810 	uint32_t dstreg = (opcode >> 9) & 7;
38811 	OpcodeFamily = 80; CurrentInstrCycles = 10;
38812 {	uint32_t oldpc = m68k_getpc();
38813 {	int16_t src = m68k_dreg(regs, srcreg);
38814 {	int16_t dst = m68k_dreg(regs, dstreg);
38815 m68k_incpc(2);
38816 fill_prefetch_2 ();
38817 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2167; }
38818 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2167; }
38819 }}}endlabel2167: ;
38820 return 10;
38821 }
CPUFUNC(op_4190_5)38822 unsigned long CPUFUNC(op_4190_5)(uint32_t opcode) /* CHK */
38823 {
38824 	uint32_t srcreg = (opcode & 7);
38825 	uint32_t dstreg = (opcode >> 9) & 7;
38826 	OpcodeFamily = 80; CurrentInstrCycles = 14;
38827 {	uint32_t oldpc = m68k_getpc();
38828 {	uint32_t srca = m68k_areg(regs, srcreg);
38829 	if ((srca & 1) != 0) {
38830 		last_fault_for_exception_3 = srca;
38831 		last_op_for_exception_3 = opcode;
38832 		last_addr_for_exception_3 = m68k_getpc() + 2;
38833 		Exception(3, 0, M68000_EXC_SRC_CPU);
38834 		goto endlabel2168;
38835 	}
38836 {{	int16_t src = m68k_read_memory_16(srca);
38837 {	int16_t dst = m68k_dreg(regs, dstreg);
38838 m68k_incpc(2);
38839 fill_prefetch_2 ();
38840 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2168; }
38841 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2168; }
38842 }}}}}endlabel2168: ;
38843 return 14;
38844 }
CPUFUNC(op_4198_5)38845 unsigned long CPUFUNC(op_4198_5)(uint32_t opcode) /* CHK */
38846 {
38847 	uint32_t srcreg = (opcode & 7);
38848 	uint32_t dstreg = (opcode >> 9) & 7;
38849 	OpcodeFamily = 80; CurrentInstrCycles = 14;
38850 {	uint32_t oldpc = m68k_getpc();
38851 {	uint32_t srca = m68k_areg(regs, srcreg);
38852 	if ((srca & 1) != 0) {
38853 		last_fault_for_exception_3 = srca;
38854 		last_op_for_exception_3 = opcode;
38855 		last_addr_for_exception_3 = m68k_getpc() + 2;
38856 		Exception(3, 0, M68000_EXC_SRC_CPU);
38857 		goto endlabel2169;
38858 	}
38859 {{	int16_t src = m68k_read_memory_16(srca);
38860 	m68k_areg(regs, srcreg) += 2;
38861 {	int16_t dst = m68k_dreg(regs, dstreg);
38862 m68k_incpc(2);
38863 fill_prefetch_2 ();
38864 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2169; }
38865 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2169; }
38866 }}}}}endlabel2169: ;
38867 return 14;
38868 }
CPUFUNC(op_41a0_5)38869 unsigned long CPUFUNC(op_41a0_5)(uint32_t opcode) /* CHK */
38870 {
38871 	uint32_t srcreg = (opcode & 7);
38872 	uint32_t dstreg = (opcode >> 9) & 7;
38873 	OpcodeFamily = 80; CurrentInstrCycles = 16;
38874 {	uint32_t oldpc = m68k_getpc();
38875 {	uint32_t srca = m68k_areg(regs, srcreg) - 2;
38876 	if ((srca & 1) != 0) {
38877 		last_fault_for_exception_3 = srca;
38878 		last_op_for_exception_3 = opcode;
38879 		last_addr_for_exception_3 = m68k_getpc() + 2;
38880 		Exception(3, 0, M68000_EXC_SRC_CPU);
38881 		goto endlabel2170;
38882 	}
38883 {{	int16_t src = m68k_read_memory_16(srca);
38884 	m68k_areg (regs, srcreg) = srca;
38885 {	int16_t dst = m68k_dreg(regs, dstreg);
38886 m68k_incpc(2);
38887 fill_prefetch_2 ();
38888 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2170; }
38889 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2170; }
38890 }}}}}endlabel2170: ;
38891 return 16;
38892 }
CPUFUNC(op_41a8_5)38893 unsigned long CPUFUNC(op_41a8_5)(uint32_t opcode) /* CHK */
38894 {
38895 	uint32_t srcreg = (opcode & 7);
38896 	uint32_t dstreg = (opcode >> 9) & 7;
38897 	OpcodeFamily = 80; CurrentInstrCycles = 18;
38898 {	uint32_t oldpc = m68k_getpc();
38899 {	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
38900 	if ((srca & 1) != 0) {
38901 		last_fault_for_exception_3 = srca;
38902 		last_op_for_exception_3 = opcode;
38903 		last_addr_for_exception_3 = m68k_getpc() + 4;
38904 		Exception(3, 0, M68000_EXC_SRC_CPU);
38905 		goto endlabel2171;
38906 	}
38907 {{	int16_t src = m68k_read_memory_16(srca);
38908 {	int16_t dst = m68k_dreg(regs, dstreg);
38909 m68k_incpc(4);
38910 fill_prefetch_0 ();
38911 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2171; }
38912 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2171; }
38913 }}}}}endlabel2171: ;
38914 return 18;
38915 }
CPUFUNC(op_41b0_5)38916 unsigned long CPUFUNC(op_41b0_5)(uint32_t opcode) /* CHK */
38917 {
38918 	uint32_t srcreg = (opcode & 7);
38919 	uint32_t dstreg = (opcode >> 9) & 7;
38920 	OpcodeFamily = 80; CurrentInstrCycles = 20;
38921 {	uint32_t oldpc = m68k_getpc();
38922 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
38923 	BusCyclePenalty += 2;
38924 	if ((srca & 1) != 0) {
38925 		last_fault_for_exception_3 = srca;
38926 		last_op_for_exception_3 = opcode;
38927 		last_addr_for_exception_3 = m68k_getpc() + 4;
38928 		Exception(3, 0, M68000_EXC_SRC_CPU);
38929 		goto endlabel2172;
38930 	}
38931 {{	int16_t src = m68k_read_memory_16(srca);
38932 {	int16_t dst = m68k_dreg(regs, dstreg);
38933 m68k_incpc(4);
38934 fill_prefetch_0 ();
38935 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2172; }
38936 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2172; }
38937 }}}}}endlabel2172: ;
38938 return 20;
38939 }
CPUFUNC(op_41b8_5)38940 unsigned long CPUFUNC(op_41b8_5)(uint32_t opcode) /* CHK */
38941 {
38942 	uint32_t dstreg = (opcode >> 9) & 7;
38943 	OpcodeFamily = 80; CurrentInstrCycles = 18;
38944 {	uint32_t oldpc = m68k_getpc();
38945 {	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
38946 	if ((srca & 1) != 0) {
38947 		last_fault_for_exception_3 = srca;
38948 		last_op_for_exception_3 = opcode;
38949 		last_addr_for_exception_3 = m68k_getpc() + 4;
38950 		Exception(3, 0, M68000_EXC_SRC_CPU);
38951 		goto endlabel2173;
38952 	}
38953 {{	int16_t src = m68k_read_memory_16(srca);
38954 {	int16_t dst = m68k_dreg(regs, dstreg);
38955 m68k_incpc(4);
38956 fill_prefetch_0 ();
38957 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2173; }
38958 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2173; }
38959 }}}}}endlabel2173: ;
38960 return 18;
38961 }
CPUFUNC(op_41b9_5)38962 unsigned long CPUFUNC(op_41b9_5)(uint32_t opcode) /* CHK */
38963 {
38964 	uint32_t dstreg = (opcode >> 9) & 7;
38965 	OpcodeFamily = 80; CurrentInstrCycles = 22;
38966 {	uint32_t oldpc = m68k_getpc();
38967 {	uint32_t srca = get_ilong_prefetch(2);
38968 	if ((srca & 1) != 0) {
38969 		last_fault_for_exception_3 = srca;
38970 		last_op_for_exception_3 = opcode;
38971 		last_addr_for_exception_3 = m68k_getpc() + 6;
38972 		Exception(3, 0, M68000_EXC_SRC_CPU);
38973 		goto endlabel2174;
38974 	}
38975 {{	int16_t src = m68k_read_memory_16(srca);
38976 {	int16_t dst = m68k_dreg(regs, dstreg);
38977 m68k_incpc(6);
38978 fill_prefetch_0 ();
38979 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2174; }
38980 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2174; }
38981 }}}}}endlabel2174: ;
38982 return 22;
38983 }
CPUFUNC(op_41ba_5)38984 unsigned long CPUFUNC(op_41ba_5)(uint32_t opcode) /* CHK */
38985 {
38986 	uint32_t dstreg = (opcode >> 9) & 7;
38987 	OpcodeFamily = 80; CurrentInstrCycles = 18;
38988 {	uint32_t oldpc = m68k_getpc();
38989 {	uint32_t srca = m68k_getpc () + 2;
38990 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
38991 	if ((srca & 1) != 0) {
38992 		last_fault_for_exception_3 = srca;
38993 		last_op_for_exception_3 = opcode;
38994 		last_addr_for_exception_3 = m68k_getpc() + 4;
38995 		Exception(3, 0, M68000_EXC_SRC_CPU);
38996 		goto endlabel2175;
38997 	}
38998 {{	int16_t src = m68k_read_memory_16(srca);
38999 {	int16_t dst = m68k_dreg(regs, dstreg);
39000 m68k_incpc(4);
39001 fill_prefetch_0 ();
39002 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2175; }
39003 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2175; }
39004 }}}}}endlabel2175: ;
39005 return 18;
39006 }
CPUFUNC(op_41bb_5)39007 unsigned long CPUFUNC(op_41bb_5)(uint32_t opcode) /* CHK */
39008 {
39009 	uint32_t dstreg = (opcode >> 9) & 7;
39010 	OpcodeFamily = 80; CurrentInstrCycles = 20;
39011 {	uint32_t oldpc = m68k_getpc();
39012 {	uint32_t tmppc = m68k_getpc() + 2;
39013 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
39014 	BusCyclePenalty += 2;
39015 	if ((srca & 1) != 0) {
39016 		last_fault_for_exception_3 = srca;
39017 		last_op_for_exception_3 = opcode;
39018 		last_addr_for_exception_3 = m68k_getpc() + 4;
39019 		Exception(3, 0, M68000_EXC_SRC_CPU);
39020 		goto endlabel2176;
39021 	}
39022 {{	int16_t src = m68k_read_memory_16(srca);
39023 {	int16_t dst = m68k_dreg(regs, dstreg);
39024 m68k_incpc(4);
39025 fill_prefetch_0 ();
39026 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2176; }
39027 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2176; }
39028 }}}}}endlabel2176: ;
39029 return 20;
39030 }
CPUFUNC(op_41bc_5)39031 unsigned long CPUFUNC(op_41bc_5)(uint32_t opcode) /* CHK */
39032 {
39033 	uint32_t dstreg = (opcode >> 9) & 7;
39034 	OpcodeFamily = 80; CurrentInstrCycles = 14;
39035 {	uint32_t oldpc = m68k_getpc();
39036 {	int16_t src = get_iword_prefetch(2);
39037 {	int16_t dst = m68k_dreg(regs, dstreg);
39038 m68k_incpc(4);
39039 fill_prefetch_0 ();
39040 	if ((int32_t)dst < 0) { SET_NFLG (1); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2177; }
39041 	else if (dst > src) { SET_NFLG (0); Exception(6,oldpc,M68000_EXC_SRC_CPU); goto endlabel2177; }
39042 }}}endlabel2177: ;
39043 return 14;
39044 }
CPUFUNC(op_41d0_5)39045 unsigned long CPUFUNC(op_41d0_5)(uint32_t opcode) /* LEA */
39046 {
39047 	uint32_t srcreg = (opcode & 7);
39048 	uint32_t dstreg = (opcode >> 9) & 7;
39049 	OpcodeFamily = 56; CurrentInstrCycles = 4;
39050 {{	uint32_t srca = m68k_areg(regs, srcreg);
39051 {	m68k_areg(regs, dstreg) = (srca);
39052 }}}m68k_incpc(2);
39053 fill_prefetch_2 ();
39054 return 4;
39055 }
CPUFUNC(op_41e8_5)39056 unsigned long CPUFUNC(op_41e8_5)(uint32_t opcode) /* LEA */
39057 {
39058 	uint32_t srcreg = (opcode & 7);
39059 	uint32_t dstreg = (opcode >> 9) & 7;
39060 	OpcodeFamily = 56; CurrentInstrCycles = 8;
39061 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
39062 {	m68k_areg(regs, dstreg) = (srca);
39063 }}}m68k_incpc(4);
39064 fill_prefetch_0 ();
39065 return 8;
39066 }
CPUFUNC(op_41f0_5)39067 unsigned long CPUFUNC(op_41f0_5)(uint32_t opcode) /* LEA */
39068 {
39069 	uint32_t srcreg = (opcode & 7);
39070 	uint32_t dstreg = (opcode >> 9) & 7;
39071 	OpcodeFamily = 56; CurrentInstrCycles = 14;
39072 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
39073 	BusCyclePenalty += 2;
39074 {	m68k_areg(regs, dstreg) = (srca);
39075 }}}m68k_incpc(4);
39076 fill_prefetch_0 ();
39077 return 14;
39078 }
CPUFUNC(op_41f8_5)39079 unsigned long CPUFUNC(op_41f8_5)(uint32_t opcode) /* LEA */
39080 {
39081 	uint32_t dstreg = (opcode >> 9) & 7;
39082 	OpcodeFamily = 56; CurrentInstrCycles = 8;
39083 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
39084 {	m68k_areg(regs, dstreg) = (srca);
39085 }}}m68k_incpc(4);
39086 fill_prefetch_0 ();
39087 return 8;
39088 }
CPUFUNC(op_41f9_5)39089 unsigned long CPUFUNC(op_41f9_5)(uint32_t opcode) /* LEA */
39090 {
39091 	uint32_t dstreg = (opcode >> 9) & 7;
39092 	OpcodeFamily = 56; CurrentInstrCycles = 12;
39093 {{	uint32_t srca = get_ilong_prefetch(2);
39094 {	m68k_areg(regs, dstreg) = (srca);
39095 }}}m68k_incpc(6);
39096 fill_prefetch_0 ();
39097 return 12;
39098 }
CPUFUNC(op_41fa_5)39099 unsigned long CPUFUNC(op_41fa_5)(uint32_t opcode) /* LEA */
39100 {
39101 	uint32_t dstreg = (opcode >> 9) & 7;
39102 	OpcodeFamily = 56; CurrentInstrCycles = 8;
39103 {{	uint32_t srca = m68k_getpc () + 2;
39104 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
39105 {	m68k_areg(regs, dstreg) = (srca);
39106 }}}m68k_incpc(4);
39107 fill_prefetch_0 ();
39108 return 8;
39109 }
CPUFUNC(op_41fb_5)39110 unsigned long CPUFUNC(op_41fb_5)(uint32_t opcode) /* LEA */
39111 {
39112 	uint32_t dstreg = (opcode >> 9) & 7;
39113 	OpcodeFamily = 56; CurrentInstrCycles = 14;
39114 {{	uint32_t tmppc = m68k_getpc() + 2;
39115 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
39116 	BusCyclePenalty += 2;
39117 {	m68k_areg(regs, dstreg) = (srca);
39118 }}}m68k_incpc(4);
39119 fill_prefetch_0 ();
39120 return 14;
39121 }
CPUFUNC(op_4200_5)39122 unsigned long CPUFUNC(op_4200_5)(uint32_t opcode) /* CLR */
39123 {
39124 	uint32_t srcreg = (opcode & 7);
39125 	OpcodeFamily = 18; CurrentInstrCycles = 4;
39126 {{	CLEAR_CZNV;
39127 	SET_ZFLG (((int8_t)(0)) == 0);
39128 	SET_NFLG (((int8_t)(0)) < 0);
39129 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((0) & 0xff);
39130 }}m68k_incpc(2);
39131 fill_prefetch_2 ();
39132 return 4;
39133 }
CPUFUNC(op_4210_5)39134 unsigned long CPUFUNC(op_4210_5)(uint32_t opcode) /* CLR */
39135 {
39136 	uint32_t srcreg = (opcode & 7);
39137 	OpcodeFamily = 18; CurrentInstrCycles = 12;
39138 {{	uint32_t srca = m68k_areg(regs, srcreg);
39139 	int8_t src = m68k_read_memory_8(srca);
39140 	CLEAR_CZNV;
39141 	SET_ZFLG (((int8_t)(0)) == 0);
39142 	SET_NFLG (((int8_t)(0)) < 0);
39143 m68k_incpc(2);
39144 fill_prefetch_2 ();
39145 	m68k_write_memory_8(srca,0);
39146 }}return 12;
39147 }
CPUFUNC(op_4218_5)39148 unsigned long CPUFUNC(op_4218_5)(uint32_t opcode) /* CLR */
39149 {
39150 	uint32_t srcreg = (opcode & 7);
39151 	OpcodeFamily = 18; CurrentInstrCycles = 12;
39152 {{	int8_t src; uint32_t srca = m68k_areg(regs, srcreg);
39153 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
39154 	src = m68k_read_memory_8(srca);
39155 	CLEAR_CZNV;
39156 	SET_ZFLG (((int8_t)(0)) == 0);
39157 	SET_NFLG (((int8_t)(0)) < 0);
39158 m68k_incpc(2);
39159 fill_prefetch_2 ();
39160 	m68k_write_memory_8(srca,0);
39161 }}return 12;
39162 }
CPUFUNC(op_4220_5)39163 unsigned long CPUFUNC(op_4220_5)(uint32_t opcode) /* CLR */
39164 {
39165 	uint32_t srcreg = (opcode & 7);
39166 	OpcodeFamily = 18; CurrentInstrCycles = 14;
39167 {{	int8_t src; uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
39168 	m68k_areg (regs, srcreg) = srca;
39169 	src = m68k_read_memory_8(srca);
39170 	CLEAR_CZNV;
39171 	SET_ZFLG (((int8_t)(0)) == 0);
39172 	SET_NFLG (((int8_t)(0)) < 0);
39173 m68k_incpc(2);
39174 fill_prefetch_2 ();
39175 	m68k_write_memory_8(srca,0);
39176 }}return 14;
39177 }
CPUFUNC(op_4228_5)39178 unsigned long CPUFUNC(op_4228_5)(uint32_t opcode) /* CLR */
39179 {
39180 	uint32_t srcreg = (opcode & 7);
39181 	OpcodeFamily = 18; CurrentInstrCycles = 16;
39182 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
39183 	int8_t src = m68k_read_memory_8(srca);
39184 	CLEAR_CZNV;
39185 	SET_ZFLG (((int8_t)(0)) == 0);
39186 	SET_NFLG (((int8_t)(0)) < 0);
39187 m68k_incpc(4);
39188 fill_prefetch_0 ();
39189 	m68k_write_memory_8(srca,0);
39190 }}return 16;
39191 }
CPUFUNC(op_4230_5)39192 unsigned long CPUFUNC(op_4230_5)(uint32_t opcode) /* CLR */
39193 {
39194 	uint32_t srcreg = (opcode & 7);
39195 	OpcodeFamily = 18; CurrentInstrCycles = 18;
39196 {{	int8_t src; uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
39197 	BusCyclePenalty += 2;
39198 	src = m68k_read_memory_8(srca);
39199 	CLEAR_CZNV;
39200 	SET_ZFLG (((int8_t)(0)) == 0);
39201 	SET_NFLG (((int8_t)(0)) < 0);
39202 m68k_incpc(4);
39203 fill_prefetch_0 ();
39204 	m68k_write_memory_8(srca,0);
39205 }}return 18;
39206 }
CPUFUNC(op_4238_5)39207 unsigned long CPUFUNC(op_4238_5)(uint32_t opcode) /* CLR */
39208 {
39209 	OpcodeFamily = 18; CurrentInstrCycles = 16;
39210 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
39211 	int8_t src = m68k_read_memory_8(srca);
39212 	CLEAR_CZNV;
39213 	SET_ZFLG (((int8_t)(0)) == 0);
39214 	SET_NFLG (((int8_t)(0)) < 0);
39215 m68k_incpc(4);
39216 fill_prefetch_0 ();
39217 	m68k_write_memory_8(srca,0);
39218 }}return 16;
39219 }
CPUFUNC(op_4239_5)39220 unsigned long CPUFUNC(op_4239_5)(uint32_t opcode) /* CLR */
39221 {
39222 	OpcodeFamily = 18; CurrentInstrCycles = 20;
39223 {{	uint32_t srca = get_ilong_prefetch(2);
39224 	int8_t src = m68k_read_memory_8(srca);
39225 	CLEAR_CZNV;
39226 	SET_ZFLG (((int8_t)(0)) == 0);
39227 	SET_NFLG (((int8_t)(0)) < 0);
39228 m68k_incpc(6);
39229 fill_prefetch_0 ();
39230 	m68k_write_memory_8(srca,0);
39231 }}return 20;
39232 }
CPUFUNC(op_4240_5)39233 unsigned long CPUFUNC(op_4240_5)(uint32_t opcode) /* CLR */
39234 {
39235 	uint32_t srcreg = (opcode & 7);
39236 	OpcodeFamily = 18; CurrentInstrCycles = 4;
39237 {{	CLEAR_CZNV;
39238 	SET_ZFLG (((int16_t)(0)) == 0);
39239 	SET_NFLG (((int16_t)(0)) < 0);
39240 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((0) & 0xffff);
39241 }}m68k_incpc(2);
39242 fill_prefetch_2 ();
39243 return 4;
39244 }
CPUFUNC(op_4250_5)39245 unsigned long CPUFUNC(op_4250_5)(uint32_t opcode) /* CLR */
39246 {
39247 	uint32_t srcreg = (opcode & 7);
39248 	OpcodeFamily = 18; CurrentInstrCycles = 12;
39249 {{	uint32_t srca = m68k_areg(regs, srcreg);
39250 	if ((srca & 1) != 0) {
39251 		last_fault_for_exception_3 = srca;
39252 		last_op_for_exception_3 = opcode;
39253 		last_addr_for_exception_3 = m68k_getpc() + 2;
39254 		Exception(3, 0, M68000_EXC_SRC_CPU);
39255 		goto endlabel2194;
39256 	}
39257 {	int16_t src = m68k_read_memory_16(srca);
39258 	CLEAR_CZNV;
39259 	SET_ZFLG (((int16_t)(0)) == 0);
39260 	SET_NFLG (((int16_t)(0)) < 0);
39261 m68k_incpc(2);
39262 fill_prefetch_2 ();
39263 	m68k_write_memory_16(srca,0);
39264 }}}endlabel2194: ;
39265 return 12;
39266 }
CPUFUNC(op_4258_5)39267 unsigned long CPUFUNC(op_4258_5)(uint32_t opcode) /* CLR */
39268 {
39269 	uint32_t srcreg = (opcode & 7);
39270 	OpcodeFamily = 18; CurrentInstrCycles = 12;
39271 {{	uint32_t srca = m68k_areg(regs, srcreg);
39272 	if ((srca & 1) != 0) {
39273 		last_fault_for_exception_3 = srca;
39274 		last_op_for_exception_3 = opcode;
39275 		last_addr_for_exception_3 = m68k_getpc() + 2;
39276 		Exception(3, 0, M68000_EXC_SRC_CPU);
39277 		goto endlabel2195;
39278 	}
39279 {	int16_t src; m68k_areg(regs, srcreg) += 2;
39280 	src = m68k_read_memory_16(srca);
39281 	CLEAR_CZNV;
39282 	SET_ZFLG (((int16_t)(0)) == 0);
39283 	SET_NFLG (((int16_t)(0)) < 0);
39284 m68k_incpc(2);
39285 fill_prefetch_2 ();
39286 	m68k_write_memory_16(srca,0);
39287 }}}endlabel2195: ;
39288 return 12;
39289 }
CPUFUNC(op_4260_5)39290 unsigned long CPUFUNC(op_4260_5)(uint32_t opcode) /* CLR */
39291 {
39292 	uint32_t srcreg = (opcode & 7);
39293 	OpcodeFamily = 18; CurrentInstrCycles = 14;
39294 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
39295 	if ((srca & 1) != 0) {
39296 		last_fault_for_exception_3 = srca;
39297 		last_op_for_exception_3 = opcode;
39298 		last_addr_for_exception_3 = m68k_getpc() + 2;
39299 		Exception(3, 0, M68000_EXC_SRC_CPU);
39300 		goto endlabel2196;
39301 	}
39302 {	int16_t src; m68k_areg (regs, srcreg) = srca;
39303 	src = m68k_read_memory_16(srca);
39304 	CLEAR_CZNV;
39305 	SET_ZFLG (((int16_t)(0)) == 0);
39306 	SET_NFLG (((int16_t)(0)) < 0);
39307 m68k_incpc(2);
39308 fill_prefetch_2 ();
39309 	m68k_write_memory_16(srca,0);
39310 }}}endlabel2196: ;
39311 return 14;
39312 }
CPUFUNC(op_4268_5)39313 unsigned long CPUFUNC(op_4268_5)(uint32_t opcode) /* CLR */
39314 {
39315 	uint32_t srcreg = (opcode & 7);
39316 	OpcodeFamily = 18; CurrentInstrCycles = 16;
39317 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
39318 	if ((srca & 1) != 0) {
39319 		last_fault_for_exception_3 = srca;
39320 		last_op_for_exception_3 = opcode;
39321 		last_addr_for_exception_3 = m68k_getpc() + 4;
39322 		Exception(3, 0, M68000_EXC_SRC_CPU);
39323 		goto endlabel2197;
39324 	}
39325 {	int16_t src = m68k_read_memory_16(srca);
39326 	CLEAR_CZNV;
39327 	SET_ZFLG (((int16_t)(0)) == 0);
39328 	SET_NFLG (((int16_t)(0)) < 0);
39329 m68k_incpc(4);
39330 fill_prefetch_0 ();
39331 	m68k_write_memory_16(srca,0);
39332 }}}endlabel2197: ;
39333 return 16;
39334 }
39335 #endif
39336 
39337 #ifdef PART_4
CPUFUNC(op_4270_5)39338 unsigned long CPUFUNC(op_4270_5)(uint32_t opcode) /* CLR */
39339 {
39340 	uint32_t srcreg = (opcode & 7);
39341 	OpcodeFamily = 18; CurrentInstrCycles = 18;
39342 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
39343 	BusCyclePenalty += 2;
39344 	if ((srca & 1) != 0) {
39345 		last_fault_for_exception_3 = srca;
39346 		last_op_for_exception_3 = opcode;
39347 		last_addr_for_exception_3 = m68k_getpc() + 4;
39348 		Exception(3, 0, M68000_EXC_SRC_CPU);
39349 		goto endlabel2198;
39350 	}
39351 {	int16_t src = m68k_read_memory_16(srca);
39352 	CLEAR_CZNV;
39353 	SET_ZFLG (((int16_t)(0)) == 0);
39354 	SET_NFLG (((int16_t)(0)) < 0);
39355 m68k_incpc(4);
39356 fill_prefetch_0 ();
39357 	m68k_write_memory_16(srca,0);
39358 }}}endlabel2198: ;
39359 return 18;
39360 }
CPUFUNC(op_4278_5)39361 unsigned long CPUFUNC(op_4278_5)(uint32_t opcode) /* CLR */
39362 {
39363 	OpcodeFamily = 18; CurrentInstrCycles = 16;
39364 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
39365 	if ((srca & 1) != 0) {
39366 		last_fault_for_exception_3 = srca;
39367 		last_op_for_exception_3 = opcode;
39368 		last_addr_for_exception_3 = m68k_getpc() + 4;
39369 		Exception(3, 0, M68000_EXC_SRC_CPU);
39370 		goto endlabel2199;
39371 	}
39372 {	int16_t src = m68k_read_memory_16(srca);
39373 	CLEAR_CZNV;
39374 	SET_ZFLG (((int16_t)(0)) == 0);
39375 	SET_NFLG (((int16_t)(0)) < 0);
39376 m68k_incpc(4);
39377 fill_prefetch_0 ();
39378 	m68k_write_memory_16(srca,0);
39379 }}}endlabel2199: ;
39380 return 16;
39381 }
CPUFUNC(op_4279_5)39382 unsigned long CPUFUNC(op_4279_5)(uint32_t opcode) /* CLR */
39383 {
39384 	OpcodeFamily = 18; CurrentInstrCycles = 20;
39385 {{	uint32_t srca = get_ilong_prefetch(2);
39386 	if ((srca & 1) != 0) {
39387 		last_fault_for_exception_3 = srca;
39388 		last_op_for_exception_3 = opcode;
39389 		last_addr_for_exception_3 = m68k_getpc() + 6;
39390 		Exception(3, 0, M68000_EXC_SRC_CPU);
39391 		goto endlabel2200;
39392 	}
39393 {	int16_t src = m68k_read_memory_16(srca);
39394 	CLEAR_CZNV;
39395 	SET_ZFLG (((int16_t)(0)) == 0);
39396 	SET_NFLG (((int16_t)(0)) < 0);
39397 m68k_incpc(6);
39398 fill_prefetch_0 ();
39399 	m68k_write_memory_16(srca,0);
39400 }}}endlabel2200: ;
39401 return 20;
39402 }
CPUFUNC(op_4280_5)39403 unsigned long CPUFUNC(op_4280_5)(uint32_t opcode) /* CLR */
39404 {
39405 	uint32_t srcreg = (opcode & 7);
39406 	OpcodeFamily = 18; CurrentInstrCycles = 6;
39407 {{	CLEAR_CZNV;
39408 	SET_ZFLG (((int32_t)(0)) == 0);
39409 	SET_NFLG (((int32_t)(0)) < 0);
39410 	m68k_dreg(regs, srcreg) = (0);
39411 }}m68k_incpc(2);
39412 fill_prefetch_2 ();
39413 return 6;
39414 }
CPUFUNC(op_4290_5)39415 unsigned long CPUFUNC(op_4290_5)(uint32_t opcode) /* CLR */
39416 {
39417 	uint32_t srcreg = (opcode & 7);
39418 	OpcodeFamily = 18; CurrentInstrCycles = 20;
39419 {{	uint32_t srca = m68k_areg(regs, srcreg);
39420 	if ((srca & 1) != 0) {
39421 		last_fault_for_exception_3 = srca;
39422 		last_op_for_exception_3 = opcode;
39423 		last_addr_for_exception_3 = m68k_getpc() + 2;
39424 		Exception(3, 0, M68000_EXC_SRC_CPU);
39425 		goto endlabel2202;
39426 	}
39427 {	int32_t src = m68k_read_memory_32(srca);
39428 	CLEAR_CZNV;
39429 	SET_ZFLG (((int32_t)(0)) == 0);
39430 	SET_NFLG (((int32_t)(0)) < 0);
39431 m68k_incpc(2);
39432 fill_prefetch_2 ();
39433 	m68k_write_memory_32(srca,0);
39434 }}}endlabel2202: ;
39435 return 20;
39436 }
CPUFUNC(op_4298_5)39437 unsigned long CPUFUNC(op_4298_5)(uint32_t opcode) /* CLR */
39438 {
39439 	uint32_t srcreg = (opcode & 7);
39440 	OpcodeFamily = 18; CurrentInstrCycles = 20;
39441 {{	uint32_t srca = m68k_areg(regs, srcreg);
39442 	if ((srca & 1) != 0) {
39443 		last_fault_for_exception_3 = srca;
39444 		last_op_for_exception_3 = opcode;
39445 		last_addr_for_exception_3 = m68k_getpc() + 2;
39446 		Exception(3, 0, M68000_EXC_SRC_CPU);
39447 		goto endlabel2203;
39448 	}
39449 {	int32_t src; m68k_areg(regs, srcreg) += 4;
39450 	src = m68k_read_memory_32(srca);
39451 	CLEAR_CZNV;
39452 	SET_ZFLG (((int32_t)(0)) == 0);
39453 	SET_NFLG (((int32_t)(0)) < 0);
39454 m68k_incpc(2);
39455 fill_prefetch_2 ();
39456 	m68k_write_memory_32(srca,0);
39457 }}}endlabel2203: ;
39458 return 20;
39459 }
CPUFUNC(op_42a0_5)39460 unsigned long CPUFUNC(op_42a0_5)(uint32_t opcode) /* CLR */
39461 {
39462 	uint32_t srcreg = (opcode & 7);
39463 	OpcodeFamily = 18; CurrentInstrCycles = 22;
39464 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
39465 	if ((srca & 1) != 0) {
39466 		last_fault_for_exception_3 = srca;
39467 		last_op_for_exception_3 = opcode;
39468 		last_addr_for_exception_3 = m68k_getpc() + 2;
39469 		Exception(3, 0, M68000_EXC_SRC_CPU);
39470 		goto endlabel2204;
39471 	}
39472 {	int32_t src; m68k_areg (regs, srcreg) = srca;
39473 	src = m68k_read_memory_32(srca);
39474 	CLEAR_CZNV;
39475 	SET_ZFLG (((int32_t)(0)) == 0);
39476 	SET_NFLG (((int32_t)(0)) < 0);
39477 m68k_incpc(2);
39478 fill_prefetch_2 ();
39479 	m68k_write_memory_32(srca,0);
39480 }}}endlabel2204: ;
39481 return 22;
39482 }
CPUFUNC(op_42a8_5)39483 unsigned long CPUFUNC(op_42a8_5)(uint32_t opcode) /* CLR */
39484 {
39485 	uint32_t srcreg = (opcode & 7);
39486 	OpcodeFamily = 18; CurrentInstrCycles = 24;
39487 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
39488 	if ((srca & 1) != 0) {
39489 		last_fault_for_exception_3 = srca;
39490 		last_op_for_exception_3 = opcode;
39491 		last_addr_for_exception_3 = m68k_getpc() + 4;
39492 		Exception(3, 0, M68000_EXC_SRC_CPU);
39493 		goto endlabel2205;
39494 	}
39495 {	int32_t src = m68k_read_memory_32(srca);
39496 	CLEAR_CZNV;
39497 	SET_ZFLG (((int32_t)(0)) == 0);
39498 	SET_NFLG (((int32_t)(0)) < 0);
39499 m68k_incpc(4);
39500 fill_prefetch_0 ();
39501 	m68k_write_memory_32(srca,0);
39502 }}}endlabel2205: ;
39503 return 24;
39504 }
CPUFUNC(op_42b0_5)39505 unsigned long CPUFUNC(op_42b0_5)(uint32_t opcode) /* CLR */
39506 {
39507 	uint32_t srcreg = (opcode & 7);
39508 	OpcodeFamily = 18; CurrentInstrCycles = 26;
39509 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
39510 	BusCyclePenalty += 2;
39511 	if ((srca & 1) != 0) {
39512 		last_fault_for_exception_3 = srca;
39513 		last_op_for_exception_3 = opcode;
39514 		last_addr_for_exception_3 = m68k_getpc() + 4;
39515 		Exception(3, 0, M68000_EXC_SRC_CPU);
39516 		goto endlabel2206;
39517 	}
39518 {	int32_t src = m68k_read_memory_32(srca);
39519 	CLEAR_CZNV;
39520 	SET_ZFLG (((int32_t)(0)) == 0);
39521 	SET_NFLG (((int32_t)(0)) < 0);
39522 m68k_incpc(4);
39523 fill_prefetch_0 ();
39524 	m68k_write_memory_32(srca,0);
39525 }}}endlabel2206: ;
39526 return 26;
39527 }
CPUFUNC(op_42b8_5)39528 unsigned long CPUFUNC(op_42b8_5)(uint32_t opcode) /* CLR */
39529 {
39530 	OpcodeFamily = 18; CurrentInstrCycles = 24;
39531 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
39532 	if ((srca & 1) != 0) {
39533 		last_fault_for_exception_3 = srca;
39534 		last_op_for_exception_3 = opcode;
39535 		last_addr_for_exception_3 = m68k_getpc() + 4;
39536 		Exception(3, 0, M68000_EXC_SRC_CPU);
39537 		goto endlabel2207;
39538 	}
39539 {	int32_t src = m68k_read_memory_32(srca);
39540 	CLEAR_CZNV;
39541 	SET_ZFLG (((int32_t)(0)) == 0);
39542 	SET_NFLG (((int32_t)(0)) < 0);
39543 m68k_incpc(4);
39544 fill_prefetch_0 ();
39545 	m68k_write_memory_32(srca,0);
39546 }}}endlabel2207: ;
39547 return 24;
39548 }
CPUFUNC(op_42b9_5)39549 unsigned long CPUFUNC(op_42b9_5)(uint32_t opcode) /* CLR */
39550 {
39551 	OpcodeFamily = 18; CurrentInstrCycles = 28;
39552 {{	uint32_t srca = get_ilong_prefetch(2);
39553 	if ((srca & 1) != 0) {
39554 		last_fault_for_exception_3 = srca;
39555 		last_op_for_exception_3 = opcode;
39556 		last_addr_for_exception_3 = m68k_getpc() + 6;
39557 		Exception(3, 0, M68000_EXC_SRC_CPU);
39558 		goto endlabel2208;
39559 	}
39560 {	int32_t src = m68k_read_memory_32(srca);
39561 	CLEAR_CZNV;
39562 	SET_ZFLG (((int32_t)(0)) == 0);
39563 	SET_NFLG (((int32_t)(0)) < 0);
39564 m68k_incpc(6);
39565 fill_prefetch_0 ();
39566 	m68k_write_memory_32(srca,0);
39567 }}}endlabel2208: ;
39568 return 28;
39569 }
CPUFUNC(op_4400_5)39570 unsigned long CPUFUNC(op_4400_5)(uint32_t opcode) /* NEG */
39571 {
39572 	uint32_t srcreg = (opcode & 7);
39573 	OpcodeFamily = 15; CurrentInstrCycles = 4;
39574 {{	int8_t src = m68k_dreg(regs, srcreg);
39575 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39576 {	int flgs = ((int8_t)(src)) < 0;
39577 	int flgo = ((int8_t)(0)) < 0;
39578 	int flgn = ((int8_t)(dst)) < 0;
39579 	SET_ZFLG (((int8_t)(dst)) == 0);
39580 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39581 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39582 	COPY_CARRY;
39583 	SET_NFLG (flgn != 0);
39584 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((dst) & 0xff);
39585 }}}}}m68k_incpc(2);
39586 fill_prefetch_2 ();
39587 return 4;
39588 }
CPUFUNC(op_4410_5)39589 unsigned long CPUFUNC(op_4410_5)(uint32_t opcode) /* NEG */
39590 {
39591 	uint32_t srcreg = (opcode & 7);
39592 	OpcodeFamily = 15; CurrentInstrCycles = 12;
39593 {{	uint32_t srca = m68k_areg(regs, srcreg);
39594 {	int8_t src = m68k_read_memory_8(srca);
39595 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39596 {	int flgs = ((int8_t)(src)) < 0;
39597 	int flgo = ((int8_t)(0)) < 0;
39598 	int flgn = ((int8_t)(dst)) < 0;
39599 	SET_ZFLG (((int8_t)(dst)) == 0);
39600 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39601 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39602 	COPY_CARRY;
39603 	SET_NFLG (flgn != 0);
39604 m68k_incpc(2);
39605 fill_prefetch_2 ();
39606 	m68k_write_memory_8(srca,dst);
39607 }}}}}}return 12;
39608 }
CPUFUNC(op_4418_5)39609 unsigned long CPUFUNC(op_4418_5)(uint32_t opcode) /* NEG */
39610 {
39611 	uint32_t srcreg = (opcode & 7);
39612 	OpcodeFamily = 15; CurrentInstrCycles = 12;
39613 {{	uint32_t srca = m68k_areg(regs, srcreg);
39614 {	int8_t src = m68k_read_memory_8(srca);
39615 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
39616 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39617 {	int flgs = ((int8_t)(src)) < 0;
39618 	int flgo = ((int8_t)(0)) < 0;
39619 	int flgn = ((int8_t)(dst)) < 0;
39620 	SET_ZFLG (((int8_t)(dst)) == 0);
39621 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39622 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39623 	COPY_CARRY;
39624 	SET_NFLG (flgn != 0);
39625 m68k_incpc(2);
39626 fill_prefetch_2 ();
39627 	m68k_write_memory_8(srca,dst);
39628 }}}}}}return 12;
39629 }
CPUFUNC(op_4420_5)39630 unsigned long CPUFUNC(op_4420_5)(uint32_t opcode) /* NEG */
39631 {
39632 	uint32_t srcreg = (opcode & 7);
39633 	OpcodeFamily = 15; CurrentInstrCycles = 14;
39634 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
39635 {	int8_t src = m68k_read_memory_8(srca);
39636 	m68k_areg (regs, srcreg) = srca;
39637 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39638 {	int flgs = ((int8_t)(src)) < 0;
39639 	int flgo = ((int8_t)(0)) < 0;
39640 	int flgn = ((int8_t)(dst)) < 0;
39641 	SET_ZFLG (((int8_t)(dst)) == 0);
39642 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39643 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39644 	COPY_CARRY;
39645 	SET_NFLG (flgn != 0);
39646 m68k_incpc(2);
39647 fill_prefetch_2 ();
39648 	m68k_write_memory_8(srca,dst);
39649 }}}}}}return 14;
39650 }
CPUFUNC(op_4428_5)39651 unsigned long CPUFUNC(op_4428_5)(uint32_t opcode) /* NEG */
39652 {
39653 	uint32_t srcreg = (opcode & 7);
39654 	OpcodeFamily = 15; CurrentInstrCycles = 16;
39655 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
39656 {	int8_t src = m68k_read_memory_8(srca);
39657 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39658 {	int flgs = ((int8_t)(src)) < 0;
39659 	int flgo = ((int8_t)(0)) < 0;
39660 	int flgn = ((int8_t)(dst)) < 0;
39661 	SET_ZFLG (((int8_t)(dst)) == 0);
39662 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39663 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39664 	COPY_CARRY;
39665 	SET_NFLG (flgn != 0);
39666 m68k_incpc(4);
39667 fill_prefetch_0 ();
39668 	m68k_write_memory_8(srca,dst);
39669 }}}}}}return 16;
39670 }
CPUFUNC(op_4430_5)39671 unsigned long CPUFUNC(op_4430_5)(uint32_t opcode) /* NEG */
39672 {
39673 	uint32_t srcreg = (opcode & 7);
39674 	OpcodeFamily = 15; CurrentInstrCycles = 18;
39675 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
39676 	BusCyclePenalty += 2;
39677 {	int8_t src = m68k_read_memory_8(srca);
39678 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39679 {	int flgs = ((int8_t)(src)) < 0;
39680 	int flgo = ((int8_t)(0)) < 0;
39681 	int flgn = ((int8_t)(dst)) < 0;
39682 	SET_ZFLG (((int8_t)(dst)) == 0);
39683 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39684 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39685 	COPY_CARRY;
39686 	SET_NFLG (flgn != 0);
39687 m68k_incpc(4);
39688 fill_prefetch_0 ();
39689 	m68k_write_memory_8(srca,dst);
39690 }}}}}}return 18;
39691 }
CPUFUNC(op_4438_5)39692 unsigned long CPUFUNC(op_4438_5)(uint32_t opcode) /* NEG */
39693 {
39694 	OpcodeFamily = 15; CurrentInstrCycles = 16;
39695 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
39696 {	int8_t src = m68k_read_memory_8(srca);
39697 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39698 {	int flgs = ((int8_t)(src)) < 0;
39699 	int flgo = ((int8_t)(0)) < 0;
39700 	int flgn = ((int8_t)(dst)) < 0;
39701 	SET_ZFLG (((int8_t)(dst)) == 0);
39702 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39703 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39704 	COPY_CARRY;
39705 	SET_NFLG (flgn != 0);
39706 m68k_incpc(4);
39707 fill_prefetch_0 ();
39708 	m68k_write_memory_8(srca,dst);
39709 }}}}}}return 16;
39710 }
CPUFUNC(op_4439_5)39711 unsigned long CPUFUNC(op_4439_5)(uint32_t opcode) /* NEG */
39712 {
39713 	OpcodeFamily = 15; CurrentInstrCycles = 20;
39714 {{	uint32_t srca = get_ilong_prefetch(2);
39715 {	int8_t src = m68k_read_memory_8(srca);
39716 {{uint32_t dst = ((int8_t)(0)) - ((int8_t)(src));
39717 {	int flgs = ((int8_t)(src)) < 0;
39718 	int flgo = ((int8_t)(0)) < 0;
39719 	int flgn = ((int8_t)(dst)) < 0;
39720 	SET_ZFLG (((int8_t)(dst)) == 0);
39721 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39722 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(0)));
39723 	COPY_CARRY;
39724 	SET_NFLG (flgn != 0);
39725 m68k_incpc(6);
39726 fill_prefetch_0 ();
39727 	m68k_write_memory_8(srca,dst);
39728 }}}}}}return 20;
39729 }
CPUFUNC(op_4440_5)39730 unsigned long CPUFUNC(op_4440_5)(uint32_t opcode) /* NEG */
39731 {
39732 	uint32_t srcreg = (opcode & 7);
39733 	OpcodeFamily = 15; CurrentInstrCycles = 4;
39734 {{	int16_t src = m68k_dreg(regs, srcreg);
39735 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39736 {	int flgs = ((int16_t)(src)) < 0;
39737 	int flgo = ((int16_t)(0)) < 0;
39738 	int flgn = ((int16_t)(dst)) < 0;
39739 	SET_ZFLG (((int16_t)(dst)) == 0);
39740 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39741 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39742 	COPY_CARRY;
39743 	SET_NFLG (flgn != 0);
39744 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((dst) & 0xffff);
39745 }}}}}m68k_incpc(2);
39746 fill_prefetch_2 ();
39747 return 4;
39748 }
CPUFUNC(op_4450_5)39749 unsigned long CPUFUNC(op_4450_5)(uint32_t opcode) /* NEG */
39750 {
39751 	uint32_t srcreg = (opcode & 7);
39752 	OpcodeFamily = 15; CurrentInstrCycles = 12;
39753 {{	uint32_t srca = m68k_areg(regs, srcreg);
39754 	if ((srca & 1) != 0) {
39755 		last_fault_for_exception_3 = srca;
39756 		last_op_for_exception_3 = opcode;
39757 		last_addr_for_exception_3 = m68k_getpc() + 2;
39758 		Exception(3, 0, M68000_EXC_SRC_CPU);
39759 		goto endlabel2218;
39760 	}
39761 {{	int16_t src = m68k_read_memory_16(srca);
39762 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39763 {	int flgs = ((int16_t)(src)) < 0;
39764 	int flgo = ((int16_t)(0)) < 0;
39765 	int flgn = ((int16_t)(dst)) < 0;
39766 	SET_ZFLG (((int16_t)(dst)) == 0);
39767 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39768 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39769 	COPY_CARRY;
39770 	SET_NFLG (flgn != 0);
39771 m68k_incpc(2);
39772 fill_prefetch_2 ();
39773 	m68k_write_memory_16(srca,dst);
39774 }}}}}}}endlabel2218: ;
39775 return 12;
39776 }
CPUFUNC(op_4458_5)39777 unsigned long CPUFUNC(op_4458_5)(uint32_t opcode) /* NEG */
39778 {
39779 	uint32_t srcreg = (opcode & 7);
39780 	OpcodeFamily = 15; CurrentInstrCycles = 12;
39781 {{	uint32_t srca = m68k_areg(regs, srcreg);
39782 	if ((srca & 1) != 0) {
39783 		last_fault_for_exception_3 = srca;
39784 		last_op_for_exception_3 = opcode;
39785 		last_addr_for_exception_3 = m68k_getpc() + 2;
39786 		Exception(3, 0, M68000_EXC_SRC_CPU);
39787 		goto endlabel2219;
39788 	}
39789 {{	int16_t src = m68k_read_memory_16(srca);
39790 	m68k_areg(regs, srcreg) += 2;
39791 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39792 {	int flgs = ((int16_t)(src)) < 0;
39793 	int flgo = ((int16_t)(0)) < 0;
39794 	int flgn = ((int16_t)(dst)) < 0;
39795 	SET_ZFLG (((int16_t)(dst)) == 0);
39796 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39797 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39798 	COPY_CARRY;
39799 	SET_NFLG (flgn != 0);
39800 m68k_incpc(2);
39801 fill_prefetch_2 ();
39802 	m68k_write_memory_16(srca,dst);
39803 }}}}}}}endlabel2219: ;
39804 return 12;
39805 }
CPUFUNC(op_4460_5)39806 unsigned long CPUFUNC(op_4460_5)(uint32_t opcode) /* NEG */
39807 {
39808 	uint32_t srcreg = (opcode & 7);
39809 	OpcodeFamily = 15; CurrentInstrCycles = 14;
39810 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
39811 	if ((srca & 1) != 0) {
39812 		last_fault_for_exception_3 = srca;
39813 		last_op_for_exception_3 = opcode;
39814 		last_addr_for_exception_3 = m68k_getpc() + 2;
39815 		Exception(3, 0, M68000_EXC_SRC_CPU);
39816 		goto endlabel2220;
39817 	}
39818 {{	int16_t src = m68k_read_memory_16(srca);
39819 	m68k_areg (regs, srcreg) = srca;
39820 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39821 {	int flgs = ((int16_t)(src)) < 0;
39822 	int flgo = ((int16_t)(0)) < 0;
39823 	int flgn = ((int16_t)(dst)) < 0;
39824 	SET_ZFLG (((int16_t)(dst)) == 0);
39825 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39826 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39827 	COPY_CARRY;
39828 	SET_NFLG (flgn != 0);
39829 m68k_incpc(2);
39830 fill_prefetch_2 ();
39831 	m68k_write_memory_16(srca,dst);
39832 }}}}}}}endlabel2220: ;
39833 return 14;
39834 }
CPUFUNC(op_4468_5)39835 unsigned long CPUFUNC(op_4468_5)(uint32_t opcode) /* NEG */
39836 {
39837 	uint32_t srcreg = (opcode & 7);
39838 	OpcodeFamily = 15; CurrentInstrCycles = 16;
39839 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
39840 	if ((srca & 1) != 0) {
39841 		last_fault_for_exception_3 = srca;
39842 		last_op_for_exception_3 = opcode;
39843 		last_addr_for_exception_3 = m68k_getpc() + 4;
39844 		Exception(3, 0, M68000_EXC_SRC_CPU);
39845 		goto endlabel2221;
39846 	}
39847 {{	int16_t src = m68k_read_memory_16(srca);
39848 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39849 {	int flgs = ((int16_t)(src)) < 0;
39850 	int flgo = ((int16_t)(0)) < 0;
39851 	int flgn = ((int16_t)(dst)) < 0;
39852 	SET_ZFLG (((int16_t)(dst)) == 0);
39853 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39854 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39855 	COPY_CARRY;
39856 	SET_NFLG (flgn != 0);
39857 m68k_incpc(4);
39858 fill_prefetch_0 ();
39859 	m68k_write_memory_16(srca,dst);
39860 }}}}}}}endlabel2221: ;
39861 return 16;
39862 }
CPUFUNC(op_4470_5)39863 unsigned long CPUFUNC(op_4470_5)(uint32_t opcode) /* NEG */
39864 {
39865 	uint32_t srcreg = (opcode & 7);
39866 	OpcodeFamily = 15; CurrentInstrCycles = 18;
39867 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
39868 	BusCyclePenalty += 2;
39869 	if ((srca & 1) != 0) {
39870 		last_fault_for_exception_3 = srca;
39871 		last_op_for_exception_3 = opcode;
39872 		last_addr_for_exception_3 = m68k_getpc() + 4;
39873 		Exception(3, 0, M68000_EXC_SRC_CPU);
39874 		goto endlabel2222;
39875 	}
39876 {{	int16_t src = m68k_read_memory_16(srca);
39877 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39878 {	int flgs = ((int16_t)(src)) < 0;
39879 	int flgo = ((int16_t)(0)) < 0;
39880 	int flgn = ((int16_t)(dst)) < 0;
39881 	SET_ZFLG (((int16_t)(dst)) == 0);
39882 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39883 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39884 	COPY_CARRY;
39885 	SET_NFLG (flgn != 0);
39886 m68k_incpc(4);
39887 fill_prefetch_0 ();
39888 	m68k_write_memory_16(srca,dst);
39889 }}}}}}}endlabel2222: ;
39890 return 18;
39891 }
CPUFUNC(op_4478_5)39892 unsigned long CPUFUNC(op_4478_5)(uint32_t opcode) /* NEG */
39893 {
39894 	OpcodeFamily = 15; CurrentInstrCycles = 16;
39895 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
39896 	if ((srca & 1) != 0) {
39897 		last_fault_for_exception_3 = srca;
39898 		last_op_for_exception_3 = opcode;
39899 		last_addr_for_exception_3 = m68k_getpc() + 4;
39900 		Exception(3, 0, M68000_EXC_SRC_CPU);
39901 		goto endlabel2223;
39902 	}
39903 {{	int16_t src = m68k_read_memory_16(srca);
39904 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39905 {	int flgs = ((int16_t)(src)) < 0;
39906 	int flgo = ((int16_t)(0)) < 0;
39907 	int flgn = ((int16_t)(dst)) < 0;
39908 	SET_ZFLG (((int16_t)(dst)) == 0);
39909 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39910 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39911 	COPY_CARRY;
39912 	SET_NFLG (flgn != 0);
39913 m68k_incpc(4);
39914 fill_prefetch_0 ();
39915 	m68k_write_memory_16(srca,dst);
39916 }}}}}}}endlabel2223: ;
39917 return 16;
39918 }
CPUFUNC(op_4479_5)39919 unsigned long CPUFUNC(op_4479_5)(uint32_t opcode) /* NEG */
39920 {
39921 	OpcodeFamily = 15; CurrentInstrCycles = 20;
39922 {{	uint32_t srca = get_ilong_prefetch(2);
39923 	if ((srca & 1) != 0) {
39924 		last_fault_for_exception_3 = srca;
39925 		last_op_for_exception_3 = opcode;
39926 		last_addr_for_exception_3 = m68k_getpc() + 6;
39927 		Exception(3, 0, M68000_EXC_SRC_CPU);
39928 		goto endlabel2224;
39929 	}
39930 {{	int16_t src = m68k_read_memory_16(srca);
39931 {{uint32_t dst = ((int16_t)(0)) - ((int16_t)(src));
39932 {	int flgs = ((int16_t)(src)) < 0;
39933 	int flgo = ((int16_t)(0)) < 0;
39934 	int flgn = ((int16_t)(dst)) < 0;
39935 	SET_ZFLG (((int16_t)(dst)) == 0);
39936 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39937 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(0)));
39938 	COPY_CARRY;
39939 	SET_NFLG (flgn != 0);
39940 m68k_incpc(6);
39941 fill_prefetch_0 ();
39942 	m68k_write_memory_16(srca,dst);
39943 }}}}}}}endlabel2224: ;
39944 return 20;
39945 }
CPUFUNC(op_4480_5)39946 unsigned long CPUFUNC(op_4480_5)(uint32_t opcode) /* NEG */
39947 {
39948 	uint32_t srcreg = (opcode & 7);
39949 	OpcodeFamily = 15; CurrentInstrCycles = 6;
39950 {{	int32_t src = m68k_dreg(regs, srcreg);
39951 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
39952 {	int flgs = ((int32_t)(src)) < 0;
39953 	int flgo = ((int32_t)(0)) < 0;
39954 	int flgn = ((int32_t)(dst)) < 0;
39955 	SET_ZFLG (((int32_t)(dst)) == 0);
39956 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39957 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
39958 	COPY_CARRY;
39959 	SET_NFLG (flgn != 0);
39960 	m68k_dreg(regs, srcreg) = (dst);
39961 }}}}}m68k_incpc(2);
39962 fill_prefetch_2 ();
39963 return 6;
39964 }
CPUFUNC(op_4490_5)39965 unsigned long CPUFUNC(op_4490_5)(uint32_t opcode) /* NEG */
39966 {
39967 	uint32_t srcreg = (opcode & 7);
39968 	OpcodeFamily = 15; CurrentInstrCycles = 20;
39969 {{	uint32_t srca = m68k_areg(regs, srcreg);
39970 	if ((srca & 1) != 0) {
39971 		last_fault_for_exception_3 = srca;
39972 		last_op_for_exception_3 = opcode;
39973 		last_addr_for_exception_3 = m68k_getpc() + 2;
39974 		Exception(3, 0, M68000_EXC_SRC_CPU);
39975 		goto endlabel2226;
39976 	}
39977 {{	int32_t src = m68k_read_memory_32(srca);
39978 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
39979 {	int flgs = ((int32_t)(src)) < 0;
39980 	int flgo = ((int32_t)(0)) < 0;
39981 	int flgn = ((int32_t)(dst)) < 0;
39982 	SET_ZFLG (((int32_t)(dst)) == 0);
39983 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
39984 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
39985 	COPY_CARRY;
39986 	SET_NFLG (flgn != 0);
39987 m68k_incpc(2);
39988 fill_prefetch_2 ();
39989 	m68k_write_memory_32(srca,dst);
39990 }}}}}}}endlabel2226: ;
39991 return 20;
39992 }
CPUFUNC(op_4498_5)39993 unsigned long CPUFUNC(op_4498_5)(uint32_t opcode) /* NEG */
39994 {
39995 	uint32_t srcreg = (opcode & 7);
39996 	OpcodeFamily = 15; CurrentInstrCycles = 20;
39997 {{	uint32_t srca = m68k_areg(regs, srcreg);
39998 	if ((srca & 1) != 0) {
39999 		last_fault_for_exception_3 = srca;
40000 		last_op_for_exception_3 = opcode;
40001 		last_addr_for_exception_3 = m68k_getpc() + 2;
40002 		Exception(3, 0, M68000_EXC_SRC_CPU);
40003 		goto endlabel2227;
40004 	}
40005 {{	int32_t src = m68k_read_memory_32(srca);
40006 	m68k_areg(regs, srcreg) += 4;
40007 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
40008 {	int flgs = ((int32_t)(src)) < 0;
40009 	int flgo = ((int32_t)(0)) < 0;
40010 	int flgn = ((int32_t)(dst)) < 0;
40011 	SET_ZFLG (((int32_t)(dst)) == 0);
40012 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
40013 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
40014 	COPY_CARRY;
40015 	SET_NFLG (flgn != 0);
40016 m68k_incpc(2);
40017 fill_prefetch_2 ();
40018 	m68k_write_memory_32(srca,dst);
40019 }}}}}}}endlabel2227: ;
40020 return 20;
40021 }
CPUFUNC(op_44a0_5)40022 unsigned long CPUFUNC(op_44a0_5)(uint32_t opcode) /* NEG */
40023 {
40024 	uint32_t srcreg = (opcode & 7);
40025 	OpcodeFamily = 15; CurrentInstrCycles = 22;
40026 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
40027 	if ((srca & 1) != 0) {
40028 		last_fault_for_exception_3 = srca;
40029 		last_op_for_exception_3 = opcode;
40030 		last_addr_for_exception_3 = m68k_getpc() + 2;
40031 		Exception(3, 0, M68000_EXC_SRC_CPU);
40032 		goto endlabel2228;
40033 	}
40034 {{	int32_t src = m68k_read_memory_32(srca);
40035 	m68k_areg (regs, srcreg) = srca;
40036 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
40037 {	int flgs = ((int32_t)(src)) < 0;
40038 	int flgo = ((int32_t)(0)) < 0;
40039 	int flgn = ((int32_t)(dst)) < 0;
40040 	SET_ZFLG (((int32_t)(dst)) == 0);
40041 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
40042 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
40043 	COPY_CARRY;
40044 	SET_NFLG (flgn != 0);
40045 m68k_incpc(2);
40046 fill_prefetch_2 ();
40047 	m68k_write_memory_32(srca,dst);
40048 }}}}}}}endlabel2228: ;
40049 return 22;
40050 }
CPUFUNC(op_44a8_5)40051 unsigned long CPUFUNC(op_44a8_5)(uint32_t opcode) /* NEG */
40052 {
40053 	uint32_t srcreg = (opcode & 7);
40054 	OpcodeFamily = 15; CurrentInstrCycles = 24;
40055 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
40056 	if ((srca & 1) != 0) {
40057 		last_fault_for_exception_3 = srca;
40058 		last_op_for_exception_3 = opcode;
40059 		last_addr_for_exception_3 = m68k_getpc() + 4;
40060 		Exception(3, 0, M68000_EXC_SRC_CPU);
40061 		goto endlabel2229;
40062 	}
40063 {{	int32_t src = m68k_read_memory_32(srca);
40064 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
40065 {	int flgs = ((int32_t)(src)) < 0;
40066 	int flgo = ((int32_t)(0)) < 0;
40067 	int flgn = ((int32_t)(dst)) < 0;
40068 	SET_ZFLG (((int32_t)(dst)) == 0);
40069 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
40070 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
40071 	COPY_CARRY;
40072 	SET_NFLG (flgn != 0);
40073 m68k_incpc(4);
40074 fill_prefetch_0 ();
40075 	m68k_write_memory_32(srca,dst);
40076 }}}}}}}endlabel2229: ;
40077 return 24;
40078 }
CPUFUNC(op_44b0_5)40079 unsigned long CPUFUNC(op_44b0_5)(uint32_t opcode) /* NEG */
40080 {
40081 	uint32_t srcreg = (opcode & 7);
40082 	OpcodeFamily = 15; CurrentInstrCycles = 26;
40083 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
40084 	BusCyclePenalty += 2;
40085 	if ((srca & 1) != 0) {
40086 		last_fault_for_exception_3 = srca;
40087 		last_op_for_exception_3 = opcode;
40088 		last_addr_for_exception_3 = m68k_getpc() + 4;
40089 		Exception(3, 0, M68000_EXC_SRC_CPU);
40090 		goto endlabel2230;
40091 	}
40092 {{	int32_t src = m68k_read_memory_32(srca);
40093 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
40094 {	int flgs = ((int32_t)(src)) < 0;
40095 	int flgo = ((int32_t)(0)) < 0;
40096 	int flgn = ((int32_t)(dst)) < 0;
40097 	SET_ZFLG (((int32_t)(dst)) == 0);
40098 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
40099 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
40100 	COPY_CARRY;
40101 	SET_NFLG (flgn != 0);
40102 m68k_incpc(4);
40103 fill_prefetch_0 ();
40104 	m68k_write_memory_32(srca,dst);
40105 }}}}}}}endlabel2230: ;
40106 return 26;
40107 }
CPUFUNC(op_44b8_5)40108 unsigned long CPUFUNC(op_44b8_5)(uint32_t opcode) /* NEG */
40109 {
40110 	OpcodeFamily = 15; CurrentInstrCycles = 24;
40111 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
40112 	if ((srca & 1) != 0) {
40113 		last_fault_for_exception_3 = srca;
40114 		last_op_for_exception_3 = opcode;
40115 		last_addr_for_exception_3 = m68k_getpc() + 4;
40116 		Exception(3, 0, M68000_EXC_SRC_CPU);
40117 		goto endlabel2231;
40118 	}
40119 {{	int32_t src = m68k_read_memory_32(srca);
40120 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
40121 {	int flgs = ((int32_t)(src)) < 0;
40122 	int flgo = ((int32_t)(0)) < 0;
40123 	int flgn = ((int32_t)(dst)) < 0;
40124 	SET_ZFLG (((int32_t)(dst)) == 0);
40125 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
40126 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
40127 	COPY_CARRY;
40128 	SET_NFLG (flgn != 0);
40129 m68k_incpc(4);
40130 fill_prefetch_0 ();
40131 	m68k_write_memory_32(srca,dst);
40132 }}}}}}}endlabel2231: ;
40133 return 24;
40134 }
CPUFUNC(op_44b9_5)40135 unsigned long CPUFUNC(op_44b9_5)(uint32_t opcode) /* NEG */
40136 {
40137 	OpcodeFamily = 15; CurrentInstrCycles = 28;
40138 {{	uint32_t srca = get_ilong_prefetch(2);
40139 	if ((srca & 1) != 0) {
40140 		last_fault_for_exception_3 = srca;
40141 		last_op_for_exception_3 = opcode;
40142 		last_addr_for_exception_3 = m68k_getpc() + 6;
40143 		Exception(3, 0, M68000_EXC_SRC_CPU);
40144 		goto endlabel2232;
40145 	}
40146 {{	int32_t src = m68k_read_memory_32(srca);
40147 {{uint32_t dst = ((int32_t)(0)) - ((int32_t)(src));
40148 {	int flgs = ((int32_t)(src)) < 0;
40149 	int flgo = ((int32_t)(0)) < 0;
40150 	int flgn = ((int32_t)(dst)) < 0;
40151 	SET_ZFLG (((int32_t)(dst)) == 0);
40152 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
40153 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(0)));
40154 	COPY_CARRY;
40155 	SET_NFLG (flgn != 0);
40156 m68k_incpc(6);
40157 fill_prefetch_0 ();
40158 	m68k_write_memory_32(srca,dst);
40159 }}}}}}}endlabel2232: ;
40160 return 28;
40161 }
CPUFUNC(op_44c0_5)40162 unsigned long CPUFUNC(op_44c0_5)(uint32_t opcode) /* MV2SR */
40163 {
40164 	uint32_t srcreg = (opcode & 7);
40165 	OpcodeFamily = 33; CurrentInstrCycles = 12;
40166 {{	int16_t src = m68k_dreg(regs, srcreg);
40167 	MakeSR();
40168 	regs.sr &= 0xFF00;
40169 	regs.sr |= src & 0xFF;
40170 	MakeFromSR();
40171 }}m68k_incpc(2);
40172 fill_prefetch_2 ();
40173 return 12;
40174 }
CPUFUNC(op_44d0_5)40175 unsigned long CPUFUNC(op_44d0_5)(uint32_t opcode) /* MV2SR */
40176 {
40177 	uint32_t srcreg = (opcode & 7);
40178 	OpcodeFamily = 33; CurrentInstrCycles = 16;
40179 {{	uint32_t srca = m68k_areg(regs, srcreg);
40180 	if ((srca & 1) != 0) {
40181 		last_fault_for_exception_3 = srca;
40182 		last_op_for_exception_3 = opcode;
40183 		last_addr_for_exception_3 = m68k_getpc() + 2;
40184 		Exception(3, 0, M68000_EXC_SRC_CPU);
40185 		goto endlabel2234;
40186 	}
40187 {{	int16_t src = m68k_read_memory_16(srca);
40188 	MakeSR();
40189 	regs.sr &= 0xFF00;
40190 	regs.sr |= src & 0xFF;
40191 	MakeFromSR();
40192 }}}}m68k_incpc(2);
40193 fill_prefetch_2 ();
40194 endlabel2234: ;
40195 return 16;
40196 }
CPUFUNC(op_44d8_5)40197 unsigned long CPUFUNC(op_44d8_5)(uint32_t opcode) /* MV2SR */
40198 {
40199 	uint32_t srcreg = (opcode & 7);
40200 	OpcodeFamily = 33; CurrentInstrCycles = 16;
40201 {{	uint32_t srca = m68k_areg(regs, srcreg);
40202 	if ((srca & 1) != 0) {
40203 		last_fault_for_exception_3 = srca;
40204 		last_op_for_exception_3 = opcode;
40205 		last_addr_for_exception_3 = m68k_getpc() + 2;
40206 		Exception(3, 0, M68000_EXC_SRC_CPU);
40207 		goto endlabel2235;
40208 	}
40209 {{	int16_t src = m68k_read_memory_16(srca);
40210 	m68k_areg(regs, srcreg) += 2;
40211 	MakeSR();
40212 	regs.sr &= 0xFF00;
40213 	regs.sr |= src & 0xFF;
40214 	MakeFromSR();
40215 }}}}m68k_incpc(2);
40216 fill_prefetch_2 ();
40217 endlabel2235: ;
40218 return 16;
40219 }
CPUFUNC(op_44e0_5)40220 unsigned long CPUFUNC(op_44e0_5)(uint32_t opcode) /* MV2SR */
40221 {
40222 	uint32_t srcreg = (opcode & 7);
40223 	OpcodeFamily = 33; CurrentInstrCycles = 18;
40224 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
40225 	if ((srca & 1) != 0) {
40226 		last_fault_for_exception_3 = srca;
40227 		last_op_for_exception_3 = opcode;
40228 		last_addr_for_exception_3 = m68k_getpc() + 2;
40229 		Exception(3, 0, M68000_EXC_SRC_CPU);
40230 		goto endlabel2236;
40231 	}
40232 {{	int16_t src = m68k_read_memory_16(srca);
40233 	m68k_areg (regs, srcreg) = srca;
40234 	MakeSR();
40235 	regs.sr &= 0xFF00;
40236 	regs.sr |= src & 0xFF;
40237 	MakeFromSR();
40238 }}}}m68k_incpc(2);
40239 fill_prefetch_2 ();
40240 endlabel2236: ;
40241 return 18;
40242 }
CPUFUNC(op_44e8_5)40243 unsigned long CPUFUNC(op_44e8_5)(uint32_t opcode) /* MV2SR */
40244 {
40245 	uint32_t srcreg = (opcode & 7);
40246 	OpcodeFamily = 33; CurrentInstrCycles = 20;
40247 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
40248 	if ((srca & 1) != 0) {
40249 		last_fault_for_exception_3 = srca;
40250 		last_op_for_exception_3 = opcode;
40251 		last_addr_for_exception_3 = m68k_getpc() + 4;
40252 		Exception(3, 0, M68000_EXC_SRC_CPU);
40253 		goto endlabel2237;
40254 	}
40255 {{	int16_t src = m68k_read_memory_16(srca);
40256 	MakeSR();
40257 	regs.sr &= 0xFF00;
40258 	regs.sr |= src & 0xFF;
40259 	MakeFromSR();
40260 }}}}m68k_incpc(4);
40261 fill_prefetch_0 ();
40262 endlabel2237: ;
40263 return 20;
40264 }
CPUFUNC(op_44f0_5)40265 unsigned long CPUFUNC(op_44f0_5)(uint32_t opcode) /* MV2SR */
40266 {
40267 	uint32_t srcreg = (opcode & 7);
40268 	OpcodeFamily = 33; CurrentInstrCycles = 22;
40269 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
40270 	BusCyclePenalty += 2;
40271 	if ((srca & 1) != 0) {
40272 		last_fault_for_exception_3 = srca;
40273 		last_op_for_exception_3 = opcode;
40274 		last_addr_for_exception_3 = m68k_getpc() + 4;
40275 		Exception(3, 0, M68000_EXC_SRC_CPU);
40276 		goto endlabel2238;
40277 	}
40278 {{	int16_t src = m68k_read_memory_16(srca);
40279 	MakeSR();
40280 	regs.sr &= 0xFF00;
40281 	regs.sr |= src & 0xFF;
40282 	MakeFromSR();
40283 }}}}m68k_incpc(4);
40284 fill_prefetch_0 ();
40285 endlabel2238: ;
40286 return 22;
40287 }
CPUFUNC(op_44f8_5)40288 unsigned long CPUFUNC(op_44f8_5)(uint32_t opcode) /* MV2SR */
40289 {
40290 	OpcodeFamily = 33; CurrentInstrCycles = 20;
40291 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
40292 	if ((srca & 1) != 0) {
40293 		last_fault_for_exception_3 = srca;
40294 		last_op_for_exception_3 = opcode;
40295 		last_addr_for_exception_3 = m68k_getpc() + 4;
40296 		Exception(3, 0, M68000_EXC_SRC_CPU);
40297 		goto endlabel2239;
40298 	}
40299 {{	int16_t src = m68k_read_memory_16(srca);
40300 	MakeSR();
40301 	regs.sr &= 0xFF00;
40302 	regs.sr |= src & 0xFF;
40303 	MakeFromSR();
40304 }}}}m68k_incpc(4);
40305 fill_prefetch_0 ();
40306 endlabel2239: ;
40307 return 20;
40308 }
CPUFUNC(op_44f9_5)40309 unsigned long CPUFUNC(op_44f9_5)(uint32_t opcode) /* MV2SR */
40310 {
40311 	OpcodeFamily = 33; CurrentInstrCycles = 24;
40312 {{	uint32_t srca = get_ilong_prefetch(2);
40313 	if ((srca & 1) != 0) {
40314 		last_fault_for_exception_3 = srca;
40315 		last_op_for_exception_3 = opcode;
40316 		last_addr_for_exception_3 = m68k_getpc() + 6;
40317 		Exception(3, 0, M68000_EXC_SRC_CPU);
40318 		goto endlabel2240;
40319 	}
40320 {{	int16_t src = m68k_read_memory_16(srca);
40321 	MakeSR();
40322 	regs.sr &= 0xFF00;
40323 	regs.sr |= src & 0xFF;
40324 	MakeFromSR();
40325 }}}}m68k_incpc(6);
40326 fill_prefetch_0 ();
40327 endlabel2240: ;
40328 return 24;
40329 }
CPUFUNC(op_44fa_5)40330 unsigned long CPUFUNC(op_44fa_5)(uint32_t opcode) /* MV2SR */
40331 {
40332 	OpcodeFamily = 33; CurrentInstrCycles = 20;
40333 {{	uint32_t srca = m68k_getpc () + 2;
40334 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
40335 	if ((srca & 1) != 0) {
40336 		last_fault_for_exception_3 = srca;
40337 		last_op_for_exception_3 = opcode;
40338 		last_addr_for_exception_3 = m68k_getpc() + 4;
40339 		Exception(3, 0, M68000_EXC_SRC_CPU);
40340 		goto endlabel2241;
40341 	}
40342 {{	int16_t src = m68k_read_memory_16(srca);
40343 	MakeSR();
40344 	regs.sr &= 0xFF00;
40345 	regs.sr |= src & 0xFF;
40346 	MakeFromSR();
40347 }}}}m68k_incpc(4);
40348 fill_prefetch_0 ();
40349 endlabel2241: ;
40350 return 20;
40351 }
CPUFUNC(op_44fb_5)40352 unsigned long CPUFUNC(op_44fb_5)(uint32_t opcode) /* MV2SR */
40353 {
40354 	OpcodeFamily = 33; CurrentInstrCycles = 22;
40355 {{	uint32_t tmppc = m68k_getpc() + 2;
40356 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
40357 	BusCyclePenalty += 2;
40358 	if ((srca & 1) != 0) {
40359 		last_fault_for_exception_3 = srca;
40360 		last_op_for_exception_3 = opcode;
40361 		last_addr_for_exception_3 = m68k_getpc() + 4;
40362 		Exception(3, 0, M68000_EXC_SRC_CPU);
40363 		goto endlabel2242;
40364 	}
40365 {{	int16_t src = m68k_read_memory_16(srca);
40366 	MakeSR();
40367 	regs.sr &= 0xFF00;
40368 	regs.sr |= src & 0xFF;
40369 	MakeFromSR();
40370 }}}}m68k_incpc(4);
40371 fill_prefetch_0 ();
40372 endlabel2242: ;
40373 return 22;
40374 }
CPUFUNC(op_44fc_5)40375 unsigned long CPUFUNC(op_44fc_5)(uint32_t opcode) /* MV2SR */
40376 {
40377 	OpcodeFamily = 33; CurrentInstrCycles = 16;
40378 {{	int16_t src = get_iword_prefetch(2);
40379 	MakeSR();
40380 	regs.sr &= 0xFF00;
40381 	regs.sr |= src & 0xFF;
40382 	MakeFromSR();
40383 }}m68k_incpc(4);
40384 fill_prefetch_0 ();
40385 return 16;
40386 }
CPUFUNC(op_4600_5)40387 unsigned long CPUFUNC(op_4600_5)(uint32_t opcode) /* NOT */
40388 {
40389 	uint32_t srcreg = (opcode & 7);
40390 	OpcodeFamily = 19; CurrentInstrCycles = 4;
40391 {{	int8_t src = m68k_dreg(regs, srcreg);
40392 {	uint32_t dst = ~src;
40393 	CLEAR_CZNV;
40394 	SET_ZFLG (((int8_t)(dst)) == 0);
40395 	SET_NFLG (((int8_t)(dst)) < 0);
40396 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((dst) & 0xff);
40397 }}}m68k_incpc(2);
40398 fill_prefetch_2 ();
40399 return 4;
40400 }
CPUFUNC(op_4610_5)40401 unsigned long CPUFUNC(op_4610_5)(uint32_t opcode) /* NOT */
40402 {
40403 	uint32_t srcreg = (opcode & 7);
40404 	OpcodeFamily = 19; CurrentInstrCycles = 12;
40405 {{	uint32_t srca = m68k_areg(regs, srcreg);
40406 {	int8_t src = m68k_read_memory_8(srca);
40407 {	uint32_t dst = ~src;
40408 	CLEAR_CZNV;
40409 	SET_ZFLG (((int8_t)(dst)) == 0);
40410 	SET_NFLG (((int8_t)(dst)) < 0);
40411 m68k_incpc(2);
40412 fill_prefetch_2 ();
40413 	m68k_write_memory_8(srca,dst);
40414 }}}}return 12;
40415 }
CPUFUNC(op_4618_5)40416 unsigned long CPUFUNC(op_4618_5)(uint32_t opcode) /* NOT */
40417 {
40418 	uint32_t srcreg = (opcode & 7);
40419 	OpcodeFamily = 19; CurrentInstrCycles = 12;
40420 {{	uint32_t srca = m68k_areg(regs, srcreg);
40421 {	int8_t src = m68k_read_memory_8(srca);
40422 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
40423 {	uint32_t dst = ~src;
40424 	CLEAR_CZNV;
40425 	SET_ZFLG (((int8_t)(dst)) == 0);
40426 	SET_NFLG (((int8_t)(dst)) < 0);
40427 m68k_incpc(2);
40428 fill_prefetch_2 ();
40429 	m68k_write_memory_8(srca,dst);
40430 }}}}return 12;
40431 }
CPUFUNC(op_4620_5)40432 unsigned long CPUFUNC(op_4620_5)(uint32_t opcode) /* NOT */
40433 {
40434 	uint32_t srcreg = (opcode & 7);
40435 	OpcodeFamily = 19; CurrentInstrCycles = 14;
40436 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
40437 {	int8_t src = m68k_read_memory_8(srca);
40438 	m68k_areg (regs, srcreg) = srca;
40439 {	uint32_t dst = ~src;
40440 	CLEAR_CZNV;
40441 	SET_ZFLG (((int8_t)(dst)) == 0);
40442 	SET_NFLG (((int8_t)(dst)) < 0);
40443 m68k_incpc(2);
40444 fill_prefetch_2 ();
40445 	m68k_write_memory_8(srca,dst);
40446 }}}}return 14;
40447 }
CPUFUNC(op_4628_5)40448 unsigned long CPUFUNC(op_4628_5)(uint32_t opcode) /* NOT */
40449 {
40450 	uint32_t srcreg = (opcode & 7);
40451 	OpcodeFamily = 19; CurrentInstrCycles = 16;
40452 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
40453 {	int8_t src = m68k_read_memory_8(srca);
40454 {	uint32_t dst = ~src;
40455 	CLEAR_CZNV;
40456 	SET_ZFLG (((int8_t)(dst)) == 0);
40457 	SET_NFLG (((int8_t)(dst)) < 0);
40458 m68k_incpc(4);
40459 fill_prefetch_0 ();
40460 	m68k_write_memory_8(srca,dst);
40461 }}}}return 16;
40462 }
CPUFUNC(op_4630_5)40463 unsigned long CPUFUNC(op_4630_5)(uint32_t opcode) /* NOT */
40464 {
40465 	uint32_t srcreg = (opcode & 7);
40466 	OpcodeFamily = 19; CurrentInstrCycles = 18;
40467 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
40468 	BusCyclePenalty += 2;
40469 {	int8_t src = m68k_read_memory_8(srca);
40470 {	uint32_t dst = ~src;
40471 	CLEAR_CZNV;
40472 	SET_ZFLG (((int8_t)(dst)) == 0);
40473 	SET_NFLG (((int8_t)(dst)) < 0);
40474 m68k_incpc(4);
40475 fill_prefetch_0 ();
40476 	m68k_write_memory_8(srca,dst);
40477 }}}}return 18;
40478 }
CPUFUNC(op_4638_5)40479 unsigned long CPUFUNC(op_4638_5)(uint32_t opcode) /* NOT */
40480 {
40481 	OpcodeFamily = 19; CurrentInstrCycles = 16;
40482 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
40483 {	int8_t src = m68k_read_memory_8(srca);
40484 {	uint32_t dst = ~src;
40485 	CLEAR_CZNV;
40486 	SET_ZFLG (((int8_t)(dst)) == 0);
40487 	SET_NFLG (((int8_t)(dst)) < 0);
40488 m68k_incpc(4);
40489 fill_prefetch_0 ();
40490 	m68k_write_memory_8(srca,dst);
40491 }}}}return 16;
40492 }
CPUFUNC(op_4639_5)40493 unsigned long CPUFUNC(op_4639_5)(uint32_t opcode) /* NOT */
40494 {
40495 	OpcodeFamily = 19; CurrentInstrCycles = 20;
40496 {{	uint32_t srca = get_ilong_prefetch(2);
40497 {	int8_t src = m68k_read_memory_8(srca);
40498 {	uint32_t dst = ~src;
40499 	CLEAR_CZNV;
40500 	SET_ZFLG (((int8_t)(dst)) == 0);
40501 	SET_NFLG (((int8_t)(dst)) < 0);
40502 m68k_incpc(6);
40503 fill_prefetch_0 ();
40504 	m68k_write_memory_8(srca,dst);
40505 }}}}return 20;
40506 }
CPUFUNC(op_4640_5)40507 unsigned long CPUFUNC(op_4640_5)(uint32_t opcode) /* NOT */
40508 {
40509 	uint32_t srcreg = (opcode & 7);
40510 	OpcodeFamily = 19; CurrentInstrCycles = 4;
40511 {{	int16_t src = m68k_dreg(regs, srcreg);
40512 {	uint32_t dst = ~src;
40513 	CLEAR_CZNV;
40514 	SET_ZFLG (((int16_t)(dst)) == 0);
40515 	SET_NFLG (((int16_t)(dst)) < 0);
40516 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((dst) & 0xffff);
40517 }}}m68k_incpc(2);
40518 fill_prefetch_2 ();
40519 return 4;
40520 }
CPUFUNC(op_4650_5)40521 unsigned long CPUFUNC(op_4650_5)(uint32_t opcode) /* NOT */
40522 {
40523 	uint32_t srcreg = (opcode & 7);
40524 	OpcodeFamily = 19; CurrentInstrCycles = 12;
40525 {{	uint32_t srca = m68k_areg(regs, srcreg);
40526 	if ((srca & 1) != 0) {
40527 		last_fault_for_exception_3 = srca;
40528 		last_op_for_exception_3 = opcode;
40529 		last_addr_for_exception_3 = m68k_getpc() + 2;
40530 		Exception(3, 0, M68000_EXC_SRC_CPU);
40531 		goto endlabel2253;
40532 	}
40533 {{	int16_t src = m68k_read_memory_16(srca);
40534 {	uint32_t dst = ~src;
40535 	CLEAR_CZNV;
40536 	SET_ZFLG (((int16_t)(dst)) == 0);
40537 	SET_NFLG (((int16_t)(dst)) < 0);
40538 m68k_incpc(2);
40539 fill_prefetch_2 ();
40540 	m68k_write_memory_16(srca,dst);
40541 }}}}}endlabel2253: ;
40542 return 12;
40543 }
CPUFUNC(op_4658_5)40544 unsigned long CPUFUNC(op_4658_5)(uint32_t opcode) /* NOT */
40545 {
40546 	uint32_t srcreg = (opcode & 7);
40547 	OpcodeFamily = 19; CurrentInstrCycles = 12;
40548 {{	uint32_t srca = m68k_areg(regs, srcreg);
40549 	if ((srca & 1) != 0) {
40550 		last_fault_for_exception_3 = srca;
40551 		last_op_for_exception_3 = opcode;
40552 		last_addr_for_exception_3 = m68k_getpc() + 2;
40553 		Exception(3, 0, M68000_EXC_SRC_CPU);
40554 		goto endlabel2254;
40555 	}
40556 {{	int16_t src = m68k_read_memory_16(srca);
40557 	m68k_areg(regs, srcreg) += 2;
40558 {	uint32_t dst = ~src;
40559 	CLEAR_CZNV;
40560 	SET_ZFLG (((int16_t)(dst)) == 0);
40561 	SET_NFLG (((int16_t)(dst)) < 0);
40562 m68k_incpc(2);
40563 fill_prefetch_2 ();
40564 	m68k_write_memory_16(srca,dst);
40565 }}}}}endlabel2254: ;
40566 return 12;
40567 }
CPUFUNC(op_4660_5)40568 unsigned long CPUFUNC(op_4660_5)(uint32_t opcode) /* NOT */
40569 {
40570 	uint32_t srcreg = (opcode & 7);
40571 	OpcodeFamily = 19; CurrentInstrCycles = 14;
40572 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
40573 	if ((srca & 1) != 0) {
40574 		last_fault_for_exception_3 = srca;
40575 		last_op_for_exception_3 = opcode;
40576 		last_addr_for_exception_3 = m68k_getpc() + 2;
40577 		Exception(3, 0, M68000_EXC_SRC_CPU);
40578 		goto endlabel2255;
40579 	}
40580 {{	int16_t src = m68k_read_memory_16(srca);
40581 	m68k_areg (regs, srcreg) = srca;
40582 {	uint32_t dst = ~src;
40583 	CLEAR_CZNV;
40584 	SET_ZFLG (((int16_t)(dst)) == 0);
40585 	SET_NFLG (((int16_t)(dst)) < 0);
40586 m68k_incpc(2);
40587 fill_prefetch_2 ();
40588 	m68k_write_memory_16(srca,dst);
40589 }}}}}endlabel2255: ;
40590 return 14;
40591 }
CPUFUNC(op_4668_5)40592 unsigned long CPUFUNC(op_4668_5)(uint32_t opcode) /* NOT */
40593 {
40594 	uint32_t srcreg = (opcode & 7);
40595 	OpcodeFamily = 19; CurrentInstrCycles = 16;
40596 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
40597 	if ((srca & 1) != 0) {
40598 		last_fault_for_exception_3 = srca;
40599 		last_op_for_exception_3 = opcode;
40600 		last_addr_for_exception_3 = m68k_getpc() + 4;
40601 		Exception(3, 0, M68000_EXC_SRC_CPU);
40602 		goto endlabel2256;
40603 	}
40604 {{	int16_t src = m68k_read_memory_16(srca);
40605 {	uint32_t dst = ~src;
40606 	CLEAR_CZNV;
40607 	SET_ZFLG (((int16_t)(dst)) == 0);
40608 	SET_NFLG (((int16_t)(dst)) < 0);
40609 m68k_incpc(4);
40610 fill_prefetch_0 ();
40611 	m68k_write_memory_16(srca,dst);
40612 }}}}}endlabel2256: ;
40613 return 16;
40614 }
CPUFUNC(op_4670_5)40615 unsigned long CPUFUNC(op_4670_5)(uint32_t opcode) /* NOT */
40616 {
40617 	uint32_t srcreg = (opcode & 7);
40618 	OpcodeFamily = 19; CurrentInstrCycles = 18;
40619 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
40620 	BusCyclePenalty += 2;
40621 	if ((srca & 1) != 0) {
40622 		last_fault_for_exception_3 = srca;
40623 		last_op_for_exception_3 = opcode;
40624 		last_addr_for_exception_3 = m68k_getpc() + 4;
40625 		Exception(3, 0, M68000_EXC_SRC_CPU);
40626 		goto endlabel2257;
40627 	}
40628 {{	int16_t src = m68k_read_memory_16(srca);
40629 {	uint32_t dst = ~src;
40630 	CLEAR_CZNV;
40631 	SET_ZFLG (((int16_t)(dst)) == 0);
40632 	SET_NFLG (((int16_t)(dst)) < 0);
40633 m68k_incpc(4);
40634 fill_prefetch_0 ();
40635 	m68k_write_memory_16(srca,dst);
40636 }}}}}endlabel2257: ;
40637 return 18;
40638 }
CPUFUNC(op_4678_5)40639 unsigned long CPUFUNC(op_4678_5)(uint32_t opcode) /* NOT */
40640 {
40641 	OpcodeFamily = 19; CurrentInstrCycles = 16;
40642 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
40643 	if ((srca & 1) != 0) {
40644 		last_fault_for_exception_3 = srca;
40645 		last_op_for_exception_3 = opcode;
40646 		last_addr_for_exception_3 = m68k_getpc() + 4;
40647 		Exception(3, 0, M68000_EXC_SRC_CPU);
40648 		goto endlabel2258;
40649 	}
40650 {{	int16_t src = m68k_read_memory_16(srca);
40651 {	uint32_t dst = ~src;
40652 	CLEAR_CZNV;
40653 	SET_ZFLG (((int16_t)(dst)) == 0);
40654 	SET_NFLG (((int16_t)(dst)) < 0);
40655 m68k_incpc(4);
40656 fill_prefetch_0 ();
40657 	m68k_write_memory_16(srca,dst);
40658 }}}}}endlabel2258: ;
40659 return 16;
40660 }
CPUFUNC(op_4679_5)40661 unsigned long CPUFUNC(op_4679_5)(uint32_t opcode) /* NOT */
40662 {
40663 	OpcodeFamily = 19; CurrentInstrCycles = 20;
40664 {{	uint32_t srca = get_ilong_prefetch(2);
40665 	if ((srca & 1) != 0) {
40666 		last_fault_for_exception_3 = srca;
40667 		last_op_for_exception_3 = opcode;
40668 		last_addr_for_exception_3 = m68k_getpc() + 6;
40669 		Exception(3, 0, M68000_EXC_SRC_CPU);
40670 		goto endlabel2259;
40671 	}
40672 {{	int16_t src = m68k_read_memory_16(srca);
40673 {	uint32_t dst = ~src;
40674 	CLEAR_CZNV;
40675 	SET_ZFLG (((int16_t)(dst)) == 0);
40676 	SET_NFLG (((int16_t)(dst)) < 0);
40677 m68k_incpc(6);
40678 fill_prefetch_0 ();
40679 	m68k_write_memory_16(srca,dst);
40680 }}}}}endlabel2259: ;
40681 return 20;
40682 }
CPUFUNC(op_4680_5)40683 unsigned long CPUFUNC(op_4680_5)(uint32_t opcode) /* NOT */
40684 {
40685 	uint32_t srcreg = (opcode & 7);
40686 	OpcodeFamily = 19; CurrentInstrCycles = 6;
40687 {{	int32_t src = m68k_dreg(regs, srcreg);
40688 {	uint32_t dst = ~src;
40689 	CLEAR_CZNV;
40690 	SET_ZFLG (((int32_t)(dst)) == 0);
40691 	SET_NFLG (((int32_t)(dst)) < 0);
40692 	m68k_dreg(regs, srcreg) = (dst);
40693 }}}m68k_incpc(2);
40694 fill_prefetch_2 ();
40695 return 6;
40696 }
CPUFUNC(op_4690_5)40697 unsigned long CPUFUNC(op_4690_5)(uint32_t opcode) /* NOT */
40698 {
40699 	uint32_t srcreg = (opcode & 7);
40700 	OpcodeFamily = 19; CurrentInstrCycles = 20;
40701 {{	uint32_t srca = m68k_areg(regs, srcreg);
40702 	if ((srca & 1) != 0) {
40703 		last_fault_for_exception_3 = srca;
40704 		last_op_for_exception_3 = opcode;
40705 		last_addr_for_exception_3 = m68k_getpc() + 2;
40706 		Exception(3, 0, M68000_EXC_SRC_CPU);
40707 		goto endlabel2261;
40708 	}
40709 {{	int32_t src = m68k_read_memory_32(srca);
40710 {	uint32_t dst = ~src;
40711 	CLEAR_CZNV;
40712 	SET_ZFLG (((int32_t)(dst)) == 0);
40713 	SET_NFLG (((int32_t)(dst)) < 0);
40714 m68k_incpc(2);
40715 fill_prefetch_2 ();
40716 	m68k_write_memory_32(srca,dst);
40717 }}}}}endlabel2261: ;
40718 return 20;
40719 }
CPUFUNC(op_4698_5)40720 unsigned long CPUFUNC(op_4698_5)(uint32_t opcode) /* NOT */
40721 {
40722 	uint32_t srcreg = (opcode & 7);
40723 	OpcodeFamily = 19; CurrentInstrCycles = 20;
40724 {{	uint32_t srca = m68k_areg(regs, srcreg);
40725 	if ((srca & 1) != 0) {
40726 		last_fault_for_exception_3 = srca;
40727 		last_op_for_exception_3 = opcode;
40728 		last_addr_for_exception_3 = m68k_getpc() + 2;
40729 		Exception(3, 0, M68000_EXC_SRC_CPU);
40730 		goto endlabel2262;
40731 	}
40732 {{	int32_t src = m68k_read_memory_32(srca);
40733 	m68k_areg(regs, srcreg) += 4;
40734 {	uint32_t dst = ~src;
40735 	CLEAR_CZNV;
40736 	SET_ZFLG (((int32_t)(dst)) == 0);
40737 	SET_NFLG (((int32_t)(dst)) < 0);
40738 m68k_incpc(2);
40739 fill_prefetch_2 ();
40740 	m68k_write_memory_32(srca,dst);
40741 }}}}}endlabel2262: ;
40742 return 20;
40743 }
CPUFUNC(op_46a0_5)40744 unsigned long CPUFUNC(op_46a0_5)(uint32_t opcode) /* NOT */
40745 {
40746 	uint32_t srcreg = (opcode & 7);
40747 	OpcodeFamily = 19; CurrentInstrCycles = 22;
40748 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
40749 	if ((srca & 1) != 0) {
40750 		last_fault_for_exception_3 = srca;
40751 		last_op_for_exception_3 = opcode;
40752 		last_addr_for_exception_3 = m68k_getpc() + 2;
40753 		Exception(3, 0, M68000_EXC_SRC_CPU);
40754 		goto endlabel2263;
40755 	}
40756 {{	int32_t src = m68k_read_memory_32(srca);
40757 	m68k_areg (regs, srcreg) = srca;
40758 {	uint32_t dst = ~src;
40759 	CLEAR_CZNV;
40760 	SET_ZFLG (((int32_t)(dst)) == 0);
40761 	SET_NFLG (((int32_t)(dst)) < 0);
40762 m68k_incpc(2);
40763 fill_prefetch_2 ();
40764 	m68k_write_memory_32(srca,dst);
40765 }}}}}endlabel2263: ;
40766 return 22;
40767 }
CPUFUNC(op_46a8_5)40768 unsigned long CPUFUNC(op_46a8_5)(uint32_t opcode) /* NOT */
40769 {
40770 	uint32_t srcreg = (opcode & 7);
40771 	OpcodeFamily = 19; CurrentInstrCycles = 24;
40772 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
40773 	if ((srca & 1) != 0) {
40774 		last_fault_for_exception_3 = srca;
40775 		last_op_for_exception_3 = opcode;
40776 		last_addr_for_exception_3 = m68k_getpc() + 4;
40777 		Exception(3, 0, M68000_EXC_SRC_CPU);
40778 		goto endlabel2264;
40779 	}
40780 {{	int32_t src = m68k_read_memory_32(srca);
40781 {	uint32_t dst = ~src;
40782 	CLEAR_CZNV;
40783 	SET_ZFLG (((int32_t)(dst)) == 0);
40784 	SET_NFLG (((int32_t)(dst)) < 0);
40785 m68k_incpc(4);
40786 fill_prefetch_0 ();
40787 	m68k_write_memory_32(srca,dst);
40788 }}}}}endlabel2264: ;
40789 return 24;
40790 }
CPUFUNC(op_46b0_5)40791 unsigned long CPUFUNC(op_46b0_5)(uint32_t opcode) /* NOT */
40792 {
40793 	uint32_t srcreg = (opcode & 7);
40794 	OpcodeFamily = 19; CurrentInstrCycles = 26;
40795 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
40796 	BusCyclePenalty += 2;
40797 	if ((srca & 1) != 0) {
40798 		last_fault_for_exception_3 = srca;
40799 		last_op_for_exception_3 = opcode;
40800 		last_addr_for_exception_3 = m68k_getpc() + 4;
40801 		Exception(3, 0, M68000_EXC_SRC_CPU);
40802 		goto endlabel2265;
40803 	}
40804 {{	int32_t src = m68k_read_memory_32(srca);
40805 {	uint32_t dst = ~src;
40806 	CLEAR_CZNV;
40807 	SET_ZFLG (((int32_t)(dst)) == 0);
40808 	SET_NFLG (((int32_t)(dst)) < 0);
40809 m68k_incpc(4);
40810 fill_prefetch_0 ();
40811 	m68k_write_memory_32(srca,dst);
40812 }}}}}endlabel2265: ;
40813 return 26;
40814 }
CPUFUNC(op_46b8_5)40815 unsigned long CPUFUNC(op_46b8_5)(uint32_t opcode) /* NOT */
40816 {
40817 	OpcodeFamily = 19; CurrentInstrCycles = 24;
40818 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
40819 	if ((srca & 1) != 0) {
40820 		last_fault_for_exception_3 = srca;
40821 		last_op_for_exception_3 = opcode;
40822 		last_addr_for_exception_3 = m68k_getpc() + 4;
40823 		Exception(3, 0, M68000_EXC_SRC_CPU);
40824 		goto endlabel2266;
40825 	}
40826 {{	int32_t src = m68k_read_memory_32(srca);
40827 {	uint32_t dst = ~src;
40828 	CLEAR_CZNV;
40829 	SET_ZFLG (((int32_t)(dst)) == 0);
40830 	SET_NFLG (((int32_t)(dst)) < 0);
40831 m68k_incpc(4);
40832 fill_prefetch_0 ();
40833 	m68k_write_memory_32(srca,dst);
40834 }}}}}endlabel2266: ;
40835 return 24;
40836 }
CPUFUNC(op_46b9_5)40837 unsigned long CPUFUNC(op_46b9_5)(uint32_t opcode) /* NOT */
40838 {
40839 	OpcodeFamily = 19; CurrentInstrCycles = 28;
40840 {{	uint32_t srca = get_ilong_prefetch(2);
40841 	if ((srca & 1) != 0) {
40842 		last_fault_for_exception_3 = srca;
40843 		last_op_for_exception_3 = opcode;
40844 		last_addr_for_exception_3 = m68k_getpc() + 6;
40845 		Exception(3, 0, M68000_EXC_SRC_CPU);
40846 		goto endlabel2267;
40847 	}
40848 {{	int32_t src = m68k_read_memory_32(srca);
40849 {	uint32_t dst = ~src;
40850 	CLEAR_CZNV;
40851 	SET_ZFLG (((int32_t)(dst)) == 0);
40852 	SET_NFLG (((int32_t)(dst)) < 0);
40853 m68k_incpc(6);
40854 fill_prefetch_0 ();
40855 	m68k_write_memory_32(srca,dst);
40856 }}}}}endlabel2267: ;
40857 return 28;
40858 }
CPUFUNC(op_46c0_5)40859 unsigned long CPUFUNC(op_46c0_5)(uint32_t opcode) /* MV2SR */
40860 {
40861 	uint32_t srcreg = (opcode & 7);
40862 	OpcodeFamily = 33; CurrentInstrCycles = 12;
40863 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2268; }
40864 {{	int16_t src = m68k_dreg(regs, srcreg);
40865 	regs.sr = src;
40866 	MakeFromSR();
40867 }}}m68k_incpc(2);
40868 fill_prefetch_2 ();
40869 endlabel2268: ;
40870 return 12;
40871 }
CPUFUNC(op_46d0_5)40872 unsigned long CPUFUNC(op_46d0_5)(uint32_t opcode) /* MV2SR */
40873 {
40874 	uint32_t srcreg = (opcode & 7);
40875 	OpcodeFamily = 33; CurrentInstrCycles = 16;
40876 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2269; }
40877 {{	uint32_t srca = m68k_areg(regs, srcreg);
40878 	if ((srca & 1) != 0) {
40879 		last_fault_for_exception_3 = srca;
40880 		last_op_for_exception_3 = opcode;
40881 		last_addr_for_exception_3 = m68k_getpc() + 2;
40882 		Exception(3, 0, M68000_EXC_SRC_CPU);
40883 		goto endlabel2269;
40884 	}
40885 {{	int16_t src = m68k_read_memory_16(srca);
40886 	regs.sr = src;
40887 	MakeFromSR();
40888 }}}}}m68k_incpc(2);
40889 fill_prefetch_2 ();
40890 endlabel2269: ;
40891 return 16;
40892 }
CPUFUNC(op_46d8_5)40893 unsigned long CPUFUNC(op_46d8_5)(uint32_t opcode) /* MV2SR */
40894 {
40895 	uint32_t srcreg = (opcode & 7);
40896 	OpcodeFamily = 33; CurrentInstrCycles = 16;
40897 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2270; }
40898 {{	uint32_t srca = m68k_areg(regs, srcreg);
40899 	if ((srca & 1) != 0) {
40900 		last_fault_for_exception_3 = srca;
40901 		last_op_for_exception_3 = opcode;
40902 		last_addr_for_exception_3 = m68k_getpc() + 2;
40903 		Exception(3, 0, M68000_EXC_SRC_CPU);
40904 		goto endlabel2270;
40905 	}
40906 {{	int16_t src = m68k_read_memory_16(srca);
40907 	m68k_areg(regs, srcreg) += 2;
40908 	regs.sr = src;
40909 	MakeFromSR();
40910 }}}}}m68k_incpc(2);
40911 fill_prefetch_2 ();
40912 endlabel2270: ;
40913 return 16;
40914 }
CPUFUNC(op_46e0_5)40915 unsigned long CPUFUNC(op_46e0_5)(uint32_t opcode) /* MV2SR */
40916 {
40917 	uint32_t srcreg = (opcode & 7);
40918 	OpcodeFamily = 33; CurrentInstrCycles = 18;
40919 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2271; }
40920 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
40921 	if ((srca & 1) != 0) {
40922 		last_fault_for_exception_3 = srca;
40923 		last_op_for_exception_3 = opcode;
40924 		last_addr_for_exception_3 = m68k_getpc() + 2;
40925 		Exception(3, 0, M68000_EXC_SRC_CPU);
40926 		goto endlabel2271;
40927 	}
40928 {{	int16_t src = m68k_read_memory_16(srca);
40929 	m68k_areg (regs, srcreg) = srca;
40930 	regs.sr = src;
40931 	MakeFromSR();
40932 }}}}}m68k_incpc(2);
40933 fill_prefetch_2 ();
40934 endlabel2271: ;
40935 return 18;
40936 }
CPUFUNC(op_46e8_5)40937 unsigned long CPUFUNC(op_46e8_5)(uint32_t opcode) /* MV2SR */
40938 {
40939 	uint32_t srcreg = (opcode & 7);
40940 	OpcodeFamily = 33; CurrentInstrCycles = 20;
40941 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2272; }
40942 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
40943 	if ((srca & 1) != 0) {
40944 		last_fault_for_exception_3 = srca;
40945 		last_op_for_exception_3 = opcode;
40946 		last_addr_for_exception_3 = m68k_getpc() + 4;
40947 		Exception(3, 0, M68000_EXC_SRC_CPU);
40948 		goto endlabel2272;
40949 	}
40950 {{	int16_t src = m68k_read_memory_16(srca);
40951 	regs.sr = src;
40952 	MakeFromSR();
40953 }}}}}m68k_incpc(4);
40954 fill_prefetch_0 ();
40955 endlabel2272: ;
40956 return 20;
40957 }
CPUFUNC(op_46f0_5)40958 unsigned long CPUFUNC(op_46f0_5)(uint32_t opcode) /* MV2SR */
40959 {
40960 	uint32_t srcreg = (opcode & 7);
40961 	OpcodeFamily = 33; CurrentInstrCycles = 22;
40962 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2273; }
40963 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
40964 	BusCyclePenalty += 2;
40965 	if ((srca & 1) != 0) {
40966 		last_fault_for_exception_3 = srca;
40967 		last_op_for_exception_3 = opcode;
40968 		last_addr_for_exception_3 = m68k_getpc() + 4;
40969 		Exception(3, 0, M68000_EXC_SRC_CPU);
40970 		goto endlabel2273;
40971 	}
40972 {{	int16_t src = m68k_read_memory_16(srca);
40973 	regs.sr = src;
40974 	MakeFromSR();
40975 }}}}}m68k_incpc(4);
40976 fill_prefetch_0 ();
40977 endlabel2273: ;
40978 return 22;
40979 }
CPUFUNC(op_46f8_5)40980 unsigned long CPUFUNC(op_46f8_5)(uint32_t opcode) /* MV2SR */
40981 {
40982 	OpcodeFamily = 33; CurrentInstrCycles = 20;
40983 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2274; }
40984 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
40985 	if ((srca & 1) != 0) {
40986 		last_fault_for_exception_3 = srca;
40987 		last_op_for_exception_3 = opcode;
40988 		last_addr_for_exception_3 = m68k_getpc() + 4;
40989 		Exception(3, 0, M68000_EXC_SRC_CPU);
40990 		goto endlabel2274;
40991 	}
40992 {{	int16_t src = m68k_read_memory_16(srca);
40993 	regs.sr = src;
40994 	MakeFromSR();
40995 }}}}}m68k_incpc(4);
40996 fill_prefetch_0 ();
40997 endlabel2274: ;
40998 return 20;
40999 }
CPUFUNC(op_46f9_5)41000 unsigned long CPUFUNC(op_46f9_5)(uint32_t opcode) /* MV2SR */
41001 {
41002 	OpcodeFamily = 33; CurrentInstrCycles = 24;
41003 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2275; }
41004 {{	uint32_t srca = get_ilong_prefetch(2);
41005 	if ((srca & 1) != 0) {
41006 		last_fault_for_exception_3 = srca;
41007 		last_op_for_exception_3 = opcode;
41008 		last_addr_for_exception_3 = m68k_getpc() + 6;
41009 		Exception(3, 0, M68000_EXC_SRC_CPU);
41010 		goto endlabel2275;
41011 	}
41012 {{	int16_t src = m68k_read_memory_16(srca);
41013 	regs.sr = src;
41014 	MakeFromSR();
41015 }}}}}m68k_incpc(6);
41016 fill_prefetch_0 ();
41017 endlabel2275: ;
41018 return 24;
41019 }
CPUFUNC(op_46fa_5)41020 unsigned long CPUFUNC(op_46fa_5)(uint32_t opcode) /* MV2SR */
41021 {
41022 	OpcodeFamily = 33; CurrentInstrCycles = 20;
41023 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2276; }
41024 {{	uint32_t srca = m68k_getpc () + 2;
41025 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
41026 	if ((srca & 1) != 0) {
41027 		last_fault_for_exception_3 = srca;
41028 		last_op_for_exception_3 = opcode;
41029 		last_addr_for_exception_3 = m68k_getpc() + 4;
41030 		Exception(3, 0, M68000_EXC_SRC_CPU);
41031 		goto endlabel2276;
41032 	}
41033 {{	int16_t src = m68k_read_memory_16(srca);
41034 	regs.sr = src;
41035 	MakeFromSR();
41036 }}}}}m68k_incpc(4);
41037 fill_prefetch_0 ();
41038 endlabel2276: ;
41039 return 20;
41040 }
CPUFUNC(op_46fb_5)41041 unsigned long CPUFUNC(op_46fb_5)(uint32_t opcode) /* MV2SR */
41042 {
41043 	OpcodeFamily = 33; CurrentInstrCycles = 22;
41044 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2277; }
41045 {{	uint32_t tmppc = m68k_getpc() + 2;
41046 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
41047 	BusCyclePenalty += 2;
41048 	if ((srca & 1) != 0) {
41049 		last_fault_for_exception_3 = srca;
41050 		last_op_for_exception_3 = opcode;
41051 		last_addr_for_exception_3 = m68k_getpc() + 4;
41052 		Exception(3, 0, M68000_EXC_SRC_CPU);
41053 		goto endlabel2277;
41054 	}
41055 {{	int16_t src = m68k_read_memory_16(srca);
41056 	regs.sr = src;
41057 	MakeFromSR();
41058 }}}}}m68k_incpc(4);
41059 fill_prefetch_0 ();
41060 endlabel2277: ;
41061 return 22;
41062 }
CPUFUNC(op_46fc_5)41063 unsigned long CPUFUNC(op_46fc_5)(uint32_t opcode) /* MV2SR */
41064 {
41065 	OpcodeFamily = 33; CurrentInstrCycles = 16;
41066 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2278; }
41067 {{	int16_t src = get_iword_prefetch(2);
41068 	regs.sr = src;
41069 	MakeFromSR();
41070 }}}m68k_incpc(4);
41071 fill_prefetch_0 ();
41072 endlabel2278: ;
41073 return 16;
41074 }
CPUFUNC(op_4800_5)41075 unsigned long CPUFUNC(op_4800_5)(uint32_t opcode) /* NBCD */
41076 {
41077 	uint32_t srcreg = (opcode & 7);
41078 	OpcodeFamily = 17; CurrentInstrCycles = 6;
41079 {{	int8_t src = m68k_dreg(regs, srcreg);
41080 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41081 	uint16_t newv_hi = - (src & 0xF0);
41082 	uint16_t newv;
41083 	int cflg;
41084 	if (newv_lo > 9) { newv_lo -= 6; }
41085 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41086 	if (cflg) newv -= 0x60;
41087 	SET_CFLG (cflg);
41088 	COPY_CARRY;
41089 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41090 	SET_NFLG (((int8_t)(newv)) < 0);
41091 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((newv) & 0xff);
41092 }}}m68k_incpc(2);
41093 fill_prefetch_2 ();
41094 return 6;
41095 }
CPUFUNC(op_4810_5)41096 unsigned long CPUFUNC(op_4810_5)(uint32_t opcode) /* NBCD */
41097 {
41098 	uint32_t srcreg = (opcode & 7);
41099 	OpcodeFamily = 17; CurrentInstrCycles = 12;
41100 {{	uint32_t srca = m68k_areg(regs, srcreg);
41101 {	int8_t src = m68k_read_memory_8(srca);
41102 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41103 	uint16_t newv_hi = - (src & 0xF0);
41104 	uint16_t newv;
41105 	int cflg;
41106 	if (newv_lo > 9) { newv_lo -= 6; }
41107 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41108 	if (cflg) newv -= 0x60;
41109 	SET_CFLG (cflg);
41110 	COPY_CARRY;
41111 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41112 	SET_NFLG (((int8_t)(newv)) < 0);
41113 m68k_incpc(2);
41114 fill_prefetch_2 ();
41115 	m68k_write_memory_8(srca,newv);
41116 }}}}return 12;
41117 }
CPUFUNC(op_4818_5)41118 unsigned long CPUFUNC(op_4818_5)(uint32_t opcode) /* NBCD */
41119 {
41120 	uint32_t srcreg = (opcode & 7);
41121 	OpcodeFamily = 17; CurrentInstrCycles = 12;
41122 {{	uint32_t srca = m68k_areg(regs, srcreg);
41123 {	int8_t src = m68k_read_memory_8(srca);
41124 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
41125 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41126 	uint16_t newv_hi = - (src & 0xF0);
41127 	uint16_t newv;
41128 	int cflg;
41129 	if (newv_lo > 9) { newv_lo -= 6; }
41130 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41131 	if (cflg) newv -= 0x60;
41132 	SET_CFLG (cflg);
41133 	COPY_CARRY;
41134 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41135 	SET_NFLG (((int8_t)(newv)) < 0);
41136 m68k_incpc(2);
41137 fill_prefetch_2 ();
41138 	m68k_write_memory_8(srca,newv);
41139 }}}}return 12;
41140 }
CPUFUNC(op_4820_5)41141 unsigned long CPUFUNC(op_4820_5)(uint32_t opcode) /* NBCD */
41142 {
41143 	uint32_t srcreg = (opcode & 7);
41144 	OpcodeFamily = 17; CurrentInstrCycles = 14;
41145 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
41146 {	int8_t src = m68k_read_memory_8(srca);
41147 	m68k_areg (regs, srcreg) = srca;
41148 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41149 	uint16_t newv_hi = - (src & 0xF0);
41150 	uint16_t newv;
41151 	int cflg;
41152 	if (newv_lo > 9) { newv_lo -= 6; }
41153 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41154 	if (cflg) newv -= 0x60;
41155 	SET_CFLG (cflg);
41156 	COPY_CARRY;
41157 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41158 	SET_NFLG (((int8_t)(newv)) < 0);
41159 m68k_incpc(2);
41160 fill_prefetch_2 ();
41161 	m68k_write_memory_8(srca,newv);
41162 }}}}return 14;
41163 }
CPUFUNC(op_4828_5)41164 unsigned long CPUFUNC(op_4828_5)(uint32_t opcode) /* NBCD */
41165 {
41166 	uint32_t srcreg = (opcode & 7);
41167 	OpcodeFamily = 17; CurrentInstrCycles = 16;
41168 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
41169 {	int8_t src = m68k_read_memory_8(srca);
41170 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41171 	uint16_t newv_hi = - (src & 0xF0);
41172 	uint16_t newv;
41173 	int cflg;
41174 	if (newv_lo > 9) { newv_lo -= 6; }
41175 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41176 	if (cflg) newv -= 0x60;
41177 	SET_CFLG (cflg);
41178 	COPY_CARRY;
41179 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41180 	SET_NFLG (((int8_t)(newv)) < 0);
41181 m68k_incpc(4);
41182 fill_prefetch_0 ();
41183 	m68k_write_memory_8(srca,newv);
41184 }}}}return 16;
41185 }
CPUFUNC(op_4830_5)41186 unsigned long CPUFUNC(op_4830_5)(uint32_t opcode) /* NBCD */
41187 {
41188 	uint32_t srcreg = (opcode & 7);
41189 	OpcodeFamily = 17; CurrentInstrCycles = 18;
41190 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
41191 	BusCyclePenalty += 2;
41192 {	int8_t src = m68k_read_memory_8(srca);
41193 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41194 	uint16_t newv_hi = - (src & 0xF0);
41195 	uint16_t newv;
41196 	int cflg;
41197 	if (newv_lo > 9) { newv_lo -= 6; }
41198 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41199 	if (cflg) newv -= 0x60;
41200 	SET_CFLG (cflg);
41201 	COPY_CARRY;
41202 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41203 	SET_NFLG (((int8_t)(newv)) < 0);
41204 m68k_incpc(4);
41205 fill_prefetch_0 ();
41206 	m68k_write_memory_8(srca,newv);
41207 }}}}return 18;
41208 }
CPUFUNC(op_4838_5)41209 unsigned long CPUFUNC(op_4838_5)(uint32_t opcode) /* NBCD */
41210 {
41211 	OpcodeFamily = 17; CurrentInstrCycles = 16;
41212 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
41213 {	int8_t src = m68k_read_memory_8(srca);
41214 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41215 	uint16_t newv_hi = - (src & 0xF0);
41216 	uint16_t newv;
41217 	int cflg;
41218 	if (newv_lo > 9) { newv_lo -= 6; }
41219 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41220 	if (cflg) newv -= 0x60;
41221 	SET_CFLG (cflg);
41222 	COPY_CARRY;
41223 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41224 	SET_NFLG (((int8_t)(newv)) < 0);
41225 m68k_incpc(4);
41226 fill_prefetch_0 ();
41227 	m68k_write_memory_8(srca,newv);
41228 }}}}return 16;
41229 }
CPUFUNC(op_4839_5)41230 unsigned long CPUFUNC(op_4839_5)(uint32_t opcode) /* NBCD */
41231 {
41232 	OpcodeFamily = 17; CurrentInstrCycles = 20;
41233 {{	uint32_t srca = get_ilong_prefetch(2);
41234 {	int8_t src = m68k_read_memory_8(srca);
41235 {	uint16_t newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0);
41236 	uint16_t newv_hi = - (src & 0xF0);
41237 	uint16_t newv;
41238 	int cflg;
41239 	if (newv_lo > 9) { newv_lo -= 6; }
41240 	newv = newv_hi + newv_lo;	cflg = (newv & 0x1F0) > 0x90;
41241 	if (cflg) newv -= 0x60;
41242 	SET_CFLG (cflg);
41243 	COPY_CARRY;
41244 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
41245 	SET_NFLG (((int8_t)(newv)) < 0);
41246 m68k_incpc(6);
41247 fill_prefetch_0 ();
41248 	m68k_write_memory_8(srca,newv);
41249 }}}}return 20;
41250 }
CPUFUNC(op_4840_5)41251 unsigned long CPUFUNC(op_4840_5)(uint32_t opcode) /* SWAP */
41252 {
41253 	uint32_t srcreg = (opcode & 7);
41254 	OpcodeFamily = 34; CurrentInstrCycles = 4;
41255 {{	int32_t src = m68k_dreg(regs, srcreg);
41256 {	uint32_t dst = ((src >> 16)&0xFFFF) | ((src&0xFFFF)<<16);
41257 	CLEAR_CZNV;
41258 	SET_ZFLG (((int32_t)(dst)) == 0);
41259 	SET_NFLG (((int32_t)(dst)) < 0);
41260 	m68k_dreg(regs, srcreg) = (dst);
41261 }}}m68k_incpc(2);
41262 fill_prefetch_2 ();
41263 return 4;
41264 }
CPUFUNC(op_4850_5)41265 unsigned long CPUFUNC(op_4850_5)(uint32_t opcode) /* PEA */
41266 {
41267 	uint32_t srcreg = (opcode & 7);
41268 	OpcodeFamily = 57; CurrentInstrCycles = 12;
41269 {{	uint32_t srca = m68k_areg(regs, srcreg);
41270 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
41271 	if ((dsta & 1) != 0) {
41272 		last_fault_for_exception_3 = dsta;
41273 		last_op_for_exception_3 = opcode;
41274 		last_addr_for_exception_3 = m68k_getpc() + 2;
41275 		Exception(3, 0, M68000_EXC_SRC_CPU);
41276 		goto endlabel2288;
41277 	}
41278 {	m68k_areg (regs, 7) = dsta;
41279 m68k_incpc(2);
41280 fill_prefetch_2 ();
41281 	m68k_write_memory_32(dsta,srca);
41282 }}}}endlabel2288: ;
41283 return 12;
41284 }
CPUFUNC(op_4868_5)41285 unsigned long CPUFUNC(op_4868_5)(uint32_t opcode) /* PEA */
41286 {
41287 	uint32_t srcreg = (opcode & 7);
41288 	OpcodeFamily = 57; CurrentInstrCycles = 16;
41289 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
41290 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
41291 	if ((dsta & 1) != 0) {
41292 		last_fault_for_exception_3 = dsta;
41293 		last_op_for_exception_3 = opcode;
41294 		last_addr_for_exception_3 = m68k_getpc() + 4;
41295 		Exception(3, 0, M68000_EXC_SRC_CPU);
41296 		goto endlabel2289;
41297 	}
41298 {	m68k_areg (regs, 7) = dsta;
41299 m68k_incpc(4);
41300 fill_prefetch_0 ();
41301 	m68k_write_memory_32(dsta,srca);
41302 }}}}endlabel2289: ;
41303 return 16;
41304 }
CPUFUNC(op_4870_5)41305 unsigned long CPUFUNC(op_4870_5)(uint32_t opcode) /* PEA */
41306 {
41307 	uint32_t srcreg = (opcode & 7);
41308 	OpcodeFamily = 57; CurrentInstrCycles = 22;
41309 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
41310 	BusCyclePenalty += 2;
41311 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
41312 	if ((dsta & 1) != 0) {
41313 		last_fault_for_exception_3 = dsta;
41314 		last_op_for_exception_3 = opcode;
41315 		last_addr_for_exception_3 = m68k_getpc() + 4;
41316 		Exception(3, 0, M68000_EXC_SRC_CPU);
41317 		goto endlabel2290;
41318 	}
41319 {	m68k_areg (regs, 7) = dsta;
41320 m68k_incpc(4);
41321 fill_prefetch_0 ();
41322 	m68k_write_memory_32(dsta,srca);
41323 }}}}endlabel2290: ;
41324 return 22;
41325 }
CPUFUNC(op_4878_5)41326 unsigned long CPUFUNC(op_4878_5)(uint32_t opcode) /* PEA */
41327 {
41328 	OpcodeFamily = 57; CurrentInstrCycles = 16;
41329 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
41330 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
41331 	if ((dsta & 1) != 0) {
41332 		last_fault_for_exception_3 = dsta;
41333 		last_op_for_exception_3 = opcode;
41334 		last_addr_for_exception_3 = m68k_getpc() + 4;
41335 		Exception(3, 0, M68000_EXC_SRC_CPU);
41336 		goto endlabel2291;
41337 	}
41338 {	m68k_areg (regs, 7) = dsta;
41339 m68k_incpc(4);
41340 fill_prefetch_0 ();
41341 	m68k_write_memory_32(dsta,srca);
41342 }}}}endlabel2291: ;
41343 return 16;
41344 }
CPUFUNC(op_4879_5)41345 unsigned long CPUFUNC(op_4879_5)(uint32_t opcode) /* PEA */
41346 {
41347 	OpcodeFamily = 57; CurrentInstrCycles = 20;
41348 {{	uint32_t srca = get_ilong_prefetch(2);
41349 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
41350 	if ((dsta & 1) != 0) {
41351 		last_fault_for_exception_3 = dsta;
41352 		last_op_for_exception_3 = opcode;
41353 		last_addr_for_exception_3 = m68k_getpc() + 6;
41354 		Exception(3, 0, M68000_EXC_SRC_CPU);
41355 		goto endlabel2292;
41356 	}
41357 {	m68k_areg (regs, 7) = dsta;
41358 m68k_incpc(6);
41359 fill_prefetch_0 ();
41360 	m68k_write_memory_32(dsta,srca);
41361 }}}}endlabel2292: ;
41362 return 20;
41363 }
CPUFUNC(op_487a_5)41364 unsigned long CPUFUNC(op_487a_5)(uint32_t opcode) /* PEA */
41365 {
41366 	OpcodeFamily = 57; CurrentInstrCycles = 16;
41367 {{	uint32_t srca = m68k_getpc () + 2;
41368 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
41369 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
41370 	if ((dsta & 1) != 0) {
41371 		last_fault_for_exception_3 = dsta;
41372 		last_op_for_exception_3 = opcode;
41373 		last_addr_for_exception_3 = m68k_getpc() + 4;
41374 		Exception(3, 0, M68000_EXC_SRC_CPU);
41375 		goto endlabel2293;
41376 	}
41377 {	m68k_areg (regs, 7) = dsta;
41378 m68k_incpc(4);
41379 fill_prefetch_0 ();
41380 	m68k_write_memory_32(dsta,srca);
41381 }}}}endlabel2293: ;
41382 return 16;
41383 }
CPUFUNC(op_487b_5)41384 unsigned long CPUFUNC(op_487b_5)(uint32_t opcode) /* PEA */
41385 {
41386 	OpcodeFamily = 57; CurrentInstrCycles = 22;
41387 {{	uint32_t tmppc = m68k_getpc() + 2;
41388 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
41389 	BusCyclePenalty += 2;
41390 {	uint32_t dsta = m68k_areg(regs, 7) - 4;
41391 	if ((dsta & 1) != 0) {
41392 		last_fault_for_exception_3 = dsta;
41393 		last_op_for_exception_3 = opcode;
41394 		last_addr_for_exception_3 = m68k_getpc() + 4;
41395 		Exception(3, 0, M68000_EXC_SRC_CPU);
41396 		goto endlabel2294;
41397 	}
41398 {	m68k_areg (regs, 7) = dsta;
41399 m68k_incpc(4);
41400 fill_prefetch_0 ();
41401 	m68k_write_memory_32(dsta,srca);
41402 }}}}endlabel2294: ;
41403 return 22;
41404 }
CPUFUNC(op_4880_5)41405 unsigned long CPUFUNC(op_4880_5)(uint32_t opcode) /* EXT */
41406 {
41407 	uint32_t srcreg = (opcode & 7);
41408 	OpcodeFamily = 36; CurrentInstrCycles = 4;
41409 {{	int32_t src = m68k_dreg(regs, srcreg);
41410 {	uint16_t dst = (int16_t)(int8_t)src;
41411 	CLEAR_CZNV;
41412 	SET_ZFLG (((int16_t)(dst)) == 0);
41413 	SET_NFLG (((int16_t)(dst)) < 0);
41414 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | ((dst) & 0xffff);
41415 }}}m68k_incpc(2);
41416 fill_prefetch_2 ();
41417 return 4;
41418 }
CPUFUNC(op_4890_5)41419 unsigned long CPUFUNC(op_4890_5)(uint32_t opcode) /* MVMLE */
41420 {
41421 	uint32_t dstreg = opcode & 7;
41422 	unsigned int retcycles = 0;
41423 	OpcodeFamily = 38; CurrentInstrCycles = 8;
41424 {	uint16_t mask = get_iword_prefetch(2);
41425 	retcycles = 0;
41426 {	uint32_t srca = m68k_areg(regs, dstreg);
41427 	if ((srca & 1) != 0) {
41428 		last_fault_for_exception_3 = srca;
41429 		last_op_for_exception_3 = opcode;
41430 		last_addr_for_exception_3 = m68k_getpc() + 4;
41431 		Exception(3, 0, M68000_EXC_SRC_CPU);
41432 		goto endlabel2296;
41433 	}
41434 {m68k_incpc(4);
41435 fill_prefetch_0 ();
41436 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41437 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
41438 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
41439 }}}}endlabel2296: ;
41440  return (8+retcycles);
41441 }
CPUFUNC(op_48a0_5)41442 unsigned long CPUFUNC(op_48a0_5)(uint32_t opcode) /* MVMLE */
41443 {
41444 	uint32_t dstreg = opcode & 7;
41445 	unsigned int retcycles = 0;
41446 	OpcodeFamily = 38; CurrentInstrCycles = 8;
41447 {	uint16_t mask = get_iword_prefetch(2);
41448 	retcycles = 0;
41449 {	uint32_t srca = m68k_areg(regs, dstreg) - 0;
41450 	if ((srca & 1) != 0) {
41451 		last_fault_for_exception_3 = srca;
41452 		last_op_for_exception_3 = opcode;
41453 		last_addr_for_exception_3 = m68k_getpc() + 4;
41454 		Exception(3, 0, M68000_EXC_SRC_CPU);
41455 		goto endlabel2297;
41456 	}
41457 {m68k_incpc(4);
41458 fill_prefetch_0 ();
41459 {	uint16_t amask = mask & 0xff, dmask = (mask >> 8) & 0xff;
41460 	while (amask) { srca -= 2; m68k_write_memory_16(srca, m68k_areg(regs, movem_index2[amask])); amask = movem_next[amask]; retcycles+=4; }
41461 	while (dmask) { srca -= 2; m68k_write_memory_16(srca, m68k_dreg(regs, movem_index2[dmask])); dmask = movem_next[dmask]; retcycles+=4; }
41462 	m68k_areg(regs, dstreg) = srca;
41463 }}}}endlabel2297: ;
41464  return (8+retcycles);
41465 }
CPUFUNC(op_48a8_5)41466 unsigned long CPUFUNC(op_48a8_5)(uint32_t opcode) /* MVMLE */
41467 {
41468 	uint32_t dstreg = opcode & 7;
41469 	unsigned int retcycles = 0;
41470 	OpcodeFamily = 38; CurrentInstrCycles = 12;
41471 {	uint16_t mask = get_iword_prefetch(2);
41472 	retcycles = 0;
41473 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
41474 	if ((srca & 1) != 0) {
41475 		last_fault_for_exception_3 = srca;
41476 		last_op_for_exception_3 = opcode;
41477 		last_addr_for_exception_3 = m68k_getpc() + 6;
41478 		Exception(3, 0, M68000_EXC_SRC_CPU);
41479 		goto endlabel2298;
41480 	}
41481 {m68k_incpc(6);
41482 fill_prefetch_0 ();
41483 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41484 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
41485 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
41486 }}}}endlabel2298: ;
41487  return (12+retcycles);
41488 }
CPUFUNC(op_48b0_5)41489 unsigned long CPUFUNC(op_48b0_5)(uint32_t opcode) /* MVMLE */
41490 {
41491 	uint32_t dstreg = opcode & 7;
41492 	unsigned int retcycles = 0;
41493 	OpcodeFamily = 38; CurrentInstrCycles = 14;
41494 {	uint16_t mask = get_iword_prefetch(2);
41495 	retcycles = 0;
41496 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
41497 	BusCyclePenalty += 2;
41498 	if ((srca & 1) != 0) {
41499 		last_fault_for_exception_3 = srca;
41500 		last_op_for_exception_3 = opcode;
41501 		last_addr_for_exception_3 = m68k_getpc() + 6;
41502 		Exception(3, 0, M68000_EXC_SRC_CPU);
41503 		goto endlabel2299;
41504 	}
41505 {m68k_incpc(6);
41506 fill_prefetch_0 ();
41507 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41508 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
41509 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
41510 }}}}endlabel2299: ;
41511  return (14+retcycles);
41512 }
CPUFUNC(op_48b8_5)41513 unsigned long CPUFUNC(op_48b8_5)(uint32_t opcode) /* MVMLE */
41514 {
41515 	unsigned int retcycles = 0;
41516 	OpcodeFamily = 38; CurrentInstrCycles = 12;
41517 {	uint16_t mask = get_iword_prefetch(2);
41518 	retcycles = 0;
41519 {	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(4);
41520 	if ((srca & 1) != 0) {
41521 		last_fault_for_exception_3 = srca;
41522 		last_op_for_exception_3 = opcode;
41523 		last_addr_for_exception_3 = m68k_getpc() + 6;
41524 		Exception(3, 0, M68000_EXC_SRC_CPU);
41525 		goto endlabel2300;
41526 	}
41527 {m68k_incpc(6);
41528 fill_prefetch_0 ();
41529 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41530 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
41531 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
41532 }}}}endlabel2300: ;
41533  return (12+retcycles);
41534 }
CPUFUNC(op_48b9_5)41535 unsigned long CPUFUNC(op_48b9_5)(uint32_t opcode) /* MVMLE */
41536 {
41537 	unsigned int retcycles = 0;
41538 	OpcodeFamily = 38; CurrentInstrCycles = 16;
41539 {	uint16_t mask = get_iword_prefetch(2);
41540 	retcycles = 0;
41541 {	uint32_t srca = get_ilong_prefetch(4);
41542 	if ((srca & 1) != 0) {
41543 		last_fault_for_exception_3 = srca;
41544 		last_op_for_exception_3 = opcode;
41545 		last_addr_for_exception_3 = m68k_getpc() + 8;
41546 		Exception(3, 0, M68000_EXC_SRC_CPU);
41547 		goto endlabel2301;
41548 	}
41549 {m68k_incpc(8);
41550 fill_prefetch_0 ();
41551 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41552 	while (dmask) { m68k_write_memory_16(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
41553 	while (amask) { m68k_write_memory_16(srca, m68k_areg(regs, movem_index1[amask])); srca += 2; amask = movem_next[amask]; retcycles+=4; }
41554 }}}}endlabel2301: ;
41555  return (16+retcycles);
41556 }
CPUFUNC(op_48c0_5)41557 unsigned long CPUFUNC(op_48c0_5)(uint32_t opcode) /* EXT */
41558 {
41559 	uint32_t srcreg = (opcode & 7);
41560 	OpcodeFamily = 36; CurrentInstrCycles = 4;
41561 {{	int32_t src = m68k_dreg(regs, srcreg);
41562 {	uint32_t dst = (int32_t)(int16_t)src;
41563 	CLEAR_CZNV;
41564 	SET_ZFLG (((int32_t)(dst)) == 0);
41565 	SET_NFLG (((int32_t)(dst)) < 0);
41566 	m68k_dreg(regs, srcreg) = (dst);
41567 }}}m68k_incpc(2);
41568 fill_prefetch_2 ();
41569 return 4;
41570 }
CPUFUNC(op_48d0_5)41571 unsigned long CPUFUNC(op_48d0_5)(uint32_t opcode) /* MVMLE */
41572 {
41573 	uint32_t dstreg = opcode & 7;
41574 	unsigned int retcycles = 0;
41575 	OpcodeFamily = 38; CurrentInstrCycles = 8;
41576 {	uint16_t mask = get_iword_prefetch(2);
41577 	retcycles = 0;
41578 {	uint32_t srca = m68k_areg(regs, dstreg);
41579 	if ((srca & 1) != 0) {
41580 		last_fault_for_exception_3 = srca;
41581 		last_op_for_exception_3 = opcode;
41582 		last_addr_for_exception_3 = m68k_getpc() + 4;
41583 		Exception(3, 0, M68000_EXC_SRC_CPU);
41584 		goto endlabel2303;
41585 	}
41586 {m68k_incpc(4);
41587 fill_prefetch_0 ();
41588 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41589 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
41590 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
41591 }}}}endlabel2303: ;
41592  return (8+retcycles);
41593 }
CPUFUNC(op_48e0_5)41594 unsigned long CPUFUNC(op_48e0_5)(uint32_t opcode) /* MVMLE */
41595 {
41596 	uint32_t dstreg = opcode & 7;
41597 	unsigned int retcycles = 0;
41598 	OpcodeFamily = 38; CurrentInstrCycles = 8;
41599 {	uint16_t mask = get_iword_prefetch(2);
41600 	retcycles = 0;
41601 {	uint32_t srca = m68k_areg(regs, dstreg) - 0;
41602 	if ((srca & 1) != 0) {
41603 		last_fault_for_exception_3 = srca;
41604 		last_op_for_exception_3 = opcode;
41605 		last_addr_for_exception_3 = m68k_getpc() + 4;
41606 		Exception(3, 0, M68000_EXC_SRC_CPU);
41607 		goto endlabel2304;
41608 	}
41609 {m68k_incpc(4);
41610 fill_prefetch_0 ();
41611 {	uint16_t amask = mask & 0xff, dmask = (mask >> 8) & 0xff;
41612 	while (amask) { srca -= 4; m68k_write_memory_32(srca, m68k_areg(regs, movem_index2[amask])); amask = movem_next[amask]; retcycles+=8; }
41613 	while (dmask) { srca -= 4; m68k_write_memory_32(srca, m68k_dreg(regs, movem_index2[dmask])); dmask = movem_next[dmask]; retcycles+=8; }
41614 	m68k_areg(regs, dstreg) = srca;
41615 }}}}endlabel2304: ;
41616  return (8+retcycles);
41617 }
CPUFUNC(op_48e8_5)41618 unsigned long CPUFUNC(op_48e8_5)(uint32_t opcode) /* MVMLE */
41619 {
41620 	uint32_t dstreg = opcode & 7;
41621 	unsigned int retcycles = 0;
41622 	OpcodeFamily = 38; CurrentInstrCycles = 12;
41623 {	uint16_t mask = get_iword_prefetch(2);
41624 	retcycles = 0;
41625 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
41626 	if ((srca & 1) != 0) {
41627 		last_fault_for_exception_3 = srca;
41628 		last_op_for_exception_3 = opcode;
41629 		last_addr_for_exception_3 = m68k_getpc() + 6;
41630 		Exception(3, 0, M68000_EXC_SRC_CPU);
41631 		goto endlabel2305;
41632 	}
41633 {m68k_incpc(6);
41634 fill_prefetch_0 ();
41635 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41636 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
41637 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
41638 }}}}endlabel2305: ;
41639  return (12+retcycles);
41640 }
CPUFUNC(op_48f0_5)41641 unsigned long CPUFUNC(op_48f0_5)(uint32_t opcode) /* MVMLE */
41642 {
41643 	uint32_t dstreg = opcode & 7;
41644 	unsigned int retcycles = 0;
41645 	OpcodeFamily = 38; CurrentInstrCycles = 14;
41646 {	uint16_t mask = get_iword_prefetch(2);
41647 	retcycles = 0;
41648 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
41649 	BusCyclePenalty += 2;
41650 	if ((srca & 1) != 0) {
41651 		last_fault_for_exception_3 = srca;
41652 		last_op_for_exception_3 = opcode;
41653 		last_addr_for_exception_3 = m68k_getpc() + 6;
41654 		Exception(3, 0, M68000_EXC_SRC_CPU);
41655 		goto endlabel2306;
41656 	}
41657 {m68k_incpc(6);
41658 fill_prefetch_0 ();
41659 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41660 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
41661 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
41662 }}}}endlabel2306: ;
41663  return (14+retcycles);
41664 }
CPUFUNC(op_48f8_5)41665 unsigned long CPUFUNC(op_48f8_5)(uint32_t opcode) /* MVMLE */
41666 {
41667 	unsigned int retcycles = 0;
41668 	OpcodeFamily = 38; CurrentInstrCycles = 12;
41669 {	uint16_t mask = get_iword_prefetch(2);
41670 	retcycles = 0;
41671 {	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(4);
41672 	if ((srca & 1) != 0) {
41673 		last_fault_for_exception_3 = srca;
41674 		last_op_for_exception_3 = opcode;
41675 		last_addr_for_exception_3 = m68k_getpc() + 6;
41676 		Exception(3, 0, M68000_EXC_SRC_CPU);
41677 		goto endlabel2307;
41678 	}
41679 {m68k_incpc(6);
41680 fill_prefetch_0 ();
41681 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41682 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
41683 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
41684 }}}}endlabel2307: ;
41685  return (12+retcycles);
41686 }
CPUFUNC(op_48f9_5)41687 unsigned long CPUFUNC(op_48f9_5)(uint32_t opcode) /* MVMLE */
41688 {
41689 	unsigned int retcycles = 0;
41690 	OpcodeFamily = 38; CurrentInstrCycles = 16;
41691 {	uint16_t mask = get_iword_prefetch(2);
41692 	retcycles = 0;
41693 {	uint32_t srca = get_ilong_prefetch(4);
41694 	if ((srca & 1) != 0) {
41695 		last_fault_for_exception_3 = srca;
41696 		last_op_for_exception_3 = opcode;
41697 		last_addr_for_exception_3 = m68k_getpc() + 8;
41698 		Exception(3, 0, M68000_EXC_SRC_CPU);
41699 		goto endlabel2308;
41700 	}
41701 {m68k_incpc(8);
41702 fill_prefetch_0 ();
41703 {	uint16_t dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
41704 	while (dmask) { m68k_write_memory_32(srca, m68k_dreg(regs, movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
41705 	while (amask) { m68k_write_memory_32(srca, m68k_areg(regs, movem_index1[amask])); srca += 4; amask = movem_next[amask]; retcycles+=8; }
41706 }}}}endlabel2308: ;
41707  return (16+retcycles);
41708 }
CPUFUNC(op_4a00_5)41709 unsigned long CPUFUNC(op_4a00_5)(uint32_t opcode) /* TST */
41710 {
41711 	uint32_t srcreg = (opcode & 7);
41712 	OpcodeFamily = 20; CurrentInstrCycles = 4;
41713 {{	int8_t src = m68k_dreg(regs, srcreg);
41714 	CLEAR_CZNV;
41715 	SET_ZFLG (((int8_t)(src)) == 0);
41716 	SET_NFLG (((int8_t)(src)) < 0);
41717 }}m68k_incpc(2);
41718 fill_prefetch_2 ();
41719 return 4;
41720 }
CPUFUNC(op_4a10_5)41721 unsigned long CPUFUNC(op_4a10_5)(uint32_t opcode) /* TST */
41722 {
41723 	uint32_t srcreg = (opcode & 7);
41724 	OpcodeFamily = 20; CurrentInstrCycles = 8;
41725 {{	uint32_t srca = m68k_areg(regs, srcreg);
41726 {	int8_t src = m68k_read_memory_8(srca);
41727 	CLEAR_CZNV;
41728 	SET_ZFLG (((int8_t)(src)) == 0);
41729 	SET_NFLG (((int8_t)(src)) < 0);
41730 }}}m68k_incpc(2);
41731 fill_prefetch_2 ();
41732 return 8;
41733 }
CPUFUNC(op_4a18_5)41734 unsigned long CPUFUNC(op_4a18_5)(uint32_t opcode) /* TST */
41735 {
41736 	uint32_t srcreg = (opcode & 7);
41737 	OpcodeFamily = 20; CurrentInstrCycles = 8;
41738 {{	uint32_t srca = m68k_areg(regs, srcreg);
41739 {	int8_t src = m68k_read_memory_8(srca);
41740 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
41741 	CLEAR_CZNV;
41742 	SET_ZFLG (((int8_t)(src)) == 0);
41743 	SET_NFLG (((int8_t)(src)) < 0);
41744 }}}m68k_incpc(2);
41745 fill_prefetch_2 ();
41746 return 8;
41747 }
CPUFUNC(op_4a20_5)41748 unsigned long CPUFUNC(op_4a20_5)(uint32_t opcode) /* TST */
41749 {
41750 	uint32_t srcreg = (opcode & 7);
41751 	OpcodeFamily = 20; CurrentInstrCycles = 10;
41752 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
41753 {	int8_t src = m68k_read_memory_8(srca);
41754 	m68k_areg (regs, srcreg) = srca;
41755 	CLEAR_CZNV;
41756 	SET_ZFLG (((int8_t)(src)) == 0);
41757 	SET_NFLG (((int8_t)(src)) < 0);
41758 }}}m68k_incpc(2);
41759 fill_prefetch_2 ();
41760 return 10;
41761 }
CPUFUNC(op_4a28_5)41762 unsigned long CPUFUNC(op_4a28_5)(uint32_t opcode) /* TST */
41763 {
41764 	uint32_t srcreg = (opcode & 7);
41765 	OpcodeFamily = 20; CurrentInstrCycles = 12;
41766 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
41767 {	int8_t src = m68k_read_memory_8(srca);
41768 	CLEAR_CZNV;
41769 	SET_ZFLG (((int8_t)(src)) == 0);
41770 	SET_NFLG (((int8_t)(src)) < 0);
41771 }}}m68k_incpc(4);
41772 fill_prefetch_0 ();
41773 return 12;
41774 }
CPUFUNC(op_4a30_5)41775 unsigned long CPUFUNC(op_4a30_5)(uint32_t opcode) /* TST */
41776 {
41777 	uint32_t srcreg = (opcode & 7);
41778 	OpcodeFamily = 20; CurrentInstrCycles = 14;
41779 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
41780 	BusCyclePenalty += 2;
41781 {	int8_t src = m68k_read_memory_8(srca);
41782 	CLEAR_CZNV;
41783 	SET_ZFLG (((int8_t)(src)) == 0);
41784 	SET_NFLG (((int8_t)(src)) < 0);
41785 }}}m68k_incpc(4);
41786 fill_prefetch_0 ();
41787 return 14;
41788 }
CPUFUNC(op_4a38_5)41789 unsigned long CPUFUNC(op_4a38_5)(uint32_t opcode) /* TST */
41790 {
41791 	OpcodeFamily = 20; CurrentInstrCycles = 12;
41792 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
41793 {	int8_t src = m68k_read_memory_8(srca);
41794 	CLEAR_CZNV;
41795 	SET_ZFLG (((int8_t)(src)) == 0);
41796 	SET_NFLG (((int8_t)(src)) < 0);
41797 }}}m68k_incpc(4);
41798 fill_prefetch_0 ();
41799 return 12;
41800 }
CPUFUNC(op_4a39_5)41801 unsigned long CPUFUNC(op_4a39_5)(uint32_t opcode) /* TST */
41802 {
41803 	OpcodeFamily = 20; CurrentInstrCycles = 16;
41804 {{	uint32_t srca = get_ilong_prefetch(2);
41805 {	int8_t src = m68k_read_memory_8(srca);
41806 	CLEAR_CZNV;
41807 	SET_ZFLG (((int8_t)(src)) == 0);
41808 	SET_NFLG (((int8_t)(src)) < 0);
41809 }}}m68k_incpc(6);
41810 fill_prefetch_0 ();
41811 return 16;
41812 }
CPUFUNC(op_4a3a_5)41813 unsigned long CPUFUNC(op_4a3a_5)(uint32_t opcode) /* TST */
41814 {
41815 	OpcodeFamily = 20; CurrentInstrCycles = 12;
41816 {{	uint32_t srca = m68k_getpc () + 2;
41817 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
41818 {	int8_t src = m68k_read_memory_8(srca);
41819 	CLEAR_CZNV;
41820 	SET_ZFLG (((int8_t)(src)) == 0);
41821 	SET_NFLG (((int8_t)(src)) < 0);
41822 }}}m68k_incpc(4);
41823 fill_prefetch_0 ();
41824 return 12;
41825 }
CPUFUNC(op_4a3b_5)41826 unsigned long CPUFUNC(op_4a3b_5)(uint32_t opcode) /* TST */
41827 {
41828 	OpcodeFamily = 20; CurrentInstrCycles = 14;
41829 {{	uint32_t tmppc = m68k_getpc() + 2;
41830 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
41831 	BusCyclePenalty += 2;
41832 {	int8_t src = m68k_read_memory_8(srca);
41833 	CLEAR_CZNV;
41834 	SET_ZFLG (((int8_t)(src)) == 0);
41835 	SET_NFLG (((int8_t)(src)) < 0);
41836 }}}m68k_incpc(4);
41837 fill_prefetch_0 ();
41838 return 14;
41839 }
CPUFUNC(op_4a3c_5)41840 unsigned long CPUFUNC(op_4a3c_5)(uint32_t opcode) /* TST */
41841 {
41842 	OpcodeFamily = 20; CurrentInstrCycles = 8;
41843 {{	int8_t src = get_ibyte_prefetch(2);
41844 	CLEAR_CZNV;
41845 	SET_ZFLG (((int8_t)(src)) == 0);
41846 	SET_NFLG (((int8_t)(src)) < 0);
41847 }}m68k_incpc(4);
41848 fill_prefetch_0 ();
41849 return 8;
41850 }
CPUFUNC(op_4a40_5)41851 unsigned long CPUFUNC(op_4a40_5)(uint32_t opcode) /* TST */
41852 {
41853 	uint32_t srcreg = (opcode & 7);
41854 	OpcodeFamily = 20; CurrentInstrCycles = 4;
41855 {{	int16_t src = m68k_dreg(regs, srcreg);
41856 	CLEAR_CZNV;
41857 	SET_ZFLG (((int16_t)(src)) == 0);
41858 	SET_NFLG (((int16_t)(src)) < 0);
41859 }}m68k_incpc(2);
41860 fill_prefetch_2 ();
41861 return 4;
41862 }
CPUFUNC(op_4a48_5)41863 unsigned long CPUFUNC(op_4a48_5)(uint32_t opcode) /* TST */
41864 {
41865 	uint32_t srcreg = (opcode & 7);
41866 	OpcodeFamily = 20; CurrentInstrCycles = 4;
41867 {{	int16_t src = m68k_areg(regs, srcreg);
41868 	CLEAR_CZNV;
41869 	SET_ZFLG (((int16_t)(src)) == 0);
41870 	SET_NFLG (((int16_t)(src)) < 0);
41871 }}m68k_incpc(2);
41872 fill_prefetch_2 ();
41873 return 4;
41874 }
CPUFUNC(op_4a50_5)41875 unsigned long CPUFUNC(op_4a50_5)(uint32_t opcode) /* TST */
41876 {
41877 	uint32_t srcreg = (opcode & 7);
41878 	OpcodeFamily = 20; CurrentInstrCycles = 8;
41879 {{	uint32_t srca = m68k_areg(regs, srcreg);
41880 	if ((srca & 1) != 0) {
41881 		last_fault_for_exception_3 = srca;
41882 		last_op_for_exception_3 = opcode;
41883 		last_addr_for_exception_3 = m68k_getpc() + 2;
41884 		Exception(3, 0, M68000_EXC_SRC_CPU);
41885 		goto endlabel2322;
41886 	}
41887 {{	int16_t src = m68k_read_memory_16(srca);
41888 	CLEAR_CZNV;
41889 	SET_ZFLG (((int16_t)(src)) == 0);
41890 	SET_NFLG (((int16_t)(src)) < 0);
41891 }}}}m68k_incpc(2);
41892 fill_prefetch_2 ();
41893 endlabel2322: ;
41894 return 8;
41895 }
CPUFUNC(op_4a58_5)41896 unsigned long CPUFUNC(op_4a58_5)(uint32_t opcode) /* TST */
41897 {
41898 	uint32_t srcreg = (opcode & 7);
41899 	OpcodeFamily = 20; CurrentInstrCycles = 8;
41900 {{	uint32_t srca = m68k_areg(regs, srcreg);
41901 	if ((srca & 1) != 0) {
41902 		last_fault_for_exception_3 = srca;
41903 		last_op_for_exception_3 = opcode;
41904 		last_addr_for_exception_3 = m68k_getpc() + 2;
41905 		Exception(3, 0, M68000_EXC_SRC_CPU);
41906 		goto endlabel2323;
41907 	}
41908 {{	int16_t src = m68k_read_memory_16(srca);
41909 	m68k_areg(regs, srcreg) += 2;
41910 	CLEAR_CZNV;
41911 	SET_ZFLG (((int16_t)(src)) == 0);
41912 	SET_NFLG (((int16_t)(src)) < 0);
41913 }}}}m68k_incpc(2);
41914 fill_prefetch_2 ();
41915 endlabel2323: ;
41916 return 8;
41917 }
CPUFUNC(op_4a60_5)41918 unsigned long CPUFUNC(op_4a60_5)(uint32_t opcode) /* TST */
41919 {
41920 	uint32_t srcreg = (opcode & 7);
41921 	OpcodeFamily = 20; CurrentInstrCycles = 10;
41922 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
41923 	if ((srca & 1) != 0) {
41924 		last_fault_for_exception_3 = srca;
41925 		last_op_for_exception_3 = opcode;
41926 		last_addr_for_exception_3 = m68k_getpc() + 2;
41927 		Exception(3, 0, M68000_EXC_SRC_CPU);
41928 		goto endlabel2324;
41929 	}
41930 {{	int16_t src = m68k_read_memory_16(srca);
41931 	m68k_areg (regs, srcreg) = srca;
41932 	CLEAR_CZNV;
41933 	SET_ZFLG (((int16_t)(src)) == 0);
41934 	SET_NFLG (((int16_t)(src)) < 0);
41935 }}}}m68k_incpc(2);
41936 fill_prefetch_2 ();
41937 endlabel2324: ;
41938 return 10;
41939 }
CPUFUNC(op_4a68_5)41940 unsigned long CPUFUNC(op_4a68_5)(uint32_t opcode) /* TST */
41941 {
41942 	uint32_t srcreg = (opcode & 7);
41943 	OpcodeFamily = 20; CurrentInstrCycles = 12;
41944 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
41945 	if ((srca & 1) != 0) {
41946 		last_fault_for_exception_3 = srca;
41947 		last_op_for_exception_3 = opcode;
41948 		last_addr_for_exception_3 = m68k_getpc() + 4;
41949 		Exception(3, 0, M68000_EXC_SRC_CPU);
41950 		goto endlabel2325;
41951 	}
41952 {{	int16_t src = m68k_read_memory_16(srca);
41953 	CLEAR_CZNV;
41954 	SET_ZFLG (((int16_t)(src)) == 0);
41955 	SET_NFLG (((int16_t)(src)) < 0);
41956 }}}}m68k_incpc(4);
41957 fill_prefetch_0 ();
41958 endlabel2325: ;
41959 return 12;
41960 }
CPUFUNC(op_4a70_5)41961 unsigned long CPUFUNC(op_4a70_5)(uint32_t opcode) /* TST */
41962 {
41963 	uint32_t srcreg = (opcode & 7);
41964 	OpcodeFamily = 20; CurrentInstrCycles = 14;
41965 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
41966 	BusCyclePenalty += 2;
41967 	if ((srca & 1) != 0) {
41968 		last_fault_for_exception_3 = srca;
41969 		last_op_for_exception_3 = opcode;
41970 		last_addr_for_exception_3 = m68k_getpc() + 4;
41971 		Exception(3, 0, M68000_EXC_SRC_CPU);
41972 		goto endlabel2326;
41973 	}
41974 {{	int16_t src = m68k_read_memory_16(srca);
41975 	CLEAR_CZNV;
41976 	SET_ZFLG (((int16_t)(src)) == 0);
41977 	SET_NFLG (((int16_t)(src)) < 0);
41978 }}}}m68k_incpc(4);
41979 fill_prefetch_0 ();
41980 endlabel2326: ;
41981 return 14;
41982 }
CPUFUNC(op_4a78_5)41983 unsigned long CPUFUNC(op_4a78_5)(uint32_t opcode) /* TST */
41984 {
41985 	OpcodeFamily = 20; CurrentInstrCycles = 12;
41986 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
41987 	if ((srca & 1) != 0) {
41988 		last_fault_for_exception_3 = srca;
41989 		last_op_for_exception_3 = opcode;
41990 		last_addr_for_exception_3 = m68k_getpc() + 4;
41991 		Exception(3, 0, M68000_EXC_SRC_CPU);
41992 		goto endlabel2327;
41993 	}
41994 {{	int16_t src = m68k_read_memory_16(srca);
41995 	CLEAR_CZNV;
41996 	SET_ZFLG (((int16_t)(src)) == 0);
41997 	SET_NFLG (((int16_t)(src)) < 0);
41998 }}}}m68k_incpc(4);
41999 fill_prefetch_0 ();
42000 endlabel2327: ;
42001 return 12;
42002 }
CPUFUNC(op_4a79_5)42003 unsigned long CPUFUNC(op_4a79_5)(uint32_t opcode) /* TST */
42004 {
42005 	OpcodeFamily = 20; CurrentInstrCycles = 16;
42006 {{	uint32_t srca = get_ilong_prefetch(2);
42007 	if ((srca & 1) != 0) {
42008 		last_fault_for_exception_3 = srca;
42009 		last_op_for_exception_3 = opcode;
42010 		last_addr_for_exception_3 = m68k_getpc() + 6;
42011 		Exception(3, 0, M68000_EXC_SRC_CPU);
42012 		goto endlabel2328;
42013 	}
42014 {{	int16_t src = m68k_read_memory_16(srca);
42015 	CLEAR_CZNV;
42016 	SET_ZFLG (((int16_t)(src)) == 0);
42017 	SET_NFLG (((int16_t)(src)) < 0);
42018 }}}}m68k_incpc(6);
42019 fill_prefetch_0 ();
42020 endlabel2328: ;
42021 return 16;
42022 }
CPUFUNC(op_4a7a_5)42023 unsigned long CPUFUNC(op_4a7a_5)(uint32_t opcode) /* TST */
42024 {
42025 	OpcodeFamily = 20; CurrentInstrCycles = 12;
42026 {{	uint32_t srca = m68k_getpc () + 2;
42027 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
42028 	if ((srca & 1) != 0) {
42029 		last_fault_for_exception_3 = srca;
42030 		last_op_for_exception_3 = opcode;
42031 		last_addr_for_exception_3 = m68k_getpc() + 4;
42032 		Exception(3, 0, M68000_EXC_SRC_CPU);
42033 		goto endlabel2329;
42034 	}
42035 {{	int16_t src = m68k_read_memory_16(srca);
42036 	CLEAR_CZNV;
42037 	SET_ZFLG (((int16_t)(src)) == 0);
42038 	SET_NFLG (((int16_t)(src)) < 0);
42039 }}}}m68k_incpc(4);
42040 fill_prefetch_0 ();
42041 endlabel2329: ;
42042 return 12;
42043 }
CPUFUNC(op_4a7b_5)42044 unsigned long CPUFUNC(op_4a7b_5)(uint32_t opcode) /* TST */
42045 {
42046 	OpcodeFamily = 20; CurrentInstrCycles = 14;
42047 {{	uint32_t tmppc = m68k_getpc() + 2;
42048 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
42049 	BusCyclePenalty += 2;
42050 	if ((srca & 1) != 0) {
42051 		last_fault_for_exception_3 = srca;
42052 		last_op_for_exception_3 = opcode;
42053 		last_addr_for_exception_3 = m68k_getpc() + 4;
42054 		Exception(3, 0, M68000_EXC_SRC_CPU);
42055 		goto endlabel2330;
42056 	}
42057 {{	int16_t src = m68k_read_memory_16(srca);
42058 	CLEAR_CZNV;
42059 	SET_ZFLG (((int16_t)(src)) == 0);
42060 	SET_NFLG (((int16_t)(src)) < 0);
42061 }}}}m68k_incpc(4);
42062 fill_prefetch_0 ();
42063 endlabel2330: ;
42064 return 14;
42065 }
CPUFUNC(op_4a7c_5)42066 unsigned long CPUFUNC(op_4a7c_5)(uint32_t opcode) /* TST */
42067 {
42068 	OpcodeFamily = 20; CurrentInstrCycles = 8;
42069 {{	int16_t src = get_iword_prefetch(2);
42070 	CLEAR_CZNV;
42071 	SET_ZFLG (((int16_t)(src)) == 0);
42072 	SET_NFLG (((int16_t)(src)) < 0);
42073 }}m68k_incpc(4);
42074 fill_prefetch_0 ();
42075 return 8;
42076 }
CPUFUNC(op_4a80_5)42077 unsigned long CPUFUNC(op_4a80_5)(uint32_t opcode) /* TST */
42078 {
42079 	uint32_t srcreg = (opcode & 7);
42080 	OpcodeFamily = 20; CurrentInstrCycles = 4;
42081 {{	int32_t src = m68k_dreg(regs, srcreg);
42082 	CLEAR_CZNV;
42083 	SET_ZFLG (((int32_t)(src)) == 0);
42084 	SET_NFLG (((int32_t)(src)) < 0);
42085 }}m68k_incpc(2);
42086 fill_prefetch_2 ();
42087 return 4;
42088 }
CPUFUNC(op_4a88_5)42089 unsigned long CPUFUNC(op_4a88_5)(uint32_t opcode) /* TST */
42090 {
42091 	uint32_t srcreg = (opcode & 7);
42092 	OpcodeFamily = 20; CurrentInstrCycles = 4;
42093 {{	int32_t src = m68k_areg(regs, srcreg);
42094 	CLEAR_CZNV;
42095 	SET_ZFLG (((int32_t)(src)) == 0);
42096 	SET_NFLG (((int32_t)(src)) < 0);
42097 }}m68k_incpc(2);
42098 fill_prefetch_2 ();
42099 return 4;
42100 }
CPUFUNC(op_4a90_5)42101 unsigned long CPUFUNC(op_4a90_5)(uint32_t opcode) /* TST */
42102 {
42103 	uint32_t srcreg = (opcode & 7);
42104 	OpcodeFamily = 20; CurrentInstrCycles = 12;
42105 {{	uint32_t srca = m68k_areg(regs, srcreg);
42106 	if ((srca & 1) != 0) {
42107 		last_fault_for_exception_3 = srca;
42108 		last_op_for_exception_3 = opcode;
42109 		last_addr_for_exception_3 = m68k_getpc() + 2;
42110 		Exception(3, 0, M68000_EXC_SRC_CPU);
42111 		goto endlabel2334;
42112 	}
42113 {{	int32_t src = m68k_read_memory_32(srca);
42114 	CLEAR_CZNV;
42115 	SET_ZFLG (((int32_t)(src)) == 0);
42116 	SET_NFLG (((int32_t)(src)) < 0);
42117 }}}}m68k_incpc(2);
42118 fill_prefetch_2 ();
42119 endlabel2334: ;
42120 return 12;
42121 }
CPUFUNC(op_4a98_5)42122 unsigned long CPUFUNC(op_4a98_5)(uint32_t opcode) /* TST */
42123 {
42124 	uint32_t srcreg = (opcode & 7);
42125 	OpcodeFamily = 20; CurrentInstrCycles = 12;
42126 {{	uint32_t srca = m68k_areg(regs, srcreg);
42127 	if ((srca & 1) != 0) {
42128 		last_fault_for_exception_3 = srca;
42129 		last_op_for_exception_3 = opcode;
42130 		last_addr_for_exception_3 = m68k_getpc() + 2;
42131 		Exception(3, 0, M68000_EXC_SRC_CPU);
42132 		goto endlabel2335;
42133 	}
42134 {{	int32_t src = m68k_read_memory_32(srca);
42135 	m68k_areg(regs, srcreg) += 4;
42136 	CLEAR_CZNV;
42137 	SET_ZFLG (((int32_t)(src)) == 0);
42138 	SET_NFLG (((int32_t)(src)) < 0);
42139 }}}}m68k_incpc(2);
42140 fill_prefetch_2 ();
42141 endlabel2335: ;
42142 return 12;
42143 }
CPUFUNC(op_4aa0_5)42144 unsigned long CPUFUNC(op_4aa0_5)(uint32_t opcode) /* TST */
42145 {
42146 	uint32_t srcreg = (opcode & 7);
42147 	OpcodeFamily = 20; CurrentInstrCycles = 14;
42148 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
42149 	if ((srca & 1) != 0) {
42150 		last_fault_for_exception_3 = srca;
42151 		last_op_for_exception_3 = opcode;
42152 		last_addr_for_exception_3 = m68k_getpc() + 2;
42153 		Exception(3, 0, M68000_EXC_SRC_CPU);
42154 		goto endlabel2336;
42155 	}
42156 {{	int32_t src = m68k_read_memory_32(srca);
42157 	m68k_areg (regs, srcreg) = srca;
42158 	CLEAR_CZNV;
42159 	SET_ZFLG (((int32_t)(src)) == 0);
42160 	SET_NFLG (((int32_t)(src)) < 0);
42161 }}}}m68k_incpc(2);
42162 fill_prefetch_2 ();
42163 endlabel2336: ;
42164 return 14;
42165 }
CPUFUNC(op_4aa8_5)42166 unsigned long CPUFUNC(op_4aa8_5)(uint32_t opcode) /* TST */
42167 {
42168 	uint32_t srcreg = (opcode & 7);
42169 	OpcodeFamily = 20; CurrentInstrCycles = 16;
42170 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
42171 	if ((srca & 1) != 0) {
42172 		last_fault_for_exception_3 = srca;
42173 		last_op_for_exception_3 = opcode;
42174 		last_addr_for_exception_3 = m68k_getpc() + 4;
42175 		Exception(3, 0, M68000_EXC_SRC_CPU);
42176 		goto endlabel2337;
42177 	}
42178 {{	int32_t src = m68k_read_memory_32(srca);
42179 	CLEAR_CZNV;
42180 	SET_ZFLG (((int32_t)(src)) == 0);
42181 	SET_NFLG (((int32_t)(src)) < 0);
42182 }}}}m68k_incpc(4);
42183 fill_prefetch_0 ();
42184 endlabel2337: ;
42185 return 16;
42186 }
CPUFUNC(op_4ab0_5)42187 unsigned long CPUFUNC(op_4ab0_5)(uint32_t opcode) /* TST */
42188 {
42189 	uint32_t srcreg = (opcode & 7);
42190 	OpcodeFamily = 20; CurrentInstrCycles = 18;
42191 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
42192 	BusCyclePenalty += 2;
42193 	if ((srca & 1) != 0) {
42194 		last_fault_for_exception_3 = srca;
42195 		last_op_for_exception_3 = opcode;
42196 		last_addr_for_exception_3 = m68k_getpc() + 4;
42197 		Exception(3, 0, M68000_EXC_SRC_CPU);
42198 		goto endlabel2338;
42199 	}
42200 {{	int32_t src = m68k_read_memory_32(srca);
42201 	CLEAR_CZNV;
42202 	SET_ZFLG (((int32_t)(src)) == 0);
42203 	SET_NFLG (((int32_t)(src)) < 0);
42204 }}}}m68k_incpc(4);
42205 fill_prefetch_0 ();
42206 endlabel2338: ;
42207 return 18;
42208 }
CPUFUNC(op_4ab8_5)42209 unsigned long CPUFUNC(op_4ab8_5)(uint32_t opcode) /* TST */
42210 {
42211 	OpcodeFamily = 20; CurrentInstrCycles = 16;
42212 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
42213 	if ((srca & 1) != 0) {
42214 		last_fault_for_exception_3 = srca;
42215 		last_op_for_exception_3 = opcode;
42216 		last_addr_for_exception_3 = m68k_getpc() + 4;
42217 		Exception(3, 0, M68000_EXC_SRC_CPU);
42218 		goto endlabel2339;
42219 	}
42220 {{	int32_t src = m68k_read_memory_32(srca);
42221 	CLEAR_CZNV;
42222 	SET_ZFLG (((int32_t)(src)) == 0);
42223 	SET_NFLG (((int32_t)(src)) < 0);
42224 }}}}m68k_incpc(4);
42225 fill_prefetch_0 ();
42226 endlabel2339: ;
42227 return 16;
42228 }
CPUFUNC(op_4ab9_5)42229 unsigned long CPUFUNC(op_4ab9_5)(uint32_t opcode) /* TST */
42230 {
42231 	OpcodeFamily = 20; CurrentInstrCycles = 20;
42232 {{	uint32_t srca = get_ilong_prefetch(2);
42233 	if ((srca & 1) != 0) {
42234 		last_fault_for_exception_3 = srca;
42235 		last_op_for_exception_3 = opcode;
42236 		last_addr_for_exception_3 = m68k_getpc() + 6;
42237 		Exception(3, 0, M68000_EXC_SRC_CPU);
42238 		goto endlabel2340;
42239 	}
42240 {{	int32_t src = m68k_read_memory_32(srca);
42241 	CLEAR_CZNV;
42242 	SET_ZFLG (((int32_t)(src)) == 0);
42243 	SET_NFLG (((int32_t)(src)) < 0);
42244 }}}}m68k_incpc(6);
42245 fill_prefetch_0 ();
42246 endlabel2340: ;
42247 return 20;
42248 }
CPUFUNC(op_4aba_5)42249 unsigned long CPUFUNC(op_4aba_5)(uint32_t opcode) /* TST */
42250 {
42251 	OpcodeFamily = 20; CurrentInstrCycles = 16;
42252 {{	uint32_t srca = m68k_getpc () + 2;
42253 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
42254 	if ((srca & 1) != 0) {
42255 		last_fault_for_exception_3 = srca;
42256 		last_op_for_exception_3 = opcode;
42257 		last_addr_for_exception_3 = m68k_getpc() + 4;
42258 		Exception(3, 0, M68000_EXC_SRC_CPU);
42259 		goto endlabel2341;
42260 	}
42261 {{	int32_t src = m68k_read_memory_32(srca);
42262 	CLEAR_CZNV;
42263 	SET_ZFLG (((int32_t)(src)) == 0);
42264 	SET_NFLG (((int32_t)(src)) < 0);
42265 }}}}m68k_incpc(4);
42266 fill_prefetch_0 ();
42267 endlabel2341: ;
42268 return 16;
42269 }
CPUFUNC(op_4abb_5)42270 unsigned long CPUFUNC(op_4abb_5)(uint32_t opcode) /* TST */
42271 {
42272 	OpcodeFamily = 20; CurrentInstrCycles = 18;
42273 {{	uint32_t tmppc = m68k_getpc() + 2;
42274 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
42275 	BusCyclePenalty += 2;
42276 	if ((srca & 1) != 0) {
42277 		last_fault_for_exception_3 = srca;
42278 		last_op_for_exception_3 = opcode;
42279 		last_addr_for_exception_3 = m68k_getpc() + 4;
42280 		Exception(3, 0, M68000_EXC_SRC_CPU);
42281 		goto endlabel2342;
42282 	}
42283 {{	int32_t src = m68k_read_memory_32(srca);
42284 	CLEAR_CZNV;
42285 	SET_ZFLG (((int32_t)(src)) == 0);
42286 	SET_NFLG (((int32_t)(src)) < 0);
42287 }}}}m68k_incpc(4);
42288 fill_prefetch_0 ();
42289 endlabel2342: ;
42290 return 18;
42291 }
CPUFUNC(op_4abc_5)42292 unsigned long CPUFUNC(op_4abc_5)(uint32_t opcode) /* TST */
42293 {
42294 	OpcodeFamily = 20; CurrentInstrCycles = 12;
42295 {{	int32_t src = get_ilong_prefetch(2);
42296 	CLEAR_CZNV;
42297 	SET_ZFLG (((int32_t)(src)) == 0);
42298 	SET_NFLG (((int32_t)(src)) < 0);
42299 }}m68k_incpc(6);
42300 fill_prefetch_0 ();
42301 return 12;
42302 }
CPUFUNC(op_4ac0_5)42303 unsigned long CPUFUNC(op_4ac0_5)(uint32_t opcode) /* TAS */
42304 {
42305 	uint32_t srcreg = (opcode & 7);
42306 	OpcodeFamily = 98; CurrentInstrCycles = 4;
42307 {{	int8_t src = m68k_dreg(regs, srcreg);
42308 	CLEAR_CZNV;
42309 	SET_ZFLG (((int8_t)(src)) == 0);
42310 	SET_NFLG (((int8_t)(src)) < 0);
42311 	src |= 0x80;
42312 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((src) & 0xff);
42313 }}m68k_incpc(2);
42314 fill_prefetch_2 ();
42315 return 4;
42316 }
CPUFUNC(op_4ad0_5)42317 unsigned long CPUFUNC(op_4ad0_5)(uint32_t opcode) /* TAS */
42318 {
42319 	uint32_t srcreg = (opcode & 7);
42320 	OpcodeFamily = 98; CurrentInstrCycles = 14;
42321 {{	uint32_t srca = m68k_areg(regs, srcreg);
42322 {	int8_t src = m68k_read_memory_8(srca);
42323 	CLEAR_CZNV;
42324 	SET_ZFLG (((int8_t)(src)) == 0);
42325 	SET_NFLG (((int8_t)(src)) < 0);
42326 	src |= 0x80;
42327 m68k_incpc(2);
42328 fill_prefetch_2 ();
42329 	m68k_write_memory_8(srca,src);
42330 }}}return 14;
42331 }
CPUFUNC(op_4ad8_5)42332 unsigned long CPUFUNC(op_4ad8_5)(uint32_t opcode) /* TAS */
42333 {
42334 	uint32_t srcreg = (opcode & 7);
42335 	OpcodeFamily = 98; CurrentInstrCycles = 14;
42336 {{	uint32_t srca = m68k_areg(regs, srcreg);
42337 {	int8_t src = m68k_read_memory_8(srca);
42338 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
42339 	CLEAR_CZNV;
42340 	SET_ZFLG (((int8_t)(src)) == 0);
42341 	SET_NFLG (((int8_t)(src)) < 0);
42342 	src |= 0x80;
42343 m68k_incpc(2);
42344 fill_prefetch_2 ();
42345 	m68k_write_memory_8(srca,src);
42346 }}}return 14;
42347 }
CPUFUNC(op_4ae0_5)42348 unsigned long CPUFUNC(op_4ae0_5)(uint32_t opcode) /* TAS */
42349 {
42350 	uint32_t srcreg = (opcode & 7);
42351 	OpcodeFamily = 98; CurrentInstrCycles = 16;
42352 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
42353 {	int8_t src = m68k_read_memory_8(srca);
42354 	m68k_areg (regs, srcreg) = srca;
42355 	CLEAR_CZNV;
42356 	SET_ZFLG (((int8_t)(src)) == 0);
42357 	SET_NFLG (((int8_t)(src)) < 0);
42358 	src |= 0x80;
42359 m68k_incpc(2);
42360 fill_prefetch_2 ();
42361 	m68k_write_memory_8(srca,src);
42362 }}}return 16;
42363 }
CPUFUNC(op_4ae8_5)42364 unsigned long CPUFUNC(op_4ae8_5)(uint32_t opcode) /* TAS */
42365 {
42366 	uint32_t srcreg = (opcode & 7);
42367 	OpcodeFamily = 98; CurrentInstrCycles = 18;
42368 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
42369 {	int8_t src = m68k_read_memory_8(srca);
42370 	CLEAR_CZNV;
42371 	SET_ZFLG (((int8_t)(src)) == 0);
42372 	SET_NFLG (((int8_t)(src)) < 0);
42373 	src |= 0x80;
42374 m68k_incpc(4);
42375 fill_prefetch_0 ();
42376 	m68k_write_memory_8(srca,src);
42377 }}}return 18;
42378 }
CPUFUNC(op_4af0_5)42379 unsigned long CPUFUNC(op_4af0_5)(uint32_t opcode) /* TAS */
42380 {
42381 	uint32_t srcreg = (opcode & 7);
42382 	OpcodeFamily = 98; CurrentInstrCycles = 20;
42383 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
42384 	BusCyclePenalty += 2;
42385 {	int8_t src = m68k_read_memory_8(srca);
42386 	CLEAR_CZNV;
42387 	SET_ZFLG (((int8_t)(src)) == 0);
42388 	SET_NFLG (((int8_t)(src)) < 0);
42389 	src |= 0x80;
42390 m68k_incpc(4);
42391 fill_prefetch_0 ();
42392 	m68k_write_memory_8(srca,src);
42393 }}}return 20;
42394 }
CPUFUNC(op_4af8_5)42395 unsigned long CPUFUNC(op_4af8_5)(uint32_t opcode) /* TAS */
42396 {
42397 	OpcodeFamily = 98; CurrentInstrCycles = 18;
42398 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
42399 {	int8_t src = m68k_read_memory_8(srca);
42400 	CLEAR_CZNV;
42401 	SET_ZFLG (((int8_t)(src)) == 0);
42402 	SET_NFLG (((int8_t)(src)) < 0);
42403 	src |= 0x80;
42404 m68k_incpc(4);
42405 fill_prefetch_0 ();
42406 	m68k_write_memory_8(srca,src);
42407 }}}return 18;
42408 }
CPUFUNC(op_4af9_5)42409 unsigned long CPUFUNC(op_4af9_5)(uint32_t opcode) /* TAS */
42410 {
42411 	OpcodeFamily = 98; CurrentInstrCycles = 22;
42412 {{	uint32_t srca = get_ilong_prefetch(2);
42413 {	int8_t src = m68k_read_memory_8(srca);
42414 	CLEAR_CZNV;
42415 	SET_ZFLG (((int8_t)(src)) == 0);
42416 	SET_NFLG (((int8_t)(src)) < 0);
42417 	src |= 0x80;
42418 m68k_incpc(6);
42419 fill_prefetch_0 ();
42420 	m68k_write_memory_8(srca,src);
42421 }}}return 22;
42422 }
CPUFUNC(op_4c90_5)42423 unsigned long CPUFUNC(op_4c90_5)(uint32_t opcode) /* MVMEL */
42424 {
42425 	uint32_t dstreg = opcode & 7;
42426 	unsigned int retcycles = 0;
42427 	OpcodeFamily = 37; CurrentInstrCycles = 12;
42428 {	uint16_t mask = get_iword_prefetch(2);
42429 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42430 	retcycles = 0;
42431 {	uint32_t srca = m68k_areg(regs, dstreg);
42432 	if ((srca & 1) != 0) {
42433 		last_fault_for_exception_3 = srca;
42434 		last_op_for_exception_3 = opcode;
42435 		last_addr_for_exception_3 = m68k_getpc() + 4;
42436 		Exception(3, 0, M68000_EXC_SRC_CPU);
42437 		goto endlabel2352;
42438 	}
42439 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42440 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42441 }}}}m68k_incpc(4);
42442 fill_prefetch_0 ();
42443 endlabel2352: ;
42444  return (12+retcycles);
42445 }
CPUFUNC(op_4c98_5)42446 unsigned long CPUFUNC(op_4c98_5)(uint32_t opcode) /* MVMEL */
42447 {
42448 	uint32_t dstreg = opcode & 7;
42449 	unsigned int retcycles = 0;
42450 	OpcodeFamily = 37; CurrentInstrCycles = 12;
42451 {	uint16_t mask = get_iword_prefetch(2);
42452 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42453 	retcycles = 0;
42454 {	uint32_t srca = m68k_areg(regs, dstreg);
42455 	if ((srca & 1) != 0) {
42456 		last_fault_for_exception_3 = srca;
42457 		last_op_for_exception_3 = opcode;
42458 		last_addr_for_exception_3 = m68k_getpc() + 4;
42459 		Exception(3, 0, M68000_EXC_SRC_CPU);
42460 		goto endlabel2353;
42461 	}
42462 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42463 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42464 	m68k_areg(regs, dstreg) = srca;
42465 }}}}m68k_incpc(4);
42466 fill_prefetch_0 ();
42467 endlabel2353: ;
42468  return (12+retcycles);
42469 }
CPUFUNC(op_4ca8_5)42470 unsigned long CPUFUNC(op_4ca8_5)(uint32_t opcode) /* MVMEL */
42471 {
42472 	uint32_t dstreg = opcode & 7;
42473 	unsigned int retcycles = 0;
42474 	OpcodeFamily = 37; CurrentInstrCycles = 16;
42475 {	uint16_t mask = get_iword_prefetch(2);
42476 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42477 	retcycles = 0;
42478 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
42479 	if ((srca & 1) != 0) {
42480 		last_fault_for_exception_3 = srca;
42481 		last_op_for_exception_3 = opcode;
42482 		last_addr_for_exception_3 = m68k_getpc() + 6;
42483 		Exception(3, 0, M68000_EXC_SRC_CPU);
42484 		goto endlabel2354;
42485 	}
42486 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42487 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42488 }}}}m68k_incpc(6);
42489 fill_prefetch_0 ();
42490 endlabel2354: ;
42491  return (16+retcycles);
42492 }
CPUFUNC(op_4cb0_5)42493 unsigned long CPUFUNC(op_4cb0_5)(uint32_t opcode) /* MVMEL */
42494 {
42495 	uint32_t dstreg = opcode & 7;
42496 	unsigned int retcycles = 0;
42497 	OpcodeFamily = 37; CurrentInstrCycles = 18;
42498 {	uint16_t mask = get_iword_prefetch(2);
42499 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42500 	retcycles = 0;
42501 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
42502 	BusCyclePenalty += 2;
42503 	if ((srca & 1) != 0) {
42504 		last_fault_for_exception_3 = srca;
42505 		last_op_for_exception_3 = opcode;
42506 		last_addr_for_exception_3 = m68k_getpc() + 6;
42507 		Exception(3, 0, M68000_EXC_SRC_CPU);
42508 		goto endlabel2355;
42509 	}
42510 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42511 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42512 }}}}m68k_incpc(6);
42513 fill_prefetch_0 ();
42514 endlabel2355: ;
42515  return (18+retcycles);
42516 }
CPUFUNC(op_4cb8_5)42517 unsigned long CPUFUNC(op_4cb8_5)(uint32_t opcode) /* MVMEL */
42518 {
42519 	unsigned int retcycles = 0;
42520 	OpcodeFamily = 37; CurrentInstrCycles = 16;
42521 {	uint16_t mask = get_iword_prefetch(2);
42522 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42523 	retcycles = 0;
42524 {	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(4);
42525 	if ((srca & 1) != 0) {
42526 		last_fault_for_exception_3 = srca;
42527 		last_op_for_exception_3 = opcode;
42528 		last_addr_for_exception_3 = m68k_getpc() + 6;
42529 		Exception(3, 0, M68000_EXC_SRC_CPU);
42530 		goto endlabel2356;
42531 	}
42532 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42533 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42534 }}}}m68k_incpc(6);
42535 fill_prefetch_0 ();
42536 endlabel2356: ;
42537  return (16+retcycles);
42538 }
CPUFUNC(op_4cb9_5)42539 unsigned long CPUFUNC(op_4cb9_5)(uint32_t opcode) /* MVMEL */
42540 {
42541 	unsigned int retcycles = 0;
42542 	OpcodeFamily = 37; CurrentInstrCycles = 20;
42543 {	uint16_t mask = get_iword_prefetch(2);
42544 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42545 	retcycles = 0;
42546 {	uint32_t srca = get_ilong_prefetch(4);
42547 	if ((srca & 1) != 0) {
42548 		last_fault_for_exception_3 = srca;
42549 		last_op_for_exception_3 = opcode;
42550 		last_addr_for_exception_3 = m68k_getpc() + 8;
42551 		Exception(3, 0, M68000_EXC_SRC_CPU);
42552 		goto endlabel2357;
42553 	}
42554 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42555 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42556 }}}}m68k_incpc(8);
42557 fill_prefetch_0 ();
42558 endlabel2357: ;
42559  return (20+retcycles);
42560 }
CPUFUNC(op_4cba_5)42561 unsigned long CPUFUNC(op_4cba_5)(uint32_t opcode) /* MVMEL */
42562 {
42563 	uint32_t dstreg = 2;
42564 	unsigned int retcycles = 0;
42565 	OpcodeFamily = 37; CurrentInstrCycles = 16;
42566 {	uint16_t mask = get_iword_prefetch(2);
42567 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42568 	retcycles = 0;
42569 {	uint32_t srca = m68k_getpc () + 4;
42570 	srca += (int32_t)(int16_t)get_iword_prefetch(4);
42571 	if ((srca & 1) != 0) {
42572 		last_fault_for_exception_3 = srca;
42573 		last_op_for_exception_3 = opcode;
42574 		last_addr_for_exception_3 = m68k_getpc() + 6;
42575 		Exception(3, 0, M68000_EXC_SRC_CPU);
42576 		goto endlabel2358;
42577 	}
42578 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42579 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42580 }}}}m68k_incpc(6);
42581 fill_prefetch_0 ();
42582 endlabel2358: ;
42583  return (16+retcycles);
42584 }
CPUFUNC(op_4cbb_5)42585 unsigned long CPUFUNC(op_4cbb_5)(uint32_t opcode) /* MVMEL */
42586 {
42587 	uint32_t dstreg = 3;
42588 	unsigned int retcycles = 0;
42589 	OpcodeFamily = 37; CurrentInstrCycles = 18;
42590 {	uint16_t mask = get_iword_prefetch(2);
42591 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42592 	retcycles = 0;
42593 {	uint32_t tmppc = m68k_getpc() + 4;
42594 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(4));
42595 	BusCyclePenalty += 2;
42596 	if ((srca & 1) != 0) {
42597 		last_fault_for_exception_3 = srca;
42598 		last_op_for_exception_3 = opcode;
42599 		last_addr_for_exception_3 = m68k_getpc() + 6;
42600 		Exception(3, 0, M68000_EXC_SRC_CPU);
42601 		goto endlabel2359;
42602 	}
42603 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; dmask = movem_next[dmask]; retcycles+=4; }
42604 	while (amask) { m68k_areg(regs, movem_index1[amask]) = (int32_t)(int16_t)m68k_read_memory_16(srca); srca += 2; amask = movem_next[amask]; retcycles+=4; }
42605 }}}}m68k_incpc(6);
42606 fill_prefetch_0 ();
42607 endlabel2359: ;
42608  return (18+retcycles);
42609 }
CPUFUNC(op_4cd0_5)42610 unsigned long CPUFUNC(op_4cd0_5)(uint32_t opcode) /* MVMEL */
42611 {
42612 	uint32_t dstreg = opcode & 7;
42613 	unsigned int retcycles = 0;
42614 	OpcodeFamily = 37; CurrentInstrCycles = 12;
42615 {	uint16_t mask = get_iword_prefetch(2);
42616 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42617 	retcycles = 0;
42618 {	uint32_t srca = m68k_areg(regs, dstreg);
42619 	if ((srca & 1) != 0) {
42620 		last_fault_for_exception_3 = srca;
42621 		last_op_for_exception_3 = opcode;
42622 		last_addr_for_exception_3 = m68k_getpc() + 4;
42623 		Exception(3, 0, M68000_EXC_SRC_CPU);
42624 		goto endlabel2360;
42625 	}
42626 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42627 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42628 }}}}m68k_incpc(4);
42629 fill_prefetch_0 ();
42630 endlabel2360: ;
42631  return (12+retcycles);
42632 }
CPUFUNC(op_4cd8_5)42633 unsigned long CPUFUNC(op_4cd8_5)(uint32_t opcode) /* MVMEL */
42634 {
42635 	uint32_t dstreg = opcode & 7;
42636 	unsigned int retcycles = 0;
42637 	OpcodeFamily = 37; CurrentInstrCycles = 12;
42638 {	uint16_t mask = get_iword_prefetch(2);
42639 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42640 	retcycles = 0;
42641 {	uint32_t srca = m68k_areg(regs, dstreg);
42642 	if ((srca & 1) != 0) {
42643 		last_fault_for_exception_3 = srca;
42644 		last_op_for_exception_3 = opcode;
42645 		last_addr_for_exception_3 = m68k_getpc() + 4;
42646 		Exception(3, 0, M68000_EXC_SRC_CPU);
42647 		goto endlabel2361;
42648 	}
42649 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42650 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42651 	m68k_areg(regs, dstreg) = srca;
42652 }}}}m68k_incpc(4);
42653 fill_prefetch_0 ();
42654 endlabel2361: ;
42655  return (12+retcycles);
42656 }
CPUFUNC(op_4ce8_5)42657 unsigned long CPUFUNC(op_4ce8_5)(uint32_t opcode) /* MVMEL */
42658 {
42659 	uint32_t dstreg = opcode & 7;
42660 	unsigned int retcycles = 0;
42661 	OpcodeFamily = 37; CurrentInstrCycles = 16;
42662 {	uint16_t mask = get_iword_prefetch(2);
42663 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42664 	retcycles = 0;
42665 {	uint32_t srca = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(4);
42666 	if ((srca & 1) != 0) {
42667 		last_fault_for_exception_3 = srca;
42668 		last_op_for_exception_3 = opcode;
42669 		last_addr_for_exception_3 = m68k_getpc() + 6;
42670 		Exception(3, 0, M68000_EXC_SRC_CPU);
42671 		goto endlabel2362;
42672 	}
42673 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42674 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42675 }}}}m68k_incpc(6);
42676 fill_prefetch_0 ();
42677 endlabel2362: ;
42678  return (16+retcycles);
42679 }
CPUFUNC(op_4cf0_5)42680 unsigned long CPUFUNC(op_4cf0_5)(uint32_t opcode) /* MVMEL */
42681 {
42682 	uint32_t dstreg = opcode & 7;
42683 	unsigned int retcycles = 0;
42684 	OpcodeFamily = 37; CurrentInstrCycles = 18;
42685 {	uint16_t mask = get_iword_prefetch(2);
42686 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42687 	retcycles = 0;
42688 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(4));
42689 	BusCyclePenalty += 2;
42690 	if ((srca & 1) != 0) {
42691 		last_fault_for_exception_3 = srca;
42692 		last_op_for_exception_3 = opcode;
42693 		last_addr_for_exception_3 = m68k_getpc() + 6;
42694 		Exception(3, 0, M68000_EXC_SRC_CPU);
42695 		goto endlabel2363;
42696 	}
42697 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42698 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42699 }}}}m68k_incpc(6);
42700 fill_prefetch_0 ();
42701 endlabel2363: ;
42702  return (18+retcycles);
42703 }
CPUFUNC(op_4cf8_5)42704 unsigned long CPUFUNC(op_4cf8_5)(uint32_t opcode) /* MVMEL */
42705 {
42706 	unsigned int retcycles = 0;
42707 	OpcodeFamily = 37; CurrentInstrCycles = 16;
42708 {	uint16_t mask = get_iword_prefetch(2);
42709 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42710 	retcycles = 0;
42711 {	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(4);
42712 	if ((srca & 1) != 0) {
42713 		last_fault_for_exception_3 = srca;
42714 		last_op_for_exception_3 = opcode;
42715 		last_addr_for_exception_3 = m68k_getpc() + 6;
42716 		Exception(3, 0, M68000_EXC_SRC_CPU);
42717 		goto endlabel2364;
42718 	}
42719 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42720 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42721 }}}}m68k_incpc(6);
42722 fill_prefetch_0 ();
42723 endlabel2364: ;
42724  return (16+retcycles);
42725 }
CPUFUNC(op_4cf9_5)42726 unsigned long CPUFUNC(op_4cf9_5)(uint32_t opcode) /* MVMEL */
42727 {
42728 	unsigned int retcycles = 0;
42729 	OpcodeFamily = 37; CurrentInstrCycles = 20;
42730 {	uint16_t mask = get_iword_prefetch(2);
42731 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42732 	retcycles = 0;
42733 {	uint32_t srca = get_ilong_prefetch(4);
42734 	if ((srca & 1) != 0) {
42735 		last_fault_for_exception_3 = srca;
42736 		last_op_for_exception_3 = opcode;
42737 		last_addr_for_exception_3 = m68k_getpc() + 8;
42738 		Exception(3, 0, M68000_EXC_SRC_CPU);
42739 		goto endlabel2365;
42740 	}
42741 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42742 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42743 }}}}m68k_incpc(8);
42744 fill_prefetch_0 ();
42745 endlabel2365: ;
42746  return (20+retcycles);
42747 }
CPUFUNC(op_4cfa_5)42748 unsigned long CPUFUNC(op_4cfa_5)(uint32_t opcode) /* MVMEL */
42749 {
42750 	uint32_t dstreg = 2;
42751 	unsigned int retcycles = 0;
42752 	OpcodeFamily = 37; CurrentInstrCycles = 16;
42753 {	uint16_t mask = get_iword_prefetch(2);
42754 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42755 	retcycles = 0;
42756 {	uint32_t srca = m68k_getpc () + 4;
42757 	srca += (int32_t)(int16_t)get_iword_prefetch(4);
42758 	if ((srca & 1) != 0) {
42759 		last_fault_for_exception_3 = srca;
42760 		last_op_for_exception_3 = opcode;
42761 		last_addr_for_exception_3 = m68k_getpc() + 6;
42762 		Exception(3, 0, M68000_EXC_SRC_CPU);
42763 		goto endlabel2366;
42764 	}
42765 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42766 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42767 }}}}m68k_incpc(6);
42768 fill_prefetch_0 ();
42769 endlabel2366: ;
42770  return (16+retcycles);
42771 }
CPUFUNC(op_4cfb_5)42772 unsigned long CPUFUNC(op_4cfb_5)(uint32_t opcode) /* MVMEL */
42773 {
42774 	uint32_t dstreg = 3;
42775 	unsigned int retcycles = 0;
42776 	OpcodeFamily = 37; CurrentInstrCycles = 18;
42777 {	uint16_t mask = get_iword_prefetch(2);
42778 	unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff;
42779 	retcycles = 0;
42780 {	uint32_t tmppc = m68k_getpc() + 4;
42781 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(4));
42782 	BusCyclePenalty += 2;
42783 	if ((srca & 1) != 0) {
42784 		last_fault_for_exception_3 = srca;
42785 		last_op_for_exception_3 = opcode;
42786 		last_addr_for_exception_3 = m68k_getpc() + 6;
42787 		Exception(3, 0, M68000_EXC_SRC_CPU);
42788 		goto endlabel2367;
42789 	}
42790 {{	while (dmask) { m68k_dreg(regs, movem_index1[dmask]) = m68k_read_memory_32(srca); srca += 4; dmask = movem_next[dmask]; retcycles+=8; }
42791 	while (amask) { m68k_areg(regs, movem_index1[amask]) = m68k_read_memory_32(srca); srca += 4; amask = movem_next[amask]; retcycles+=8; }
42792 }}}}m68k_incpc(6);
42793 fill_prefetch_0 ();
42794 endlabel2367: ;
42795  return (18+retcycles);
42796 }
CPUFUNC(op_4e40_5)42797 unsigned long CPUFUNC(op_4e40_5)(uint32_t opcode) /* TRAP */
42798 {
42799 	uint32_t srcreg = (opcode & 15);
42800 	OpcodeFamily = 39; CurrentInstrCycles = 4;
42801 {{	uint32_t src = srcreg;
42802 m68k_incpc(2);
42803 fill_prefetch_2 ();
42804 	Exception(src+32,0,M68000_EXC_SRC_CPU);
42805 }}return 4;
42806 }
CPUFUNC(op_4e50_5)42807 unsigned long CPUFUNC(op_4e50_5)(uint32_t opcode) /* LINK */
42808 {
42809 	uint32_t srcreg = (opcode & 7);
42810 	OpcodeFamily = 47; CurrentInstrCycles = 18;
42811 {{	uint32_t olda = m68k_areg(regs, 7) - 4;
42812 	if ((olda & 1) != 0) {
42813 		last_fault_for_exception_3 = olda;
42814 		last_op_for_exception_3 = opcode;
42815 		last_addr_for_exception_3 = m68k_getpc() + 2;
42816 		Exception(3, 0, M68000_EXC_SRC_CPU);
42817 		goto endlabel2369;
42818 	}
42819 {	m68k_areg (regs, 7) = olda;
42820 {	int32_t src = m68k_areg(regs, srcreg);
42821 m68k_incpc(2);
42822 fill_prefetch_2 ();
42823 	m68k_write_memory_32(olda,src);
42824 	m68k_areg(regs, srcreg) = (m68k_areg(regs, 7));
42825 {	int16_t offs = get_iword_prefetch(0);
42826 	m68k_areg(regs, 7) += offs;
42827 }}}}}m68k_incpc(2);
42828 fill_prefetch_2 ();
42829 endlabel2369: ;
42830 return 18;
42831 }
CPUFUNC(op_4e58_5)42832 unsigned long CPUFUNC(op_4e58_5)(uint32_t opcode) /* UNLK */
42833 {
42834 	uint32_t srcreg = (opcode & 7);
42835 	OpcodeFamily = 48; CurrentInstrCycles = 12;
42836 {{	int32_t src = m68k_areg(regs, srcreg);
42837 	m68k_areg(regs, 7) = src;
42838 {	uint32_t olda = m68k_areg(regs, 7);
42839 	if ((olda & 1) != 0) {
42840 		last_fault_for_exception_3 = olda;
42841 		last_op_for_exception_3 = opcode;
42842 		last_addr_for_exception_3 = m68k_getpc() + 2;
42843 		Exception(3, 0, M68000_EXC_SRC_CPU);
42844 		goto endlabel2370;
42845 	}
42846 {{	int32_t old = m68k_read_memory_32(olda);
42847 	m68k_areg(regs, 7) += 4;
42848 	m68k_areg(regs, srcreg) = (old);
42849 }}}}}m68k_incpc(2);
42850 fill_prefetch_2 ();
42851 endlabel2370: ;
42852 return 12;
42853 }
CPUFUNC(op_4e60_5)42854 unsigned long CPUFUNC(op_4e60_5)(uint32_t opcode) /* MVR2USP */
42855 {
42856 	uint32_t srcreg = (opcode & 7);
42857 	OpcodeFamily = 40; CurrentInstrCycles = 4;
42858 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2371; }
42859 {{	int32_t src = m68k_areg(regs, srcreg);
42860 	regs.usp = src;
42861 }}}m68k_incpc(2);
42862 fill_prefetch_2 ();
42863 endlabel2371: ;
42864 return 4;
42865 }
CPUFUNC(op_4e68_5)42866 unsigned long CPUFUNC(op_4e68_5)(uint32_t opcode) /* MVUSP2R */
42867 {
42868 	uint32_t srcreg = (opcode & 7);
42869 	OpcodeFamily = 41; CurrentInstrCycles = 4;
42870 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2372; }
42871 {{	m68k_areg(regs, srcreg) = (regs.usp);
42872 }}}m68k_incpc(2);
42873 fill_prefetch_2 ();
42874 endlabel2372: ;
42875 return 4;
42876 }
CPUFUNC(op_4e70_5)42877 unsigned long CPUFUNC(op_4e70_5)(uint32_t opcode) /* RESET */
42878 {
42879 	OpcodeFamily = 42; CurrentInstrCycles = 132;
42880 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2373; }
42881 {}}m68k_incpc(2);
42882 fill_prefetch_2 ();
42883 endlabel2373: ;
42884 return 132;
42885 }
CPUFUNC(op_4e71_5)42886 unsigned long CPUFUNC(op_4e71_5)(uint32_t opcode) /* NOP */
42887 {
42888 	OpcodeFamily = 43; CurrentInstrCycles = 4;
42889 {}m68k_incpc(2);
42890 fill_prefetch_2 ();
42891 return 4;
42892 }
CPUFUNC(op_4e72_5)42893 unsigned long CPUFUNC(op_4e72_5)(uint32_t opcode) /* STOP */
42894 {
42895 	OpcodeFamily = 44; CurrentInstrCycles = 4;
42896 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2375; }
42897 {{	int16_t src = get_iword_prefetch(2);
42898 	regs.sr = src;
42899 	MakeFromSR();
42900 	m68k_setstopped(1);
42901 }}}m68k_incpc(4);
42902 fill_prefetch_0 ();
42903 endlabel2375: ;
42904 return 4;
42905 }
CPUFUNC(op_4e73_5)42906 unsigned long CPUFUNC(op_4e73_5)(uint32_t opcode) /* RTE */
42907 {
42908 	OpcodeFamily = 45; CurrentInstrCycles = 20;
42909 {if (!regs.s) { Exception(8,0,M68000_EXC_SRC_CPU); goto endlabel2376; }
42910 {{	uint32_t sra = m68k_areg(regs, 7);
42911 	if ((sra & 1) != 0) {
42912 		last_fault_for_exception_3 = sra;
42913 		last_op_for_exception_3 = opcode;
42914 		last_addr_for_exception_3 = m68k_getpc() + 2;
42915 		Exception(3, 0, M68000_EXC_SRC_CPU);
42916 		goto endlabel2376;
42917 	}
42918 {{	int16_t sr = m68k_read_memory_16(sra);
42919 	m68k_areg(regs, 7) += 2;
42920 {	uint32_t pca = m68k_areg(regs, 7);
42921 	if ((pca & 1) != 0) {
42922 		last_fault_for_exception_3 = pca;
42923 		last_op_for_exception_3 = opcode;
42924 		last_addr_for_exception_3 = m68k_getpc() + 2;
42925 		Exception(3, 0, M68000_EXC_SRC_CPU);
42926 		goto endlabel2376;
42927 	}
42928 {{	int32_t pc = m68k_read_memory_32(pca);
42929 	m68k_areg(regs, 7) += 4;
42930 	regs.sr = sr; m68k_setpc_rte(pc);
42931 fill_prefetch_0 ();
42932 	MakeFromSR();
42933 }}}}}}}}endlabel2376: ;
42934 return 20;
42935 }
CPUFUNC(op_4e74_5)42936 unsigned long CPUFUNC(op_4e74_5)(uint32_t opcode) /* RTD */
42937 {
42938 	OpcodeFamily = 46; CurrentInstrCycles = 16;
42939 {{	uint32_t pca = m68k_areg(regs, 7);
42940 	if ((pca & 1) != 0) {
42941 		last_fault_for_exception_3 = pca;
42942 		last_op_for_exception_3 = opcode;
42943 		last_addr_for_exception_3 = m68k_getpc() + 2;
42944 		Exception(3, 0, M68000_EXC_SRC_CPU);
42945 		goto endlabel2377;
42946 	}
42947 {{	int32_t pc = m68k_read_memory_32(pca);
42948 	m68k_areg(regs, 7) += 4;
42949 {	int16_t offs = get_iword_prefetch(2);
42950 	m68k_areg(regs, 7) += offs;
42951 	m68k_setpc_rte(pc);
42952 fill_prefetch_0 ();
42953 }}}}}endlabel2377: ;
42954 return 16;
42955 }
CPUFUNC(op_4e75_5)42956 unsigned long CPUFUNC(op_4e75_5)(uint32_t opcode) /* RTS */
42957 {
42958 	OpcodeFamily = 49; CurrentInstrCycles = 16;
42959 {	m68k_do_rts();
42960 fill_prefetch_0 ();
42961 }return 16;
42962 }
CPUFUNC(op_4e76_5)42963 unsigned long CPUFUNC(op_4e76_5)(uint32_t opcode) /* TRAPV */
42964 {
42965 	OpcodeFamily = 50; CurrentInstrCycles = 4;
42966 {m68k_incpc(2);
42967 fill_prefetch_2 ();
42968 	if (GET_VFLG) { Exception(7,m68k_getpc(),M68000_EXC_SRC_CPU); goto endlabel2379; }
42969 }endlabel2379: ;
42970 return 4;
42971 }
CPUFUNC(op_4e77_5)42972 unsigned long CPUFUNC(op_4e77_5)(uint32_t opcode) /* RTR */
42973 {
42974 	OpcodeFamily = 51; CurrentInstrCycles = 20;
42975 {	MakeSR();
42976 {	uint32_t sra = m68k_areg(regs, 7);
42977 	if ((sra & 1) != 0) {
42978 		last_fault_for_exception_3 = sra;
42979 		last_op_for_exception_3 = opcode;
42980 		last_addr_for_exception_3 = m68k_getpc() + 2;
42981 		Exception(3, 0, M68000_EXC_SRC_CPU);
42982 		goto endlabel2380;
42983 	}
42984 {{	int16_t sr = m68k_read_memory_16(sra);
42985 	m68k_areg(regs, 7) += 2;
42986 {	uint32_t pca = m68k_areg(regs, 7);
42987 	if ((pca & 1) != 0) {
42988 		last_fault_for_exception_3 = pca;
42989 		last_op_for_exception_3 = opcode;
42990 		last_addr_for_exception_3 = m68k_getpc() + 2;
42991 		Exception(3, 0, M68000_EXC_SRC_CPU);
42992 		goto endlabel2380;
42993 	}
42994 {{	int32_t pc = m68k_read_memory_32(pca);
42995 	m68k_areg(regs, 7) += 4;
42996 	regs.sr &= 0xFF00; sr &= 0xFF;
42997 	regs.sr |= sr; m68k_setpc(pc);
42998 fill_prefetch_0 ();
42999 	MakeFromSR();
43000 }}}}}}}endlabel2380: ;
43001 return 20;
43002 }
CPUFUNC(op_4e90_5)43003 unsigned long CPUFUNC(op_4e90_5)(uint32_t opcode) /* JSR */
43004 {
43005 	uint32_t srcreg = (opcode & 7);
43006 	OpcodeFamily = 52; CurrentInstrCycles = 16;
43007 {{	uint32_t srca = m68k_areg(regs, srcreg);
43008 	uint32_t oldpc = m68k_getpc () + 2;
43009 	if (srca & 1) {
43010 		last_addr_for_exception_3 = oldpc;
43011 		last_fault_for_exception_3 = srca;
43012 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2381;
43013 	}
43014 	m68k_do_jsr(m68k_getpc() + 2, srca);
43015 fill_prefetch_0 ();
43016 }}endlabel2381: ;
43017 return 16;
43018 }
CPUFUNC(op_4ea8_5)43019 unsigned long CPUFUNC(op_4ea8_5)(uint32_t opcode) /* JSR */
43020 {
43021 	uint32_t srcreg = (opcode & 7);
43022 	OpcodeFamily = 52; CurrentInstrCycles = 18;
43023 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
43024 	uint32_t oldpc = m68k_getpc () + 4;
43025 	if (srca & 1) {
43026 		last_addr_for_exception_3 = oldpc;
43027 		last_fault_for_exception_3 = srca;
43028 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2382;
43029 	}
43030 	m68k_do_jsr(m68k_getpc() + 4, srca);
43031 fill_prefetch_0 ();
43032 }}endlabel2382: ;
43033 return 18;
43034 }
CPUFUNC(op_4eb0_5)43035 unsigned long CPUFUNC(op_4eb0_5)(uint32_t opcode) /* JSR */
43036 {
43037 	uint32_t srcreg = (opcode & 7);
43038 	OpcodeFamily = 52; CurrentInstrCycles = 22;
43039 {{	uint32_t oldpc; uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
43040 	BusCyclePenalty += 2;
43041 	oldpc = m68k_getpc () + 4;
43042 	if (srca & 1) {
43043 		last_addr_for_exception_3 = oldpc;
43044 		last_fault_for_exception_3 = srca;
43045 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2383;
43046 	}
43047 	m68k_do_jsr(m68k_getpc() + 4, srca);
43048 fill_prefetch_0 ();
43049 }}endlabel2383: ;
43050 return 22;
43051 }
CPUFUNC(op_4eb8_5)43052 unsigned long CPUFUNC(op_4eb8_5)(uint32_t opcode) /* JSR */
43053 {
43054 	OpcodeFamily = 52; CurrentInstrCycles = 18;
43055 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
43056 	uint32_t oldpc = m68k_getpc () + 4;
43057 	if (srca & 1) {
43058 		last_addr_for_exception_3 = oldpc;
43059 		last_fault_for_exception_3 = srca;
43060 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2384;
43061 	}
43062 	m68k_do_jsr(m68k_getpc() + 4, srca);
43063 fill_prefetch_0 ();
43064 }}endlabel2384: ;
43065 return 18;
43066 }
CPUFUNC(op_4eb9_5)43067 unsigned long CPUFUNC(op_4eb9_5)(uint32_t opcode) /* JSR */
43068 {
43069 	OpcodeFamily = 52; CurrentInstrCycles = 20;
43070 {{	uint32_t srca = get_ilong_prefetch(2);
43071 	uint32_t oldpc = m68k_getpc () + 6;
43072 	if (srca & 1) {
43073 		last_addr_for_exception_3 = oldpc;
43074 		last_fault_for_exception_3 = srca;
43075 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2385;
43076 	}
43077 	m68k_do_jsr(m68k_getpc() + 6, srca);
43078 fill_prefetch_0 ();
43079 }}endlabel2385: ;
43080 return 20;
43081 }
CPUFUNC(op_4eba_5)43082 unsigned long CPUFUNC(op_4eba_5)(uint32_t opcode) /* JSR */
43083 {
43084 	OpcodeFamily = 52; CurrentInstrCycles = 18;
43085 {{	uint32_t oldpc; uint32_t srca = m68k_getpc () + 2;
43086 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
43087 	oldpc = m68k_getpc () + 4;
43088 	if (srca & 1) {
43089 		last_addr_for_exception_3 = oldpc;
43090 		last_fault_for_exception_3 = srca;
43091 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2386;
43092 	}
43093 	m68k_do_jsr(m68k_getpc() + 4, srca);
43094 fill_prefetch_0 ();
43095 }}endlabel2386: ;
43096 return 18;
43097 }
CPUFUNC(op_4ebb_5)43098 unsigned long CPUFUNC(op_4ebb_5)(uint32_t opcode) /* JSR */
43099 {
43100 	OpcodeFamily = 52; CurrentInstrCycles = 22;
43101 {{	uint32_t tmppc = m68k_getpc() + 2;
43102 	uint32_t oldpc; uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
43103 	BusCyclePenalty += 2;
43104 	oldpc = m68k_getpc () + 4;
43105 	if (srca & 1) {
43106 		last_addr_for_exception_3 = oldpc;
43107 		last_fault_for_exception_3 = srca;
43108 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2387;
43109 	}
43110 	m68k_do_jsr(m68k_getpc() + 4, srca);
43111 fill_prefetch_0 ();
43112 }}endlabel2387: ;
43113 return 22;
43114 }
CPUFUNC(op_4ed0_5)43115 unsigned long CPUFUNC(op_4ed0_5)(uint32_t opcode) /* JMP */
43116 {
43117 	uint32_t srcreg = (opcode & 7);
43118 	OpcodeFamily = 53; CurrentInstrCycles = 8;
43119 {{	uint32_t srca = m68k_areg(regs, srcreg);
43120 	if (srca & 1) {
43121 		last_addr_for_exception_3 = m68k_getpc() + 6;
43122 		last_fault_for_exception_3 = srca;
43123 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2388;
43124 	}
43125 	m68k_setpc(srca);
43126 fill_prefetch_0 ();
43127 }}endlabel2388: ;
43128 return 8;
43129 }
CPUFUNC(op_4ee8_5)43130 unsigned long CPUFUNC(op_4ee8_5)(uint32_t opcode) /* JMP */
43131 {
43132 	uint32_t srcreg = (opcode & 7);
43133 	OpcodeFamily = 53; CurrentInstrCycles = 10;
43134 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
43135 	if (srca & 1) {
43136 		last_addr_for_exception_3 = m68k_getpc() + 6;
43137 		last_fault_for_exception_3 = srca;
43138 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2389;
43139 	}
43140 	m68k_setpc(srca);
43141 fill_prefetch_0 ();
43142 }}endlabel2389: ;
43143 return 10;
43144 }
CPUFUNC(op_4ef0_5)43145 unsigned long CPUFUNC(op_4ef0_5)(uint32_t opcode) /* JMP */
43146 {
43147 	uint32_t srcreg = (opcode & 7);
43148 	OpcodeFamily = 53; CurrentInstrCycles = 14;
43149 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
43150 	BusCyclePenalty += 2;
43151 	if (srca & 1) {
43152 		last_addr_for_exception_3 = m68k_getpc() + 6;
43153 		last_fault_for_exception_3 = srca;
43154 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2390;
43155 	}
43156 	m68k_setpc(srca);
43157 fill_prefetch_0 ();
43158 }}endlabel2390: ;
43159 return 14;
43160 }
CPUFUNC(op_4ef8_5)43161 unsigned long CPUFUNC(op_4ef8_5)(uint32_t opcode) /* JMP */
43162 {
43163 	OpcodeFamily = 53; CurrentInstrCycles = 10;
43164 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
43165 	if (srca & 1) {
43166 		last_addr_for_exception_3 = m68k_getpc() + 6;
43167 		last_fault_for_exception_3 = srca;
43168 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2391;
43169 	}
43170 	m68k_setpc(srca);
43171 fill_prefetch_0 ();
43172 }}endlabel2391: ;
43173 return 10;
43174 }
CPUFUNC(op_4ef9_5)43175 unsigned long CPUFUNC(op_4ef9_5)(uint32_t opcode) /* JMP */
43176 {
43177 	OpcodeFamily = 53; CurrentInstrCycles = 12;
43178 {{	uint32_t srca = get_ilong_prefetch(2);
43179 	if (srca & 1) {
43180 		last_addr_for_exception_3 = m68k_getpc() + 6;
43181 		last_fault_for_exception_3 = srca;
43182 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2392;
43183 	}
43184 	m68k_setpc(srca);
43185 fill_prefetch_0 ();
43186 }}endlabel2392: ;
43187 return 12;
43188 }
CPUFUNC(op_4efa_5)43189 unsigned long CPUFUNC(op_4efa_5)(uint32_t opcode) /* JMP */
43190 {
43191 	OpcodeFamily = 53; CurrentInstrCycles = 10;
43192 {{	uint32_t srca = m68k_getpc () + 2;
43193 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
43194 	if (srca & 1) {
43195 		last_addr_for_exception_3 = m68k_getpc() + 6;
43196 		last_fault_for_exception_3 = srca;
43197 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2393;
43198 	}
43199 	m68k_setpc(srca);
43200 fill_prefetch_0 ();
43201 }}endlabel2393: ;
43202 return 10;
43203 }
CPUFUNC(op_4efb_5)43204 unsigned long CPUFUNC(op_4efb_5)(uint32_t opcode) /* JMP */
43205 {
43206 	OpcodeFamily = 53; CurrentInstrCycles = 14;
43207 {{	uint32_t tmppc = m68k_getpc() + 2;
43208 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
43209 	BusCyclePenalty += 2;
43210 	if (srca & 1) {
43211 		last_addr_for_exception_3 = m68k_getpc() + 6;
43212 		last_fault_for_exception_3 = srca;
43213 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2394;
43214 	}
43215 	m68k_setpc(srca);
43216 fill_prefetch_0 ();
43217 }}endlabel2394: ;
43218 return 14;
43219 }
CPUFUNC(op_5000_5)43220 unsigned long CPUFUNC(op_5000_5)(uint32_t opcode) /* ADD */
43221 {
43222 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43223 	uint32_t dstreg = opcode & 7;
43224 	OpcodeFamily = 11; CurrentInstrCycles = 4;
43225 {{	uint32_t src = srcreg;
43226 {	int8_t dst = m68k_dreg(regs, dstreg);
43227 {	refill_prefetch (m68k_getpc(), 2);
43228 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43229 {	int flgs = ((int8_t)(src)) < 0;
43230 	int flgo = ((int8_t)(dst)) < 0;
43231 	int flgn = ((int8_t)(newv)) < 0;
43232 	SET_ZFLG (((int8_t)(newv)) == 0);
43233 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43234 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43235 	COPY_CARRY;
43236 	SET_NFLG (flgn != 0);
43237 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
43238 }}}}}}m68k_incpc(2);
43239 fill_prefetch_2 ();
43240 return 4;
43241 }
CPUFUNC(op_5010_5)43242 unsigned long CPUFUNC(op_5010_5)(uint32_t opcode) /* ADD */
43243 {
43244 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43245 	uint32_t dstreg = opcode & 7;
43246 	OpcodeFamily = 11; CurrentInstrCycles = 12;
43247 {{	uint32_t src = srcreg;
43248 {	uint32_t dsta = m68k_areg(regs, dstreg);
43249 {	int8_t dst = m68k_read_memory_8(dsta);
43250 {	refill_prefetch (m68k_getpc(), 2);
43251 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43252 {	int flgs = ((int8_t)(src)) < 0;
43253 	int flgo = ((int8_t)(dst)) < 0;
43254 	int flgn = ((int8_t)(newv)) < 0;
43255 	SET_ZFLG (((int8_t)(newv)) == 0);
43256 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43257 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43258 	COPY_CARRY;
43259 	SET_NFLG (flgn != 0);
43260 m68k_incpc(2);
43261 fill_prefetch_2 ();
43262 	m68k_write_memory_8(dsta,newv);
43263 }}}}}}}return 12;
43264 }
CPUFUNC(op_5018_5)43265 unsigned long CPUFUNC(op_5018_5)(uint32_t opcode) /* ADD */
43266 {
43267 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43268 	uint32_t dstreg = opcode & 7;
43269 	OpcodeFamily = 11; CurrentInstrCycles = 12;
43270 {{	uint32_t src = srcreg;
43271 {	uint32_t dsta = m68k_areg(regs, dstreg);
43272 {	int8_t dst = m68k_read_memory_8(dsta);
43273 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
43274 {	refill_prefetch (m68k_getpc(), 2);
43275 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43276 {	int flgs = ((int8_t)(src)) < 0;
43277 	int flgo = ((int8_t)(dst)) < 0;
43278 	int flgn = ((int8_t)(newv)) < 0;
43279 	SET_ZFLG (((int8_t)(newv)) == 0);
43280 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43281 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43282 	COPY_CARRY;
43283 	SET_NFLG (flgn != 0);
43284 m68k_incpc(2);
43285 fill_prefetch_2 ();
43286 	m68k_write_memory_8(dsta,newv);
43287 }}}}}}}return 12;
43288 }
43289 #endif
43290 
43291 #ifdef PART_5
CPUFUNC(op_5020_5)43292 unsigned long CPUFUNC(op_5020_5)(uint32_t opcode) /* ADD */
43293 {
43294 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43295 	uint32_t dstreg = opcode & 7;
43296 	OpcodeFamily = 11; CurrentInstrCycles = 14;
43297 {{	uint32_t src = srcreg;
43298 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
43299 {	int8_t dst = m68k_read_memory_8(dsta);
43300 	m68k_areg (regs, dstreg) = dsta;
43301 {	refill_prefetch (m68k_getpc(), 2);
43302 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43303 {	int flgs = ((int8_t)(src)) < 0;
43304 	int flgo = ((int8_t)(dst)) < 0;
43305 	int flgn = ((int8_t)(newv)) < 0;
43306 	SET_ZFLG (((int8_t)(newv)) == 0);
43307 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43308 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43309 	COPY_CARRY;
43310 	SET_NFLG (flgn != 0);
43311 m68k_incpc(2);
43312 fill_prefetch_2 ();
43313 	m68k_write_memory_8(dsta,newv);
43314 }}}}}}}return 14;
43315 }
CPUFUNC(op_5028_5)43316 unsigned long CPUFUNC(op_5028_5)(uint32_t opcode) /* ADD */
43317 {
43318 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43319 	uint32_t dstreg = opcode & 7;
43320 	OpcodeFamily = 11; CurrentInstrCycles = 16;
43321 {{	uint32_t src = srcreg;
43322 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
43323 {	int8_t dst = m68k_read_memory_8(dsta);
43324 {	refill_prefetch (m68k_getpc(), 2);
43325 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43326 {	int flgs = ((int8_t)(src)) < 0;
43327 	int flgo = ((int8_t)(dst)) < 0;
43328 	int flgn = ((int8_t)(newv)) < 0;
43329 	SET_ZFLG (((int8_t)(newv)) == 0);
43330 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43331 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43332 	COPY_CARRY;
43333 	SET_NFLG (flgn != 0);
43334 m68k_incpc(4);
43335 fill_prefetch_0 ();
43336 	m68k_write_memory_8(dsta,newv);
43337 }}}}}}}return 16;
43338 }
CPUFUNC(op_5030_5)43339 unsigned long CPUFUNC(op_5030_5)(uint32_t opcode) /* ADD */
43340 {
43341 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43342 	uint32_t dstreg = opcode & 7;
43343 	OpcodeFamily = 11; CurrentInstrCycles = 18;
43344 {{	uint32_t src = srcreg;
43345 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
43346 	BusCyclePenalty += 2;
43347 {	int8_t dst = m68k_read_memory_8(dsta);
43348 {	refill_prefetch (m68k_getpc(), 2);
43349 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43350 {	int flgs = ((int8_t)(src)) < 0;
43351 	int flgo = ((int8_t)(dst)) < 0;
43352 	int flgn = ((int8_t)(newv)) < 0;
43353 	SET_ZFLG (((int8_t)(newv)) == 0);
43354 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43355 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43356 	COPY_CARRY;
43357 	SET_NFLG (flgn != 0);
43358 m68k_incpc(4);
43359 fill_prefetch_0 ();
43360 	m68k_write_memory_8(dsta,newv);
43361 }}}}}}}return 18;
43362 }
CPUFUNC(op_5038_5)43363 unsigned long CPUFUNC(op_5038_5)(uint32_t opcode) /* ADD */
43364 {
43365 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43366 	OpcodeFamily = 11; CurrentInstrCycles = 16;
43367 {{	uint32_t src = srcreg;
43368 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
43369 {	int8_t dst = m68k_read_memory_8(dsta);
43370 {	refill_prefetch (m68k_getpc(), 2);
43371 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43372 {	int flgs = ((int8_t)(src)) < 0;
43373 	int flgo = ((int8_t)(dst)) < 0;
43374 	int flgn = ((int8_t)(newv)) < 0;
43375 	SET_ZFLG (((int8_t)(newv)) == 0);
43376 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43377 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43378 	COPY_CARRY;
43379 	SET_NFLG (flgn != 0);
43380 m68k_incpc(4);
43381 fill_prefetch_0 ();
43382 	m68k_write_memory_8(dsta,newv);
43383 }}}}}}}return 16;
43384 }
CPUFUNC(op_5039_5)43385 unsigned long CPUFUNC(op_5039_5)(uint32_t opcode) /* ADD */
43386 {
43387 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43388 	OpcodeFamily = 11; CurrentInstrCycles = 20;
43389 {{	uint32_t src = srcreg;
43390 {	uint32_t dsta = get_ilong_prefetch(2);
43391 {	int8_t dst = m68k_read_memory_8(dsta);
43392 {	refill_prefetch (m68k_getpc(), 2);
43393 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
43394 {	int flgs = ((int8_t)(src)) < 0;
43395 	int flgo = ((int8_t)(dst)) < 0;
43396 	int flgn = ((int8_t)(newv)) < 0;
43397 	SET_ZFLG (((int8_t)(newv)) == 0);
43398 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43399 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
43400 	COPY_CARRY;
43401 	SET_NFLG (flgn != 0);
43402 m68k_incpc(6);
43403 fill_prefetch_0 ();
43404 	m68k_write_memory_8(dsta,newv);
43405 }}}}}}}return 20;
43406 }
CPUFUNC(op_5040_5)43407 unsigned long CPUFUNC(op_5040_5)(uint32_t opcode) /* ADD */
43408 {
43409 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43410 	uint32_t dstreg = opcode & 7;
43411 	OpcodeFamily = 11; CurrentInstrCycles = 4;
43412 {{	uint32_t src = srcreg;
43413 {	int16_t dst = m68k_dreg(regs, dstreg);
43414 {	refill_prefetch (m68k_getpc(), 2);
43415 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43416 {	int flgs = ((int16_t)(src)) < 0;
43417 	int flgo = ((int16_t)(dst)) < 0;
43418 	int flgn = ((int16_t)(newv)) < 0;
43419 	SET_ZFLG (((int16_t)(newv)) == 0);
43420 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43421 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43422 	COPY_CARRY;
43423 	SET_NFLG (flgn != 0);
43424 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
43425 }}}}}}m68k_incpc(2);
43426 fill_prefetch_2 ();
43427 return 4;
43428 }
CPUFUNC(op_5048_5)43429 unsigned long CPUFUNC(op_5048_5)(uint32_t opcode) /* ADDA */
43430 {
43431 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43432 	uint32_t dstreg = opcode & 7;
43433 	OpcodeFamily = 12; CurrentInstrCycles = 8;
43434 {{	uint32_t src = srcreg;
43435 {	int32_t dst = m68k_areg(regs, dstreg);
43436 {	uint32_t newv = dst + src;
43437 	m68k_areg(regs, dstreg) = (newv);
43438 }}}}m68k_incpc(2);
43439 fill_prefetch_2 ();
43440 return 8;
43441 }
CPUFUNC(op_5050_5)43442 unsigned long CPUFUNC(op_5050_5)(uint32_t opcode) /* ADD */
43443 {
43444 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43445 	uint32_t dstreg = opcode & 7;
43446 	OpcodeFamily = 11; CurrentInstrCycles = 12;
43447 {{	uint32_t src = srcreg;
43448 {	uint32_t dsta = m68k_areg(regs, dstreg);
43449 	if ((dsta & 1) != 0) {
43450 		last_fault_for_exception_3 = dsta;
43451 		last_op_for_exception_3 = opcode;
43452 		last_addr_for_exception_3 = m68k_getpc() + 2;
43453 		Exception(3, 0, M68000_EXC_SRC_CPU);
43454 		goto endlabel2405;
43455 	}
43456 {{	int16_t dst = m68k_read_memory_16(dsta);
43457 {	refill_prefetch (m68k_getpc(), 2);
43458 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43459 {	int flgs = ((int16_t)(src)) < 0;
43460 	int flgo = ((int16_t)(dst)) < 0;
43461 	int flgn = ((int16_t)(newv)) < 0;
43462 	SET_ZFLG (((int16_t)(newv)) == 0);
43463 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43464 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43465 	COPY_CARRY;
43466 	SET_NFLG (flgn != 0);
43467 m68k_incpc(2);
43468 fill_prefetch_2 ();
43469 	m68k_write_memory_16(dsta,newv);
43470 }}}}}}}}endlabel2405: ;
43471 return 12;
43472 }
CPUFUNC(op_5058_5)43473 unsigned long CPUFUNC(op_5058_5)(uint32_t opcode) /* ADD */
43474 {
43475 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43476 	uint32_t dstreg = opcode & 7;
43477 	OpcodeFamily = 11; CurrentInstrCycles = 12;
43478 {{	uint32_t src = srcreg;
43479 {	uint32_t dsta = m68k_areg(regs, dstreg);
43480 	if ((dsta & 1) != 0) {
43481 		last_fault_for_exception_3 = dsta;
43482 		last_op_for_exception_3 = opcode;
43483 		last_addr_for_exception_3 = m68k_getpc() + 2;
43484 		Exception(3, 0, M68000_EXC_SRC_CPU);
43485 		goto endlabel2406;
43486 	}
43487 {{	int16_t dst = m68k_read_memory_16(dsta);
43488 	m68k_areg(regs, dstreg) += 2;
43489 {	refill_prefetch (m68k_getpc(), 2);
43490 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43491 {	int flgs = ((int16_t)(src)) < 0;
43492 	int flgo = ((int16_t)(dst)) < 0;
43493 	int flgn = ((int16_t)(newv)) < 0;
43494 	SET_ZFLG (((int16_t)(newv)) == 0);
43495 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43496 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43497 	COPY_CARRY;
43498 	SET_NFLG (flgn != 0);
43499 m68k_incpc(2);
43500 fill_prefetch_2 ();
43501 	m68k_write_memory_16(dsta,newv);
43502 }}}}}}}}endlabel2406: ;
43503 return 12;
43504 }
CPUFUNC(op_5060_5)43505 unsigned long CPUFUNC(op_5060_5)(uint32_t opcode) /* ADD */
43506 {
43507 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43508 	uint32_t dstreg = opcode & 7;
43509 	OpcodeFamily = 11; CurrentInstrCycles = 14;
43510 {{	uint32_t src = srcreg;
43511 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
43512 	if ((dsta & 1) != 0) {
43513 		last_fault_for_exception_3 = dsta;
43514 		last_op_for_exception_3 = opcode;
43515 		last_addr_for_exception_3 = m68k_getpc() + 2;
43516 		Exception(3, 0, M68000_EXC_SRC_CPU);
43517 		goto endlabel2407;
43518 	}
43519 {{	int16_t dst = m68k_read_memory_16(dsta);
43520 	m68k_areg (regs, dstreg) = dsta;
43521 {	refill_prefetch (m68k_getpc(), 2);
43522 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43523 {	int flgs = ((int16_t)(src)) < 0;
43524 	int flgo = ((int16_t)(dst)) < 0;
43525 	int flgn = ((int16_t)(newv)) < 0;
43526 	SET_ZFLG (((int16_t)(newv)) == 0);
43527 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43528 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43529 	COPY_CARRY;
43530 	SET_NFLG (flgn != 0);
43531 m68k_incpc(2);
43532 fill_prefetch_2 ();
43533 	m68k_write_memory_16(dsta,newv);
43534 }}}}}}}}endlabel2407: ;
43535 return 14;
43536 }
CPUFUNC(op_5068_5)43537 unsigned long CPUFUNC(op_5068_5)(uint32_t opcode) /* ADD */
43538 {
43539 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43540 	uint32_t dstreg = opcode & 7;
43541 	OpcodeFamily = 11; CurrentInstrCycles = 16;
43542 {{	uint32_t src = srcreg;
43543 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
43544 	if ((dsta & 1) != 0) {
43545 		last_fault_for_exception_3 = dsta;
43546 		last_op_for_exception_3 = opcode;
43547 		last_addr_for_exception_3 = m68k_getpc() + 4;
43548 		Exception(3, 0, M68000_EXC_SRC_CPU);
43549 		goto endlabel2408;
43550 	}
43551 {{	int16_t dst = m68k_read_memory_16(dsta);
43552 {	refill_prefetch (m68k_getpc(), 2);
43553 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43554 {	int flgs = ((int16_t)(src)) < 0;
43555 	int flgo = ((int16_t)(dst)) < 0;
43556 	int flgn = ((int16_t)(newv)) < 0;
43557 	SET_ZFLG (((int16_t)(newv)) == 0);
43558 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43559 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43560 	COPY_CARRY;
43561 	SET_NFLG (flgn != 0);
43562 m68k_incpc(4);
43563 fill_prefetch_0 ();
43564 	m68k_write_memory_16(dsta,newv);
43565 }}}}}}}}endlabel2408: ;
43566 return 16;
43567 }
CPUFUNC(op_5070_5)43568 unsigned long CPUFUNC(op_5070_5)(uint32_t opcode) /* ADD */
43569 {
43570 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43571 	uint32_t dstreg = opcode & 7;
43572 	OpcodeFamily = 11; CurrentInstrCycles = 18;
43573 {{	uint32_t src = srcreg;
43574 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
43575 	BusCyclePenalty += 2;
43576 	if ((dsta & 1) != 0) {
43577 		last_fault_for_exception_3 = dsta;
43578 		last_op_for_exception_3 = opcode;
43579 		last_addr_for_exception_3 = m68k_getpc() + 4;
43580 		Exception(3, 0, M68000_EXC_SRC_CPU);
43581 		goto endlabel2409;
43582 	}
43583 {{	int16_t dst = m68k_read_memory_16(dsta);
43584 {	refill_prefetch (m68k_getpc(), 2);
43585 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43586 {	int flgs = ((int16_t)(src)) < 0;
43587 	int flgo = ((int16_t)(dst)) < 0;
43588 	int flgn = ((int16_t)(newv)) < 0;
43589 	SET_ZFLG (((int16_t)(newv)) == 0);
43590 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43591 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43592 	COPY_CARRY;
43593 	SET_NFLG (flgn != 0);
43594 m68k_incpc(4);
43595 fill_prefetch_0 ();
43596 	m68k_write_memory_16(dsta,newv);
43597 }}}}}}}}endlabel2409: ;
43598 return 18;
43599 }
CPUFUNC(op_5078_5)43600 unsigned long CPUFUNC(op_5078_5)(uint32_t opcode) /* ADD */
43601 {
43602 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43603 	OpcodeFamily = 11; CurrentInstrCycles = 16;
43604 {{	uint32_t src = srcreg;
43605 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
43606 	if ((dsta & 1) != 0) {
43607 		last_fault_for_exception_3 = dsta;
43608 		last_op_for_exception_3 = opcode;
43609 		last_addr_for_exception_3 = m68k_getpc() + 4;
43610 		Exception(3, 0, M68000_EXC_SRC_CPU);
43611 		goto endlabel2410;
43612 	}
43613 {{	int16_t dst = m68k_read_memory_16(dsta);
43614 {	refill_prefetch (m68k_getpc(), 2);
43615 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43616 {	int flgs = ((int16_t)(src)) < 0;
43617 	int flgo = ((int16_t)(dst)) < 0;
43618 	int flgn = ((int16_t)(newv)) < 0;
43619 	SET_ZFLG (((int16_t)(newv)) == 0);
43620 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43621 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43622 	COPY_CARRY;
43623 	SET_NFLG (flgn != 0);
43624 m68k_incpc(4);
43625 fill_prefetch_0 ();
43626 	m68k_write_memory_16(dsta,newv);
43627 }}}}}}}}endlabel2410: ;
43628 return 16;
43629 }
CPUFUNC(op_5079_5)43630 unsigned long CPUFUNC(op_5079_5)(uint32_t opcode) /* ADD */
43631 {
43632 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43633 	OpcodeFamily = 11; CurrentInstrCycles = 20;
43634 {{	uint32_t src = srcreg;
43635 {	uint32_t dsta = get_ilong_prefetch(2);
43636 	if ((dsta & 1) != 0) {
43637 		last_fault_for_exception_3 = dsta;
43638 		last_op_for_exception_3 = opcode;
43639 		last_addr_for_exception_3 = m68k_getpc() + 6;
43640 		Exception(3, 0, M68000_EXC_SRC_CPU);
43641 		goto endlabel2411;
43642 	}
43643 {{	int16_t dst = m68k_read_memory_16(dsta);
43644 {	refill_prefetch (m68k_getpc(), 2);
43645 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
43646 {	int flgs = ((int16_t)(src)) < 0;
43647 	int flgo = ((int16_t)(dst)) < 0;
43648 	int flgn = ((int16_t)(newv)) < 0;
43649 	SET_ZFLG (((int16_t)(newv)) == 0);
43650 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43651 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
43652 	COPY_CARRY;
43653 	SET_NFLG (flgn != 0);
43654 m68k_incpc(6);
43655 fill_prefetch_0 ();
43656 	m68k_write_memory_16(dsta,newv);
43657 }}}}}}}}endlabel2411: ;
43658 return 20;
43659 }
CPUFUNC(op_5080_5)43660 unsigned long CPUFUNC(op_5080_5)(uint32_t opcode) /* ADD */
43661 {
43662 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43663 	uint32_t dstreg = opcode & 7;
43664 	OpcodeFamily = 11; CurrentInstrCycles = 8;
43665 {{	uint32_t src = srcreg;
43666 {	int32_t dst = m68k_dreg(regs, dstreg);
43667 {	refill_prefetch (m68k_getpc(), 2);
43668 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43669 {	int flgs = ((int32_t)(src)) < 0;
43670 	int flgo = ((int32_t)(dst)) < 0;
43671 	int flgn = ((int32_t)(newv)) < 0;
43672 	SET_ZFLG (((int32_t)(newv)) == 0);
43673 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43674 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43675 	COPY_CARRY;
43676 	SET_NFLG (flgn != 0);
43677 	m68k_dreg(regs, dstreg) = (newv);
43678 }}}}}}m68k_incpc(2);
43679 fill_prefetch_2 ();
43680 return 8;
43681 }
CPUFUNC(op_5088_5)43682 unsigned long CPUFUNC(op_5088_5)(uint32_t opcode) /* ADDA */
43683 {
43684 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43685 	uint32_t dstreg = opcode & 7;
43686 	OpcodeFamily = 12; CurrentInstrCycles = 8;
43687 {{	uint32_t src = srcreg;
43688 {	int32_t dst = m68k_areg(regs, dstreg);
43689 {	uint32_t newv = dst + src;
43690 	m68k_areg(regs, dstreg) = (newv);
43691 }}}}m68k_incpc(2);
43692 fill_prefetch_2 ();
43693 return 8;
43694 }
CPUFUNC(op_5090_5)43695 unsigned long CPUFUNC(op_5090_5)(uint32_t opcode) /* ADD */
43696 {
43697 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43698 	uint32_t dstreg = opcode & 7;
43699 	OpcodeFamily = 11; CurrentInstrCycles = 20;
43700 {{	uint32_t src = srcreg;
43701 {	uint32_t dsta = m68k_areg(regs, dstreg);
43702 	if ((dsta & 1) != 0) {
43703 		last_fault_for_exception_3 = dsta;
43704 		last_op_for_exception_3 = opcode;
43705 		last_addr_for_exception_3 = m68k_getpc() + 2;
43706 		Exception(3, 0, M68000_EXC_SRC_CPU);
43707 		goto endlabel2414;
43708 	}
43709 {{	int32_t dst = m68k_read_memory_32(dsta);
43710 {	refill_prefetch (m68k_getpc(), 2);
43711 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43712 {	int flgs = ((int32_t)(src)) < 0;
43713 	int flgo = ((int32_t)(dst)) < 0;
43714 	int flgn = ((int32_t)(newv)) < 0;
43715 	SET_ZFLG (((int32_t)(newv)) == 0);
43716 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43717 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43718 	COPY_CARRY;
43719 	SET_NFLG (flgn != 0);
43720 m68k_incpc(2);
43721 fill_prefetch_2 ();
43722 	m68k_write_memory_32(dsta,newv);
43723 }}}}}}}}endlabel2414: ;
43724 return 20;
43725 }
CPUFUNC(op_5098_5)43726 unsigned long CPUFUNC(op_5098_5)(uint32_t opcode) /* ADD */
43727 {
43728 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43729 	uint32_t dstreg = opcode & 7;
43730 	OpcodeFamily = 11; CurrentInstrCycles = 20;
43731 {{	uint32_t src = srcreg;
43732 {	uint32_t dsta = m68k_areg(regs, dstreg);
43733 	if ((dsta & 1) != 0) {
43734 		last_fault_for_exception_3 = dsta;
43735 		last_op_for_exception_3 = opcode;
43736 		last_addr_for_exception_3 = m68k_getpc() + 2;
43737 		Exception(3, 0, M68000_EXC_SRC_CPU);
43738 		goto endlabel2415;
43739 	}
43740 {{	int32_t dst = m68k_read_memory_32(dsta);
43741 	m68k_areg(regs, dstreg) += 4;
43742 {	refill_prefetch (m68k_getpc(), 2);
43743 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43744 {	int flgs = ((int32_t)(src)) < 0;
43745 	int flgo = ((int32_t)(dst)) < 0;
43746 	int flgn = ((int32_t)(newv)) < 0;
43747 	SET_ZFLG (((int32_t)(newv)) == 0);
43748 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43749 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43750 	COPY_CARRY;
43751 	SET_NFLG (flgn != 0);
43752 m68k_incpc(2);
43753 fill_prefetch_2 ();
43754 	m68k_write_memory_32(dsta,newv);
43755 }}}}}}}}endlabel2415: ;
43756 return 20;
43757 }
CPUFUNC(op_50a0_5)43758 unsigned long CPUFUNC(op_50a0_5)(uint32_t opcode) /* ADD */
43759 {
43760 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43761 	uint32_t dstreg = opcode & 7;
43762 	OpcodeFamily = 11; CurrentInstrCycles = 22;
43763 {{	uint32_t src = srcreg;
43764 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
43765 	if ((dsta & 1) != 0) {
43766 		last_fault_for_exception_3 = dsta;
43767 		last_op_for_exception_3 = opcode;
43768 		last_addr_for_exception_3 = m68k_getpc() + 2;
43769 		Exception(3, 0, M68000_EXC_SRC_CPU);
43770 		goto endlabel2416;
43771 	}
43772 {{	int32_t dst = m68k_read_memory_32(dsta);
43773 	m68k_areg (regs, dstreg) = dsta;
43774 {	refill_prefetch (m68k_getpc(), 2);
43775 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43776 {	int flgs = ((int32_t)(src)) < 0;
43777 	int flgo = ((int32_t)(dst)) < 0;
43778 	int flgn = ((int32_t)(newv)) < 0;
43779 	SET_ZFLG (((int32_t)(newv)) == 0);
43780 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43781 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43782 	COPY_CARRY;
43783 	SET_NFLG (flgn != 0);
43784 m68k_incpc(2);
43785 fill_prefetch_2 ();
43786 	m68k_write_memory_32(dsta,newv);
43787 }}}}}}}}endlabel2416: ;
43788 return 22;
43789 }
CPUFUNC(op_50a8_5)43790 unsigned long CPUFUNC(op_50a8_5)(uint32_t opcode) /* ADD */
43791 {
43792 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43793 	uint32_t dstreg = opcode & 7;
43794 	OpcodeFamily = 11; CurrentInstrCycles = 24;
43795 {{	uint32_t src = srcreg;
43796 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
43797 	if ((dsta & 1) != 0) {
43798 		last_fault_for_exception_3 = dsta;
43799 		last_op_for_exception_3 = opcode;
43800 		last_addr_for_exception_3 = m68k_getpc() + 4;
43801 		Exception(3, 0, M68000_EXC_SRC_CPU);
43802 		goto endlabel2417;
43803 	}
43804 {{	int32_t dst = m68k_read_memory_32(dsta);
43805 {	refill_prefetch (m68k_getpc(), 2);
43806 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43807 {	int flgs = ((int32_t)(src)) < 0;
43808 	int flgo = ((int32_t)(dst)) < 0;
43809 	int flgn = ((int32_t)(newv)) < 0;
43810 	SET_ZFLG (((int32_t)(newv)) == 0);
43811 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43812 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43813 	COPY_CARRY;
43814 	SET_NFLG (flgn != 0);
43815 m68k_incpc(4);
43816 fill_prefetch_0 ();
43817 	m68k_write_memory_32(dsta,newv);
43818 }}}}}}}}endlabel2417: ;
43819 return 24;
43820 }
CPUFUNC(op_50b0_5)43821 unsigned long CPUFUNC(op_50b0_5)(uint32_t opcode) /* ADD */
43822 {
43823 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43824 	uint32_t dstreg = opcode & 7;
43825 	OpcodeFamily = 11; CurrentInstrCycles = 26;
43826 {{	uint32_t src = srcreg;
43827 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
43828 	BusCyclePenalty += 2;
43829 	if ((dsta & 1) != 0) {
43830 		last_fault_for_exception_3 = dsta;
43831 		last_op_for_exception_3 = opcode;
43832 		last_addr_for_exception_3 = m68k_getpc() + 4;
43833 		Exception(3, 0, M68000_EXC_SRC_CPU);
43834 		goto endlabel2418;
43835 	}
43836 {{	int32_t dst = m68k_read_memory_32(dsta);
43837 {	refill_prefetch (m68k_getpc(), 2);
43838 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43839 {	int flgs = ((int32_t)(src)) < 0;
43840 	int flgo = ((int32_t)(dst)) < 0;
43841 	int flgn = ((int32_t)(newv)) < 0;
43842 	SET_ZFLG (((int32_t)(newv)) == 0);
43843 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43844 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43845 	COPY_CARRY;
43846 	SET_NFLG (flgn != 0);
43847 m68k_incpc(4);
43848 fill_prefetch_0 ();
43849 	m68k_write_memory_32(dsta,newv);
43850 }}}}}}}}endlabel2418: ;
43851 return 26;
43852 }
CPUFUNC(op_50b8_5)43853 unsigned long CPUFUNC(op_50b8_5)(uint32_t opcode) /* ADD */
43854 {
43855 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43856 	OpcodeFamily = 11; CurrentInstrCycles = 24;
43857 {{	uint32_t src = srcreg;
43858 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
43859 	if ((dsta & 1) != 0) {
43860 		last_fault_for_exception_3 = dsta;
43861 		last_op_for_exception_3 = opcode;
43862 		last_addr_for_exception_3 = m68k_getpc() + 4;
43863 		Exception(3, 0, M68000_EXC_SRC_CPU);
43864 		goto endlabel2419;
43865 	}
43866 {{	int32_t dst = m68k_read_memory_32(dsta);
43867 {	refill_prefetch (m68k_getpc(), 2);
43868 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43869 {	int flgs = ((int32_t)(src)) < 0;
43870 	int flgo = ((int32_t)(dst)) < 0;
43871 	int flgn = ((int32_t)(newv)) < 0;
43872 	SET_ZFLG (((int32_t)(newv)) == 0);
43873 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43874 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43875 	COPY_CARRY;
43876 	SET_NFLG (flgn != 0);
43877 m68k_incpc(4);
43878 fill_prefetch_0 ();
43879 	m68k_write_memory_32(dsta,newv);
43880 }}}}}}}}endlabel2419: ;
43881 return 24;
43882 }
CPUFUNC(op_50b9_5)43883 unsigned long CPUFUNC(op_50b9_5)(uint32_t opcode) /* ADD */
43884 {
43885 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
43886 	OpcodeFamily = 11; CurrentInstrCycles = 28;
43887 {{	uint32_t src = srcreg;
43888 {	uint32_t dsta = get_ilong_prefetch(2);
43889 	if ((dsta & 1) != 0) {
43890 		last_fault_for_exception_3 = dsta;
43891 		last_op_for_exception_3 = opcode;
43892 		last_addr_for_exception_3 = m68k_getpc() + 6;
43893 		Exception(3, 0, M68000_EXC_SRC_CPU);
43894 		goto endlabel2420;
43895 	}
43896 {{	int32_t dst = m68k_read_memory_32(dsta);
43897 {	refill_prefetch (m68k_getpc(), 2);
43898 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
43899 {	int flgs = ((int32_t)(src)) < 0;
43900 	int flgo = ((int32_t)(dst)) < 0;
43901 	int flgn = ((int32_t)(newv)) < 0;
43902 	SET_ZFLG (((int32_t)(newv)) == 0);
43903 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
43904 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
43905 	COPY_CARRY;
43906 	SET_NFLG (flgn != 0);
43907 m68k_incpc(6);
43908 fill_prefetch_0 ();
43909 	m68k_write_memory_32(dsta,newv);
43910 }}}}}}}}endlabel2420: ;
43911 return 28;
43912 }
CPUFUNC(op_50c0_5)43913 unsigned long CPUFUNC(op_50c0_5)(uint32_t opcode) /* Scc */
43914 {
43915 	uint32_t srcreg = (opcode & 7);
43916 	OpcodeFamily = 59; CurrentInstrCycles = 4;
43917 {{{	int val = cctrue(0) ? 0xff : 0;
43918 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
43919 	if (val) { m68k_incpc(2) ; return 4+2; }
43920 }}}m68k_incpc(2);
43921 fill_prefetch_2 ();
43922 return 4;
43923 }
CPUFUNC(op_50c8_5)43924 unsigned long CPUFUNC(op_50c8_5)(uint32_t opcode) /* DBcc */
43925 {
43926 	uint32_t srcreg = (opcode & 7);
43927 	OpcodeFamily = 58; CurrentInstrCycles = 12;
43928 {{	int16_t src = m68k_dreg(regs, srcreg);
43929 {	int16_t offs = get_iword_prefetch(2);
43930 	if (!cctrue(0)) {
43931 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
43932 		if (src) {
43933 			if (offs & 1) {
43934 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
43935 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
43936 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2422;
43937 		}
43938 			m68k_incpc((int32_t)offs + 2);
43939 fill_prefetch_0 ();
43940 			return 10;
43941 		} else {
43942 			m68k_incpc(4);
43943 fill_prefetch_0 ();
43944 			return 14;
43945 		}
43946 	}
43947 }}}m68k_incpc(4);
43948 fill_prefetch_0 ();
43949 endlabel2422: ;
43950 return 12;
43951 }
CPUFUNC(op_50d0_5)43952 unsigned long CPUFUNC(op_50d0_5)(uint32_t opcode) /* Scc */
43953 {
43954 	uint32_t srcreg = (opcode & 7);
43955 	OpcodeFamily = 59; CurrentInstrCycles = 12;
43956 {{	uint32_t srca = m68k_areg(regs, srcreg);
43957 {	int val = cctrue(0) ? 0xff : 0;
43958 m68k_incpc(2);
43959 fill_prefetch_2 ();
43960 	m68k_write_memory_8(srca,val);
43961 }}}return 12;
43962 }
CPUFUNC(op_50d8_5)43963 unsigned long CPUFUNC(op_50d8_5)(uint32_t opcode) /* Scc */
43964 {
43965 	uint32_t srcreg = (opcode & 7);
43966 	OpcodeFamily = 59; CurrentInstrCycles = 12;
43967 {{	uint32_t srca = m68k_areg(regs, srcreg);
43968 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
43969 {	int val = cctrue(0) ? 0xff : 0;
43970 m68k_incpc(2);
43971 fill_prefetch_2 ();
43972 	m68k_write_memory_8(srca,val);
43973 }}}return 12;
43974 }
CPUFUNC(op_50e0_5)43975 unsigned long CPUFUNC(op_50e0_5)(uint32_t opcode) /* Scc */
43976 {
43977 	uint32_t srcreg = (opcode & 7);
43978 	OpcodeFamily = 59; CurrentInstrCycles = 14;
43979 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
43980 	m68k_areg (regs, srcreg) = srca;
43981 {	int val = cctrue(0) ? 0xff : 0;
43982 m68k_incpc(2);
43983 fill_prefetch_2 ();
43984 	m68k_write_memory_8(srca,val);
43985 }}}return 14;
43986 }
CPUFUNC(op_50e8_5)43987 unsigned long CPUFUNC(op_50e8_5)(uint32_t opcode) /* Scc */
43988 {
43989 	uint32_t srcreg = (opcode & 7);
43990 	OpcodeFamily = 59; CurrentInstrCycles = 16;
43991 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
43992 {	int val = cctrue(0) ? 0xff : 0;
43993 m68k_incpc(4);
43994 fill_prefetch_0 ();
43995 	m68k_write_memory_8(srca,val);
43996 }}}return 16;
43997 }
CPUFUNC(op_50f0_5)43998 unsigned long CPUFUNC(op_50f0_5)(uint32_t opcode) /* Scc */
43999 {
44000 	uint32_t srcreg = (opcode & 7);
44001 	OpcodeFamily = 59; CurrentInstrCycles = 18;
44002 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
44003 	BusCyclePenalty += 2;
44004 {	int val = cctrue(0) ? 0xff : 0;
44005 m68k_incpc(4);
44006 fill_prefetch_0 ();
44007 	m68k_write_memory_8(srca,val);
44008 }}}return 18;
44009 }
CPUFUNC(op_50f8_5)44010 unsigned long CPUFUNC(op_50f8_5)(uint32_t opcode) /* Scc */
44011 {
44012 	OpcodeFamily = 59; CurrentInstrCycles = 16;
44013 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
44014 {	int val = cctrue(0) ? 0xff : 0;
44015 m68k_incpc(4);
44016 fill_prefetch_0 ();
44017 	m68k_write_memory_8(srca,val);
44018 }}}return 16;
44019 }
CPUFUNC(op_50f9_5)44020 unsigned long CPUFUNC(op_50f9_5)(uint32_t opcode) /* Scc */
44021 {
44022 	OpcodeFamily = 59; CurrentInstrCycles = 20;
44023 {{	uint32_t srca = get_ilong_prefetch(2);
44024 {	int val = cctrue(0) ? 0xff : 0;
44025 m68k_incpc(6);
44026 fill_prefetch_0 ();
44027 	m68k_write_memory_8(srca,val);
44028 }}}return 20;
44029 }
CPUFUNC(op_5100_5)44030 unsigned long CPUFUNC(op_5100_5)(uint32_t opcode) /* SUB */
44031 {
44032 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44033 	uint32_t dstreg = opcode & 7;
44034 	OpcodeFamily = 7; CurrentInstrCycles = 4;
44035 {{	uint32_t src = srcreg;
44036 {	int8_t dst = m68k_dreg(regs, dstreg);
44037 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44038 {	int flgs = ((int8_t)(src)) < 0;
44039 	int flgo = ((int8_t)(dst)) < 0;
44040 	int flgn = ((int8_t)(newv)) < 0;
44041 	SET_ZFLG (((int8_t)(newv)) == 0);
44042 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44043 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44044 	COPY_CARRY;
44045 	SET_NFLG (flgn != 0);
44046 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
44047 }}}}}}m68k_incpc(2);
44048 fill_prefetch_2 ();
44049 return 4;
44050 }
CPUFUNC(op_5110_5)44051 unsigned long CPUFUNC(op_5110_5)(uint32_t opcode) /* SUB */
44052 {
44053 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44054 	uint32_t dstreg = opcode & 7;
44055 	OpcodeFamily = 7; CurrentInstrCycles = 12;
44056 {{	uint32_t src = srcreg;
44057 {	uint32_t dsta = m68k_areg(regs, dstreg);
44058 {	int8_t dst = m68k_read_memory_8(dsta);
44059 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44060 {	int flgs = ((int8_t)(src)) < 0;
44061 	int flgo = ((int8_t)(dst)) < 0;
44062 	int flgn = ((int8_t)(newv)) < 0;
44063 	SET_ZFLG (((int8_t)(newv)) == 0);
44064 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44065 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44066 	COPY_CARRY;
44067 	SET_NFLG (flgn != 0);
44068 m68k_incpc(2);
44069 fill_prefetch_2 ();
44070 	m68k_write_memory_8(dsta,newv);
44071 }}}}}}}return 12;
44072 }
CPUFUNC(op_5118_5)44073 unsigned long CPUFUNC(op_5118_5)(uint32_t opcode) /* SUB */
44074 {
44075 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44076 	uint32_t dstreg = opcode & 7;
44077 	OpcodeFamily = 7; CurrentInstrCycles = 12;
44078 {{	uint32_t src = srcreg;
44079 {	uint32_t dsta = m68k_areg(regs, dstreg);
44080 {	int8_t dst = m68k_read_memory_8(dsta);
44081 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
44082 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44083 {	int flgs = ((int8_t)(src)) < 0;
44084 	int flgo = ((int8_t)(dst)) < 0;
44085 	int flgn = ((int8_t)(newv)) < 0;
44086 	SET_ZFLG (((int8_t)(newv)) == 0);
44087 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44088 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44089 	COPY_CARRY;
44090 	SET_NFLG (flgn != 0);
44091 m68k_incpc(2);
44092 fill_prefetch_2 ();
44093 	m68k_write_memory_8(dsta,newv);
44094 }}}}}}}return 12;
44095 }
CPUFUNC(op_5120_5)44096 unsigned long CPUFUNC(op_5120_5)(uint32_t opcode) /* SUB */
44097 {
44098 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44099 	uint32_t dstreg = opcode & 7;
44100 	OpcodeFamily = 7; CurrentInstrCycles = 14;
44101 {{	uint32_t src = srcreg;
44102 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
44103 {	int8_t dst = m68k_read_memory_8(dsta);
44104 	m68k_areg (regs, dstreg) = dsta;
44105 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44106 {	int flgs = ((int8_t)(src)) < 0;
44107 	int flgo = ((int8_t)(dst)) < 0;
44108 	int flgn = ((int8_t)(newv)) < 0;
44109 	SET_ZFLG (((int8_t)(newv)) == 0);
44110 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44111 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44112 	COPY_CARRY;
44113 	SET_NFLG (flgn != 0);
44114 m68k_incpc(2);
44115 fill_prefetch_2 ();
44116 	m68k_write_memory_8(dsta,newv);
44117 }}}}}}}return 14;
44118 }
CPUFUNC(op_5128_5)44119 unsigned long CPUFUNC(op_5128_5)(uint32_t opcode) /* SUB */
44120 {
44121 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44122 	uint32_t dstreg = opcode & 7;
44123 	OpcodeFamily = 7; CurrentInstrCycles = 16;
44124 {{	uint32_t src = srcreg;
44125 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
44126 {	int8_t dst = m68k_read_memory_8(dsta);
44127 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44128 {	int flgs = ((int8_t)(src)) < 0;
44129 	int flgo = ((int8_t)(dst)) < 0;
44130 	int flgn = ((int8_t)(newv)) < 0;
44131 	SET_ZFLG (((int8_t)(newv)) == 0);
44132 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44133 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44134 	COPY_CARRY;
44135 	SET_NFLG (flgn != 0);
44136 m68k_incpc(4);
44137 fill_prefetch_0 ();
44138 	m68k_write_memory_8(dsta,newv);
44139 }}}}}}}return 16;
44140 }
CPUFUNC(op_5130_5)44141 unsigned long CPUFUNC(op_5130_5)(uint32_t opcode) /* SUB */
44142 {
44143 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44144 	uint32_t dstreg = opcode & 7;
44145 	OpcodeFamily = 7; CurrentInstrCycles = 18;
44146 {{	uint32_t src = srcreg;
44147 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
44148 	BusCyclePenalty += 2;
44149 {	int8_t dst = m68k_read_memory_8(dsta);
44150 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44151 {	int flgs = ((int8_t)(src)) < 0;
44152 	int flgo = ((int8_t)(dst)) < 0;
44153 	int flgn = ((int8_t)(newv)) < 0;
44154 	SET_ZFLG (((int8_t)(newv)) == 0);
44155 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44156 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44157 	COPY_CARRY;
44158 	SET_NFLG (flgn != 0);
44159 m68k_incpc(4);
44160 fill_prefetch_0 ();
44161 	m68k_write_memory_8(dsta,newv);
44162 }}}}}}}return 18;
44163 }
CPUFUNC(op_5138_5)44164 unsigned long CPUFUNC(op_5138_5)(uint32_t opcode) /* SUB */
44165 {
44166 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44167 	OpcodeFamily = 7; CurrentInstrCycles = 16;
44168 {{	uint32_t src = srcreg;
44169 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
44170 {	int8_t dst = m68k_read_memory_8(dsta);
44171 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44172 {	int flgs = ((int8_t)(src)) < 0;
44173 	int flgo = ((int8_t)(dst)) < 0;
44174 	int flgn = ((int8_t)(newv)) < 0;
44175 	SET_ZFLG (((int8_t)(newv)) == 0);
44176 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44177 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44178 	COPY_CARRY;
44179 	SET_NFLG (flgn != 0);
44180 m68k_incpc(4);
44181 fill_prefetch_0 ();
44182 	m68k_write_memory_8(dsta,newv);
44183 }}}}}}}return 16;
44184 }
CPUFUNC(op_5139_5)44185 unsigned long CPUFUNC(op_5139_5)(uint32_t opcode) /* SUB */
44186 {
44187 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44188 	OpcodeFamily = 7; CurrentInstrCycles = 20;
44189 {{	uint32_t src = srcreg;
44190 {	uint32_t dsta = get_ilong_prefetch(2);
44191 {	int8_t dst = m68k_read_memory_8(dsta);
44192 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
44193 {	int flgs = ((int8_t)(src)) < 0;
44194 	int flgo = ((int8_t)(dst)) < 0;
44195 	int flgn = ((int8_t)(newv)) < 0;
44196 	SET_ZFLG (((int8_t)(newv)) == 0);
44197 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44198 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
44199 	COPY_CARRY;
44200 	SET_NFLG (flgn != 0);
44201 m68k_incpc(6);
44202 fill_prefetch_0 ();
44203 	m68k_write_memory_8(dsta,newv);
44204 }}}}}}}return 20;
44205 }
CPUFUNC(op_5140_5)44206 unsigned long CPUFUNC(op_5140_5)(uint32_t opcode) /* SUB */
44207 {
44208 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44209 	uint32_t dstreg = opcode & 7;
44210 	OpcodeFamily = 7; CurrentInstrCycles = 4;
44211 {{	uint32_t src = srcreg;
44212 {	int16_t dst = m68k_dreg(regs, dstreg);
44213 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44214 {	int flgs = ((int16_t)(src)) < 0;
44215 	int flgo = ((int16_t)(dst)) < 0;
44216 	int flgn = ((int16_t)(newv)) < 0;
44217 	SET_ZFLG (((int16_t)(newv)) == 0);
44218 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44219 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44220 	COPY_CARRY;
44221 	SET_NFLG (flgn != 0);
44222 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
44223 }}}}}}m68k_incpc(2);
44224 fill_prefetch_2 ();
44225 return 4;
44226 }
CPUFUNC(op_5148_5)44227 unsigned long CPUFUNC(op_5148_5)(uint32_t opcode) /* SUBA */
44228 {
44229 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44230 	uint32_t dstreg = opcode & 7;
44231 	OpcodeFamily = 8; CurrentInstrCycles = 8;
44232 {{	uint32_t src = srcreg;
44233 {	int32_t dst = m68k_areg(regs, dstreg);
44234 {	uint32_t newv = dst - src;
44235 	m68k_areg(regs, dstreg) = (newv);
44236 }}}}m68k_incpc(2);
44237 fill_prefetch_2 ();
44238 return 8;
44239 }
CPUFUNC(op_5150_5)44240 unsigned long CPUFUNC(op_5150_5)(uint32_t opcode) /* SUB */
44241 {
44242 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44243 	uint32_t dstreg = opcode & 7;
44244 	OpcodeFamily = 7; CurrentInstrCycles = 12;
44245 {{	uint32_t src = srcreg;
44246 {	uint32_t dsta = m68k_areg(regs, dstreg);
44247 	if ((dsta & 1) != 0) {
44248 		last_fault_for_exception_3 = dsta;
44249 		last_op_for_exception_3 = opcode;
44250 		last_addr_for_exception_3 = m68k_getpc() + 2;
44251 		Exception(3, 0, M68000_EXC_SRC_CPU);
44252 		goto endlabel2440;
44253 	}
44254 {{	int16_t dst = m68k_read_memory_16(dsta);
44255 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44256 {	int flgs = ((int16_t)(src)) < 0;
44257 	int flgo = ((int16_t)(dst)) < 0;
44258 	int flgn = ((int16_t)(newv)) < 0;
44259 	SET_ZFLG (((int16_t)(newv)) == 0);
44260 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44261 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44262 	COPY_CARRY;
44263 	SET_NFLG (flgn != 0);
44264 m68k_incpc(2);
44265 fill_prefetch_2 ();
44266 	m68k_write_memory_16(dsta,newv);
44267 }}}}}}}}endlabel2440: ;
44268 return 12;
44269 }
CPUFUNC(op_5158_5)44270 unsigned long CPUFUNC(op_5158_5)(uint32_t opcode) /* SUB */
44271 {
44272 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44273 	uint32_t dstreg = opcode & 7;
44274 	OpcodeFamily = 7; CurrentInstrCycles = 12;
44275 {{	uint32_t src = srcreg;
44276 {	uint32_t dsta = m68k_areg(regs, dstreg);
44277 	if ((dsta & 1) != 0) {
44278 		last_fault_for_exception_3 = dsta;
44279 		last_op_for_exception_3 = opcode;
44280 		last_addr_for_exception_3 = m68k_getpc() + 2;
44281 		Exception(3, 0, M68000_EXC_SRC_CPU);
44282 		goto endlabel2441;
44283 	}
44284 {{	int16_t dst = m68k_read_memory_16(dsta);
44285 	m68k_areg(regs, dstreg) += 2;
44286 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44287 {	int flgs = ((int16_t)(src)) < 0;
44288 	int flgo = ((int16_t)(dst)) < 0;
44289 	int flgn = ((int16_t)(newv)) < 0;
44290 	SET_ZFLG (((int16_t)(newv)) == 0);
44291 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44292 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44293 	COPY_CARRY;
44294 	SET_NFLG (flgn != 0);
44295 m68k_incpc(2);
44296 fill_prefetch_2 ();
44297 	m68k_write_memory_16(dsta,newv);
44298 }}}}}}}}endlabel2441: ;
44299 return 12;
44300 }
CPUFUNC(op_5160_5)44301 unsigned long CPUFUNC(op_5160_5)(uint32_t opcode) /* SUB */
44302 {
44303 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44304 	uint32_t dstreg = opcode & 7;
44305 	OpcodeFamily = 7; CurrentInstrCycles = 14;
44306 {{	uint32_t src = srcreg;
44307 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
44308 	if ((dsta & 1) != 0) {
44309 		last_fault_for_exception_3 = dsta;
44310 		last_op_for_exception_3 = opcode;
44311 		last_addr_for_exception_3 = m68k_getpc() + 2;
44312 		Exception(3, 0, M68000_EXC_SRC_CPU);
44313 		goto endlabel2442;
44314 	}
44315 {{	int16_t dst = m68k_read_memory_16(dsta);
44316 	m68k_areg (regs, dstreg) = dsta;
44317 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44318 {	int flgs = ((int16_t)(src)) < 0;
44319 	int flgo = ((int16_t)(dst)) < 0;
44320 	int flgn = ((int16_t)(newv)) < 0;
44321 	SET_ZFLG (((int16_t)(newv)) == 0);
44322 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44323 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44324 	COPY_CARRY;
44325 	SET_NFLG (flgn != 0);
44326 m68k_incpc(2);
44327 fill_prefetch_2 ();
44328 	m68k_write_memory_16(dsta,newv);
44329 }}}}}}}}endlabel2442: ;
44330 return 14;
44331 }
CPUFUNC(op_5168_5)44332 unsigned long CPUFUNC(op_5168_5)(uint32_t opcode) /* SUB */
44333 {
44334 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44335 	uint32_t dstreg = opcode & 7;
44336 	OpcodeFamily = 7; CurrentInstrCycles = 16;
44337 {{	uint32_t src = srcreg;
44338 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
44339 	if ((dsta & 1) != 0) {
44340 		last_fault_for_exception_3 = dsta;
44341 		last_op_for_exception_3 = opcode;
44342 		last_addr_for_exception_3 = m68k_getpc() + 4;
44343 		Exception(3, 0, M68000_EXC_SRC_CPU);
44344 		goto endlabel2443;
44345 	}
44346 {{	int16_t dst = m68k_read_memory_16(dsta);
44347 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44348 {	int flgs = ((int16_t)(src)) < 0;
44349 	int flgo = ((int16_t)(dst)) < 0;
44350 	int flgn = ((int16_t)(newv)) < 0;
44351 	SET_ZFLG (((int16_t)(newv)) == 0);
44352 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44353 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44354 	COPY_CARRY;
44355 	SET_NFLG (flgn != 0);
44356 m68k_incpc(4);
44357 fill_prefetch_0 ();
44358 	m68k_write_memory_16(dsta,newv);
44359 }}}}}}}}endlabel2443: ;
44360 return 16;
44361 }
CPUFUNC(op_5170_5)44362 unsigned long CPUFUNC(op_5170_5)(uint32_t opcode) /* SUB */
44363 {
44364 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44365 	uint32_t dstreg = opcode & 7;
44366 	OpcodeFamily = 7; CurrentInstrCycles = 18;
44367 {{	uint32_t src = srcreg;
44368 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
44369 	BusCyclePenalty += 2;
44370 	if ((dsta & 1) != 0) {
44371 		last_fault_for_exception_3 = dsta;
44372 		last_op_for_exception_3 = opcode;
44373 		last_addr_for_exception_3 = m68k_getpc() + 4;
44374 		Exception(3, 0, M68000_EXC_SRC_CPU);
44375 		goto endlabel2444;
44376 	}
44377 {{	int16_t dst = m68k_read_memory_16(dsta);
44378 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44379 {	int flgs = ((int16_t)(src)) < 0;
44380 	int flgo = ((int16_t)(dst)) < 0;
44381 	int flgn = ((int16_t)(newv)) < 0;
44382 	SET_ZFLG (((int16_t)(newv)) == 0);
44383 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44384 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44385 	COPY_CARRY;
44386 	SET_NFLG (flgn != 0);
44387 m68k_incpc(4);
44388 fill_prefetch_0 ();
44389 	m68k_write_memory_16(dsta,newv);
44390 }}}}}}}}endlabel2444: ;
44391 return 18;
44392 }
CPUFUNC(op_5178_5)44393 unsigned long CPUFUNC(op_5178_5)(uint32_t opcode) /* SUB */
44394 {
44395 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44396 	OpcodeFamily = 7; CurrentInstrCycles = 16;
44397 {{	uint32_t src = srcreg;
44398 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
44399 	if ((dsta & 1) != 0) {
44400 		last_fault_for_exception_3 = dsta;
44401 		last_op_for_exception_3 = opcode;
44402 		last_addr_for_exception_3 = m68k_getpc() + 4;
44403 		Exception(3, 0, M68000_EXC_SRC_CPU);
44404 		goto endlabel2445;
44405 	}
44406 {{	int16_t dst = m68k_read_memory_16(dsta);
44407 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44408 {	int flgs = ((int16_t)(src)) < 0;
44409 	int flgo = ((int16_t)(dst)) < 0;
44410 	int flgn = ((int16_t)(newv)) < 0;
44411 	SET_ZFLG (((int16_t)(newv)) == 0);
44412 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44413 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44414 	COPY_CARRY;
44415 	SET_NFLG (flgn != 0);
44416 m68k_incpc(4);
44417 fill_prefetch_0 ();
44418 	m68k_write_memory_16(dsta,newv);
44419 }}}}}}}}endlabel2445: ;
44420 return 16;
44421 }
CPUFUNC(op_5179_5)44422 unsigned long CPUFUNC(op_5179_5)(uint32_t opcode) /* SUB */
44423 {
44424 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44425 	OpcodeFamily = 7; CurrentInstrCycles = 20;
44426 {{	uint32_t src = srcreg;
44427 {	uint32_t dsta = get_ilong_prefetch(2);
44428 	if ((dsta & 1) != 0) {
44429 		last_fault_for_exception_3 = dsta;
44430 		last_op_for_exception_3 = opcode;
44431 		last_addr_for_exception_3 = m68k_getpc() + 6;
44432 		Exception(3, 0, M68000_EXC_SRC_CPU);
44433 		goto endlabel2446;
44434 	}
44435 {{	int16_t dst = m68k_read_memory_16(dsta);
44436 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
44437 {	int flgs = ((int16_t)(src)) < 0;
44438 	int flgo = ((int16_t)(dst)) < 0;
44439 	int flgn = ((int16_t)(newv)) < 0;
44440 	SET_ZFLG (((int16_t)(newv)) == 0);
44441 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44442 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
44443 	COPY_CARRY;
44444 	SET_NFLG (flgn != 0);
44445 m68k_incpc(6);
44446 fill_prefetch_0 ();
44447 	m68k_write_memory_16(dsta,newv);
44448 }}}}}}}}endlabel2446: ;
44449 return 20;
44450 }
CPUFUNC(op_5180_5)44451 unsigned long CPUFUNC(op_5180_5)(uint32_t opcode) /* SUB */
44452 {
44453 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44454 	uint32_t dstreg = opcode & 7;
44455 	OpcodeFamily = 7; CurrentInstrCycles = 8;
44456 {{	uint32_t src = srcreg;
44457 {	int32_t dst = m68k_dreg(regs, dstreg);
44458 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44459 {	int flgs = ((int32_t)(src)) < 0;
44460 	int flgo = ((int32_t)(dst)) < 0;
44461 	int flgn = ((int32_t)(newv)) < 0;
44462 	SET_ZFLG (((int32_t)(newv)) == 0);
44463 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44464 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44465 	COPY_CARRY;
44466 	SET_NFLG (flgn != 0);
44467 	m68k_dreg(regs, dstreg) = (newv);
44468 }}}}}}m68k_incpc(2);
44469 fill_prefetch_2 ();
44470 return 8;
44471 }
CPUFUNC(op_5188_5)44472 unsigned long CPUFUNC(op_5188_5)(uint32_t opcode) /* SUBA */
44473 {
44474 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44475 	uint32_t dstreg = opcode & 7;
44476 	OpcodeFamily = 8; CurrentInstrCycles = 8;
44477 {{	uint32_t src = srcreg;
44478 {	int32_t dst = m68k_areg(regs, dstreg);
44479 {	uint32_t newv = dst - src;
44480 	m68k_areg(regs, dstreg) = (newv);
44481 }}}}m68k_incpc(2);
44482 fill_prefetch_2 ();
44483 return 8;
44484 }
CPUFUNC(op_5190_5)44485 unsigned long CPUFUNC(op_5190_5)(uint32_t opcode) /* SUB */
44486 {
44487 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44488 	uint32_t dstreg = opcode & 7;
44489 	OpcodeFamily = 7; CurrentInstrCycles = 20;
44490 {{	uint32_t src = srcreg;
44491 {	uint32_t dsta = m68k_areg(regs, dstreg);
44492 	if ((dsta & 1) != 0) {
44493 		last_fault_for_exception_3 = dsta;
44494 		last_op_for_exception_3 = opcode;
44495 		last_addr_for_exception_3 = m68k_getpc() + 2;
44496 		Exception(3, 0, M68000_EXC_SRC_CPU);
44497 		goto endlabel2449;
44498 	}
44499 {{	int32_t dst = m68k_read_memory_32(dsta);
44500 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44501 {	int flgs = ((int32_t)(src)) < 0;
44502 	int flgo = ((int32_t)(dst)) < 0;
44503 	int flgn = ((int32_t)(newv)) < 0;
44504 	SET_ZFLG (((int32_t)(newv)) == 0);
44505 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44506 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44507 	COPY_CARRY;
44508 	SET_NFLG (flgn != 0);
44509 m68k_incpc(2);
44510 fill_prefetch_2 ();
44511 	m68k_write_memory_32(dsta,newv);
44512 }}}}}}}}endlabel2449: ;
44513 return 20;
44514 }
CPUFUNC(op_5198_5)44515 unsigned long CPUFUNC(op_5198_5)(uint32_t opcode) /* SUB */
44516 {
44517 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44518 	uint32_t dstreg = opcode & 7;
44519 	OpcodeFamily = 7; CurrentInstrCycles = 20;
44520 {{	uint32_t src = srcreg;
44521 {	uint32_t dsta = m68k_areg(regs, dstreg);
44522 	if ((dsta & 1) != 0) {
44523 		last_fault_for_exception_3 = dsta;
44524 		last_op_for_exception_3 = opcode;
44525 		last_addr_for_exception_3 = m68k_getpc() + 2;
44526 		Exception(3, 0, M68000_EXC_SRC_CPU);
44527 		goto endlabel2450;
44528 	}
44529 {{	int32_t dst = m68k_read_memory_32(dsta);
44530 	m68k_areg(regs, dstreg) += 4;
44531 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44532 {	int flgs = ((int32_t)(src)) < 0;
44533 	int flgo = ((int32_t)(dst)) < 0;
44534 	int flgn = ((int32_t)(newv)) < 0;
44535 	SET_ZFLG (((int32_t)(newv)) == 0);
44536 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44537 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44538 	COPY_CARRY;
44539 	SET_NFLG (flgn != 0);
44540 m68k_incpc(2);
44541 fill_prefetch_2 ();
44542 	m68k_write_memory_32(dsta,newv);
44543 }}}}}}}}endlabel2450: ;
44544 return 20;
44545 }
CPUFUNC(op_51a0_5)44546 unsigned long CPUFUNC(op_51a0_5)(uint32_t opcode) /* SUB */
44547 {
44548 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44549 	uint32_t dstreg = opcode & 7;
44550 	OpcodeFamily = 7; CurrentInstrCycles = 22;
44551 {{	uint32_t src = srcreg;
44552 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
44553 	if ((dsta & 1) != 0) {
44554 		last_fault_for_exception_3 = dsta;
44555 		last_op_for_exception_3 = opcode;
44556 		last_addr_for_exception_3 = m68k_getpc() + 2;
44557 		Exception(3, 0, M68000_EXC_SRC_CPU);
44558 		goto endlabel2451;
44559 	}
44560 {{	int32_t dst = m68k_read_memory_32(dsta);
44561 	m68k_areg (regs, dstreg) = dsta;
44562 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44563 {	int flgs = ((int32_t)(src)) < 0;
44564 	int flgo = ((int32_t)(dst)) < 0;
44565 	int flgn = ((int32_t)(newv)) < 0;
44566 	SET_ZFLG (((int32_t)(newv)) == 0);
44567 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44568 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44569 	COPY_CARRY;
44570 	SET_NFLG (flgn != 0);
44571 m68k_incpc(2);
44572 fill_prefetch_2 ();
44573 	m68k_write_memory_32(dsta,newv);
44574 }}}}}}}}endlabel2451: ;
44575 return 22;
44576 }
CPUFUNC(op_51a8_5)44577 unsigned long CPUFUNC(op_51a8_5)(uint32_t opcode) /* SUB */
44578 {
44579 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44580 	uint32_t dstreg = opcode & 7;
44581 	OpcodeFamily = 7; CurrentInstrCycles = 24;
44582 {{	uint32_t src = srcreg;
44583 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
44584 	if ((dsta & 1) != 0) {
44585 		last_fault_for_exception_3 = dsta;
44586 		last_op_for_exception_3 = opcode;
44587 		last_addr_for_exception_3 = m68k_getpc() + 4;
44588 		Exception(3, 0, M68000_EXC_SRC_CPU);
44589 		goto endlabel2452;
44590 	}
44591 {{	int32_t dst = m68k_read_memory_32(dsta);
44592 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44593 {	int flgs = ((int32_t)(src)) < 0;
44594 	int flgo = ((int32_t)(dst)) < 0;
44595 	int flgn = ((int32_t)(newv)) < 0;
44596 	SET_ZFLG (((int32_t)(newv)) == 0);
44597 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44598 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44599 	COPY_CARRY;
44600 	SET_NFLG (flgn != 0);
44601 m68k_incpc(4);
44602 fill_prefetch_0 ();
44603 	m68k_write_memory_32(dsta,newv);
44604 }}}}}}}}endlabel2452: ;
44605 return 24;
44606 }
CPUFUNC(op_51b0_5)44607 unsigned long CPUFUNC(op_51b0_5)(uint32_t opcode) /* SUB */
44608 {
44609 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44610 	uint32_t dstreg = opcode & 7;
44611 	OpcodeFamily = 7; CurrentInstrCycles = 26;
44612 {{	uint32_t src = srcreg;
44613 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
44614 	BusCyclePenalty += 2;
44615 	if ((dsta & 1) != 0) {
44616 		last_fault_for_exception_3 = dsta;
44617 		last_op_for_exception_3 = opcode;
44618 		last_addr_for_exception_3 = m68k_getpc() + 4;
44619 		Exception(3, 0, M68000_EXC_SRC_CPU);
44620 		goto endlabel2453;
44621 	}
44622 {{	int32_t dst = m68k_read_memory_32(dsta);
44623 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44624 {	int flgs = ((int32_t)(src)) < 0;
44625 	int flgo = ((int32_t)(dst)) < 0;
44626 	int flgn = ((int32_t)(newv)) < 0;
44627 	SET_ZFLG (((int32_t)(newv)) == 0);
44628 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44629 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44630 	COPY_CARRY;
44631 	SET_NFLG (flgn != 0);
44632 m68k_incpc(4);
44633 fill_prefetch_0 ();
44634 	m68k_write_memory_32(dsta,newv);
44635 }}}}}}}}endlabel2453: ;
44636 return 26;
44637 }
CPUFUNC(op_51b8_5)44638 unsigned long CPUFUNC(op_51b8_5)(uint32_t opcode) /* SUB */
44639 {
44640 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44641 	OpcodeFamily = 7; CurrentInstrCycles = 24;
44642 {{	uint32_t src = srcreg;
44643 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
44644 	if ((dsta & 1) != 0) {
44645 		last_fault_for_exception_3 = dsta;
44646 		last_op_for_exception_3 = opcode;
44647 		last_addr_for_exception_3 = m68k_getpc() + 4;
44648 		Exception(3, 0, M68000_EXC_SRC_CPU);
44649 		goto endlabel2454;
44650 	}
44651 {{	int32_t dst = m68k_read_memory_32(dsta);
44652 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44653 {	int flgs = ((int32_t)(src)) < 0;
44654 	int flgo = ((int32_t)(dst)) < 0;
44655 	int flgn = ((int32_t)(newv)) < 0;
44656 	SET_ZFLG (((int32_t)(newv)) == 0);
44657 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44658 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44659 	COPY_CARRY;
44660 	SET_NFLG (flgn != 0);
44661 m68k_incpc(4);
44662 fill_prefetch_0 ();
44663 	m68k_write_memory_32(dsta,newv);
44664 }}}}}}}}endlabel2454: ;
44665 return 24;
44666 }
CPUFUNC(op_51b9_5)44667 unsigned long CPUFUNC(op_51b9_5)(uint32_t opcode) /* SUB */
44668 {
44669 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
44670 	OpcodeFamily = 7; CurrentInstrCycles = 28;
44671 {{	uint32_t src = srcreg;
44672 {	uint32_t dsta = get_ilong_prefetch(2);
44673 	if ((dsta & 1) != 0) {
44674 		last_fault_for_exception_3 = dsta;
44675 		last_op_for_exception_3 = opcode;
44676 		last_addr_for_exception_3 = m68k_getpc() + 6;
44677 		Exception(3, 0, M68000_EXC_SRC_CPU);
44678 		goto endlabel2455;
44679 	}
44680 {{	int32_t dst = m68k_read_memory_32(dsta);
44681 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
44682 {	int flgs = ((int32_t)(src)) < 0;
44683 	int flgo = ((int32_t)(dst)) < 0;
44684 	int flgn = ((int32_t)(newv)) < 0;
44685 	SET_ZFLG (((int32_t)(newv)) == 0);
44686 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
44687 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
44688 	COPY_CARRY;
44689 	SET_NFLG (flgn != 0);
44690 m68k_incpc(6);
44691 fill_prefetch_0 ();
44692 	m68k_write_memory_32(dsta,newv);
44693 }}}}}}}}endlabel2455: ;
44694 return 28;
44695 }
CPUFUNC(op_51c0_5)44696 unsigned long CPUFUNC(op_51c0_5)(uint32_t opcode) /* Scc */
44697 {
44698 	uint32_t srcreg = (opcode & 7);
44699 	OpcodeFamily = 59; CurrentInstrCycles = 4;
44700 {{{	int val = cctrue(1) ? 0xff : 0;
44701 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
44702 	if (val) { m68k_incpc(2) ; return 4+2; }
44703 }}}m68k_incpc(2);
44704 fill_prefetch_2 ();
44705 return 4;
44706 }
CPUFUNC(op_51c8_5)44707 unsigned long CPUFUNC(op_51c8_5)(uint32_t opcode) /* DBcc */
44708 {
44709 	uint32_t srcreg = (opcode & 7);
44710 	OpcodeFamily = 58; CurrentInstrCycles = 12;
44711 {{	int16_t src = m68k_dreg(regs, srcreg);
44712 {	int16_t offs = get_iword_prefetch(2);
44713 	if (!cctrue(1)) {
44714 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
44715 		if (src) {
44716 			if (offs & 1) {
44717 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
44718 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
44719 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2457;
44720 		}
44721 			m68k_incpc((int32_t)offs + 2);
44722 fill_prefetch_0 ();
44723 			return 10;
44724 		} else {
44725 			m68k_incpc(4);
44726 fill_prefetch_0 ();
44727 			return 14;
44728 		}
44729 	}
44730 }}}m68k_incpc(4);
44731 fill_prefetch_0 ();
44732 endlabel2457: ;
44733 return 12;
44734 }
CPUFUNC(op_51d0_5)44735 unsigned long CPUFUNC(op_51d0_5)(uint32_t opcode) /* Scc */
44736 {
44737 	uint32_t srcreg = (opcode & 7);
44738 	OpcodeFamily = 59; CurrentInstrCycles = 12;
44739 {{	uint32_t srca = m68k_areg(regs, srcreg);
44740 {	int val = cctrue(1) ? 0xff : 0;
44741 m68k_incpc(2);
44742 fill_prefetch_2 ();
44743 	m68k_write_memory_8(srca,val);
44744 }}}return 12;
44745 }
CPUFUNC(op_51d8_5)44746 unsigned long CPUFUNC(op_51d8_5)(uint32_t opcode) /* Scc */
44747 {
44748 	uint32_t srcreg = (opcode & 7);
44749 	OpcodeFamily = 59; CurrentInstrCycles = 12;
44750 {{	uint32_t srca = m68k_areg(regs, srcreg);
44751 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
44752 {	int val = cctrue(1) ? 0xff : 0;
44753 m68k_incpc(2);
44754 fill_prefetch_2 ();
44755 	m68k_write_memory_8(srca,val);
44756 }}}return 12;
44757 }
CPUFUNC(op_51e0_5)44758 unsigned long CPUFUNC(op_51e0_5)(uint32_t opcode) /* Scc */
44759 {
44760 	uint32_t srcreg = (opcode & 7);
44761 	OpcodeFamily = 59; CurrentInstrCycles = 14;
44762 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
44763 	m68k_areg (regs, srcreg) = srca;
44764 {	int val = cctrue(1) ? 0xff : 0;
44765 m68k_incpc(2);
44766 fill_prefetch_2 ();
44767 	m68k_write_memory_8(srca,val);
44768 }}}return 14;
44769 }
CPUFUNC(op_51e8_5)44770 unsigned long CPUFUNC(op_51e8_5)(uint32_t opcode) /* Scc */
44771 {
44772 	uint32_t srcreg = (opcode & 7);
44773 	OpcodeFamily = 59; CurrentInstrCycles = 16;
44774 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
44775 {	int val = cctrue(1) ? 0xff : 0;
44776 m68k_incpc(4);
44777 fill_prefetch_0 ();
44778 	m68k_write_memory_8(srca,val);
44779 }}}return 16;
44780 }
CPUFUNC(op_51f0_5)44781 unsigned long CPUFUNC(op_51f0_5)(uint32_t opcode) /* Scc */
44782 {
44783 	uint32_t srcreg = (opcode & 7);
44784 	OpcodeFamily = 59; CurrentInstrCycles = 18;
44785 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
44786 	BusCyclePenalty += 2;
44787 {	int val = cctrue(1) ? 0xff : 0;
44788 m68k_incpc(4);
44789 fill_prefetch_0 ();
44790 	m68k_write_memory_8(srca,val);
44791 }}}return 18;
44792 }
CPUFUNC(op_51f8_5)44793 unsigned long CPUFUNC(op_51f8_5)(uint32_t opcode) /* Scc */
44794 {
44795 	OpcodeFamily = 59; CurrentInstrCycles = 16;
44796 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
44797 {	int val = cctrue(1) ? 0xff : 0;
44798 m68k_incpc(4);
44799 fill_prefetch_0 ();
44800 	m68k_write_memory_8(srca,val);
44801 }}}return 16;
44802 }
CPUFUNC(op_51f9_5)44803 unsigned long CPUFUNC(op_51f9_5)(uint32_t opcode) /* Scc */
44804 {
44805 	OpcodeFamily = 59; CurrentInstrCycles = 20;
44806 {{	uint32_t srca = get_ilong_prefetch(2);
44807 {	int val = cctrue(1) ? 0xff : 0;
44808 m68k_incpc(6);
44809 fill_prefetch_0 ();
44810 	m68k_write_memory_8(srca,val);
44811 }}}return 20;
44812 }
CPUFUNC(op_52c0_5)44813 unsigned long CPUFUNC(op_52c0_5)(uint32_t opcode) /* Scc */
44814 {
44815 	uint32_t srcreg = (opcode & 7);
44816 	OpcodeFamily = 59; CurrentInstrCycles = 4;
44817 {{{	int val = cctrue(2) ? 0xff : 0;
44818 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
44819 	if (val) { m68k_incpc(2) ; return 4+2; }
44820 }}}m68k_incpc(2);
44821 fill_prefetch_2 ();
44822 return 4;
44823 }
CPUFUNC(op_52c8_5)44824 unsigned long CPUFUNC(op_52c8_5)(uint32_t opcode) /* DBcc */
44825 {
44826 	uint32_t srcreg = (opcode & 7);
44827 	OpcodeFamily = 58; CurrentInstrCycles = 12;
44828 {{	int16_t src = m68k_dreg(regs, srcreg);
44829 {	int16_t offs = get_iword_prefetch(2);
44830 	if (!cctrue(2)) {
44831 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
44832 		if (src) {
44833 			if (offs & 1) {
44834 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
44835 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
44836 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2466;
44837 		}
44838 			m68k_incpc((int32_t)offs + 2);
44839 fill_prefetch_0 ();
44840 			return 10;
44841 		} else {
44842 			m68k_incpc(4);
44843 fill_prefetch_0 ();
44844 			return 14;
44845 		}
44846 	}
44847 }}}m68k_incpc(4);
44848 fill_prefetch_0 ();
44849 endlabel2466: ;
44850 return 12;
44851 }
CPUFUNC(op_52d0_5)44852 unsigned long CPUFUNC(op_52d0_5)(uint32_t opcode) /* Scc */
44853 {
44854 	uint32_t srcreg = (opcode & 7);
44855 	OpcodeFamily = 59; CurrentInstrCycles = 12;
44856 {{	uint32_t srca = m68k_areg(regs, srcreg);
44857 {	int val = cctrue(2) ? 0xff : 0;
44858 m68k_incpc(2);
44859 fill_prefetch_2 ();
44860 	m68k_write_memory_8(srca,val);
44861 }}}return 12;
44862 }
CPUFUNC(op_52d8_5)44863 unsigned long CPUFUNC(op_52d8_5)(uint32_t opcode) /* Scc */
44864 {
44865 	uint32_t srcreg = (opcode & 7);
44866 	OpcodeFamily = 59; CurrentInstrCycles = 12;
44867 {{	uint32_t srca = m68k_areg(regs, srcreg);
44868 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
44869 {	int val = cctrue(2) ? 0xff : 0;
44870 m68k_incpc(2);
44871 fill_prefetch_2 ();
44872 	m68k_write_memory_8(srca,val);
44873 }}}return 12;
44874 }
CPUFUNC(op_52e0_5)44875 unsigned long CPUFUNC(op_52e0_5)(uint32_t opcode) /* Scc */
44876 {
44877 	uint32_t srcreg = (opcode & 7);
44878 	OpcodeFamily = 59; CurrentInstrCycles = 14;
44879 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
44880 	m68k_areg (regs, srcreg) = srca;
44881 {	int val = cctrue(2) ? 0xff : 0;
44882 m68k_incpc(2);
44883 fill_prefetch_2 ();
44884 	m68k_write_memory_8(srca,val);
44885 }}}return 14;
44886 }
CPUFUNC(op_52e8_5)44887 unsigned long CPUFUNC(op_52e8_5)(uint32_t opcode) /* Scc */
44888 {
44889 	uint32_t srcreg = (opcode & 7);
44890 	OpcodeFamily = 59; CurrentInstrCycles = 16;
44891 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
44892 {	int val = cctrue(2) ? 0xff : 0;
44893 m68k_incpc(4);
44894 fill_prefetch_0 ();
44895 	m68k_write_memory_8(srca,val);
44896 }}}return 16;
44897 }
CPUFUNC(op_52f0_5)44898 unsigned long CPUFUNC(op_52f0_5)(uint32_t opcode) /* Scc */
44899 {
44900 	uint32_t srcreg = (opcode & 7);
44901 	OpcodeFamily = 59; CurrentInstrCycles = 18;
44902 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
44903 	BusCyclePenalty += 2;
44904 {	int val = cctrue(2) ? 0xff : 0;
44905 m68k_incpc(4);
44906 fill_prefetch_0 ();
44907 	m68k_write_memory_8(srca,val);
44908 }}}return 18;
44909 }
CPUFUNC(op_52f8_5)44910 unsigned long CPUFUNC(op_52f8_5)(uint32_t opcode) /* Scc */
44911 {
44912 	OpcodeFamily = 59; CurrentInstrCycles = 16;
44913 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
44914 {	int val = cctrue(2) ? 0xff : 0;
44915 m68k_incpc(4);
44916 fill_prefetch_0 ();
44917 	m68k_write_memory_8(srca,val);
44918 }}}return 16;
44919 }
CPUFUNC(op_52f9_5)44920 unsigned long CPUFUNC(op_52f9_5)(uint32_t opcode) /* Scc */
44921 {
44922 	OpcodeFamily = 59; CurrentInstrCycles = 20;
44923 {{	uint32_t srca = get_ilong_prefetch(2);
44924 {	int val = cctrue(2) ? 0xff : 0;
44925 m68k_incpc(6);
44926 fill_prefetch_0 ();
44927 	m68k_write_memory_8(srca,val);
44928 }}}return 20;
44929 }
CPUFUNC(op_53c0_5)44930 unsigned long CPUFUNC(op_53c0_5)(uint32_t opcode) /* Scc */
44931 {
44932 	uint32_t srcreg = (opcode & 7);
44933 	OpcodeFamily = 59; CurrentInstrCycles = 4;
44934 {{{	int val = cctrue(3) ? 0xff : 0;
44935 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
44936 	if (val) { m68k_incpc(2) ; return 4+2; }
44937 }}}m68k_incpc(2);
44938 fill_prefetch_2 ();
44939 return 4;
44940 }
CPUFUNC(op_53c8_5)44941 unsigned long CPUFUNC(op_53c8_5)(uint32_t opcode) /* DBcc */
44942 {
44943 	uint32_t srcreg = (opcode & 7);
44944 	OpcodeFamily = 58; CurrentInstrCycles = 12;
44945 {{	int16_t src = m68k_dreg(regs, srcreg);
44946 {	int16_t offs = get_iword_prefetch(2);
44947 	if (!cctrue(3)) {
44948 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
44949 		if (src) {
44950 			if (offs & 1) {
44951 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
44952 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
44953 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2475;
44954 		}
44955 			m68k_incpc((int32_t)offs + 2);
44956 fill_prefetch_0 ();
44957 			return 10;
44958 		} else {
44959 			m68k_incpc(4);
44960 fill_prefetch_0 ();
44961 			return 14;
44962 		}
44963 	}
44964 }}}m68k_incpc(4);
44965 fill_prefetch_0 ();
44966 endlabel2475: ;
44967 return 12;
44968 }
CPUFUNC(op_53d0_5)44969 unsigned long CPUFUNC(op_53d0_5)(uint32_t opcode) /* Scc */
44970 {
44971 	uint32_t srcreg = (opcode & 7);
44972 	OpcodeFamily = 59; CurrentInstrCycles = 12;
44973 {{	uint32_t srca = m68k_areg(regs, srcreg);
44974 {	int val = cctrue(3) ? 0xff : 0;
44975 m68k_incpc(2);
44976 fill_prefetch_2 ();
44977 	m68k_write_memory_8(srca,val);
44978 }}}return 12;
44979 }
CPUFUNC(op_53d8_5)44980 unsigned long CPUFUNC(op_53d8_5)(uint32_t opcode) /* Scc */
44981 {
44982 	uint32_t srcreg = (opcode & 7);
44983 	OpcodeFamily = 59; CurrentInstrCycles = 12;
44984 {{	uint32_t srca = m68k_areg(regs, srcreg);
44985 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
44986 {	int val = cctrue(3) ? 0xff : 0;
44987 m68k_incpc(2);
44988 fill_prefetch_2 ();
44989 	m68k_write_memory_8(srca,val);
44990 }}}return 12;
44991 }
CPUFUNC(op_53e0_5)44992 unsigned long CPUFUNC(op_53e0_5)(uint32_t opcode) /* Scc */
44993 {
44994 	uint32_t srcreg = (opcode & 7);
44995 	OpcodeFamily = 59; CurrentInstrCycles = 14;
44996 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
44997 	m68k_areg (regs, srcreg) = srca;
44998 {	int val = cctrue(3) ? 0xff : 0;
44999 m68k_incpc(2);
45000 fill_prefetch_2 ();
45001 	m68k_write_memory_8(srca,val);
45002 }}}return 14;
45003 }
CPUFUNC(op_53e8_5)45004 unsigned long CPUFUNC(op_53e8_5)(uint32_t opcode) /* Scc */
45005 {
45006 	uint32_t srcreg = (opcode & 7);
45007 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45008 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45009 {	int val = cctrue(3) ? 0xff : 0;
45010 m68k_incpc(4);
45011 fill_prefetch_0 ();
45012 	m68k_write_memory_8(srca,val);
45013 }}}return 16;
45014 }
CPUFUNC(op_53f0_5)45015 unsigned long CPUFUNC(op_53f0_5)(uint32_t opcode) /* Scc */
45016 {
45017 	uint32_t srcreg = (opcode & 7);
45018 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45019 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45020 	BusCyclePenalty += 2;
45021 {	int val = cctrue(3) ? 0xff : 0;
45022 m68k_incpc(4);
45023 fill_prefetch_0 ();
45024 	m68k_write_memory_8(srca,val);
45025 }}}return 18;
45026 }
CPUFUNC(op_53f8_5)45027 unsigned long CPUFUNC(op_53f8_5)(uint32_t opcode) /* Scc */
45028 {
45029 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45030 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45031 {	int val = cctrue(3) ? 0xff : 0;
45032 m68k_incpc(4);
45033 fill_prefetch_0 ();
45034 	m68k_write_memory_8(srca,val);
45035 }}}return 16;
45036 }
CPUFUNC(op_53f9_5)45037 unsigned long CPUFUNC(op_53f9_5)(uint32_t opcode) /* Scc */
45038 {
45039 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45040 {{	uint32_t srca = get_ilong_prefetch(2);
45041 {	int val = cctrue(3) ? 0xff : 0;
45042 m68k_incpc(6);
45043 fill_prefetch_0 ();
45044 	m68k_write_memory_8(srca,val);
45045 }}}return 20;
45046 }
CPUFUNC(op_54c0_5)45047 unsigned long CPUFUNC(op_54c0_5)(uint32_t opcode) /* Scc */
45048 {
45049 	uint32_t srcreg = (opcode & 7);
45050 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45051 {{{	int val = cctrue(4) ? 0xff : 0;
45052 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45053 	if (val) { m68k_incpc(2) ; return 4+2; }
45054 }}}m68k_incpc(2);
45055 fill_prefetch_2 ();
45056 return 4;
45057 }
CPUFUNC(op_54c8_5)45058 unsigned long CPUFUNC(op_54c8_5)(uint32_t opcode) /* DBcc */
45059 {
45060 	uint32_t srcreg = (opcode & 7);
45061 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45062 {{	int16_t src = m68k_dreg(regs, srcreg);
45063 {	int16_t offs = get_iword_prefetch(2);
45064 	if (!cctrue(4)) {
45065 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45066 		if (src) {
45067 			if (offs & 1) {
45068 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45069 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45070 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2484;
45071 		}
45072 			m68k_incpc((int32_t)offs + 2);
45073 fill_prefetch_0 ();
45074 			return 10;
45075 		} else {
45076 			m68k_incpc(4);
45077 fill_prefetch_0 ();
45078 			return 14;
45079 		}
45080 	}
45081 }}}m68k_incpc(4);
45082 fill_prefetch_0 ();
45083 endlabel2484: ;
45084 return 12;
45085 }
CPUFUNC(op_54d0_5)45086 unsigned long CPUFUNC(op_54d0_5)(uint32_t opcode) /* Scc */
45087 {
45088 	uint32_t srcreg = (opcode & 7);
45089 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45090 {{	uint32_t srca = m68k_areg(regs, srcreg);
45091 {	int val = cctrue(4) ? 0xff : 0;
45092 m68k_incpc(2);
45093 fill_prefetch_2 ();
45094 	m68k_write_memory_8(srca,val);
45095 }}}return 12;
45096 }
CPUFUNC(op_54d8_5)45097 unsigned long CPUFUNC(op_54d8_5)(uint32_t opcode) /* Scc */
45098 {
45099 	uint32_t srcreg = (opcode & 7);
45100 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45101 {{	uint32_t srca = m68k_areg(regs, srcreg);
45102 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45103 {	int val = cctrue(4) ? 0xff : 0;
45104 m68k_incpc(2);
45105 fill_prefetch_2 ();
45106 	m68k_write_memory_8(srca,val);
45107 }}}return 12;
45108 }
CPUFUNC(op_54e0_5)45109 unsigned long CPUFUNC(op_54e0_5)(uint32_t opcode) /* Scc */
45110 {
45111 	uint32_t srcreg = (opcode & 7);
45112 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45113 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45114 	m68k_areg (regs, srcreg) = srca;
45115 {	int val = cctrue(4) ? 0xff : 0;
45116 m68k_incpc(2);
45117 fill_prefetch_2 ();
45118 	m68k_write_memory_8(srca,val);
45119 }}}return 14;
45120 }
CPUFUNC(op_54e8_5)45121 unsigned long CPUFUNC(op_54e8_5)(uint32_t opcode) /* Scc */
45122 {
45123 	uint32_t srcreg = (opcode & 7);
45124 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45125 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45126 {	int val = cctrue(4) ? 0xff : 0;
45127 m68k_incpc(4);
45128 fill_prefetch_0 ();
45129 	m68k_write_memory_8(srca,val);
45130 }}}return 16;
45131 }
CPUFUNC(op_54f0_5)45132 unsigned long CPUFUNC(op_54f0_5)(uint32_t opcode) /* Scc */
45133 {
45134 	uint32_t srcreg = (opcode & 7);
45135 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45136 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45137 	BusCyclePenalty += 2;
45138 {	int val = cctrue(4) ? 0xff : 0;
45139 m68k_incpc(4);
45140 fill_prefetch_0 ();
45141 	m68k_write_memory_8(srca,val);
45142 }}}return 18;
45143 }
CPUFUNC(op_54f8_5)45144 unsigned long CPUFUNC(op_54f8_5)(uint32_t opcode) /* Scc */
45145 {
45146 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45147 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45148 {	int val = cctrue(4) ? 0xff : 0;
45149 m68k_incpc(4);
45150 fill_prefetch_0 ();
45151 	m68k_write_memory_8(srca,val);
45152 }}}return 16;
45153 }
CPUFUNC(op_54f9_5)45154 unsigned long CPUFUNC(op_54f9_5)(uint32_t opcode) /* Scc */
45155 {
45156 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45157 {{	uint32_t srca = get_ilong_prefetch(2);
45158 {	int val = cctrue(4) ? 0xff : 0;
45159 m68k_incpc(6);
45160 fill_prefetch_0 ();
45161 	m68k_write_memory_8(srca,val);
45162 }}}return 20;
45163 }
CPUFUNC(op_55c0_5)45164 unsigned long CPUFUNC(op_55c0_5)(uint32_t opcode) /* Scc */
45165 {
45166 	uint32_t srcreg = (opcode & 7);
45167 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45168 {{{	int val = cctrue(5) ? 0xff : 0;
45169 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45170 	if (val) { m68k_incpc(2) ; return 4+2; }
45171 }}}m68k_incpc(2);
45172 fill_prefetch_2 ();
45173 return 4;
45174 }
CPUFUNC(op_55c8_5)45175 unsigned long CPUFUNC(op_55c8_5)(uint32_t opcode) /* DBcc */
45176 {
45177 	uint32_t srcreg = (opcode & 7);
45178 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45179 {{	int16_t src = m68k_dreg(regs, srcreg);
45180 {	int16_t offs = get_iword_prefetch(2);
45181 	if (!cctrue(5)) {
45182 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45183 		if (src) {
45184 			if (offs & 1) {
45185 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45186 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45187 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2493;
45188 		}
45189 			m68k_incpc((int32_t)offs + 2);
45190 fill_prefetch_0 ();
45191 			return 10;
45192 		} else {
45193 			m68k_incpc(4);
45194 fill_prefetch_0 ();
45195 			return 14;
45196 		}
45197 	}
45198 }}}m68k_incpc(4);
45199 fill_prefetch_0 ();
45200 endlabel2493: ;
45201 return 12;
45202 }
CPUFUNC(op_55d0_5)45203 unsigned long CPUFUNC(op_55d0_5)(uint32_t opcode) /* Scc */
45204 {
45205 	uint32_t srcreg = (opcode & 7);
45206 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45207 {{	uint32_t srca = m68k_areg(regs, srcreg);
45208 {	int val = cctrue(5) ? 0xff : 0;
45209 m68k_incpc(2);
45210 fill_prefetch_2 ();
45211 	m68k_write_memory_8(srca,val);
45212 }}}return 12;
45213 }
CPUFUNC(op_55d8_5)45214 unsigned long CPUFUNC(op_55d8_5)(uint32_t opcode) /* Scc */
45215 {
45216 	uint32_t srcreg = (opcode & 7);
45217 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45218 {{	uint32_t srca = m68k_areg(regs, srcreg);
45219 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45220 {	int val = cctrue(5) ? 0xff : 0;
45221 m68k_incpc(2);
45222 fill_prefetch_2 ();
45223 	m68k_write_memory_8(srca,val);
45224 }}}return 12;
45225 }
CPUFUNC(op_55e0_5)45226 unsigned long CPUFUNC(op_55e0_5)(uint32_t opcode) /* Scc */
45227 {
45228 	uint32_t srcreg = (opcode & 7);
45229 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45230 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45231 	m68k_areg (regs, srcreg) = srca;
45232 {	int val = cctrue(5) ? 0xff : 0;
45233 m68k_incpc(2);
45234 fill_prefetch_2 ();
45235 	m68k_write_memory_8(srca,val);
45236 }}}return 14;
45237 }
CPUFUNC(op_55e8_5)45238 unsigned long CPUFUNC(op_55e8_5)(uint32_t opcode) /* Scc */
45239 {
45240 	uint32_t srcreg = (opcode & 7);
45241 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45242 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45243 {	int val = cctrue(5) ? 0xff : 0;
45244 m68k_incpc(4);
45245 fill_prefetch_0 ();
45246 	m68k_write_memory_8(srca,val);
45247 }}}return 16;
45248 }
CPUFUNC(op_55f0_5)45249 unsigned long CPUFUNC(op_55f0_5)(uint32_t opcode) /* Scc */
45250 {
45251 	uint32_t srcreg = (opcode & 7);
45252 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45253 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45254 	BusCyclePenalty += 2;
45255 {	int val = cctrue(5) ? 0xff : 0;
45256 m68k_incpc(4);
45257 fill_prefetch_0 ();
45258 	m68k_write_memory_8(srca,val);
45259 }}}return 18;
45260 }
CPUFUNC(op_55f8_5)45261 unsigned long CPUFUNC(op_55f8_5)(uint32_t opcode) /* Scc */
45262 {
45263 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45264 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45265 {	int val = cctrue(5) ? 0xff : 0;
45266 m68k_incpc(4);
45267 fill_prefetch_0 ();
45268 	m68k_write_memory_8(srca,val);
45269 }}}return 16;
45270 }
CPUFUNC(op_55f9_5)45271 unsigned long CPUFUNC(op_55f9_5)(uint32_t opcode) /* Scc */
45272 {
45273 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45274 {{	uint32_t srca = get_ilong_prefetch(2);
45275 {	int val = cctrue(5) ? 0xff : 0;
45276 m68k_incpc(6);
45277 fill_prefetch_0 ();
45278 	m68k_write_memory_8(srca,val);
45279 }}}return 20;
45280 }
CPUFUNC(op_56c0_5)45281 unsigned long CPUFUNC(op_56c0_5)(uint32_t opcode) /* Scc */
45282 {
45283 	uint32_t srcreg = (opcode & 7);
45284 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45285 {{{	int val = cctrue(6) ? 0xff : 0;
45286 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45287 	if (val) { m68k_incpc(2) ; return 4+2; }
45288 }}}m68k_incpc(2);
45289 fill_prefetch_2 ();
45290 return 4;
45291 }
CPUFUNC(op_56c8_5)45292 unsigned long CPUFUNC(op_56c8_5)(uint32_t opcode) /* DBcc */
45293 {
45294 	uint32_t srcreg = (opcode & 7);
45295 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45296 {{	int16_t src = m68k_dreg(regs, srcreg);
45297 {	int16_t offs = get_iword_prefetch(2);
45298 	if (!cctrue(6)) {
45299 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45300 		if (src) {
45301 			if (offs & 1) {
45302 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45303 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45304 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2502;
45305 		}
45306 			m68k_incpc((int32_t)offs + 2);
45307 fill_prefetch_0 ();
45308 			return 10;
45309 		} else {
45310 			m68k_incpc(4);
45311 fill_prefetch_0 ();
45312 			return 14;
45313 		}
45314 	}
45315 }}}m68k_incpc(4);
45316 fill_prefetch_0 ();
45317 endlabel2502: ;
45318 return 12;
45319 }
CPUFUNC(op_56d0_5)45320 unsigned long CPUFUNC(op_56d0_5)(uint32_t opcode) /* Scc */
45321 {
45322 	uint32_t srcreg = (opcode & 7);
45323 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45324 {{	uint32_t srca = m68k_areg(regs, srcreg);
45325 {	int val = cctrue(6) ? 0xff : 0;
45326 m68k_incpc(2);
45327 fill_prefetch_2 ();
45328 	m68k_write_memory_8(srca,val);
45329 }}}return 12;
45330 }
CPUFUNC(op_56d8_5)45331 unsigned long CPUFUNC(op_56d8_5)(uint32_t opcode) /* Scc */
45332 {
45333 	uint32_t srcreg = (opcode & 7);
45334 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45335 {{	uint32_t srca = m68k_areg(regs, srcreg);
45336 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45337 {	int val = cctrue(6) ? 0xff : 0;
45338 m68k_incpc(2);
45339 fill_prefetch_2 ();
45340 	m68k_write_memory_8(srca,val);
45341 }}}return 12;
45342 }
CPUFUNC(op_56e0_5)45343 unsigned long CPUFUNC(op_56e0_5)(uint32_t opcode) /* Scc */
45344 {
45345 	uint32_t srcreg = (opcode & 7);
45346 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45347 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45348 	m68k_areg (regs, srcreg) = srca;
45349 {	int val = cctrue(6) ? 0xff : 0;
45350 m68k_incpc(2);
45351 fill_prefetch_2 ();
45352 	m68k_write_memory_8(srca,val);
45353 }}}return 14;
45354 }
CPUFUNC(op_56e8_5)45355 unsigned long CPUFUNC(op_56e8_5)(uint32_t opcode) /* Scc */
45356 {
45357 	uint32_t srcreg = (opcode & 7);
45358 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45359 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45360 {	int val = cctrue(6) ? 0xff : 0;
45361 m68k_incpc(4);
45362 fill_prefetch_0 ();
45363 	m68k_write_memory_8(srca,val);
45364 }}}return 16;
45365 }
CPUFUNC(op_56f0_5)45366 unsigned long CPUFUNC(op_56f0_5)(uint32_t opcode) /* Scc */
45367 {
45368 	uint32_t srcreg = (opcode & 7);
45369 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45370 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45371 	BusCyclePenalty += 2;
45372 {	int val = cctrue(6) ? 0xff : 0;
45373 m68k_incpc(4);
45374 fill_prefetch_0 ();
45375 	m68k_write_memory_8(srca,val);
45376 }}}return 18;
45377 }
CPUFUNC(op_56f8_5)45378 unsigned long CPUFUNC(op_56f8_5)(uint32_t opcode) /* Scc */
45379 {
45380 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45381 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45382 {	int val = cctrue(6) ? 0xff : 0;
45383 m68k_incpc(4);
45384 fill_prefetch_0 ();
45385 	m68k_write_memory_8(srca,val);
45386 }}}return 16;
45387 }
CPUFUNC(op_56f9_5)45388 unsigned long CPUFUNC(op_56f9_5)(uint32_t opcode) /* Scc */
45389 {
45390 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45391 {{	uint32_t srca = get_ilong_prefetch(2);
45392 {	int val = cctrue(6) ? 0xff : 0;
45393 m68k_incpc(6);
45394 fill_prefetch_0 ();
45395 	m68k_write_memory_8(srca,val);
45396 }}}return 20;
45397 }
CPUFUNC(op_57c0_5)45398 unsigned long CPUFUNC(op_57c0_5)(uint32_t opcode) /* Scc */
45399 {
45400 	uint32_t srcreg = (opcode & 7);
45401 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45402 {{{	int val = cctrue(7) ? 0xff : 0;
45403 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45404 	if (val) { m68k_incpc(2) ; return 4+2; }
45405 }}}m68k_incpc(2);
45406 fill_prefetch_2 ();
45407 return 4;
45408 }
CPUFUNC(op_57c8_5)45409 unsigned long CPUFUNC(op_57c8_5)(uint32_t opcode) /* DBcc */
45410 {
45411 	uint32_t srcreg = (opcode & 7);
45412 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45413 {{	int16_t src = m68k_dreg(regs, srcreg);
45414 {	int16_t offs = get_iword_prefetch(2);
45415 	if (!cctrue(7)) {
45416 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45417 		if (src) {
45418 			if (offs & 1) {
45419 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45420 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45421 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2511;
45422 		}
45423 			m68k_incpc((int32_t)offs + 2);
45424 fill_prefetch_0 ();
45425 			return 10;
45426 		} else {
45427 			m68k_incpc(4);
45428 fill_prefetch_0 ();
45429 			return 14;
45430 		}
45431 	}
45432 }}}m68k_incpc(4);
45433 fill_prefetch_0 ();
45434 endlabel2511: ;
45435 return 12;
45436 }
CPUFUNC(op_57d0_5)45437 unsigned long CPUFUNC(op_57d0_5)(uint32_t opcode) /* Scc */
45438 {
45439 	uint32_t srcreg = (opcode & 7);
45440 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45441 {{	uint32_t srca = m68k_areg(regs, srcreg);
45442 {	int val = cctrue(7) ? 0xff : 0;
45443 m68k_incpc(2);
45444 fill_prefetch_2 ();
45445 	m68k_write_memory_8(srca,val);
45446 }}}return 12;
45447 }
CPUFUNC(op_57d8_5)45448 unsigned long CPUFUNC(op_57d8_5)(uint32_t opcode) /* Scc */
45449 {
45450 	uint32_t srcreg = (opcode & 7);
45451 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45452 {{	uint32_t srca = m68k_areg(regs, srcreg);
45453 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45454 {	int val = cctrue(7) ? 0xff : 0;
45455 m68k_incpc(2);
45456 fill_prefetch_2 ();
45457 	m68k_write_memory_8(srca,val);
45458 }}}return 12;
45459 }
CPUFUNC(op_57e0_5)45460 unsigned long CPUFUNC(op_57e0_5)(uint32_t opcode) /* Scc */
45461 {
45462 	uint32_t srcreg = (opcode & 7);
45463 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45464 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45465 	m68k_areg (regs, srcreg) = srca;
45466 {	int val = cctrue(7) ? 0xff : 0;
45467 m68k_incpc(2);
45468 fill_prefetch_2 ();
45469 	m68k_write_memory_8(srca,val);
45470 }}}return 14;
45471 }
CPUFUNC(op_57e8_5)45472 unsigned long CPUFUNC(op_57e8_5)(uint32_t opcode) /* Scc */
45473 {
45474 	uint32_t srcreg = (opcode & 7);
45475 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45476 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45477 {	int val = cctrue(7) ? 0xff : 0;
45478 m68k_incpc(4);
45479 fill_prefetch_0 ();
45480 	m68k_write_memory_8(srca,val);
45481 }}}return 16;
45482 }
CPUFUNC(op_57f0_5)45483 unsigned long CPUFUNC(op_57f0_5)(uint32_t opcode) /* Scc */
45484 {
45485 	uint32_t srcreg = (opcode & 7);
45486 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45487 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45488 	BusCyclePenalty += 2;
45489 {	int val = cctrue(7) ? 0xff : 0;
45490 m68k_incpc(4);
45491 fill_prefetch_0 ();
45492 	m68k_write_memory_8(srca,val);
45493 }}}return 18;
45494 }
CPUFUNC(op_57f8_5)45495 unsigned long CPUFUNC(op_57f8_5)(uint32_t opcode) /* Scc */
45496 {
45497 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45498 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45499 {	int val = cctrue(7) ? 0xff : 0;
45500 m68k_incpc(4);
45501 fill_prefetch_0 ();
45502 	m68k_write_memory_8(srca,val);
45503 }}}return 16;
45504 }
CPUFUNC(op_57f9_5)45505 unsigned long CPUFUNC(op_57f9_5)(uint32_t opcode) /* Scc */
45506 {
45507 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45508 {{	uint32_t srca = get_ilong_prefetch(2);
45509 {	int val = cctrue(7) ? 0xff : 0;
45510 m68k_incpc(6);
45511 fill_prefetch_0 ();
45512 	m68k_write_memory_8(srca,val);
45513 }}}return 20;
45514 }
CPUFUNC(op_58c0_5)45515 unsigned long CPUFUNC(op_58c0_5)(uint32_t opcode) /* Scc */
45516 {
45517 	uint32_t srcreg = (opcode & 7);
45518 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45519 {{{	int val = cctrue(8) ? 0xff : 0;
45520 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45521 	if (val) { m68k_incpc(2) ; return 4+2; }
45522 }}}m68k_incpc(2);
45523 fill_prefetch_2 ();
45524 return 4;
45525 }
CPUFUNC(op_58c8_5)45526 unsigned long CPUFUNC(op_58c8_5)(uint32_t opcode) /* DBcc */
45527 {
45528 	uint32_t srcreg = (opcode & 7);
45529 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45530 {{	int16_t src = m68k_dreg(regs, srcreg);
45531 {	int16_t offs = get_iword_prefetch(2);
45532 	if (!cctrue(8)) {
45533 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45534 		if (src) {
45535 			if (offs & 1) {
45536 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45537 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45538 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2520;
45539 		}
45540 			m68k_incpc((int32_t)offs + 2);
45541 fill_prefetch_0 ();
45542 			return 10;
45543 		} else {
45544 			m68k_incpc(4);
45545 fill_prefetch_0 ();
45546 			return 14;
45547 		}
45548 	}
45549 }}}m68k_incpc(4);
45550 fill_prefetch_0 ();
45551 endlabel2520: ;
45552 return 12;
45553 }
CPUFUNC(op_58d0_5)45554 unsigned long CPUFUNC(op_58d0_5)(uint32_t opcode) /* Scc */
45555 {
45556 	uint32_t srcreg = (opcode & 7);
45557 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45558 {{	uint32_t srca = m68k_areg(regs, srcreg);
45559 {	int val = cctrue(8) ? 0xff : 0;
45560 m68k_incpc(2);
45561 fill_prefetch_2 ();
45562 	m68k_write_memory_8(srca,val);
45563 }}}return 12;
45564 }
CPUFUNC(op_58d8_5)45565 unsigned long CPUFUNC(op_58d8_5)(uint32_t opcode) /* Scc */
45566 {
45567 	uint32_t srcreg = (opcode & 7);
45568 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45569 {{	uint32_t srca = m68k_areg(regs, srcreg);
45570 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45571 {	int val = cctrue(8) ? 0xff : 0;
45572 m68k_incpc(2);
45573 fill_prefetch_2 ();
45574 	m68k_write_memory_8(srca,val);
45575 }}}return 12;
45576 }
CPUFUNC(op_58e0_5)45577 unsigned long CPUFUNC(op_58e0_5)(uint32_t opcode) /* Scc */
45578 {
45579 	uint32_t srcreg = (opcode & 7);
45580 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45581 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45582 	m68k_areg (regs, srcreg) = srca;
45583 {	int val = cctrue(8) ? 0xff : 0;
45584 m68k_incpc(2);
45585 fill_prefetch_2 ();
45586 	m68k_write_memory_8(srca,val);
45587 }}}return 14;
45588 }
CPUFUNC(op_58e8_5)45589 unsigned long CPUFUNC(op_58e8_5)(uint32_t opcode) /* Scc */
45590 {
45591 	uint32_t srcreg = (opcode & 7);
45592 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45593 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45594 {	int val = cctrue(8) ? 0xff : 0;
45595 m68k_incpc(4);
45596 fill_prefetch_0 ();
45597 	m68k_write_memory_8(srca,val);
45598 }}}return 16;
45599 }
CPUFUNC(op_58f0_5)45600 unsigned long CPUFUNC(op_58f0_5)(uint32_t opcode) /* Scc */
45601 {
45602 	uint32_t srcreg = (opcode & 7);
45603 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45604 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45605 	BusCyclePenalty += 2;
45606 {	int val = cctrue(8) ? 0xff : 0;
45607 m68k_incpc(4);
45608 fill_prefetch_0 ();
45609 	m68k_write_memory_8(srca,val);
45610 }}}return 18;
45611 }
CPUFUNC(op_58f8_5)45612 unsigned long CPUFUNC(op_58f8_5)(uint32_t opcode) /* Scc */
45613 {
45614 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45615 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45616 {	int val = cctrue(8) ? 0xff : 0;
45617 m68k_incpc(4);
45618 fill_prefetch_0 ();
45619 	m68k_write_memory_8(srca,val);
45620 }}}return 16;
45621 }
CPUFUNC(op_58f9_5)45622 unsigned long CPUFUNC(op_58f9_5)(uint32_t opcode) /* Scc */
45623 {
45624 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45625 {{	uint32_t srca = get_ilong_prefetch(2);
45626 {	int val = cctrue(8) ? 0xff : 0;
45627 m68k_incpc(6);
45628 fill_prefetch_0 ();
45629 	m68k_write_memory_8(srca,val);
45630 }}}return 20;
45631 }
CPUFUNC(op_59c0_5)45632 unsigned long CPUFUNC(op_59c0_5)(uint32_t opcode) /* Scc */
45633 {
45634 	uint32_t srcreg = (opcode & 7);
45635 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45636 {{{	int val = cctrue(9) ? 0xff : 0;
45637 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45638 	if (val) { m68k_incpc(2) ; return 4+2; }
45639 }}}m68k_incpc(2);
45640 fill_prefetch_2 ();
45641 return 4;
45642 }
CPUFUNC(op_59c8_5)45643 unsigned long CPUFUNC(op_59c8_5)(uint32_t opcode) /* DBcc */
45644 {
45645 	uint32_t srcreg = (opcode & 7);
45646 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45647 {{	int16_t src = m68k_dreg(regs, srcreg);
45648 {	int16_t offs = get_iword_prefetch(2);
45649 	if (!cctrue(9)) {
45650 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45651 		if (src) {
45652 			if (offs & 1) {
45653 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45654 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45655 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2529;
45656 		}
45657 			m68k_incpc((int32_t)offs + 2);
45658 fill_prefetch_0 ();
45659 			return 10;
45660 		} else {
45661 			m68k_incpc(4);
45662 fill_prefetch_0 ();
45663 			return 14;
45664 		}
45665 	}
45666 }}}m68k_incpc(4);
45667 fill_prefetch_0 ();
45668 endlabel2529: ;
45669 return 12;
45670 }
CPUFUNC(op_59d0_5)45671 unsigned long CPUFUNC(op_59d0_5)(uint32_t opcode) /* Scc */
45672 {
45673 	uint32_t srcreg = (opcode & 7);
45674 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45675 {{	uint32_t srca = m68k_areg(regs, srcreg);
45676 {	int val = cctrue(9) ? 0xff : 0;
45677 m68k_incpc(2);
45678 fill_prefetch_2 ();
45679 	m68k_write_memory_8(srca,val);
45680 }}}return 12;
45681 }
CPUFUNC(op_59d8_5)45682 unsigned long CPUFUNC(op_59d8_5)(uint32_t opcode) /* Scc */
45683 {
45684 	uint32_t srcreg = (opcode & 7);
45685 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45686 {{	uint32_t srca = m68k_areg(regs, srcreg);
45687 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45688 {	int val = cctrue(9) ? 0xff : 0;
45689 m68k_incpc(2);
45690 fill_prefetch_2 ();
45691 	m68k_write_memory_8(srca,val);
45692 }}}return 12;
45693 }
CPUFUNC(op_59e0_5)45694 unsigned long CPUFUNC(op_59e0_5)(uint32_t opcode) /* Scc */
45695 {
45696 	uint32_t srcreg = (opcode & 7);
45697 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45698 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45699 	m68k_areg (regs, srcreg) = srca;
45700 {	int val = cctrue(9) ? 0xff : 0;
45701 m68k_incpc(2);
45702 fill_prefetch_2 ();
45703 	m68k_write_memory_8(srca,val);
45704 }}}return 14;
45705 }
CPUFUNC(op_59e8_5)45706 unsigned long CPUFUNC(op_59e8_5)(uint32_t opcode) /* Scc */
45707 {
45708 	uint32_t srcreg = (opcode & 7);
45709 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45710 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45711 {	int val = cctrue(9) ? 0xff : 0;
45712 m68k_incpc(4);
45713 fill_prefetch_0 ();
45714 	m68k_write_memory_8(srca,val);
45715 }}}return 16;
45716 }
CPUFUNC(op_59f0_5)45717 unsigned long CPUFUNC(op_59f0_5)(uint32_t opcode) /* Scc */
45718 {
45719 	uint32_t srcreg = (opcode & 7);
45720 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45721 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45722 	BusCyclePenalty += 2;
45723 {	int val = cctrue(9) ? 0xff : 0;
45724 m68k_incpc(4);
45725 fill_prefetch_0 ();
45726 	m68k_write_memory_8(srca,val);
45727 }}}return 18;
45728 }
CPUFUNC(op_59f8_5)45729 unsigned long CPUFUNC(op_59f8_5)(uint32_t opcode) /* Scc */
45730 {
45731 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45732 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45733 {	int val = cctrue(9) ? 0xff : 0;
45734 m68k_incpc(4);
45735 fill_prefetch_0 ();
45736 	m68k_write_memory_8(srca,val);
45737 }}}return 16;
45738 }
CPUFUNC(op_59f9_5)45739 unsigned long CPUFUNC(op_59f9_5)(uint32_t opcode) /* Scc */
45740 {
45741 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45742 {{	uint32_t srca = get_ilong_prefetch(2);
45743 {	int val = cctrue(9) ? 0xff : 0;
45744 m68k_incpc(6);
45745 fill_prefetch_0 ();
45746 	m68k_write_memory_8(srca,val);
45747 }}}return 20;
45748 }
CPUFUNC(op_5ac0_5)45749 unsigned long CPUFUNC(op_5ac0_5)(uint32_t opcode) /* Scc */
45750 {
45751 	uint32_t srcreg = (opcode & 7);
45752 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45753 {{{	int val = cctrue(10) ? 0xff : 0;
45754 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45755 	if (val) { m68k_incpc(2) ; return 4+2; }
45756 }}}m68k_incpc(2);
45757 fill_prefetch_2 ();
45758 return 4;
45759 }
CPUFUNC(op_5ac8_5)45760 unsigned long CPUFUNC(op_5ac8_5)(uint32_t opcode) /* DBcc */
45761 {
45762 	uint32_t srcreg = (opcode & 7);
45763 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45764 {{	int16_t src = m68k_dreg(regs, srcreg);
45765 {	int16_t offs = get_iword_prefetch(2);
45766 	if (!cctrue(10)) {
45767 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45768 		if (src) {
45769 			if (offs & 1) {
45770 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45771 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45772 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2538;
45773 		}
45774 			m68k_incpc((int32_t)offs + 2);
45775 fill_prefetch_0 ();
45776 			return 10;
45777 		} else {
45778 			m68k_incpc(4);
45779 fill_prefetch_0 ();
45780 			return 14;
45781 		}
45782 	}
45783 }}}m68k_incpc(4);
45784 fill_prefetch_0 ();
45785 endlabel2538: ;
45786 return 12;
45787 }
CPUFUNC(op_5ad0_5)45788 unsigned long CPUFUNC(op_5ad0_5)(uint32_t opcode) /* Scc */
45789 {
45790 	uint32_t srcreg = (opcode & 7);
45791 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45792 {{	uint32_t srca = m68k_areg(regs, srcreg);
45793 {	int val = cctrue(10) ? 0xff : 0;
45794 m68k_incpc(2);
45795 fill_prefetch_2 ();
45796 	m68k_write_memory_8(srca,val);
45797 }}}return 12;
45798 }
CPUFUNC(op_5ad8_5)45799 unsigned long CPUFUNC(op_5ad8_5)(uint32_t opcode) /* Scc */
45800 {
45801 	uint32_t srcreg = (opcode & 7);
45802 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45803 {{	uint32_t srca = m68k_areg(regs, srcreg);
45804 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45805 {	int val = cctrue(10) ? 0xff : 0;
45806 m68k_incpc(2);
45807 fill_prefetch_2 ();
45808 	m68k_write_memory_8(srca,val);
45809 }}}return 12;
45810 }
CPUFUNC(op_5ae0_5)45811 unsigned long CPUFUNC(op_5ae0_5)(uint32_t opcode) /* Scc */
45812 {
45813 	uint32_t srcreg = (opcode & 7);
45814 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45815 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45816 	m68k_areg (regs, srcreg) = srca;
45817 {	int val = cctrue(10) ? 0xff : 0;
45818 m68k_incpc(2);
45819 fill_prefetch_2 ();
45820 	m68k_write_memory_8(srca,val);
45821 }}}return 14;
45822 }
CPUFUNC(op_5ae8_5)45823 unsigned long CPUFUNC(op_5ae8_5)(uint32_t opcode) /* Scc */
45824 {
45825 	uint32_t srcreg = (opcode & 7);
45826 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45827 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45828 {	int val = cctrue(10) ? 0xff : 0;
45829 m68k_incpc(4);
45830 fill_prefetch_0 ();
45831 	m68k_write_memory_8(srca,val);
45832 }}}return 16;
45833 }
CPUFUNC(op_5af0_5)45834 unsigned long CPUFUNC(op_5af0_5)(uint32_t opcode) /* Scc */
45835 {
45836 	uint32_t srcreg = (opcode & 7);
45837 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45838 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45839 	BusCyclePenalty += 2;
45840 {	int val = cctrue(10) ? 0xff : 0;
45841 m68k_incpc(4);
45842 fill_prefetch_0 ();
45843 	m68k_write_memory_8(srca,val);
45844 }}}return 18;
45845 }
CPUFUNC(op_5af8_5)45846 unsigned long CPUFUNC(op_5af8_5)(uint32_t opcode) /* Scc */
45847 {
45848 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45849 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45850 {	int val = cctrue(10) ? 0xff : 0;
45851 m68k_incpc(4);
45852 fill_prefetch_0 ();
45853 	m68k_write_memory_8(srca,val);
45854 }}}return 16;
45855 }
CPUFUNC(op_5af9_5)45856 unsigned long CPUFUNC(op_5af9_5)(uint32_t opcode) /* Scc */
45857 {
45858 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45859 {{	uint32_t srca = get_ilong_prefetch(2);
45860 {	int val = cctrue(10) ? 0xff : 0;
45861 m68k_incpc(6);
45862 fill_prefetch_0 ();
45863 	m68k_write_memory_8(srca,val);
45864 }}}return 20;
45865 }
CPUFUNC(op_5bc0_5)45866 unsigned long CPUFUNC(op_5bc0_5)(uint32_t opcode) /* Scc */
45867 {
45868 	uint32_t srcreg = (opcode & 7);
45869 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45870 {{{	int val = cctrue(11) ? 0xff : 0;
45871 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45872 	if (val) { m68k_incpc(2) ; return 4+2; }
45873 }}}m68k_incpc(2);
45874 fill_prefetch_2 ();
45875 return 4;
45876 }
CPUFUNC(op_5bc8_5)45877 unsigned long CPUFUNC(op_5bc8_5)(uint32_t opcode) /* DBcc */
45878 {
45879 	uint32_t srcreg = (opcode & 7);
45880 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45881 {{	int16_t src = m68k_dreg(regs, srcreg);
45882 {	int16_t offs = get_iword_prefetch(2);
45883 	if (!cctrue(11)) {
45884 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
45885 		if (src) {
45886 			if (offs & 1) {
45887 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
45888 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
45889 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2547;
45890 		}
45891 			m68k_incpc((int32_t)offs + 2);
45892 fill_prefetch_0 ();
45893 			return 10;
45894 		} else {
45895 			m68k_incpc(4);
45896 fill_prefetch_0 ();
45897 			return 14;
45898 		}
45899 	}
45900 }}}m68k_incpc(4);
45901 fill_prefetch_0 ();
45902 endlabel2547: ;
45903 return 12;
45904 }
CPUFUNC(op_5bd0_5)45905 unsigned long CPUFUNC(op_5bd0_5)(uint32_t opcode) /* Scc */
45906 {
45907 	uint32_t srcreg = (opcode & 7);
45908 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45909 {{	uint32_t srca = m68k_areg(regs, srcreg);
45910 {	int val = cctrue(11) ? 0xff : 0;
45911 m68k_incpc(2);
45912 fill_prefetch_2 ();
45913 	m68k_write_memory_8(srca,val);
45914 }}}return 12;
45915 }
CPUFUNC(op_5bd8_5)45916 unsigned long CPUFUNC(op_5bd8_5)(uint32_t opcode) /* Scc */
45917 {
45918 	uint32_t srcreg = (opcode & 7);
45919 	OpcodeFamily = 59; CurrentInstrCycles = 12;
45920 {{	uint32_t srca = m68k_areg(regs, srcreg);
45921 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
45922 {	int val = cctrue(11) ? 0xff : 0;
45923 m68k_incpc(2);
45924 fill_prefetch_2 ();
45925 	m68k_write_memory_8(srca,val);
45926 }}}return 12;
45927 }
CPUFUNC(op_5be0_5)45928 unsigned long CPUFUNC(op_5be0_5)(uint32_t opcode) /* Scc */
45929 {
45930 	uint32_t srcreg = (opcode & 7);
45931 	OpcodeFamily = 59; CurrentInstrCycles = 14;
45932 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
45933 	m68k_areg (regs, srcreg) = srca;
45934 {	int val = cctrue(11) ? 0xff : 0;
45935 m68k_incpc(2);
45936 fill_prefetch_2 ();
45937 	m68k_write_memory_8(srca,val);
45938 }}}return 14;
45939 }
CPUFUNC(op_5be8_5)45940 unsigned long CPUFUNC(op_5be8_5)(uint32_t opcode) /* Scc */
45941 {
45942 	uint32_t srcreg = (opcode & 7);
45943 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45944 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
45945 {	int val = cctrue(11) ? 0xff : 0;
45946 m68k_incpc(4);
45947 fill_prefetch_0 ();
45948 	m68k_write_memory_8(srca,val);
45949 }}}return 16;
45950 }
CPUFUNC(op_5bf0_5)45951 unsigned long CPUFUNC(op_5bf0_5)(uint32_t opcode) /* Scc */
45952 {
45953 	uint32_t srcreg = (opcode & 7);
45954 	OpcodeFamily = 59; CurrentInstrCycles = 18;
45955 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
45956 	BusCyclePenalty += 2;
45957 {	int val = cctrue(11) ? 0xff : 0;
45958 m68k_incpc(4);
45959 fill_prefetch_0 ();
45960 	m68k_write_memory_8(srca,val);
45961 }}}return 18;
45962 }
CPUFUNC(op_5bf8_5)45963 unsigned long CPUFUNC(op_5bf8_5)(uint32_t opcode) /* Scc */
45964 {
45965 	OpcodeFamily = 59; CurrentInstrCycles = 16;
45966 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
45967 {	int val = cctrue(11) ? 0xff : 0;
45968 m68k_incpc(4);
45969 fill_prefetch_0 ();
45970 	m68k_write_memory_8(srca,val);
45971 }}}return 16;
45972 }
CPUFUNC(op_5bf9_5)45973 unsigned long CPUFUNC(op_5bf9_5)(uint32_t opcode) /* Scc */
45974 {
45975 	OpcodeFamily = 59; CurrentInstrCycles = 20;
45976 {{	uint32_t srca = get_ilong_prefetch(2);
45977 {	int val = cctrue(11) ? 0xff : 0;
45978 m68k_incpc(6);
45979 fill_prefetch_0 ();
45980 	m68k_write_memory_8(srca,val);
45981 }}}return 20;
45982 }
CPUFUNC(op_5cc0_5)45983 unsigned long CPUFUNC(op_5cc0_5)(uint32_t opcode) /* Scc */
45984 {
45985 	uint32_t srcreg = (opcode & 7);
45986 	OpcodeFamily = 59; CurrentInstrCycles = 4;
45987 {{{	int val = cctrue(12) ? 0xff : 0;
45988 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
45989 	if (val) { m68k_incpc(2) ; return 4+2; }
45990 }}}m68k_incpc(2);
45991 fill_prefetch_2 ();
45992 return 4;
45993 }
CPUFUNC(op_5cc8_5)45994 unsigned long CPUFUNC(op_5cc8_5)(uint32_t opcode) /* DBcc */
45995 {
45996 	uint32_t srcreg = (opcode & 7);
45997 	OpcodeFamily = 58; CurrentInstrCycles = 12;
45998 {{	int16_t src = m68k_dreg(regs, srcreg);
45999 {	int16_t offs = get_iword_prefetch(2);
46000 	if (!cctrue(12)) {
46001 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
46002 		if (src) {
46003 			if (offs & 1) {
46004 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
46005 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
46006 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2556;
46007 		}
46008 			m68k_incpc((int32_t)offs + 2);
46009 fill_prefetch_0 ();
46010 			return 10;
46011 		} else {
46012 			m68k_incpc(4);
46013 fill_prefetch_0 ();
46014 			return 14;
46015 		}
46016 	}
46017 }}}m68k_incpc(4);
46018 fill_prefetch_0 ();
46019 endlabel2556: ;
46020 return 12;
46021 }
CPUFUNC(op_5cd0_5)46022 unsigned long CPUFUNC(op_5cd0_5)(uint32_t opcode) /* Scc */
46023 {
46024 	uint32_t srcreg = (opcode & 7);
46025 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46026 {{	uint32_t srca = m68k_areg(regs, srcreg);
46027 {	int val = cctrue(12) ? 0xff : 0;
46028 m68k_incpc(2);
46029 fill_prefetch_2 ();
46030 	m68k_write_memory_8(srca,val);
46031 }}}return 12;
46032 }
CPUFUNC(op_5cd8_5)46033 unsigned long CPUFUNC(op_5cd8_5)(uint32_t opcode) /* Scc */
46034 {
46035 	uint32_t srcreg = (opcode & 7);
46036 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46037 {{	uint32_t srca = m68k_areg(regs, srcreg);
46038 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
46039 {	int val = cctrue(12) ? 0xff : 0;
46040 m68k_incpc(2);
46041 fill_prefetch_2 ();
46042 	m68k_write_memory_8(srca,val);
46043 }}}return 12;
46044 }
CPUFUNC(op_5ce0_5)46045 unsigned long CPUFUNC(op_5ce0_5)(uint32_t opcode) /* Scc */
46046 {
46047 	uint32_t srcreg = (opcode & 7);
46048 	OpcodeFamily = 59; CurrentInstrCycles = 14;
46049 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
46050 	m68k_areg (regs, srcreg) = srca;
46051 {	int val = cctrue(12) ? 0xff : 0;
46052 m68k_incpc(2);
46053 fill_prefetch_2 ();
46054 	m68k_write_memory_8(srca,val);
46055 }}}return 14;
46056 }
CPUFUNC(op_5ce8_5)46057 unsigned long CPUFUNC(op_5ce8_5)(uint32_t opcode) /* Scc */
46058 {
46059 	uint32_t srcreg = (opcode & 7);
46060 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46061 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
46062 {	int val = cctrue(12) ? 0xff : 0;
46063 m68k_incpc(4);
46064 fill_prefetch_0 ();
46065 	m68k_write_memory_8(srca,val);
46066 }}}return 16;
46067 }
CPUFUNC(op_5cf0_5)46068 unsigned long CPUFUNC(op_5cf0_5)(uint32_t opcode) /* Scc */
46069 {
46070 	uint32_t srcreg = (opcode & 7);
46071 	OpcodeFamily = 59; CurrentInstrCycles = 18;
46072 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
46073 	BusCyclePenalty += 2;
46074 {	int val = cctrue(12) ? 0xff : 0;
46075 m68k_incpc(4);
46076 fill_prefetch_0 ();
46077 	m68k_write_memory_8(srca,val);
46078 }}}return 18;
46079 }
CPUFUNC(op_5cf8_5)46080 unsigned long CPUFUNC(op_5cf8_5)(uint32_t opcode) /* Scc */
46081 {
46082 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46083 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
46084 {	int val = cctrue(12) ? 0xff : 0;
46085 m68k_incpc(4);
46086 fill_prefetch_0 ();
46087 	m68k_write_memory_8(srca,val);
46088 }}}return 16;
46089 }
CPUFUNC(op_5cf9_5)46090 unsigned long CPUFUNC(op_5cf9_5)(uint32_t opcode) /* Scc */
46091 {
46092 	OpcodeFamily = 59; CurrentInstrCycles = 20;
46093 {{	uint32_t srca = get_ilong_prefetch(2);
46094 {	int val = cctrue(12) ? 0xff : 0;
46095 m68k_incpc(6);
46096 fill_prefetch_0 ();
46097 	m68k_write_memory_8(srca,val);
46098 }}}return 20;
46099 }
CPUFUNC(op_5dc0_5)46100 unsigned long CPUFUNC(op_5dc0_5)(uint32_t opcode) /* Scc */
46101 {
46102 	uint32_t srcreg = (opcode & 7);
46103 	OpcodeFamily = 59; CurrentInstrCycles = 4;
46104 {{{	int val = cctrue(13) ? 0xff : 0;
46105 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
46106 	if (val) { m68k_incpc(2) ; return 4+2; }
46107 }}}m68k_incpc(2);
46108 fill_prefetch_2 ();
46109 return 4;
46110 }
CPUFUNC(op_5dc8_5)46111 unsigned long CPUFUNC(op_5dc8_5)(uint32_t opcode) /* DBcc */
46112 {
46113 	uint32_t srcreg = (opcode & 7);
46114 	OpcodeFamily = 58; CurrentInstrCycles = 12;
46115 {{	int16_t src = m68k_dreg(regs, srcreg);
46116 {	int16_t offs = get_iword_prefetch(2);
46117 	if (!cctrue(13)) {
46118 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
46119 		if (src) {
46120 			if (offs & 1) {
46121 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
46122 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
46123 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2565;
46124 		}
46125 			m68k_incpc((int32_t)offs + 2);
46126 fill_prefetch_0 ();
46127 			return 10;
46128 		} else {
46129 			m68k_incpc(4);
46130 fill_prefetch_0 ();
46131 			return 14;
46132 		}
46133 	}
46134 }}}m68k_incpc(4);
46135 fill_prefetch_0 ();
46136 endlabel2565: ;
46137 return 12;
46138 }
CPUFUNC(op_5dd0_5)46139 unsigned long CPUFUNC(op_5dd0_5)(uint32_t opcode) /* Scc */
46140 {
46141 	uint32_t srcreg = (opcode & 7);
46142 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46143 {{	uint32_t srca = m68k_areg(regs, srcreg);
46144 {	int val = cctrue(13) ? 0xff : 0;
46145 m68k_incpc(2);
46146 fill_prefetch_2 ();
46147 	m68k_write_memory_8(srca,val);
46148 }}}return 12;
46149 }
CPUFUNC(op_5dd8_5)46150 unsigned long CPUFUNC(op_5dd8_5)(uint32_t opcode) /* Scc */
46151 {
46152 	uint32_t srcreg = (opcode & 7);
46153 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46154 {{	uint32_t srca = m68k_areg(regs, srcreg);
46155 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
46156 {	int val = cctrue(13) ? 0xff : 0;
46157 m68k_incpc(2);
46158 fill_prefetch_2 ();
46159 	m68k_write_memory_8(srca,val);
46160 }}}return 12;
46161 }
CPUFUNC(op_5de0_5)46162 unsigned long CPUFUNC(op_5de0_5)(uint32_t opcode) /* Scc */
46163 {
46164 	uint32_t srcreg = (opcode & 7);
46165 	OpcodeFamily = 59; CurrentInstrCycles = 14;
46166 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
46167 	m68k_areg (regs, srcreg) = srca;
46168 {	int val = cctrue(13) ? 0xff : 0;
46169 m68k_incpc(2);
46170 fill_prefetch_2 ();
46171 	m68k_write_memory_8(srca,val);
46172 }}}return 14;
46173 }
CPUFUNC(op_5de8_5)46174 unsigned long CPUFUNC(op_5de8_5)(uint32_t opcode) /* Scc */
46175 {
46176 	uint32_t srcreg = (opcode & 7);
46177 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46178 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
46179 {	int val = cctrue(13) ? 0xff : 0;
46180 m68k_incpc(4);
46181 fill_prefetch_0 ();
46182 	m68k_write_memory_8(srca,val);
46183 }}}return 16;
46184 }
CPUFUNC(op_5df0_5)46185 unsigned long CPUFUNC(op_5df0_5)(uint32_t opcode) /* Scc */
46186 {
46187 	uint32_t srcreg = (opcode & 7);
46188 	OpcodeFamily = 59; CurrentInstrCycles = 18;
46189 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
46190 	BusCyclePenalty += 2;
46191 {	int val = cctrue(13) ? 0xff : 0;
46192 m68k_incpc(4);
46193 fill_prefetch_0 ();
46194 	m68k_write_memory_8(srca,val);
46195 }}}return 18;
46196 }
CPUFUNC(op_5df8_5)46197 unsigned long CPUFUNC(op_5df8_5)(uint32_t opcode) /* Scc */
46198 {
46199 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46200 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
46201 {	int val = cctrue(13) ? 0xff : 0;
46202 m68k_incpc(4);
46203 fill_prefetch_0 ();
46204 	m68k_write_memory_8(srca,val);
46205 }}}return 16;
46206 }
CPUFUNC(op_5df9_5)46207 unsigned long CPUFUNC(op_5df9_5)(uint32_t opcode) /* Scc */
46208 {
46209 	OpcodeFamily = 59; CurrentInstrCycles = 20;
46210 {{	uint32_t srca = get_ilong_prefetch(2);
46211 {	int val = cctrue(13) ? 0xff : 0;
46212 m68k_incpc(6);
46213 fill_prefetch_0 ();
46214 	m68k_write_memory_8(srca,val);
46215 }}}return 20;
46216 }
CPUFUNC(op_5ec0_5)46217 unsigned long CPUFUNC(op_5ec0_5)(uint32_t opcode) /* Scc */
46218 {
46219 	uint32_t srcreg = (opcode & 7);
46220 	OpcodeFamily = 59; CurrentInstrCycles = 4;
46221 {{{	int val = cctrue(14) ? 0xff : 0;
46222 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
46223 	if (val) { m68k_incpc(2) ; return 4+2; }
46224 }}}m68k_incpc(2);
46225 fill_prefetch_2 ();
46226 return 4;
46227 }
CPUFUNC(op_5ec8_5)46228 unsigned long CPUFUNC(op_5ec8_5)(uint32_t opcode) /* DBcc */
46229 {
46230 	uint32_t srcreg = (opcode & 7);
46231 	OpcodeFamily = 58; CurrentInstrCycles = 12;
46232 {{	int16_t src = m68k_dreg(regs, srcreg);
46233 {	int16_t offs = get_iword_prefetch(2);
46234 	if (!cctrue(14)) {
46235 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
46236 		if (src) {
46237 			if (offs & 1) {
46238 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
46239 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
46240 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2574;
46241 		}
46242 			m68k_incpc((int32_t)offs + 2);
46243 fill_prefetch_0 ();
46244 			return 10;
46245 		} else {
46246 			m68k_incpc(4);
46247 fill_prefetch_0 ();
46248 			return 14;
46249 		}
46250 	}
46251 }}}m68k_incpc(4);
46252 fill_prefetch_0 ();
46253 endlabel2574: ;
46254 return 12;
46255 }
CPUFUNC(op_5ed0_5)46256 unsigned long CPUFUNC(op_5ed0_5)(uint32_t opcode) /* Scc */
46257 {
46258 	uint32_t srcreg = (opcode & 7);
46259 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46260 {{	uint32_t srca = m68k_areg(regs, srcreg);
46261 {	int val = cctrue(14) ? 0xff : 0;
46262 m68k_incpc(2);
46263 fill_prefetch_2 ();
46264 	m68k_write_memory_8(srca,val);
46265 }}}return 12;
46266 }
CPUFUNC(op_5ed8_5)46267 unsigned long CPUFUNC(op_5ed8_5)(uint32_t opcode) /* Scc */
46268 {
46269 	uint32_t srcreg = (opcode & 7);
46270 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46271 {{	uint32_t srca = m68k_areg(regs, srcreg);
46272 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
46273 {	int val = cctrue(14) ? 0xff : 0;
46274 m68k_incpc(2);
46275 fill_prefetch_2 ();
46276 	m68k_write_memory_8(srca,val);
46277 }}}return 12;
46278 }
CPUFUNC(op_5ee0_5)46279 unsigned long CPUFUNC(op_5ee0_5)(uint32_t opcode) /* Scc */
46280 {
46281 	uint32_t srcreg = (opcode & 7);
46282 	OpcodeFamily = 59; CurrentInstrCycles = 14;
46283 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
46284 	m68k_areg (regs, srcreg) = srca;
46285 {	int val = cctrue(14) ? 0xff : 0;
46286 m68k_incpc(2);
46287 fill_prefetch_2 ();
46288 	m68k_write_memory_8(srca,val);
46289 }}}return 14;
46290 }
CPUFUNC(op_5ee8_5)46291 unsigned long CPUFUNC(op_5ee8_5)(uint32_t opcode) /* Scc */
46292 {
46293 	uint32_t srcreg = (opcode & 7);
46294 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46295 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
46296 {	int val = cctrue(14) ? 0xff : 0;
46297 m68k_incpc(4);
46298 fill_prefetch_0 ();
46299 	m68k_write_memory_8(srca,val);
46300 }}}return 16;
46301 }
CPUFUNC(op_5ef0_5)46302 unsigned long CPUFUNC(op_5ef0_5)(uint32_t opcode) /* Scc */
46303 {
46304 	uint32_t srcreg = (opcode & 7);
46305 	OpcodeFamily = 59; CurrentInstrCycles = 18;
46306 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
46307 	BusCyclePenalty += 2;
46308 {	int val = cctrue(14) ? 0xff : 0;
46309 m68k_incpc(4);
46310 fill_prefetch_0 ();
46311 	m68k_write_memory_8(srca,val);
46312 }}}return 18;
46313 }
CPUFUNC(op_5ef8_5)46314 unsigned long CPUFUNC(op_5ef8_5)(uint32_t opcode) /* Scc */
46315 {
46316 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46317 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
46318 {	int val = cctrue(14) ? 0xff : 0;
46319 m68k_incpc(4);
46320 fill_prefetch_0 ();
46321 	m68k_write_memory_8(srca,val);
46322 }}}return 16;
46323 }
CPUFUNC(op_5ef9_5)46324 unsigned long CPUFUNC(op_5ef9_5)(uint32_t opcode) /* Scc */
46325 {
46326 	OpcodeFamily = 59; CurrentInstrCycles = 20;
46327 {{	uint32_t srca = get_ilong_prefetch(2);
46328 {	int val = cctrue(14) ? 0xff : 0;
46329 m68k_incpc(6);
46330 fill_prefetch_0 ();
46331 	m68k_write_memory_8(srca,val);
46332 }}}return 20;
46333 }
CPUFUNC(op_5fc0_5)46334 unsigned long CPUFUNC(op_5fc0_5)(uint32_t opcode) /* Scc */
46335 {
46336 	uint32_t srcreg = (opcode & 7);
46337 	OpcodeFamily = 59; CurrentInstrCycles = 4;
46338 {{{	int val = cctrue(15) ? 0xff : 0;
46339 	m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xff) | ((val) & 0xff);
46340 	if (val) { m68k_incpc(2) ; return 4+2; }
46341 }}}m68k_incpc(2);
46342 fill_prefetch_2 ();
46343 return 4;
46344 }
CPUFUNC(op_5fc8_5)46345 unsigned long CPUFUNC(op_5fc8_5)(uint32_t opcode) /* DBcc */
46346 {
46347 	uint32_t srcreg = (opcode & 7);
46348 	OpcodeFamily = 58; CurrentInstrCycles = 12;
46349 {{	int16_t src = m68k_dreg(regs, srcreg);
46350 {	int16_t offs = get_iword_prefetch(2);
46351 	if (!cctrue(15)) {
46352 		m68k_dreg(regs, srcreg) = (m68k_dreg(regs, srcreg) & ~0xffff) | (((src-1)) & 0xffff);
46353 		if (src) {
46354 			if (offs & 1) {
46355 			last_addr_for_exception_3 = m68k_getpc() + 2 + 2;
46356 			last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)offs + 2;
46357 			last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2583;
46358 		}
46359 			m68k_incpc((int32_t)offs + 2);
46360 fill_prefetch_0 ();
46361 			return 10;
46362 		} else {
46363 			m68k_incpc(4);
46364 fill_prefetch_0 ();
46365 			return 14;
46366 		}
46367 	}
46368 }}}m68k_incpc(4);
46369 fill_prefetch_0 ();
46370 endlabel2583: ;
46371 return 12;
46372 }
CPUFUNC(op_5fd0_5)46373 unsigned long CPUFUNC(op_5fd0_5)(uint32_t opcode) /* Scc */
46374 {
46375 	uint32_t srcreg = (opcode & 7);
46376 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46377 {{	uint32_t srca = m68k_areg(regs, srcreg);
46378 {	int val = cctrue(15) ? 0xff : 0;
46379 m68k_incpc(2);
46380 fill_prefetch_2 ();
46381 	m68k_write_memory_8(srca,val);
46382 }}}return 12;
46383 }
CPUFUNC(op_5fd8_5)46384 unsigned long CPUFUNC(op_5fd8_5)(uint32_t opcode) /* Scc */
46385 {
46386 	uint32_t srcreg = (opcode & 7);
46387 	OpcodeFamily = 59; CurrentInstrCycles = 12;
46388 {{	uint32_t srca = m68k_areg(regs, srcreg);
46389 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
46390 {	int val = cctrue(15) ? 0xff : 0;
46391 m68k_incpc(2);
46392 fill_prefetch_2 ();
46393 	m68k_write_memory_8(srca,val);
46394 }}}return 12;
46395 }
CPUFUNC(op_5fe0_5)46396 unsigned long CPUFUNC(op_5fe0_5)(uint32_t opcode) /* Scc */
46397 {
46398 	uint32_t srcreg = (opcode & 7);
46399 	OpcodeFamily = 59; CurrentInstrCycles = 14;
46400 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
46401 	m68k_areg (regs, srcreg) = srca;
46402 {	int val = cctrue(15) ? 0xff : 0;
46403 m68k_incpc(2);
46404 fill_prefetch_2 ();
46405 	m68k_write_memory_8(srca,val);
46406 }}}return 14;
46407 }
46408 #endif
46409 
46410 #ifdef PART_6
CPUFUNC(op_5fe8_5)46411 unsigned long CPUFUNC(op_5fe8_5)(uint32_t opcode) /* Scc */
46412 {
46413 	uint32_t srcreg = (opcode & 7);
46414 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46415 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
46416 {	int val = cctrue(15) ? 0xff : 0;
46417 m68k_incpc(4);
46418 fill_prefetch_0 ();
46419 	m68k_write_memory_8(srca,val);
46420 }}}return 16;
46421 }
CPUFUNC(op_5ff0_5)46422 unsigned long CPUFUNC(op_5ff0_5)(uint32_t opcode) /* Scc */
46423 {
46424 	uint32_t srcreg = (opcode & 7);
46425 	OpcodeFamily = 59; CurrentInstrCycles = 18;
46426 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
46427 	BusCyclePenalty += 2;
46428 {	int val = cctrue(15) ? 0xff : 0;
46429 m68k_incpc(4);
46430 fill_prefetch_0 ();
46431 	m68k_write_memory_8(srca,val);
46432 }}}return 18;
46433 }
CPUFUNC(op_5ff8_5)46434 unsigned long CPUFUNC(op_5ff8_5)(uint32_t opcode) /* Scc */
46435 {
46436 	OpcodeFamily = 59; CurrentInstrCycles = 16;
46437 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
46438 {	int val = cctrue(15) ? 0xff : 0;
46439 m68k_incpc(4);
46440 fill_prefetch_0 ();
46441 	m68k_write_memory_8(srca,val);
46442 }}}return 16;
46443 }
CPUFUNC(op_5ff9_5)46444 unsigned long CPUFUNC(op_5ff9_5)(uint32_t opcode) /* Scc */
46445 {
46446 	OpcodeFamily = 59; CurrentInstrCycles = 20;
46447 {{	uint32_t srca = get_ilong_prefetch(2);
46448 {	int val = cctrue(15) ? 0xff : 0;
46449 m68k_incpc(6);
46450 fill_prefetch_0 ();
46451 	m68k_write_memory_8(srca,val);
46452 }}}return 20;
46453 }
CPUFUNC(op_6000_5)46454 unsigned long CPUFUNC(op_6000_5)(uint32_t opcode) /* Bcc */
46455 {
46456 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46457 {{	int16_t src = get_iword_prefetch(2);
46458 	if (!cctrue(0)) goto didnt_jump;
46459 	if (src & 1) {
46460 		last_addr_for_exception_3 = m68k_getpc() + 2;
46461 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46462 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2591;
46463 	}
46464 	m68k_incpc ((int32_t)src + 2);
46465 fill_prefetch_0 ();
46466 	return 10;
46467 didnt_jump:;
46468 }}m68k_incpc(4);
46469 fill_prefetch_0 ();
46470 endlabel2591: ;
46471 return 12;
46472 }
CPUFUNC(op_6001_5)46473 unsigned long CPUFUNC(op_6001_5)(uint32_t opcode) /* Bcc */
46474 {
46475 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46476 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46477 {{	uint32_t src = srcreg;
46478 	if (!cctrue(0)) goto didnt_jump;
46479 	if (src & 1) {
46480 		last_addr_for_exception_3 = m68k_getpc() + 2;
46481 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46482 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2592;
46483 	}
46484 	m68k_incpc ((int32_t)src + 2);
46485 fill_prefetch_0 ();
46486 	return 10;
46487 didnt_jump:;
46488 }}m68k_incpc(2);
46489 fill_prefetch_2 ();
46490 endlabel2592: ;
46491 return 8;
46492 }
CPUFUNC(op_60ff_5)46493 unsigned long CPUFUNC(op_60ff_5)(uint32_t opcode) /* Bcc */
46494 {
46495 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46496 {	m68k_incpc(2);
46497 	if (!cctrue(0)) goto endlabel2593;
46498 		last_addr_for_exception_3 = m68k_getpc() + 2;
46499 		last_fault_for_exception_3 = m68k_getpc() + 1;
46500 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2593;
46501 {	int32_t src = get_ilong_prefetch(2);
46502 	if (!cctrue(0)) goto didnt_jump;
46503 	if (src & 1) {
46504 		last_addr_for_exception_3 = m68k_getpc() + 2;
46505 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46506 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2593;
46507 	}
46508 	m68k_incpc ((int32_t)src + 2);
46509 fill_prefetch_0 ();
46510 	return 10;
46511 didnt_jump:;
46512 }}m68k_incpc(6);
46513 fill_prefetch_0 ();
46514 endlabel2593: ;
46515 return 12;
46516 }
CPUFUNC(op_6100_5)46517 unsigned long CPUFUNC(op_6100_5)(uint32_t opcode) /* BSR */
46518 {
46519 	OpcodeFamily = 54; CurrentInstrCycles = 18;
46520 {{	int16_t src = get_iword_prefetch(2);
46521 	int32_t s = (int32_t)src + 2;
46522 	if (src & 1) {
46523 		last_addr_for_exception_3 = m68k_getpc() + 2;
46524 		last_fault_for_exception_3 = m68k_getpc() + s;
46525 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2594;
46526 	}
46527 	m68k_do_bsr(m68k_getpc() + 4, s);
46528 fill_prefetch_0 ();
46529 }}endlabel2594: ;
46530 return 18;
46531 }
CPUFUNC(op_6101_5)46532 unsigned long CPUFUNC(op_6101_5)(uint32_t opcode) /* BSR */
46533 {
46534 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46535 	OpcodeFamily = 54; CurrentInstrCycles = 18;
46536 {{	uint32_t src = srcreg;
46537 	int32_t s = (int32_t)src + 2;
46538 	if (src & 1) {
46539 		last_addr_for_exception_3 = m68k_getpc() + 2;
46540 		last_fault_for_exception_3 = m68k_getpc() + s;
46541 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2595;
46542 	}
46543 	m68k_do_bsr(m68k_getpc() + 2, s);
46544 fill_prefetch_0 ();
46545 }}endlabel2595: ;
46546 return 18;
46547 }
CPUFUNC(op_61ff_5)46548 unsigned long CPUFUNC(op_61ff_5)(uint32_t opcode) /* BSR */
46549 {
46550 	OpcodeFamily = 54; CurrentInstrCycles = 18;
46551 {{	int32_t src = get_ilong_prefetch(2);
46552 	int32_t s = (int32_t)src + 2;
46553 	if (src & 1) {
46554 		last_addr_for_exception_3 = m68k_getpc() + 2;
46555 		last_fault_for_exception_3 = m68k_getpc() + s;
46556 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2596;
46557 	}
46558 	m68k_do_bsr(m68k_getpc() + 6, s);
46559 fill_prefetch_0 ();
46560 }}endlabel2596: ;
46561 return 18;
46562 }
CPUFUNC(op_6200_5)46563 unsigned long CPUFUNC(op_6200_5)(uint32_t opcode) /* Bcc */
46564 {
46565 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46566 {{	int16_t src = get_iword_prefetch(2);
46567 	if (!cctrue(2)) goto didnt_jump;
46568 	if (src & 1) {
46569 		last_addr_for_exception_3 = m68k_getpc() + 2;
46570 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46571 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2597;
46572 	}
46573 	m68k_incpc ((int32_t)src + 2);
46574 fill_prefetch_0 ();
46575 	return 10;
46576 didnt_jump:;
46577 }}m68k_incpc(4);
46578 fill_prefetch_0 ();
46579 endlabel2597: ;
46580 return 12;
46581 }
CPUFUNC(op_6201_5)46582 unsigned long CPUFUNC(op_6201_5)(uint32_t opcode) /* Bcc */
46583 {
46584 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46585 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46586 {{	uint32_t src = srcreg;
46587 	if (!cctrue(2)) goto didnt_jump;
46588 	if (src & 1) {
46589 		last_addr_for_exception_3 = m68k_getpc() + 2;
46590 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46591 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2598;
46592 	}
46593 	m68k_incpc ((int32_t)src + 2);
46594 fill_prefetch_0 ();
46595 	return 10;
46596 didnt_jump:;
46597 }}m68k_incpc(2);
46598 fill_prefetch_2 ();
46599 endlabel2598: ;
46600 return 8;
46601 }
CPUFUNC(op_62ff_5)46602 unsigned long CPUFUNC(op_62ff_5)(uint32_t opcode) /* Bcc */
46603 {
46604 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46605 {	m68k_incpc(2);
46606 	if (!cctrue(2)) goto endlabel2599;
46607 		last_addr_for_exception_3 = m68k_getpc() + 2;
46608 		last_fault_for_exception_3 = m68k_getpc() + 1;
46609 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2599;
46610 {	int32_t src = get_ilong_prefetch(2);
46611 	if (!cctrue(2)) goto didnt_jump;
46612 	if (src & 1) {
46613 		last_addr_for_exception_3 = m68k_getpc() + 2;
46614 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46615 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2599;
46616 	}
46617 	m68k_incpc ((int32_t)src + 2);
46618 fill_prefetch_0 ();
46619 	return 10;
46620 didnt_jump:;
46621 }}m68k_incpc(6);
46622 fill_prefetch_0 ();
46623 endlabel2599: ;
46624 return 12;
46625 }
CPUFUNC(op_6300_5)46626 unsigned long CPUFUNC(op_6300_5)(uint32_t opcode) /* Bcc */
46627 {
46628 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46629 {{	int16_t src = get_iword_prefetch(2);
46630 	if (!cctrue(3)) goto didnt_jump;
46631 	if (src & 1) {
46632 		last_addr_for_exception_3 = m68k_getpc() + 2;
46633 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46634 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2600;
46635 	}
46636 	m68k_incpc ((int32_t)src + 2);
46637 fill_prefetch_0 ();
46638 	return 10;
46639 didnt_jump:;
46640 }}m68k_incpc(4);
46641 fill_prefetch_0 ();
46642 endlabel2600: ;
46643 return 12;
46644 }
CPUFUNC(op_6301_5)46645 unsigned long CPUFUNC(op_6301_5)(uint32_t opcode) /* Bcc */
46646 {
46647 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46648 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46649 {{	uint32_t src = srcreg;
46650 	if (!cctrue(3)) goto didnt_jump;
46651 	if (src & 1) {
46652 		last_addr_for_exception_3 = m68k_getpc() + 2;
46653 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46654 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2601;
46655 	}
46656 	m68k_incpc ((int32_t)src + 2);
46657 fill_prefetch_0 ();
46658 	return 10;
46659 didnt_jump:;
46660 }}m68k_incpc(2);
46661 fill_prefetch_2 ();
46662 endlabel2601: ;
46663 return 8;
46664 }
CPUFUNC(op_63ff_5)46665 unsigned long CPUFUNC(op_63ff_5)(uint32_t opcode) /* Bcc */
46666 {
46667 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46668 {	m68k_incpc(2);
46669 	if (!cctrue(3)) goto endlabel2602;
46670 		last_addr_for_exception_3 = m68k_getpc() + 2;
46671 		last_fault_for_exception_3 = m68k_getpc() + 1;
46672 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2602;
46673 {	int32_t src = get_ilong_prefetch(2);
46674 	if (!cctrue(3)) goto didnt_jump;
46675 	if (src & 1) {
46676 		last_addr_for_exception_3 = m68k_getpc() + 2;
46677 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46678 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2602;
46679 	}
46680 	m68k_incpc ((int32_t)src + 2);
46681 fill_prefetch_0 ();
46682 	return 10;
46683 didnt_jump:;
46684 }}m68k_incpc(6);
46685 fill_prefetch_0 ();
46686 endlabel2602: ;
46687 return 12;
46688 }
CPUFUNC(op_6400_5)46689 unsigned long CPUFUNC(op_6400_5)(uint32_t opcode) /* Bcc */
46690 {
46691 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46692 {{	int16_t src = get_iword_prefetch(2);
46693 	if (!cctrue(4)) goto didnt_jump;
46694 	if (src & 1) {
46695 		last_addr_for_exception_3 = m68k_getpc() + 2;
46696 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46697 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2603;
46698 	}
46699 	m68k_incpc ((int32_t)src + 2);
46700 fill_prefetch_0 ();
46701 	return 10;
46702 didnt_jump:;
46703 }}m68k_incpc(4);
46704 fill_prefetch_0 ();
46705 endlabel2603: ;
46706 return 12;
46707 }
CPUFUNC(op_6401_5)46708 unsigned long CPUFUNC(op_6401_5)(uint32_t opcode) /* Bcc */
46709 {
46710 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46711 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46712 {{	uint32_t src = srcreg;
46713 	if (!cctrue(4)) goto didnt_jump;
46714 	if (src & 1) {
46715 		last_addr_for_exception_3 = m68k_getpc() + 2;
46716 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46717 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2604;
46718 	}
46719 	m68k_incpc ((int32_t)src + 2);
46720 fill_prefetch_0 ();
46721 	return 10;
46722 didnt_jump:;
46723 }}m68k_incpc(2);
46724 fill_prefetch_2 ();
46725 endlabel2604: ;
46726 return 8;
46727 }
CPUFUNC(op_64ff_5)46728 unsigned long CPUFUNC(op_64ff_5)(uint32_t opcode) /* Bcc */
46729 {
46730 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46731 {	m68k_incpc(2);
46732 	if (!cctrue(4)) goto endlabel2605;
46733 		last_addr_for_exception_3 = m68k_getpc() + 2;
46734 		last_fault_for_exception_3 = m68k_getpc() + 1;
46735 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2605;
46736 {	int32_t src = get_ilong_prefetch(2);
46737 	if (!cctrue(4)) goto didnt_jump;
46738 	if (src & 1) {
46739 		last_addr_for_exception_3 = m68k_getpc() + 2;
46740 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46741 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2605;
46742 	}
46743 	m68k_incpc ((int32_t)src + 2);
46744 fill_prefetch_0 ();
46745 	return 10;
46746 didnt_jump:;
46747 }}m68k_incpc(6);
46748 fill_prefetch_0 ();
46749 endlabel2605: ;
46750 return 12;
46751 }
CPUFUNC(op_6500_5)46752 unsigned long CPUFUNC(op_6500_5)(uint32_t opcode) /* Bcc */
46753 {
46754 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46755 {{	int16_t src = get_iword_prefetch(2);
46756 	if (!cctrue(5)) goto didnt_jump;
46757 	if (src & 1) {
46758 		last_addr_for_exception_3 = m68k_getpc() + 2;
46759 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46760 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2606;
46761 	}
46762 	m68k_incpc ((int32_t)src + 2);
46763 fill_prefetch_0 ();
46764 	return 10;
46765 didnt_jump:;
46766 }}m68k_incpc(4);
46767 fill_prefetch_0 ();
46768 endlabel2606: ;
46769 return 12;
46770 }
CPUFUNC(op_6501_5)46771 unsigned long CPUFUNC(op_6501_5)(uint32_t opcode) /* Bcc */
46772 {
46773 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46774 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46775 {{	uint32_t src = srcreg;
46776 	if (!cctrue(5)) goto didnt_jump;
46777 	if (src & 1) {
46778 		last_addr_for_exception_3 = m68k_getpc() + 2;
46779 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46780 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2607;
46781 	}
46782 	m68k_incpc ((int32_t)src + 2);
46783 fill_prefetch_0 ();
46784 	return 10;
46785 didnt_jump:;
46786 }}m68k_incpc(2);
46787 fill_prefetch_2 ();
46788 endlabel2607: ;
46789 return 8;
46790 }
CPUFUNC(op_65ff_5)46791 unsigned long CPUFUNC(op_65ff_5)(uint32_t opcode) /* Bcc */
46792 {
46793 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46794 {	m68k_incpc(2);
46795 	if (!cctrue(5)) goto endlabel2608;
46796 		last_addr_for_exception_3 = m68k_getpc() + 2;
46797 		last_fault_for_exception_3 = m68k_getpc() + 1;
46798 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2608;
46799 {	int32_t src = get_ilong_prefetch(2);
46800 	if (!cctrue(5)) goto didnt_jump;
46801 	if (src & 1) {
46802 		last_addr_for_exception_3 = m68k_getpc() + 2;
46803 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46804 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2608;
46805 	}
46806 	m68k_incpc ((int32_t)src + 2);
46807 fill_prefetch_0 ();
46808 	return 10;
46809 didnt_jump:;
46810 }}m68k_incpc(6);
46811 fill_prefetch_0 ();
46812 endlabel2608: ;
46813 return 12;
46814 }
CPUFUNC(op_6600_5)46815 unsigned long CPUFUNC(op_6600_5)(uint32_t opcode) /* Bcc */
46816 {
46817 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46818 {{	int16_t src = get_iword_prefetch(2);
46819 	if (!cctrue(6)) goto didnt_jump;
46820 	if (src & 1) {
46821 		last_addr_for_exception_3 = m68k_getpc() + 2;
46822 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46823 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2609;
46824 	}
46825 	m68k_incpc ((int32_t)src + 2);
46826 fill_prefetch_0 ();
46827 	return 10;
46828 didnt_jump:;
46829 }}m68k_incpc(4);
46830 fill_prefetch_0 ();
46831 endlabel2609: ;
46832 return 12;
46833 }
CPUFUNC(op_6601_5)46834 unsigned long CPUFUNC(op_6601_5)(uint32_t opcode) /* Bcc */
46835 {
46836 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46837 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46838 {{	uint32_t src = srcreg;
46839 	if (!cctrue(6)) goto didnt_jump;
46840 	if (src & 1) {
46841 		last_addr_for_exception_3 = m68k_getpc() + 2;
46842 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46843 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2610;
46844 	}
46845 	m68k_incpc ((int32_t)src + 2);
46846 fill_prefetch_0 ();
46847 	return 10;
46848 didnt_jump:;
46849 }}m68k_incpc(2);
46850 fill_prefetch_2 ();
46851 endlabel2610: ;
46852 return 8;
46853 }
CPUFUNC(op_66ff_5)46854 unsigned long CPUFUNC(op_66ff_5)(uint32_t opcode) /* Bcc */
46855 {
46856 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46857 {	m68k_incpc(2);
46858 	if (!cctrue(6)) goto endlabel2611;
46859 		last_addr_for_exception_3 = m68k_getpc() + 2;
46860 		last_fault_for_exception_3 = m68k_getpc() + 1;
46861 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2611;
46862 {	int32_t src = get_ilong_prefetch(2);
46863 	if (!cctrue(6)) goto didnt_jump;
46864 	if (src & 1) {
46865 		last_addr_for_exception_3 = m68k_getpc() + 2;
46866 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46867 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2611;
46868 	}
46869 	m68k_incpc ((int32_t)src + 2);
46870 fill_prefetch_0 ();
46871 	return 10;
46872 didnt_jump:;
46873 }}m68k_incpc(6);
46874 fill_prefetch_0 ();
46875 endlabel2611: ;
46876 return 12;
46877 }
CPUFUNC(op_6700_5)46878 unsigned long CPUFUNC(op_6700_5)(uint32_t opcode) /* Bcc */
46879 {
46880 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46881 {{	int16_t src = get_iword_prefetch(2);
46882 	if (!cctrue(7)) goto didnt_jump;
46883 	if (src & 1) {
46884 		last_addr_for_exception_3 = m68k_getpc() + 2;
46885 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46886 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2612;
46887 	}
46888 	m68k_incpc ((int32_t)src + 2);
46889 fill_prefetch_0 ();
46890 	return 10;
46891 didnt_jump:;
46892 }}m68k_incpc(4);
46893 fill_prefetch_0 ();
46894 endlabel2612: ;
46895 return 12;
46896 }
CPUFUNC(op_6701_5)46897 unsigned long CPUFUNC(op_6701_5)(uint32_t opcode) /* Bcc */
46898 {
46899 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46900 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46901 {{	uint32_t src = srcreg;
46902 	if (!cctrue(7)) goto didnt_jump;
46903 	if (src & 1) {
46904 		last_addr_for_exception_3 = m68k_getpc() + 2;
46905 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46906 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2613;
46907 	}
46908 	m68k_incpc ((int32_t)src + 2);
46909 fill_prefetch_0 ();
46910 	return 10;
46911 didnt_jump:;
46912 }}m68k_incpc(2);
46913 fill_prefetch_2 ();
46914 endlabel2613: ;
46915 return 8;
46916 }
CPUFUNC(op_67ff_5)46917 unsigned long CPUFUNC(op_67ff_5)(uint32_t opcode) /* Bcc */
46918 {
46919 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46920 {	m68k_incpc(2);
46921 	if (!cctrue(7)) goto endlabel2614;
46922 		last_addr_for_exception_3 = m68k_getpc() + 2;
46923 		last_fault_for_exception_3 = m68k_getpc() + 1;
46924 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2614;
46925 {	int32_t src = get_ilong_prefetch(2);
46926 	if (!cctrue(7)) goto didnt_jump;
46927 	if (src & 1) {
46928 		last_addr_for_exception_3 = m68k_getpc() + 2;
46929 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46930 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2614;
46931 	}
46932 	m68k_incpc ((int32_t)src + 2);
46933 fill_prefetch_0 ();
46934 	return 10;
46935 didnt_jump:;
46936 }}m68k_incpc(6);
46937 fill_prefetch_0 ();
46938 endlabel2614: ;
46939 return 12;
46940 }
CPUFUNC(op_6800_5)46941 unsigned long CPUFUNC(op_6800_5)(uint32_t opcode) /* Bcc */
46942 {
46943 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46944 {{	int16_t src = get_iword_prefetch(2);
46945 	if (!cctrue(8)) goto didnt_jump;
46946 	if (src & 1) {
46947 		last_addr_for_exception_3 = m68k_getpc() + 2;
46948 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46949 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2615;
46950 	}
46951 	m68k_incpc ((int32_t)src + 2);
46952 fill_prefetch_0 ();
46953 	return 10;
46954 didnt_jump:;
46955 }}m68k_incpc(4);
46956 fill_prefetch_0 ();
46957 endlabel2615: ;
46958 return 12;
46959 }
CPUFUNC(op_6801_5)46960 unsigned long CPUFUNC(op_6801_5)(uint32_t opcode) /* Bcc */
46961 {
46962 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
46963 	OpcodeFamily = 55; CurrentInstrCycles = 8;
46964 {{	uint32_t src = srcreg;
46965 	if (!cctrue(8)) goto didnt_jump;
46966 	if (src & 1) {
46967 		last_addr_for_exception_3 = m68k_getpc() + 2;
46968 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46969 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2616;
46970 	}
46971 	m68k_incpc ((int32_t)src + 2);
46972 fill_prefetch_0 ();
46973 	return 10;
46974 didnt_jump:;
46975 }}m68k_incpc(2);
46976 fill_prefetch_2 ();
46977 endlabel2616: ;
46978 return 8;
46979 }
CPUFUNC(op_68ff_5)46980 unsigned long CPUFUNC(op_68ff_5)(uint32_t opcode) /* Bcc */
46981 {
46982 	OpcodeFamily = 55; CurrentInstrCycles = 12;
46983 {	m68k_incpc(2);
46984 	if (!cctrue(8)) goto endlabel2617;
46985 		last_addr_for_exception_3 = m68k_getpc() + 2;
46986 		last_fault_for_exception_3 = m68k_getpc() + 1;
46987 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2617;
46988 {	int32_t src = get_ilong_prefetch(2);
46989 	if (!cctrue(8)) goto didnt_jump;
46990 	if (src & 1) {
46991 		last_addr_for_exception_3 = m68k_getpc() + 2;
46992 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
46993 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2617;
46994 	}
46995 	m68k_incpc ((int32_t)src + 2);
46996 fill_prefetch_0 ();
46997 	return 10;
46998 didnt_jump:;
46999 }}m68k_incpc(6);
47000 fill_prefetch_0 ();
47001 endlabel2617: ;
47002 return 12;
47003 }
CPUFUNC(op_6900_5)47004 unsigned long CPUFUNC(op_6900_5)(uint32_t opcode) /* Bcc */
47005 {
47006 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47007 {{	int16_t src = get_iword_prefetch(2);
47008 	if (!cctrue(9)) goto didnt_jump;
47009 	if (src & 1) {
47010 		last_addr_for_exception_3 = m68k_getpc() + 2;
47011 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47012 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2618;
47013 	}
47014 	m68k_incpc ((int32_t)src + 2);
47015 fill_prefetch_0 ();
47016 	return 10;
47017 didnt_jump:;
47018 }}m68k_incpc(4);
47019 fill_prefetch_0 ();
47020 endlabel2618: ;
47021 return 12;
47022 }
CPUFUNC(op_6901_5)47023 unsigned long CPUFUNC(op_6901_5)(uint32_t opcode) /* Bcc */
47024 {
47025 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47026 	OpcodeFamily = 55; CurrentInstrCycles = 8;
47027 {{	uint32_t src = srcreg;
47028 	if (!cctrue(9)) goto didnt_jump;
47029 	if (src & 1) {
47030 		last_addr_for_exception_3 = m68k_getpc() + 2;
47031 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47032 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2619;
47033 	}
47034 	m68k_incpc ((int32_t)src + 2);
47035 fill_prefetch_0 ();
47036 	return 10;
47037 didnt_jump:;
47038 }}m68k_incpc(2);
47039 fill_prefetch_2 ();
47040 endlabel2619: ;
47041 return 8;
47042 }
CPUFUNC(op_69ff_5)47043 unsigned long CPUFUNC(op_69ff_5)(uint32_t opcode) /* Bcc */
47044 {
47045 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47046 {	m68k_incpc(2);
47047 	if (!cctrue(9)) goto endlabel2620;
47048 		last_addr_for_exception_3 = m68k_getpc() + 2;
47049 		last_fault_for_exception_3 = m68k_getpc() + 1;
47050 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2620;
47051 {	int32_t src = get_ilong_prefetch(2);
47052 	if (!cctrue(9)) goto didnt_jump;
47053 	if (src & 1) {
47054 		last_addr_for_exception_3 = m68k_getpc() + 2;
47055 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47056 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2620;
47057 	}
47058 	m68k_incpc ((int32_t)src + 2);
47059 fill_prefetch_0 ();
47060 	return 10;
47061 didnt_jump:;
47062 }}m68k_incpc(6);
47063 fill_prefetch_0 ();
47064 endlabel2620: ;
47065 return 12;
47066 }
CPUFUNC(op_6a00_5)47067 unsigned long CPUFUNC(op_6a00_5)(uint32_t opcode) /* Bcc */
47068 {
47069 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47070 {{	int16_t src = get_iword_prefetch(2);
47071 	if (!cctrue(10)) goto didnt_jump;
47072 	if (src & 1) {
47073 		last_addr_for_exception_3 = m68k_getpc() + 2;
47074 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47075 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2621;
47076 	}
47077 	m68k_incpc ((int32_t)src + 2);
47078 fill_prefetch_0 ();
47079 	return 10;
47080 didnt_jump:;
47081 }}m68k_incpc(4);
47082 fill_prefetch_0 ();
47083 endlabel2621: ;
47084 return 12;
47085 }
CPUFUNC(op_6a01_5)47086 unsigned long CPUFUNC(op_6a01_5)(uint32_t opcode) /* Bcc */
47087 {
47088 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47089 	OpcodeFamily = 55; CurrentInstrCycles = 8;
47090 {{	uint32_t src = srcreg;
47091 	if (!cctrue(10)) goto didnt_jump;
47092 	if (src & 1) {
47093 		last_addr_for_exception_3 = m68k_getpc() + 2;
47094 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47095 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2622;
47096 	}
47097 	m68k_incpc ((int32_t)src + 2);
47098 fill_prefetch_0 ();
47099 	return 10;
47100 didnt_jump:;
47101 }}m68k_incpc(2);
47102 fill_prefetch_2 ();
47103 endlabel2622: ;
47104 return 8;
47105 }
CPUFUNC(op_6aff_5)47106 unsigned long CPUFUNC(op_6aff_5)(uint32_t opcode) /* Bcc */
47107 {
47108 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47109 {	m68k_incpc(2);
47110 	if (!cctrue(10)) goto endlabel2623;
47111 		last_addr_for_exception_3 = m68k_getpc() + 2;
47112 		last_fault_for_exception_3 = m68k_getpc() + 1;
47113 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2623;
47114 {	int32_t src = get_ilong_prefetch(2);
47115 	if (!cctrue(10)) goto didnt_jump;
47116 	if (src & 1) {
47117 		last_addr_for_exception_3 = m68k_getpc() + 2;
47118 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47119 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2623;
47120 	}
47121 	m68k_incpc ((int32_t)src + 2);
47122 fill_prefetch_0 ();
47123 	return 10;
47124 didnt_jump:;
47125 }}m68k_incpc(6);
47126 fill_prefetch_0 ();
47127 endlabel2623: ;
47128 return 12;
47129 }
CPUFUNC(op_6b00_5)47130 unsigned long CPUFUNC(op_6b00_5)(uint32_t opcode) /* Bcc */
47131 {
47132 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47133 {{	int16_t src = get_iword_prefetch(2);
47134 	if (!cctrue(11)) goto didnt_jump;
47135 	if (src & 1) {
47136 		last_addr_for_exception_3 = m68k_getpc() + 2;
47137 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47138 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2624;
47139 	}
47140 	m68k_incpc ((int32_t)src + 2);
47141 fill_prefetch_0 ();
47142 	return 10;
47143 didnt_jump:;
47144 }}m68k_incpc(4);
47145 fill_prefetch_0 ();
47146 endlabel2624: ;
47147 return 12;
47148 }
CPUFUNC(op_6b01_5)47149 unsigned long CPUFUNC(op_6b01_5)(uint32_t opcode) /* Bcc */
47150 {
47151 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47152 	OpcodeFamily = 55; CurrentInstrCycles = 8;
47153 {{	uint32_t src = srcreg;
47154 	if (!cctrue(11)) goto didnt_jump;
47155 	if (src & 1) {
47156 		last_addr_for_exception_3 = m68k_getpc() + 2;
47157 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47158 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2625;
47159 	}
47160 	m68k_incpc ((int32_t)src + 2);
47161 fill_prefetch_0 ();
47162 	return 10;
47163 didnt_jump:;
47164 }}m68k_incpc(2);
47165 fill_prefetch_2 ();
47166 endlabel2625: ;
47167 return 8;
47168 }
CPUFUNC(op_6bff_5)47169 unsigned long CPUFUNC(op_6bff_5)(uint32_t opcode) /* Bcc */
47170 {
47171 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47172 {	m68k_incpc(2);
47173 	if (!cctrue(11)) goto endlabel2626;
47174 		last_addr_for_exception_3 = m68k_getpc() + 2;
47175 		last_fault_for_exception_3 = m68k_getpc() + 1;
47176 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2626;
47177 {	int32_t src = get_ilong_prefetch(2);
47178 	if (!cctrue(11)) goto didnt_jump;
47179 	if (src & 1) {
47180 		last_addr_for_exception_3 = m68k_getpc() + 2;
47181 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47182 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2626;
47183 	}
47184 	m68k_incpc ((int32_t)src + 2);
47185 fill_prefetch_0 ();
47186 	return 10;
47187 didnt_jump:;
47188 }}m68k_incpc(6);
47189 fill_prefetch_0 ();
47190 endlabel2626: ;
47191 return 12;
47192 }
CPUFUNC(op_6c00_5)47193 unsigned long CPUFUNC(op_6c00_5)(uint32_t opcode) /* Bcc */
47194 {
47195 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47196 {{	int16_t src = get_iword_prefetch(2);
47197 	if (!cctrue(12)) goto didnt_jump;
47198 	if (src & 1) {
47199 		last_addr_for_exception_3 = m68k_getpc() + 2;
47200 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47201 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2627;
47202 	}
47203 	m68k_incpc ((int32_t)src + 2);
47204 fill_prefetch_0 ();
47205 	return 10;
47206 didnt_jump:;
47207 }}m68k_incpc(4);
47208 fill_prefetch_0 ();
47209 endlabel2627: ;
47210 return 12;
47211 }
CPUFUNC(op_6c01_5)47212 unsigned long CPUFUNC(op_6c01_5)(uint32_t opcode) /* Bcc */
47213 {
47214 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47215 	OpcodeFamily = 55; CurrentInstrCycles = 8;
47216 {{	uint32_t src = srcreg;
47217 	if (!cctrue(12)) goto didnt_jump;
47218 	if (src & 1) {
47219 		last_addr_for_exception_3 = m68k_getpc() + 2;
47220 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47221 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2628;
47222 	}
47223 	m68k_incpc ((int32_t)src + 2);
47224 fill_prefetch_0 ();
47225 	return 10;
47226 didnt_jump:;
47227 }}m68k_incpc(2);
47228 fill_prefetch_2 ();
47229 endlabel2628: ;
47230 return 8;
47231 }
CPUFUNC(op_6cff_5)47232 unsigned long CPUFUNC(op_6cff_5)(uint32_t opcode) /* Bcc */
47233 {
47234 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47235 {	m68k_incpc(2);
47236 	if (!cctrue(12)) goto endlabel2629;
47237 		last_addr_for_exception_3 = m68k_getpc() + 2;
47238 		last_fault_for_exception_3 = m68k_getpc() + 1;
47239 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2629;
47240 {	int32_t src = get_ilong_prefetch(2);
47241 	if (!cctrue(12)) goto didnt_jump;
47242 	if (src & 1) {
47243 		last_addr_for_exception_3 = m68k_getpc() + 2;
47244 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47245 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2629;
47246 	}
47247 	m68k_incpc ((int32_t)src + 2);
47248 fill_prefetch_0 ();
47249 	return 10;
47250 didnt_jump:;
47251 }}m68k_incpc(6);
47252 fill_prefetch_0 ();
47253 endlabel2629: ;
47254 return 12;
47255 }
CPUFUNC(op_6d00_5)47256 unsigned long CPUFUNC(op_6d00_5)(uint32_t opcode) /* Bcc */
47257 {
47258 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47259 {{	int16_t src = get_iword_prefetch(2);
47260 	if (!cctrue(13)) goto didnt_jump;
47261 	if (src & 1) {
47262 		last_addr_for_exception_3 = m68k_getpc() + 2;
47263 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47264 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2630;
47265 	}
47266 	m68k_incpc ((int32_t)src + 2);
47267 fill_prefetch_0 ();
47268 	return 10;
47269 didnt_jump:;
47270 }}m68k_incpc(4);
47271 fill_prefetch_0 ();
47272 endlabel2630: ;
47273 return 12;
47274 }
CPUFUNC(op_6d01_5)47275 unsigned long CPUFUNC(op_6d01_5)(uint32_t opcode) /* Bcc */
47276 {
47277 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47278 	OpcodeFamily = 55; CurrentInstrCycles = 8;
47279 {{	uint32_t src = srcreg;
47280 	if (!cctrue(13)) goto didnt_jump;
47281 	if (src & 1) {
47282 		last_addr_for_exception_3 = m68k_getpc() + 2;
47283 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47284 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2631;
47285 	}
47286 	m68k_incpc ((int32_t)src + 2);
47287 fill_prefetch_0 ();
47288 	return 10;
47289 didnt_jump:;
47290 }}m68k_incpc(2);
47291 fill_prefetch_2 ();
47292 endlabel2631: ;
47293 return 8;
47294 }
CPUFUNC(op_6dff_5)47295 unsigned long CPUFUNC(op_6dff_5)(uint32_t opcode) /* Bcc */
47296 {
47297 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47298 {	m68k_incpc(2);
47299 	if (!cctrue(13)) goto endlabel2632;
47300 		last_addr_for_exception_3 = m68k_getpc() + 2;
47301 		last_fault_for_exception_3 = m68k_getpc() + 1;
47302 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2632;
47303 {	int32_t src = get_ilong_prefetch(2);
47304 	if (!cctrue(13)) goto didnt_jump;
47305 	if (src & 1) {
47306 		last_addr_for_exception_3 = m68k_getpc() + 2;
47307 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47308 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2632;
47309 	}
47310 	m68k_incpc ((int32_t)src + 2);
47311 fill_prefetch_0 ();
47312 	return 10;
47313 didnt_jump:;
47314 }}m68k_incpc(6);
47315 fill_prefetch_0 ();
47316 endlabel2632: ;
47317 return 12;
47318 }
CPUFUNC(op_6e00_5)47319 unsigned long CPUFUNC(op_6e00_5)(uint32_t opcode) /* Bcc */
47320 {
47321 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47322 {{	int16_t src = get_iword_prefetch(2);
47323 	if (!cctrue(14)) goto didnt_jump;
47324 	if (src & 1) {
47325 		last_addr_for_exception_3 = m68k_getpc() + 2;
47326 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47327 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2633;
47328 	}
47329 	m68k_incpc ((int32_t)src + 2);
47330 fill_prefetch_0 ();
47331 	return 10;
47332 didnt_jump:;
47333 }}m68k_incpc(4);
47334 fill_prefetch_0 ();
47335 endlabel2633: ;
47336 return 12;
47337 }
CPUFUNC(op_6e01_5)47338 unsigned long CPUFUNC(op_6e01_5)(uint32_t opcode) /* Bcc */
47339 {
47340 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47341 	OpcodeFamily = 55; CurrentInstrCycles = 8;
47342 {{	uint32_t src = srcreg;
47343 	if (!cctrue(14)) goto didnt_jump;
47344 	if (src & 1) {
47345 		last_addr_for_exception_3 = m68k_getpc() + 2;
47346 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47347 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2634;
47348 	}
47349 	m68k_incpc ((int32_t)src + 2);
47350 fill_prefetch_0 ();
47351 	return 10;
47352 didnt_jump:;
47353 }}m68k_incpc(2);
47354 fill_prefetch_2 ();
47355 endlabel2634: ;
47356 return 8;
47357 }
CPUFUNC(op_6eff_5)47358 unsigned long CPUFUNC(op_6eff_5)(uint32_t opcode) /* Bcc */
47359 {
47360 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47361 {	m68k_incpc(2);
47362 	if (!cctrue(14)) goto endlabel2635;
47363 		last_addr_for_exception_3 = m68k_getpc() + 2;
47364 		last_fault_for_exception_3 = m68k_getpc() + 1;
47365 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2635;
47366 {	int32_t src = get_ilong_prefetch(2);
47367 	if (!cctrue(14)) goto didnt_jump;
47368 	if (src & 1) {
47369 		last_addr_for_exception_3 = m68k_getpc() + 2;
47370 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47371 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2635;
47372 	}
47373 	m68k_incpc ((int32_t)src + 2);
47374 fill_prefetch_0 ();
47375 	return 10;
47376 didnt_jump:;
47377 }}m68k_incpc(6);
47378 fill_prefetch_0 ();
47379 endlabel2635: ;
47380 return 12;
47381 }
CPUFUNC(op_6f00_5)47382 unsigned long CPUFUNC(op_6f00_5)(uint32_t opcode) /* Bcc */
47383 {
47384 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47385 {{	int16_t src = get_iword_prefetch(2);
47386 	if (!cctrue(15)) goto didnt_jump;
47387 	if (src & 1) {
47388 		last_addr_for_exception_3 = m68k_getpc() + 2;
47389 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47390 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2636;
47391 	}
47392 	m68k_incpc ((int32_t)src + 2);
47393 fill_prefetch_0 ();
47394 	return 10;
47395 didnt_jump:;
47396 }}m68k_incpc(4);
47397 fill_prefetch_0 ();
47398 endlabel2636: ;
47399 return 12;
47400 }
CPUFUNC(op_6f01_5)47401 unsigned long CPUFUNC(op_6f01_5)(uint32_t opcode) /* Bcc */
47402 {
47403 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47404 	OpcodeFamily = 55; CurrentInstrCycles = 8;
47405 {{	uint32_t src = srcreg;
47406 	if (!cctrue(15)) goto didnt_jump;
47407 	if (src & 1) {
47408 		last_addr_for_exception_3 = m68k_getpc() + 2;
47409 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47410 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2637;
47411 	}
47412 	m68k_incpc ((int32_t)src + 2);
47413 fill_prefetch_0 ();
47414 	return 10;
47415 didnt_jump:;
47416 }}m68k_incpc(2);
47417 fill_prefetch_2 ();
47418 endlabel2637: ;
47419 return 8;
47420 }
CPUFUNC(op_6fff_5)47421 unsigned long CPUFUNC(op_6fff_5)(uint32_t opcode) /* Bcc */
47422 {
47423 	OpcodeFamily = 55; CurrentInstrCycles = 12;
47424 {	m68k_incpc(2);
47425 	if (!cctrue(15)) goto endlabel2638;
47426 		last_addr_for_exception_3 = m68k_getpc() + 2;
47427 		last_fault_for_exception_3 = m68k_getpc() + 1;
47428 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2638;
47429 {	int32_t src = get_ilong_prefetch(2);
47430 	if (!cctrue(15)) goto didnt_jump;
47431 	if (src & 1) {
47432 		last_addr_for_exception_3 = m68k_getpc() + 2;
47433 		last_fault_for_exception_3 = m68k_getpc() + 2 + (int32_t)src;
47434 		last_op_for_exception_3 = opcode; Exception(3,0,M68000_EXC_SRC_CPU); goto endlabel2638;
47435 	}
47436 	m68k_incpc ((int32_t)src + 2);
47437 fill_prefetch_0 ();
47438 	return 10;
47439 didnt_jump:;
47440 }}m68k_incpc(6);
47441 fill_prefetch_0 ();
47442 endlabel2638: ;
47443 return 12;
47444 }
CPUFUNC(op_7000_5)47445 unsigned long CPUFUNC(op_7000_5)(uint32_t opcode) /* MOVE */
47446 {
47447 	uint32_t srcreg = (int32_t)(int8_t)(opcode & 255);
47448 	uint32_t dstreg = (opcode >> 9) & 7;
47449 	OpcodeFamily = 30; CurrentInstrCycles = 4;
47450 {{	uint32_t src = srcreg;
47451 {	CLEAR_CZNV;
47452 	SET_ZFLG (((int32_t)(src)) == 0);
47453 	SET_NFLG (((int32_t)(src)) < 0);
47454 	m68k_dreg(regs, dstreg) = (src);
47455 }}}m68k_incpc(2);
47456 fill_prefetch_2 ();
47457 return 4;
47458 }
CPUFUNC(op_8000_5)47459 unsigned long CPUFUNC(op_8000_5)(uint32_t opcode) /* OR */
47460 {
47461 	uint32_t srcreg = (opcode & 7);
47462 	uint32_t dstreg = (opcode >> 9) & 7;
47463 	OpcodeFamily = 1; CurrentInstrCycles = 4;
47464 {{	int8_t src = m68k_dreg(regs, srcreg);
47465 {	int8_t dst = m68k_dreg(regs, dstreg);
47466 	src |= dst;
47467 	CLEAR_CZNV;
47468 	SET_ZFLG (((int8_t)(src)) == 0);
47469 	SET_NFLG (((int8_t)(src)) < 0);
47470 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47471 }}}m68k_incpc(2);
47472 fill_prefetch_2 ();
47473 return 4;
47474 }
CPUFUNC(op_8010_5)47475 unsigned long CPUFUNC(op_8010_5)(uint32_t opcode) /* OR */
47476 {
47477 	uint32_t srcreg = (opcode & 7);
47478 	uint32_t dstreg = (opcode >> 9) & 7;
47479 	OpcodeFamily = 1; CurrentInstrCycles = 8;
47480 {{	uint32_t srca = m68k_areg(regs, srcreg);
47481 {	int8_t src = m68k_read_memory_8(srca);
47482 {	int8_t dst = m68k_dreg(regs, dstreg);
47483 	src |= dst;
47484 	CLEAR_CZNV;
47485 	SET_ZFLG (((int8_t)(src)) == 0);
47486 	SET_NFLG (((int8_t)(src)) < 0);
47487 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47488 }}}}m68k_incpc(2);
47489 fill_prefetch_2 ();
47490 return 8;
47491 }
CPUFUNC(op_8018_5)47492 unsigned long CPUFUNC(op_8018_5)(uint32_t opcode) /* OR */
47493 {
47494 	uint32_t srcreg = (opcode & 7);
47495 	uint32_t dstreg = (opcode >> 9) & 7;
47496 	OpcodeFamily = 1; CurrentInstrCycles = 8;
47497 {{	uint32_t srca = m68k_areg(regs, srcreg);
47498 {	int8_t src = m68k_read_memory_8(srca);
47499 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
47500 {	int8_t dst = m68k_dreg(regs, dstreg);
47501 	src |= dst;
47502 	CLEAR_CZNV;
47503 	SET_ZFLG (((int8_t)(src)) == 0);
47504 	SET_NFLG (((int8_t)(src)) < 0);
47505 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47506 }}}}m68k_incpc(2);
47507 fill_prefetch_2 ();
47508 return 8;
47509 }
CPUFUNC(op_8020_5)47510 unsigned long CPUFUNC(op_8020_5)(uint32_t opcode) /* OR */
47511 {
47512 	uint32_t srcreg = (opcode & 7);
47513 	uint32_t dstreg = (opcode >> 9) & 7;
47514 	OpcodeFamily = 1; CurrentInstrCycles = 10;
47515 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
47516 {	int8_t src = m68k_read_memory_8(srca);
47517 	m68k_areg (regs, srcreg) = srca;
47518 {	int8_t dst = m68k_dreg(regs, dstreg);
47519 	src |= dst;
47520 	CLEAR_CZNV;
47521 	SET_ZFLG (((int8_t)(src)) == 0);
47522 	SET_NFLG (((int8_t)(src)) < 0);
47523 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47524 }}}}m68k_incpc(2);
47525 fill_prefetch_2 ();
47526 return 10;
47527 }
CPUFUNC(op_8028_5)47528 unsigned long CPUFUNC(op_8028_5)(uint32_t opcode) /* OR */
47529 {
47530 	uint32_t srcreg = (opcode & 7);
47531 	uint32_t dstreg = (opcode >> 9) & 7;
47532 	OpcodeFamily = 1; CurrentInstrCycles = 12;
47533 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
47534 {	int8_t src = m68k_read_memory_8(srca);
47535 {	int8_t dst = m68k_dreg(regs, dstreg);
47536 	src |= dst;
47537 	CLEAR_CZNV;
47538 	SET_ZFLG (((int8_t)(src)) == 0);
47539 	SET_NFLG (((int8_t)(src)) < 0);
47540 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47541 }}}}m68k_incpc(4);
47542 fill_prefetch_0 ();
47543 return 12;
47544 }
CPUFUNC(op_8030_5)47545 unsigned long CPUFUNC(op_8030_5)(uint32_t opcode) /* OR */
47546 {
47547 	uint32_t srcreg = (opcode & 7);
47548 	uint32_t dstreg = (opcode >> 9) & 7;
47549 	OpcodeFamily = 1; CurrentInstrCycles = 14;
47550 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
47551 	BusCyclePenalty += 2;
47552 {	int8_t src = m68k_read_memory_8(srca);
47553 {	int8_t dst = m68k_dreg(regs, dstreg);
47554 	src |= dst;
47555 	CLEAR_CZNV;
47556 	SET_ZFLG (((int8_t)(src)) == 0);
47557 	SET_NFLG (((int8_t)(src)) < 0);
47558 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47559 }}}}m68k_incpc(4);
47560 fill_prefetch_0 ();
47561 return 14;
47562 }
CPUFUNC(op_8038_5)47563 unsigned long CPUFUNC(op_8038_5)(uint32_t opcode) /* OR */
47564 {
47565 	uint32_t dstreg = (opcode >> 9) & 7;
47566 	OpcodeFamily = 1; CurrentInstrCycles = 12;
47567 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
47568 {	int8_t src = m68k_read_memory_8(srca);
47569 {	int8_t dst = m68k_dreg(regs, dstreg);
47570 	src |= dst;
47571 	CLEAR_CZNV;
47572 	SET_ZFLG (((int8_t)(src)) == 0);
47573 	SET_NFLG (((int8_t)(src)) < 0);
47574 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47575 }}}}m68k_incpc(4);
47576 fill_prefetch_0 ();
47577 return 12;
47578 }
CPUFUNC(op_8039_5)47579 unsigned long CPUFUNC(op_8039_5)(uint32_t opcode) /* OR */
47580 {
47581 	uint32_t dstreg = (opcode >> 9) & 7;
47582 	OpcodeFamily = 1; CurrentInstrCycles = 16;
47583 {{	uint32_t srca = get_ilong_prefetch(2);
47584 {	int8_t src = m68k_read_memory_8(srca);
47585 {	int8_t dst = m68k_dreg(regs, dstreg);
47586 	src |= dst;
47587 	CLEAR_CZNV;
47588 	SET_ZFLG (((int8_t)(src)) == 0);
47589 	SET_NFLG (((int8_t)(src)) < 0);
47590 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47591 }}}}m68k_incpc(6);
47592 fill_prefetch_0 ();
47593 return 16;
47594 }
CPUFUNC(op_803a_5)47595 unsigned long CPUFUNC(op_803a_5)(uint32_t opcode) /* OR */
47596 {
47597 	uint32_t dstreg = (opcode >> 9) & 7;
47598 	OpcodeFamily = 1; CurrentInstrCycles = 12;
47599 {{	uint32_t srca = m68k_getpc () + 2;
47600 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
47601 {	int8_t src = m68k_read_memory_8(srca);
47602 {	int8_t dst = m68k_dreg(regs, dstreg);
47603 	src |= dst;
47604 	CLEAR_CZNV;
47605 	SET_ZFLG (((int8_t)(src)) == 0);
47606 	SET_NFLG (((int8_t)(src)) < 0);
47607 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47608 }}}}m68k_incpc(4);
47609 fill_prefetch_0 ();
47610 return 12;
47611 }
CPUFUNC(op_803b_5)47612 unsigned long CPUFUNC(op_803b_5)(uint32_t opcode) /* OR */
47613 {
47614 	uint32_t dstreg = (opcode >> 9) & 7;
47615 	OpcodeFamily = 1; CurrentInstrCycles = 14;
47616 {{	uint32_t tmppc = m68k_getpc() + 2;
47617 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
47618 	BusCyclePenalty += 2;
47619 {	int8_t src = m68k_read_memory_8(srca);
47620 {	int8_t dst = m68k_dreg(regs, dstreg);
47621 	src |= dst;
47622 	CLEAR_CZNV;
47623 	SET_ZFLG (((int8_t)(src)) == 0);
47624 	SET_NFLG (((int8_t)(src)) < 0);
47625 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47626 }}}}m68k_incpc(4);
47627 fill_prefetch_0 ();
47628 return 14;
47629 }
CPUFUNC(op_803c_5)47630 unsigned long CPUFUNC(op_803c_5)(uint32_t opcode) /* OR */
47631 {
47632 	uint32_t dstreg = (opcode >> 9) & 7;
47633 	OpcodeFamily = 1; CurrentInstrCycles = 8;
47634 {{	int8_t src = get_ibyte_prefetch(2);
47635 {	int8_t dst = m68k_dreg(regs, dstreg);
47636 	src |= dst;
47637 	CLEAR_CZNV;
47638 	SET_ZFLG (((int8_t)(src)) == 0);
47639 	SET_NFLG (((int8_t)(src)) < 0);
47640 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
47641 }}}m68k_incpc(4);
47642 fill_prefetch_0 ();
47643 return 8;
47644 }
CPUFUNC(op_8040_5)47645 unsigned long CPUFUNC(op_8040_5)(uint32_t opcode) /* OR */
47646 {
47647 	uint32_t srcreg = (opcode & 7);
47648 	uint32_t dstreg = (opcode >> 9) & 7;
47649 	OpcodeFamily = 1; CurrentInstrCycles = 4;
47650 {{	int16_t src = m68k_dreg(regs, srcreg);
47651 {	int16_t dst = m68k_dreg(regs, dstreg);
47652 	src |= dst;
47653 	CLEAR_CZNV;
47654 	SET_ZFLG (((int16_t)(src)) == 0);
47655 	SET_NFLG (((int16_t)(src)) < 0);
47656 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47657 }}}m68k_incpc(2);
47658 fill_prefetch_2 ();
47659 return 4;
47660 }
CPUFUNC(op_8050_5)47661 unsigned long CPUFUNC(op_8050_5)(uint32_t opcode) /* OR */
47662 {
47663 	uint32_t srcreg = (opcode & 7);
47664 	uint32_t dstreg = (opcode >> 9) & 7;
47665 	OpcodeFamily = 1; CurrentInstrCycles = 8;
47666 {{	uint32_t srca = m68k_areg(regs, srcreg);
47667 	if ((srca & 1) != 0) {
47668 		last_fault_for_exception_3 = srca;
47669 		last_op_for_exception_3 = opcode;
47670 		last_addr_for_exception_3 = m68k_getpc() + 2;
47671 		Exception(3, 0, M68000_EXC_SRC_CPU);
47672 		goto endlabel2652;
47673 	}
47674 {{	int16_t src = m68k_read_memory_16(srca);
47675 {	int16_t dst = m68k_dreg(regs, dstreg);
47676 	src |= dst;
47677 	CLEAR_CZNV;
47678 	SET_ZFLG (((int16_t)(src)) == 0);
47679 	SET_NFLG (((int16_t)(src)) < 0);
47680 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47681 }}}}}m68k_incpc(2);
47682 fill_prefetch_2 ();
47683 endlabel2652: ;
47684 return 8;
47685 }
CPUFUNC(op_8058_5)47686 unsigned long CPUFUNC(op_8058_5)(uint32_t opcode) /* OR */
47687 {
47688 	uint32_t srcreg = (opcode & 7);
47689 	uint32_t dstreg = (opcode >> 9) & 7;
47690 	OpcodeFamily = 1; CurrentInstrCycles = 8;
47691 {{	uint32_t srca = m68k_areg(regs, srcreg);
47692 	if ((srca & 1) != 0) {
47693 		last_fault_for_exception_3 = srca;
47694 		last_op_for_exception_3 = opcode;
47695 		last_addr_for_exception_3 = m68k_getpc() + 2;
47696 		Exception(3, 0, M68000_EXC_SRC_CPU);
47697 		goto endlabel2653;
47698 	}
47699 {{	int16_t src = m68k_read_memory_16(srca);
47700 	m68k_areg(regs, srcreg) += 2;
47701 {	int16_t dst = m68k_dreg(regs, dstreg);
47702 	src |= dst;
47703 	CLEAR_CZNV;
47704 	SET_ZFLG (((int16_t)(src)) == 0);
47705 	SET_NFLG (((int16_t)(src)) < 0);
47706 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47707 }}}}}m68k_incpc(2);
47708 fill_prefetch_2 ();
47709 endlabel2653: ;
47710 return 8;
47711 }
CPUFUNC(op_8060_5)47712 unsigned long CPUFUNC(op_8060_5)(uint32_t opcode) /* OR */
47713 {
47714 	uint32_t srcreg = (opcode & 7);
47715 	uint32_t dstreg = (opcode >> 9) & 7;
47716 	OpcodeFamily = 1; CurrentInstrCycles = 10;
47717 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
47718 	if ((srca & 1) != 0) {
47719 		last_fault_for_exception_3 = srca;
47720 		last_op_for_exception_3 = opcode;
47721 		last_addr_for_exception_3 = m68k_getpc() + 2;
47722 		Exception(3, 0, M68000_EXC_SRC_CPU);
47723 		goto endlabel2654;
47724 	}
47725 {{	int16_t src = m68k_read_memory_16(srca);
47726 	m68k_areg (regs, srcreg) = srca;
47727 {	int16_t dst = m68k_dreg(regs, dstreg);
47728 	src |= dst;
47729 	CLEAR_CZNV;
47730 	SET_ZFLG (((int16_t)(src)) == 0);
47731 	SET_NFLG (((int16_t)(src)) < 0);
47732 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47733 }}}}}m68k_incpc(2);
47734 fill_prefetch_2 ();
47735 endlabel2654: ;
47736 return 10;
47737 }
CPUFUNC(op_8068_5)47738 unsigned long CPUFUNC(op_8068_5)(uint32_t opcode) /* OR */
47739 {
47740 	uint32_t srcreg = (opcode & 7);
47741 	uint32_t dstreg = (opcode >> 9) & 7;
47742 	OpcodeFamily = 1; CurrentInstrCycles = 12;
47743 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
47744 	if ((srca & 1) != 0) {
47745 		last_fault_for_exception_3 = srca;
47746 		last_op_for_exception_3 = opcode;
47747 		last_addr_for_exception_3 = m68k_getpc() + 4;
47748 		Exception(3, 0, M68000_EXC_SRC_CPU);
47749 		goto endlabel2655;
47750 	}
47751 {{	int16_t src = m68k_read_memory_16(srca);
47752 {	int16_t dst = m68k_dreg(regs, dstreg);
47753 	src |= dst;
47754 	CLEAR_CZNV;
47755 	SET_ZFLG (((int16_t)(src)) == 0);
47756 	SET_NFLG (((int16_t)(src)) < 0);
47757 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47758 }}}}}m68k_incpc(4);
47759 fill_prefetch_0 ();
47760 endlabel2655: ;
47761 return 12;
47762 }
CPUFUNC(op_8070_5)47763 unsigned long CPUFUNC(op_8070_5)(uint32_t opcode) /* OR */
47764 {
47765 	uint32_t srcreg = (opcode & 7);
47766 	uint32_t dstreg = (opcode >> 9) & 7;
47767 	OpcodeFamily = 1; CurrentInstrCycles = 14;
47768 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
47769 	BusCyclePenalty += 2;
47770 	if ((srca & 1) != 0) {
47771 		last_fault_for_exception_3 = srca;
47772 		last_op_for_exception_3 = opcode;
47773 		last_addr_for_exception_3 = m68k_getpc() + 4;
47774 		Exception(3, 0, M68000_EXC_SRC_CPU);
47775 		goto endlabel2656;
47776 	}
47777 {{	int16_t src = m68k_read_memory_16(srca);
47778 {	int16_t dst = m68k_dreg(regs, dstreg);
47779 	src |= dst;
47780 	CLEAR_CZNV;
47781 	SET_ZFLG (((int16_t)(src)) == 0);
47782 	SET_NFLG (((int16_t)(src)) < 0);
47783 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47784 }}}}}m68k_incpc(4);
47785 fill_prefetch_0 ();
47786 endlabel2656: ;
47787 return 14;
47788 }
CPUFUNC(op_8078_5)47789 unsigned long CPUFUNC(op_8078_5)(uint32_t opcode) /* OR */
47790 {
47791 	uint32_t dstreg = (opcode >> 9) & 7;
47792 	OpcodeFamily = 1; CurrentInstrCycles = 12;
47793 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
47794 	if ((srca & 1) != 0) {
47795 		last_fault_for_exception_3 = srca;
47796 		last_op_for_exception_3 = opcode;
47797 		last_addr_for_exception_3 = m68k_getpc() + 4;
47798 		Exception(3, 0, M68000_EXC_SRC_CPU);
47799 		goto endlabel2657;
47800 	}
47801 {{	int16_t src = m68k_read_memory_16(srca);
47802 {	int16_t dst = m68k_dreg(regs, dstreg);
47803 	src |= dst;
47804 	CLEAR_CZNV;
47805 	SET_ZFLG (((int16_t)(src)) == 0);
47806 	SET_NFLG (((int16_t)(src)) < 0);
47807 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47808 }}}}}m68k_incpc(4);
47809 fill_prefetch_0 ();
47810 endlabel2657: ;
47811 return 12;
47812 }
CPUFUNC(op_8079_5)47813 unsigned long CPUFUNC(op_8079_5)(uint32_t opcode) /* OR */
47814 {
47815 	uint32_t dstreg = (opcode >> 9) & 7;
47816 	OpcodeFamily = 1; CurrentInstrCycles = 16;
47817 {{	uint32_t srca = get_ilong_prefetch(2);
47818 	if ((srca & 1) != 0) {
47819 		last_fault_for_exception_3 = srca;
47820 		last_op_for_exception_3 = opcode;
47821 		last_addr_for_exception_3 = m68k_getpc() + 6;
47822 		Exception(3, 0, M68000_EXC_SRC_CPU);
47823 		goto endlabel2658;
47824 	}
47825 {{	int16_t src = m68k_read_memory_16(srca);
47826 {	int16_t dst = m68k_dreg(regs, dstreg);
47827 	src |= dst;
47828 	CLEAR_CZNV;
47829 	SET_ZFLG (((int16_t)(src)) == 0);
47830 	SET_NFLG (((int16_t)(src)) < 0);
47831 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47832 }}}}}m68k_incpc(6);
47833 fill_prefetch_0 ();
47834 endlabel2658: ;
47835 return 16;
47836 }
CPUFUNC(op_807a_5)47837 unsigned long CPUFUNC(op_807a_5)(uint32_t opcode) /* OR */
47838 {
47839 	uint32_t dstreg = (opcode >> 9) & 7;
47840 	OpcodeFamily = 1; CurrentInstrCycles = 12;
47841 {{	uint32_t srca = m68k_getpc () + 2;
47842 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
47843 	if ((srca & 1) != 0) {
47844 		last_fault_for_exception_3 = srca;
47845 		last_op_for_exception_3 = opcode;
47846 		last_addr_for_exception_3 = m68k_getpc() + 4;
47847 		Exception(3, 0, M68000_EXC_SRC_CPU);
47848 		goto endlabel2659;
47849 	}
47850 {{	int16_t src = m68k_read_memory_16(srca);
47851 {	int16_t dst = m68k_dreg(regs, dstreg);
47852 	src |= dst;
47853 	CLEAR_CZNV;
47854 	SET_ZFLG (((int16_t)(src)) == 0);
47855 	SET_NFLG (((int16_t)(src)) < 0);
47856 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47857 }}}}}m68k_incpc(4);
47858 fill_prefetch_0 ();
47859 endlabel2659: ;
47860 return 12;
47861 }
CPUFUNC(op_807b_5)47862 unsigned long CPUFUNC(op_807b_5)(uint32_t opcode) /* OR */
47863 {
47864 	uint32_t dstreg = (opcode >> 9) & 7;
47865 	OpcodeFamily = 1; CurrentInstrCycles = 14;
47866 {{	uint32_t tmppc = m68k_getpc() + 2;
47867 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
47868 	BusCyclePenalty += 2;
47869 	if ((srca & 1) != 0) {
47870 		last_fault_for_exception_3 = srca;
47871 		last_op_for_exception_3 = opcode;
47872 		last_addr_for_exception_3 = m68k_getpc() + 4;
47873 		Exception(3, 0, M68000_EXC_SRC_CPU);
47874 		goto endlabel2660;
47875 	}
47876 {{	int16_t src = m68k_read_memory_16(srca);
47877 {	int16_t dst = m68k_dreg(regs, dstreg);
47878 	src |= dst;
47879 	CLEAR_CZNV;
47880 	SET_ZFLG (((int16_t)(src)) == 0);
47881 	SET_NFLG (((int16_t)(src)) < 0);
47882 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47883 }}}}}m68k_incpc(4);
47884 fill_prefetch_0 ();
47885 endlabel2660: ;
47886 return 14;
47887 }
CPUFUNC(op_807c_5)47888 unsigned long CPUFUNC(op_807c_5)(uint32_t opcode) /* OR */
47889 {
47890 	uint32_t dstreg = (opcode >> 9) & 7;
47891 	OpcodeFamily = 1; CurrentInstrCycles = 8;
47892 {{	int16_t src = get_iword_prefetch(2);
47893 {	int16_t dst = m68k_dreg(regs, dstreg);
47894 	src |= dst;
47895 	CLEAR_CZNV;
47896 	SET_ZFLG (((int16_t)(src)) == 0);
47897 	SET_NFLG (((int16_t)(src)) < 0);
47898 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
47899 }}}m68k_incpc(4);
47900 fill_prefetch_0 ();
47901 return 8;
47902 }
CPUFUNC(op_8080_5)47903 unsigned long CPUFUNC(op_8080_5)(uint32_t opcode) /* OR */
47904 {
47905 	uint32_t srcreg = (opcode & 7);
47906 	uint32_t dstreg = (opcode >> 9) & 7;
47907 	OpcodeFamily = 1; CurrentInstrCycles = 8;
47908 {{	int32_t src = m68k_dreg(regs, srcreg);
47909 {	int32_t dst = m68k_dreg(regs, dstreg);
47910 	src |= dst;
47911 	CLEAR_CZNV;
47912 	SET_ZFLG (((int32_t)(src)) == 0);
47913 	SET_NFLG (((int32_t)(src)) < 0);
47914 	m68k_dreg(regs, dstreg) = (src);
47915 }}}m68k_incpc(2);
47916 fill_prefetch_2 ();
47917 return 8;
47918 }
CPUFUNC(op_8090_5)47919 unsigned long CPUFUNC(op_8090_5)(uint32_t opcode) /* OR */
47920 {
47921 	uint32_t srcreg = (opcode & 7);
47922 	uint32_t dstreg = (opcode >> 9) & 7;
47923 	OpcodeFamily = 1; CurrentInstrCycles = 14;
47924 {{	uint32_t srca = m68k_areg(regs, srcreg);
47925 	if ((srca & 1) != 0) {
47926 		last_fault_for_exception_3 = srca;
47927 		last_op_for_exception_3 = opcode;
47928 		last_addr_for_exception_3 = m68k_getpc() + 2;
47929 		Exception(3, 0, M68000_EXC_SRC_CPU);
47930 		goto endlabel2663;
47931 	}
47932 {{	int32_t src = m68k_read_memory_32(srca);
47933 {	int32_t dst = m68k_dreg(regs, dstreg);
47934 	src |= dst;
47935 	CLEAR_CZNV;
47936 	SET_ZFLG (((int32_t)(src)) == 0);
47937 	SET_NFLG (((int32_t)(src)) < 0);
47938 	m68k_dreg(regs, dstreg) = (src);
47939 }}}}}m68k_incpc(2);
47940 fill_prefetch_2 ();
47941 endlabel2663: ;
47942 return 14;
47943 }
CPUFUNC(op_8098_5)47944 unsigned long CPUFUNC(op_8098_5)(uint32_t opcode) /* OR */
47945 {
47946 	uint32_t srcreg = (opcode & 7);
47947 	uint32_t dstreg = (opcode >> 9) & 7;
47948 	OpcodeFamily = 1; CurrentInstrCycles = 14;
47949 {{	uint32_t srca = m68k_areg(regs, srcreg);
47950 	if ((srca & 1) != 0) {
47951 		last_fault_for_exception_3 = srca;
47952 		last_op_for_exception_3 = opcode;
47953 		last_addr_for_exception_3 = m68k_getpc() + 2;
47954 		Exception(3, 0, M68000_EXC_SRC_CPU);
47955 		goto endlabel2664;
47956 	}
47957 {{	int32_t src = m68k_read_memory_32(srca);
47958 	m68k_areg(regs, srcreg) += 4;
47959 {	int32_t dst = m68k_dreg(regs, dstreg);
47960 	src |= dst;
47961 	CLEAR_CZNV;
47962 	SET_ZFLG (((int32_t)(src)) == 0);
47963 	SET_NFLG (((int32_t)(src)) < 0);
47964 	m68k_dreg(regs, dstreg) = (src);
47965 }}}}}m68k_incpc(2);
47966 fill_prefetch_2 ();
47967 endlabel2664: ;
47968 return 14;
47969 }
CPUFUNC(op_80a0_5)47970 unsigned long CPUFUNC(op_80a0_5)(uint32_t opcode) /* OR */
47971 {
47972 	uint32_t srcreg = (opcode & 7);
47973 	uint32_t dstreg = (opcode >> 9) & 7;
47974 	OpcodeFamily = 1; CurrentInstrCycles = 16;
47975 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
47976 	if ((srca & 1) != 0) {
47977 		last_fault_for_exception_3 = srca;
47978 		last_op_for_exception_3 = opcode;
47979 		last_addr_for_exception_3 = m68k_getpc() + 2;
47980 		Exception(3, 0, M68000_EXC_SRC_CPU);
47981 		goto endlabel2665;
47982 	}
47983 {{	int32_t src = m68k_read_memory_32(srca);
47984 	m68k_areg (regs, srcreg) = srca;
47985 {	int32_t dst = m68k_dreg(regs, dstreg);
47986 	src |= dst;
47987 	CLEAR_CZNV;
47988 	SET_ZFLG (((int32_t)(src)) == 0);
47989 	SET_NFLG (((int32_t)(src)) < 0);
47990 	m68k_dreg(regs, dstreg) = (src);
47991 }}}}}m68k_incpc(2);
47992 fill_prefetch_2 ();
47993 endlabel2665: ;
47994 return 16;
47995 }
CPUFUNC(op_80a8_5)47996 unsigned long CPUFUNC(op_80a8_5)(uint32_t opcode) /* OR */
47997 {
47998 	uint32_t srcreg = (opcode & 7);
47999 	uint32_t dstreg = (opcode >> 9) & 7;
48000 	OpcodeFamily = 1; CurrentInstrCycles = 18;
48001 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
48002 	if ((srca & 1) != 0) {
48003 		last_fault_for_exception_3 = srca;
48004 		last_op_for_exception_3 = opcode;
48005 		last_addr_for_exception_3 = m68k_getpc() + 4;
48006 		Exception(3, 0, M68000_EXC_SRC_CPU);
48007 		goto endlabel2666;
48008 	}
48009 {{	int32_t src = m68k_read_memory_32(srca);
48010 {	int32_t dst = m68k_dreg(regs, dstreg);
48011 	src |= dst;
48012 	CLEAR_CZNV;
48013 	SET_ZFLG (((int32_t)(src)) == 0);
48014 	SET_NFLG (((int32_t)(src)) < 0);
48015 	m68k_dreg(regs, dstreg) = (src);
48016 }}}}}m68k_incpc(4);
48017 fill_prefetch_0 ();
48018 endlabel2666: ;
48019 return 18;
48020 }
CPUFUNC(op_80b0_5)48021 unsigned long CPUFUNC(op_80b0_5)(uint32_t opcode) /* OR */
48022 {
48023 	uint32_t srcreg = (opcode & 7);
48024 	uint32_t dstreg = (opcode >> 9) & 7;
48025 	OpcodeFamily = 1; CurrentInstrCycles = 20;
48026 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
48027 	BusCyclePenalty += 2;
48028 	if ((srca & 1) != 0) {
48029 		last_fault_for_exception_3 = srca;
48030 		last_op_for_exception_3 = opcode;
48031 		last_addr_for_exception_3 = m68k_getpc() + 4;
48032 		Exception(3, 0, M68000_EXC_SRC_CPU);
48033 		goto endlabel2667;
48034 	}
48035 {{	int32_t src = m68k_read_memory_32(srca);
48036 {	int32_t dst = m68k_dreg(regs, dstreg);
48037 	src |= dst;
48038 	CLEAR_CZNV;
48039 	SET_ZFLG (((int32_t)(src)) == 0);
48040 	SET_NFLG (((int32_t)(src)) < 0);
48041 	m68k_dreg(regs, dstreg) = (src);
48042 }}}}}m68k_incpc(4);
48043 fill_prefetch_0 ();
48044 endlabel2667: ;
48045 return 20;
48046 }
CPUFUNC(op_80b8_5)48047 unsigned long CPUFUNC(op_80b8_5)(uint32_t opcode) /* OR */
48048 {
48049 	uint32_t dstreg = (opcode >> 9) & 7;
48050 	OpcodeFamily = 1; CurrentInstrCycles = 18;
48051 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
48052 	if ((srca & 1) != 0) {
48053 		last_fault_for_exception_3 = srca;
48054 		last_op_for_exception_3 = opcode;
48055 		last_addr_for_exception_3 = m68k_getpc() + 4;
48056 		Exception(3, 0, M68000_EXC_SRC_CPU);
48057 		goto endlabel2668;
48058 	}
48059 {{	int32_t src = m68k_read_memory_32(srca);
48060 {	int32_t dst = m68k_dreg(regs, dstreg);
48061 	src |= dst;
48062 	CLEAR_CZNV;
48063 	SET_ZFLG (((int32_t)(src)) == 0);
48064 	SET_NFLG (((int32_t)(src)) < 0);
48065 	m68k_dreg(regs, dstreg) = (src);
48066 }}}}}m68k_incpc(4);
48067 fill_prefetch_0 ();
48068 endlabel2668: ;
48069 return 18;
48070 }
CPUFUNC(op_80b9_5)48071 unsigned long CPUFUNC(op_80b9_5)(uint32_t opcode) /* OR */
48072 {
48073 	uint32_t dstreg = (opcode >> 9) & 7;
48074 	OpcodeFamily = 1; CurrentInstrCycles = 22;
48075 {{	uint32_t srca = get_ilong_prefetch(2);
48076 	if ((srca & 1) != 0) {
48077 		last_fault_for_exception_3 = srca;
48078 		last_op_for_exception_3 = opcode;
48079 		last_addr_for_exception_3 = m68k_getpc() + 6;
48080 		Exception(3, 0, M68000_EXC_SRC_CPU);
48081 		goto endlabel2669;
48082 	}
48083 {{	int32_t src = m68k_read_memory_32(srca);
48084 {	int32_t dst = m68k_dreg(regs, dstreg);
48085 	src |= dst;
48086 	CLEAR_CZNV;
48087 	SET_ZFLG (((int32_t)(src)) == 0);
48088 	SET_NFLG (((int32_t)(src)) < 0);
48089 	m68k_dreg(regs, dstreg) = (src);
48090 }}}}}m68k_incpc(6);
48091 fill_prefetch_0 ();
48092 endlabel2669: ;
48093 return 22;
48094 }
CPUFUNC(op_80ba_5)48095 unsigned long CPUFUNC(op_80ba_5)(uint32_t opcode) /* OR */
48096 {
48097 	uint32_t dstreg = (opcode >> 9) & 7;
48098 	OpcodeFamily = 1; CurrentInstrCycles = 18;
48099 {{	uint32_t srca = m68k_getpc () + 2;
48100 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
48101 	if ((srca & 1) != 0) {
48102 		last_fault_for_exception_3 = srca;
48103 		last_op_for_exception_3 = opcode;
48104 		last_addr_for_exception_3 = m68k_getpc() + 4;
48105 		Exception(3, 0, M68000_EXC_SRC_CPU);
48106 		goto endlabel2670;
48107 	}
48108 {{	int32_t src = m68k_read_memory_32(srca);
48109 {	int32_t dst = m68k_dreg(regs, dstreg);
48110 	src |= dst;
48111 	CLEAR_CZNV;
48112 	SET_ZFLG (((int32_t)(src)) == 0);
48113 	SET_NFLG (((int32_t)(src)) < 0);
48114 	m68k_dreg(regs, dstreg) = (src);
48115 }}}}}m68k_incpc(4);
48116 fill_prefetch_0 ();
48117 endlabel2670: ;
48118 return 18;
48119 }
CPUFUNC(op_80bb_5)48120 unsigned long CPUFUNC(op_80bb_5)(uint32_t opcode) /* OR */
48121 {
48122 	uint32_t dstreg = (opcode >> 9) & 7;
48123 	OpcodeFamily = 1; CurrentInstrCycles = 20;
48124 {{	uint32_t tmppc = m68k_getpc() + 2;
48125 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
48126 	BusCyclePenalty += 2;
48127 	if ((srca & 1) != 0) {
48128 		last_fault_for_exception_3 = srca;
48129 		last_op_for_exception_3 = opcode;
48130 		last_addr_for_exception_3 = m68k_getpc() + 4;
48131 		Exception(3, 0, M68000_EXC_SRC_CPU);
48132 		goto endlabel2671;
48133 	}
48134 {{	int32_t src = m68k_read_memory_32(srca);
48135 {	int32_t dst = m68k_dreg(regs, dstreg);
48136 	src |= dst;
48137 	CLEAR_CZNV;
48138 	SET_ZFLG (((int32_t)(src)) == 0);
48139 	SET_NFLG (((int32_t)(src)) < 0);
48140 	m68k_dreg(regs, dstreg) = (src);
48141 }}}}}m68k_incpc(4);
48142 fill_prefetch_0 ();
48143 endlabel2671: ;
48144 return 20;
48145 }
CPUFUNC(op_80bc_5)48146 unsigned long CPUFUNC(op_80bc_5)(uint32_t opcode) /* OR */
48147 {
48148 	uint32_t dstreg = (opcode >> 9) & 7;
48149 	OpcodeFamily = 1; CurrentInstrCycles = 16;
48150 {{	int32_t src = get_ilong_prefetch(2);
48151 {	int32_t dst = m68k_dreg(regs, dstreg);
48152 	src |= dst;
48153 	CLEAR_CZNV;
48154 	SET_ZFLG (((int32_t)(src)) == 0);
48155 	SET_NFLG (((int32_t)(src)) < 0);
48156 	m68k_dreg(regs, dstreg) = (src);
48157 }}}m68k_incpc(6);
48158 fill_prefetch_0 ();
48159 return 16;
48160 }
CPUFUNC(op_80c0_5)48161 unsigned long CPUFUNC(op_80c0_5)(uint32_t opcode) /* DIVU */
48162 {
48163 	uint32_t srcreg = (opcode & 7);
48164 	uint32_t dstreg = (opcode >> 9) & 7;
48165 	unsigned int retcycles = 0;
48166 	OpcodeFamily = 60; CurrentInstrCycles = 4;
48167 {	uint32_t oldpc = m68k_getpc();
48168 {	int16_t src = m68k_dreg(regs, srcreg);
48169 {	int32_t dst = m68k_dreg(regs, dstreg);
48170 m68k_incpc(2);
48171 fill_prefetch_2 ();
48172 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2673; } else {
48173 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48174 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48175 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48176 	{
48177 	CLEAR_CZNV;
48178 	SET_ZFLG (((int16_t)(newv)) == 0);
48179 	SET_NFLG (((int16_t)(newv)) < 0);
48180 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48181 	m68k_dreg(regs, dstreg) = (newv);
48182 	}
48183 	}
48184 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48185 }}}endlabel2673: ;
48186  return (4+retcycles);
48187 }
CPUFUNC(op_80d0_5)48188 unsigned long CPUFUNC(op_80d0_5)(uint32_t opcode) /* DIVU */
48189 {
48190 	uint32_t srcreg = (opcode & 7);
48191 	uint32_t dstreg = (opcode >> 9) & 7;
48192 	unsigned int retcycles = 0;
48193 	OpcodeFamily = 60; CurrentInstrCycles = 8;
48194 {	uint32_t oldpc = m68k_getpc();
48195 {	uint32_t srca = m68k_areg(regs, srcreg);
48196 	if ((srca & 1) != 0) {
48197 		last_fault_for_exception_3 = srca;
48198 		last_op_for_exception_3 = opcode;
48199 		last_addr_for_exception_3 = m68k_getpc() + 2;
48200 		Exception(3, 0, M68000_EXC_SRC_CPU);
48201 		goto endlabel2674;
48202 	}
48203 {{	int16_t src = m68k_read_memory_16(srca);
48204 {	int32_t dst = m68k_dreg(regs, dstreg);
48205 m68k_incpc(2);
48206 fill_prefetch_2 ();
48207 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2674; } else {
48208 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48209 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48210 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48211 	{
48212 	CLEAR_CZNV;
48213 	SET_ZFLG (((int16_t)(newv)) == 0);
48214 	SET_NFLG (((int16_t)(newv)) < 0);
48215 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48216 	m68k_dreg(regs, dstreg) = (newv);
48217 	}
48218 	}
48219 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48220 }}}}}endlabel2674: ;
48221  return (8+retcycles);
48222 }
CPUFUNC(op_80d8_5)48223 unsigned long CPUFUNC(op_80d8_5)(uint32_t opcode) /* DIVU */
48224 {
48225 	uint32_t srcreg = (opcode & 7);
48226 	uint32_t dstreg = (opcode >> 9) & 7;
48227 	unsigned int retcycles = 0;
48228 	OpcodeFamily = 60; CurrentInstrCycles = 8;
48229 {	uint32_t oldpc = m68k_getpc();
48230 {	uint32_t srca = m68k_areg(regs, srcreg);
48231 	if ((srca & 1) != 0) {
48232 		last_fault_for_exception_3 = srca;
48233 		last_op_for_exception_3 = opcode;
48234 		last_addr_for_exception_3 = m68k_getpc() + 2;
48235 		Exception(3, 0, M68000_EXC_SRC_CPU);
48236 		goto endlabel2675;
48237 	}
48238 {{	int16_t src = m68k_read_memory_16(srca);
48239 	m68k_areg(regs, srcreg) += 2;
48240 {	int32_t dst = m68k_dreg(regs, dstreg);
48241 m68k_incpc(2);
48242 fill_prefetch_2 ();
48243 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2675; } else {
48244 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48245 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48246 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48247 	{
48248 	CLEAR_CZNV;
48249 	SET_ZFLG (((int16_t)(newv)) == 0);
48250 	SET_NFLG (((int16_t)(newv)) < 0);
48251 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48252 	m68k_dreg(regs, dstreg) = (newv);
48253 	}
48254 	}
48255 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48256 }}}}}endlabel2675: ;
48257  return (8+retcycles);
48258 }
CPUFUNC(op_80e0_5)48259 unsigned long CPUFUNC(op_80e0_5)(uint32_t opcode) /* DIVU */
48260 {
48261 	uint32_t srcreg = (opcode & 7);
48262 	uint32_t dstreg = (opcode >> 9) & 7;
48263 	unsigned int retcycles = 0;
48264 	OpcodeFamily = 60; CurrentInstrCycles = 10;
48265 {	uint32_t oldpc = m68k_getpc();
48266 {	uint32_t srca = m68k_areg(regs, srcreg) - 2;
48267 	if ((srca & 1) != 0) {
48268 		last_fault_for_exception_3 = srca;
48269 		last_op_for_exception_3 = opcode;
48270 		last_addr_for_exception_3 = m68k_getpc() + 2;
48271 		Exception(3, 0, M68000_EXC_SRC_CPU);
48272 		goto endlabel2676;
48273 	}
48274 {{	int16_t src = m68k_read_memory_16(srca);
48275 	m68k_areg (regs, srcreg) = srca;
48276 {	int32_t dst = m68k_dreg(regs, dstreg);
48277 m68k_incpc(2);
48278 fill_prefetch_2 ();
48279 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2676; } else {
48280 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48281 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48282 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48283 	{
48284 	CLEAR_CZNV;
48285 	SET_ZFLG (((int16_t)(newv)) == 0);
48286 	SET_NFLG (((int16_t)(newv)) < 0);
48287 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48288 	m68k_dreg(regs, dstreg) = (newv);
48289 	}
48290 	}
48291 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48292 }}}}}endlabel2676: ;
48293  return (10+retcycles);
48294 }
CPUFUNC(op_80e8_5)48295 unsigned long CPUFUNC(op_80e8_5)(uint32_t opcode) /* DIVU */
48296 {
48297 	uint32_t srcreg = (opcode & 7);
48298 	uint32_t dstreg = (opcode >> 9) & 7;
48299 	unsigned int retcycles = 0;
48300 	OpcodeFamily = 60; CurrentInstrCycles = 12;
48301 {	uint32_t oldpc = m68k_getpc();
48302 {	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
48303 	if ((srca & 1) != 0) {
48304 		last_fault_for_exception_3 = srca;
48305 		last_op_for_exception_3 = opcode;
48306 		last_addr_for_exception_3 = m68k_getpc() + 4;
48307 		Exception(3, 0, M68000_EXC_SRC_CPU);
48308 		goto endlabel2677;
48309 	}
48310 {{	int16_t src = m68k_read_memory_16(srca);
48311 {	int32_t dst = m68k_dreg(regs, dstreg);
48312 m68k_incpc(4);
48313 fill_prefetch_0 ();
48314 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2677; } else {
48315 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48316 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48317 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48318 	{
48319 	CLEAR_CZNV;
48320 	SET_ZFLG (((int16_t)(newv)) == 0);
48321 	SET_NFLG (((int16_t)(newv)) < 0);
48322 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48323 	m68k_dreg(regs, dstreg) = (newv);
48324 	}
48325 	}
48326 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48327 }}}}}endlabel2677: ;
48328  return (12+retcycles);
48329 }
CPUFUNC(op_80f0_5)48330 unsigned long CPUFUNC(op_80f0_5)(uint32_t opcode) /* DIVU */
48331 {
48332 	uint32_t srcreg = (opcode & 7);
48333 	uint32_t dstreg = (opcode >> 9) & 7;
48334 	unsigned int retcycles = 0;
48335 	OpcodeFamily = 60; CurrentInstrCycles = 14;
48336 {	uint32_t oldpc = m68k_getpc();
48337 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
48338 	BusCyclePenalty += 2;
48339 	if ((srca & 1) != 0) {
48340 		last_fault_for_exception_3 = srca;
48341 		last_op_for_exception_3 = opcode;
48342 		last_addr_for_exception_3 = m68k_getpc() + 4;
48343 		Exception(3, 0, M68000_EXC_SRC_CPU);
48344 		goto endlabel2678;
48345 	}
48346 {{	int16_t src = m68k_read_memory_16(srca);
48347 {	int32_t dst = m68k_dreg(regs, dstreg);
48348 m68k_incpc(4);
48349 fill_prefetch_0 ();
48350 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2678; } else {
48351 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48352 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48353 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48354 	{
48355 	CLEAR_CZNV;
48356 	SET_ZFLG (((int16_t)(newv)) == 0);
48357 	SET_NFLG (((int16_t)(newv)) < 0);
48358 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48359 	m68k_dreg(regs, dstreg) = (newv);
48360 	}
48361 	}
48362 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48363 }}}}}endlabel2678: ;
48364  return (14+retcycles);
48365 }
CPUFUNC(op_80f8_5)48366 unsigned long CPUFUNC(op_80f8_5)(uint32_t opcode) /* DIVU */
48367 {
48368 	uint32_t dstreg = (opcode >> 9) & 7;
48369 	unsigned int retcycles = 0;
48370 	OpcodeFamily = 60; CurrentInstrCycles = 12;
48371 {	uint32_t oldpc = m68k_getpc();
48372 {	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
48373 	if ((srca & 1) != 0) {
48374 		last_fault_for_exception_3 = srca;
48375 		last_op_for_exception_3 = opcode;
48376 		last_addr_for_exception_3 = m68k_getpc() + 4;
48377 		Exception(3, 0, M68000_EXC_SRC_CPU);
48378 		goto endlabel2679;
48379 	}
48380 {{	int16_t src = m68k_read_memory_16(srca);
48381 {	int32_t dst = m68k_dreg(regs, dstreg);
48382 m68k_incpc(4);
48383 fill_prefetch_0 ();
48384 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2679; } else {
48385 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48386 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48387 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48388 	{
48389 	CLEAR_CZNV;
48390 	SET_ZFLG (((int16_t)(newv)) == 0);
48391 	SET_NFLG (((int16_t)(newv)) < 0);
48392 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48393 	m68k_dreg(regs, dstreg) = (newv);
48394 	}
48395 	}
48396 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48397 }}}}}endlabel2679: ;
48398  return (12+retcycles);
48399 }
CPUFUNC(op_80f9_5)48400 unsigned long CPUFUNC(op_80f9_5)(uint32_t opcode) /* DIVU */
48401 {
48402 	uint32_t dstreg = (opcode >> 9) & 7;
48403 	unsigned int retcycles = 0;
48404 	OpcodeFamily = 60; CurrentInstrCycles = 16;
48405 {	uint32_t oldpc = m68k_getpc();
48406 {	uint32_t srca = get_ilong_prefetch(2);
48407 	if ((srca & 1) != 0) {
48408 		last_fault_for_exception_3 = srca;
48409 		last_op_for_exception_3 = opcode;
48410 		last_addr_for_exception_3 = m68k_getpc() + 6;
48411 		Exception(3, 0, M68000_EXC_SRC_CPU);
48412 		goto endlabel2680;
48413 	}
48414 {{	int16_t src = m68k_read_memory_16(srca);
48415 {	int32_t dst = m68k_dreg(regs, dstreg);
48416 m68k_incpc(6);
48417 fill_prefetch_0 ();
48418 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2680; } else {
48419 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48420 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48421 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48422 	{
48423 	CLEAR_CZNV;
48424 	SET_ZFLG (((int16_t)(newv)) == 0);
48425 	SET_NFLG (((int16_t)(newv)) < 0);
48426 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48427 	m68k_dreg(regs, dstreg) = (newv);
48428 	}
48429 	}
48430 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48431 }}}}}endlabel2680: ;
48432  return (16+retcycles);
48433 }
CPUFUNC(op_80fa_5)48434 unsigned long CPUFUNC(op_80fa_5)(uint32_t opcode) /* DIVU */
48435 {
48436 	uint32_t dstreg = (opcode >> 9) & 7;
48437 	unsigned int retcycles = 0;
48438 	OpcodeFamily = 60; CurrentInstrCycles = 12;
48439 {	uint32_t oldpc = m68k_getpc();
48440 {	uint32_t srca = m68k_getpc () + 2;
48441 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
48442 	if ((srca & 1) != 0) {
48443 		last_fault_for_exception_3 = srca;
48444 		last_op_for_exception_3 = opcode;
48445 		last_addr_for_exception_3 = m68k_getpc() + 4;
48446 		Exception(3, 0, M68000_EXC_SRC_CPU);
48447 		goto endlabel2681;
48448 	}
48449 {{	int16_t src = m68k_read_memory_16(srca);
48450 {	int32_t dst = m68k_dreg(regs, dstreg);
48451 m68k_incpc(4);
48452 fill_prefetch_0 ();
48453 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2681; } else {
48454 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48455 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48456 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48457 	{
48458 	CLEAR_CZNV;
48459 	SET_ZFLG (((int16_t)(newv)) == 0);
48460 	SET_NFLG (((int16_t)(newv)) < 0);
48461 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48462 	m68k_dreg(regs, dstreg) = (newv);
48463 	}
48464 	}
48465 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48466 }}}}}endlabel2681: ;
48467  return (12+retcycles);
48468 }
CPUFUNC(op_80fb_5)48469 unsigned long CPUFUNC(op_80fb_5)(uint32_t opcode) /* DIVU */
48470 {
48471 	uint32_t dstreg = (opcode >> 9) & 7;
48472 	unsigned int retcycles = 0;
48473 	OpcodeFamily = 60; CurrentInstrCycles = 14;
48474 {	uint32_t oldpc = m68k_getpc();
48475 {	uint32_t tmppc = m68k_getpc() + 2;
48476 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
48477 	BusCyclePenalty += 2;
48478 	if ((srca & 1) != 0) {
48479 		last_fault_for_exception_3 = srca;
48480 		last_op_for_exception_3 = opcode;
48481 		last_addr_for_exception_3 = m68k_getpc() + 4;
48482 		Exception(3, 0, M68000_EXC_SRC_CPU);
48483 		goto endlabel2682;
48484 	}
48485 {{	int16_t src = m68k_read_memory_16(srca);
48486 {	int32_t dst = m68k_dreg(regs, dstreg);
48487 m68k_incpc(4);
48488 fill_prefetch_0 ();
48489 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2682; } else {
48490 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48491 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48492 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48493 	{
48494 	CLEAR_CZNV;
48495 	SET_ZFLG (((int16_t)(newv)) == 0);
48496 	SET_NFLG (((int16_t)(newv)) < 0);
48497 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48498 	m68k_dreg(regs, dstreg) = (newv);
48499 	}
48500 	}
48501 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48502 }}}}}endlabel2682: ;
48503  return (14+retcycles);
48504 }
CPUFUNC(op_80fc_5)48505 unsigned long CPUFUNC(op_80fc_5)(uint32_t opcode) /* DIVU */
48506 {
48507 	uint32_t dstreg = (opcode >> 9) & 7;
48508 	unsigned int retcycles = 0;
48509 	OpcodeFamily = 60; CurrentInstrCycles = 8;
48510 {	uint32_t oldpc = m68k_getpc();
48511 {	int16_t src = get_iword_prefetch(2);
48512 {	int32_t dst = m68k_dreg(regs, dstreg);
48513 m68k_incpc(4);
48514 fill_prefetch_0 ();
48515 	if (src == 0) { SET_VFLG (0); Exception (5, oldpc,M68000_EXC_SRC_CPU); goto endlabel2683; } else {
48516 	uint32_t newv = (uint32_t)dst / (uint32_t)(uint16_t)src;
48517 	uint32_t rem = (uint32_t)dst % (uint32_t)(uint16_t)src;
48518 	if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
48519 	{
48520 	CLEAR_CZNV;
48521 	SET_ZFLG (((int16_t)(newv)) == 0);
48522 	SET_NFLG (((int16_t)(newv)) < 0);
48523 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
48524 	m68k_dreg(regs, dstreg) = (newv);
48525 	}
48526 	}
48527 	retcycles = getDivu68kCycles((uint32_t)dst, (uint16_t)src);
48528 }}}endlabel2683: ;
48529  return (8+retcycles);
48530 }
CPUFUNC(op_8100_5)48531 unsigned long CPUFUNC(op_8100_5)(uint32_t opcode) /* SBCD */
48532 {
48533 	uint32_t srcreg = (opcode & 7);
48534 	uint32_t dstreg = (opcode >> 9) & 7;
48535 	OpcodeFamily = 10; CurrentInstrCycles = 6;
48536 {{	int8_t src = m68k_dreg(regs, srcreg);
48537 {	int8_t dst = m68k_dreg(regs, dstreg);
48538 {	uint16_t newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0);
48539 	uint16_t newv_hi = (dst & 0xF0) - (src & 0xF0);
48540 	uint16_t newv, tmp_newv;
48541 	int bcd = 0;
48542 	newv = tmp_newv = newv_hi + newv_lo;
48543 	if (newv_lo & 0xF0) { newv -= 6; bcd = 6; };
48544 	if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; }
48545 	SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF);
48546 	COPY_CARRY;
48547 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
48548 	SET_NFLG (((int8_t)(newv)) < 0);
48549 	SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0);
48550 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
48551 }}}}m68k_incpc(2);
48552 fill_prefetch_2 ();
48553 return 6;
48554 }
CPUFUNC(op_8108_5)48555 unsigned long CPUFUNC(op_8108_5)(uint32_t opcode) /* SBCD */
48556 {
48557 	uint32_t srcreg = (opcode & 7);
48558 	uint32_t dstreg = (opcode >> 9) & 7;
48559 	OpcodeFamily = 10; CurrentInstrCycles = 18;
48560 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
48561 {	int8_t src = m68k_read_memory_8(srca);
48562 	m68k_areg (regs, srcreg) = srca;
48563 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
48564 {	int8_t dst = m68k_read_memory_8(dsta);
48565 	m68k_areg (regs, dstreg) = dsta;
48566 {	uint16_t newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0);
48567 	uint16_t newv_hi = (dst & 0xF0) - (src & 0xF0);
48568 	uint16_t newv, tmp_newv;
48569 	int bcd = 0;
48570 	newv = tmp_newv = newv_hi + newv_lo;
48571 	if (newv_lo & 0xF0) { newv -= 6; bcd = 6; };
48572 	if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; }
48573 	SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF);
48574 	COPY_CARRY;
48575 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
48576 	SET_NFLG (((int8_t)(newv)) < 0);
48577 	SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0);
48578 m68k_incpc(2);
48579 fill_prefetch_2 ();
48580 	m68k_write_memory_8(dsta,newv);
48581 }}}}}}return 18;
48582 }
CPUFUNC(op_8110_5)48583 unsigned long CPUFUNC(op_8110_5)(uint32_t opcode) /* OR */
48584 {
48585 	uint32_t srcreg = ((opcode >> 9) & 7);
48586 	uint32_t dstreg = opcode & 7;
48587 	OpcodeFamily = 1; CurrentInstrCycles = 12;
48588 {{	int8_t src = m68k_dreg(regs, srcreg);
48589 {	uint32_t dsta = m68k_areg(regs, dstreg);
48590 {	int8_t dst = m68k_read_memory_8(dsta);
48591 	src |= dst;
48592 	CLEAR_CZNV;
48593 	SET_ZFLG (((int8_t)(src)) == 0);
48594 	SET_NFLG (((int8_t)(src)) < 0);
48595 m68k_incpc(2);
48596 fill_prefetch_2 ();
48597 	m68k_write_memory_8(dsta,src);
48598 }}}}return 12;
48599 }
CPUFUNC(op_8118_5)48600 unsigned long CPUFUNC(op_8118_5)(uint32_t opcode) /* OR */
48601 {
48602 	uint32_t srcreg = ((opcode >> 9) & 7);
48603 	uint32_t dstreg = opcode & 7;
48604 	OpcodeFamily = 1; CurrentInstrCycles = 12;
48605 {{	int8_t src = m68k_dreg(regs, srcreg);
48606 {	uint32_t dsta = m68k_areg(regs, dstreg);
48607 {	int8_t dst = m68k_read_memory_8(dsta);
48608 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
48609 	src |= dst;
48610 	CLEAR_CZNV;
48611 	SET_ZFLG (((int8_t)(src)) == 0);
48612 	SET_NFLG (((int8_t)(src)) < 0);
48613 m68k_incpc(2);
48614 fill_prefetch_2 ();
48615 	m68k_write_memory_8(dsta,src);
48616 }}}}return 12;
48617 }
CPUFUNC(op_8120_5)48618 unsigned long CPUFUNC(op_8120_5)(uint32_t opcode) /* OR */
48619 {
48620 	uint32_t srcreg = ((opcode >> 9) & 7);
48621 	uint32_t dstreg = opcode & 7;
48622 	OpcodeFamily = 1; CurrentInstrCycles = 14;
48623 {{	int8_t src = m68k_dreg(regs, srcreg);
48624 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
48625 {	int8_t dst = m68k_read_memory_8(dsta);
48626 	m68k_areg (regs, dstreg) = dsta;
48627 	src |= dst;
48628 	CLEAR_CZNV;
48629 	SET_ZFLG (((int8_t)(src)) == 0);
48630 	SET_NFLG (((int8_t)(src)) < 0);
48631 m68k_incpc(2);
48632 fill_prefetch_2 ();
48633 	m68k_write_memory_8(dsta,src);
48634 }}}}return 14;
48635 }
CPUFUNC(op_8128_5)48636 unsigned long CPUFUNC(op_8128_5)(uint32_t opcode) /* OR */
48637 {
48638 	uint32_t srcreg = ((opcode >> 9) & 7);
48639 	uint32_t dstreg = opcode & 7;
48640 	OpcodeFamily = 1; CurrentInstrCycles = 16;
48641 {{	int8_t src = m68k_dreg(regs, srcreg);
48642 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
48643 {	int8_t dst = m68k_read_memory_8(dsta);
48644 	src |= dst;
48645 	CLEAR_CZNV;
48646 	SET_ZFLG (((int8_t)(src)) == 0);
48647 	SET_NFLG (((int8_t)(src)) < 0);
48648 m68k_incpc(4);
48649 fill_prefetch_0 ();
48650 	m68k_write_memory_8(dsta,src);
48651 }}}}return 16;
48652 }
CPUFUNC(op_8130_5)48653 unsigned long CPUFUNC(op_8130_5)(uint32_t opcode) /* OR */
48654 {
48655 	uint32_t srcreg = ((opcode >> 9) & 7);
48656 	uint32_t dstreg = opcode & 7;
48657 	OpcodeFamily = 1; CurrentInstrCycles = 18;
48658 {{	int8_t src = m68k_dreg(regs, srcreg);
48659 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
48660 	BusCyclePenalty += 2;
48661 {	int8_t dst = m68k_read_memory_8(dsta);
48662 	src |= dst;
48663 	CLEAR_CZNV;
48664 	SET_ZFLG (((int8_t)(src)) == 0);
48665 	SET_NFLG (((int8_t)(src)) < 0);
48666 m68k_incpc(4);
48667 fill_prefetch_0 ();
48668 	m68k_write_memory_8(dsta,src);
48669 }}}}return 18;
48670 }
CPUFUNC(op_8138_5)48671 unsigned long CPUFUNC(op_8138_5)(uint32_t opcode) /* OR */
48672 {
48673 	uint32_t srcreg = ((opcode >> 9) & 7);
48674 	OpcodeFamily = 1; CurrentInstrCycles = 16;
48675 {{	int8_t src = m68k_dreg(regs, srcreg);
48676 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
48677 {	int8_t dst = m68k_read_memory_8(dsta);
48678 	src |= dst;
48679 	CLEAR_CZNV;
48680 	SET_ZFLG (((int8_t)(src)) == 0);
48681 	SET_NFLG (((int8_t)(src)) < 0);
48682 m68k_incpc(4);
48683 fill_prefetch_0 ();
48684 	m68k_write_memory_8(dsta,src);
48685 }}}}return 16;
48686 }
CPUFUNC(op_8139_5)48687 unsigned long CPUFUNC(op_8139_5)(uint32_t opcode) /* OR */
48688 {
48689 	uint32_t srcreg = ((opcode >> 9) & 7);
48690 	OpcodeFamily = 1; CurrentInstrCycles = 20;
48691 {{	int8_t src = m68k_dreg(regs, srcreg);
48692 {	uint32_t dsta = get_ilong_prefetch(2);
48693 {	int8_t dst = m68k_read_memory_8(dsta);
48694 	src |= dst;
48695 	CLEAR_CZNV;
48696 	SET_ZFLG (((int8_t)(src)) == 0);
48697 	SET_NFLG (((int8_t)(src)) < 0);
48698 m68k_incpc(6);
48699 fill_prefetch_0 ();
48700 	m68k_write_memory_8(dsta,src);
48701 }}}}return 20;
48702 }
CPUFUNC(op_8150_5)48703 unsigned long CPUFUNC(op_8150_5)(uint32_t opcode) /* OR */
48704 {
48705 	uint32_t srcreg = ((opcode >> 9) & 7);
48706 	uint32_t dstreg = opcode & 7;
48707 	OpcodeFamily = 1; CurrentInstrCycles = 12;
48708 {{	int16_t src = m68k_dreg(regs, srcreg);
48709 {	uint32_t dsta = m68k_areg(regs, dstreg);
48710 	if ((dsta & 1) != 0) {
48711 		last_fault_for_exception_3 = dsta;
48712 		last_op_for_exception_3 = opcode;
48713 		last_addr_for_exception_3 = m68k_getpc() + 2;
48714 		Exception(3, 0, M68000_EXC_SRC_CPU);
48715 		goto endlabel2693;
48716 	}
48717 {{	int16_t dst = m68k_read_memory_16(dsta);
48718 	src |= dst;
48719 	CLEAR_CZNV;
48720 	SET_ZFLG (((int16_t)(src)) == 0);
48721 	SET_NFLG (((int16_t)(src)) < 0);
48722 m68k_incpc(2);
48723 fill_prefetch_2 ();
48724 	m68k_write_memory_16(dsta,src);
48725 }}}}}endlabel2693: ;
48726 return 12;
48727 }
CPUFUNC(op_8158_5)48728 unsigned long CPUFUNC(op_8158_5)(uint32_t opcode) /* OR */
48729 {
48730 	uint32_t srcreg = ((opcode >> 9) & 7);
48731 	uint32_t dstreg = opcode & 7;
48732 	OpcodeFamily = 1; CurrentInstrCycles = 12;
48733 {{	int16_t src = m68k_dreg(regs, srcreg);
48734 {	uint32_t dsta = m68k_areg(regs, dstreg);
48735 	if ((dsta & 1) != 0) {
48736 		last_fault_for_exception_3 = dsta;
48737 		last_op_for_exception_3 = opcode;
48738 		last_addr_for_exception_3 = m68k_getpc() + 2;
48739 		Exception(3, 0, M68000_EXC_SRC_CPU);
48740 		goto endlabel2694;
48741 	}
48742 {{	int16_t dst = m68k_read_memory_16(dsta);
48743 	m68k_areg(regs, dstreg) += 2;
48744 	src |= dst;
48745 	CLEAR_CZNV;
48746 	SET_ZFLG (((int16_t)(src)) == 0);
48747 	SET_NFLG (((int16_t)(src)) < 0);
48748 m68k_incpc(2);
48749 fill_prefetch_2 ();
48750 	m68k_write_memory_16(dsta,src);
48751 }}}}}endlabel2694: ;
48752 return 12;
48753 }
CPUFUNC(op_8160_5)48754 unsigned long CPUFUNC(op_8160_5)(uint32_t opcode) /* OR */
48755 {
48756 	uint32_t srcreg = ((opcode >> 9) & 7);
48757 	uint32_t dstreg = opcode & 7;
48758 	OpcodeFamily = 1; CurrentInstrCycles = 14;
48759 {{	int16_t src = m68k_dreg(regs, srcreg);
48760 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
48761 	if ((dsta & 1) != 0) {
48762 		last_fault_for_exception_3 = dsta;
48763 		last_op_for_exception_3 = opcode;
48764 		last_addr_for_exception_3 = m68k_getpc() + 2;
48765 		Exception(3, 0, M68000_EXC_SRC_CPU);
48766 		goto endlabel2695;
48767 	}
48768 {{	int16_t dst = m68k_read_memory_16(dsta);
48769 	m68k_areg (regs, dstreg) = dsta;
48770 	src |= dst;
48771 	CLEAR_CZNV;
48772 	SET_ZFLG (((int16_t)(src)) == 0);
48773 	SET_NFLG (((int16_t)(src)) < 0);
48774 m68k_incpc(2);
48775 fill_prefetch_2 ();
48776 	m68k_write_memory_16(dsta,src);
48777 }}}}}endlabel2695: ;
48778 return 14;
48779 }
CPUFUNC(op_8168_5)48780 unsigned long CPUFUNC(op_8168_5)(uint32_t opcode) /* OR */
48781 {
48782 	uint32_t srcreg = ((opcode >> 9) & 7);
48783 	uint32_t dstreg = opcode & 7;
48784 	OpcodeFamily = 1; CurrentInstrCycles = 16;
48785 {{	int16_t src = m68k_dreg(regs, srcreg);
48786 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
48787 	if ((dsta & 1) != 0) {
48788 		last_fault_for_exception_3 = dsta;
48789 		last_op_for_exception_3 = opcode;
48790 		last_addr_for_exception_3 = m68k_getpc() + 4;
48791 		Exception(3, 0, M68000_EXC_SRC_CPU);
48792 		goto endlabel2696;
48793 	}
48794 {{	int16_t dst = m68k_read_memory_16(dsta);
48795 	src |= dst;
48796 	CLEAR_CZNV;
48797 	SET_ZFLG (((int16_t)(src)) == 0);
48798 	SET_NFLG (((int16_t)(src)) < 0);
48799 m68k_incpc(4);
48800 fill_prefetch_0 ();
48801 	m68k_write_memory_16(dsta,src);
48802 }}}}}endlabel2696: ;
48803 return 16;
48804 }
CPUFUNC(op_8170_5)48805 unsigned long CPUFUNC(op_8170_5)(uint32_t opcode) /* OR */
48806 {
48807 	uint32_t srcreg = ((opcode >> 9) & 7);
48808 	uint32_t dstreg = opcode & 7;
48809 	OpcodeFamily = 1; CurrentInstrCycles = 18;
48810 {{	int16_t src = m68k_dreg(regs, srcreg);
48811 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
48812 	BusCyclePenalty += 2;
48813 	if ((dsta & 1) != 0) {
48814 		last_fault_for_exception_3 = dsta;
48815 		last_op_for_exception_3 = opcode;
48816 		last_addr_for_exception_3 = m68k_getpc() + 4;
48817 		Exception(3, 0, M68000_EXC_SRC_CPU);
48818 		goto endlabel2697;
48819 	}
48820 {{	int16_t dst = m68k_read_memory_16(dsta);
48821 	src |= dst;
48822 	CLEAR_CZNV;
48823 	SET_ZFLG (((int16_t)(src)) == 0);
48824 	SET_NFLG (((int16_t)(src)) < 0);
48825 m68k_incpc(4);
48826 fill_prefetch_0 ();
48827 	m68k_write_memory_16(dsta,src);
48828 }}}}}endlabel2697: ;
48829 return 18;
48830 }
CPUFUNC(op_8178_5)48831 unsigned long CPUFUNC(op_8178_5)(uint32_t opcode) /* OR */
48832 {
48833 	uint32_t srcreg = ((opcode >> 9) & 7);
48834 	OpcodeFamily = 1; CurrentInstrCycles = 16;
48835 {{	int16_t src = m68k_dreg(regs, srcreg);
48836 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
48837 	if ((dsta & 1) != 0) {
48838 		last_fault_for_exception_3 = dsta;
48839 		last_op_for_exception_3 = opcode;
48840 		last_addr_for_exception_3 = m68k_getpc() + 4;
48841 		Exception(3, 0, M68000_EXC_SRC_CPU);
48842 		goto endlabel2698;
48843 	}
48844 {{	int16_t dst = m68k_read_memory_16(dsta);
48845 	src |= dst;
48846 	CLEAR_CZNV;
48847 	SET_ZFLG (((int16_t)(src)) == 0);
48848 	SET_NFLG (((int16_t)(src)) < 0);
48849 m68k_incpc(4);
48850 fill_prefetch_0 ();
48851 	m68k_write_memory_16(dsta,src);
48852 }}}}}endlabel2698: ;
48853 return 16;
48854 }
CPUFUNC(op_8179_5)48855 unsigned long CPUFUNC(op_8179_5)(uint32_t opcode) /* OR */
48856 {
48857 	uint32_t srcreg = ((opcode >> 9) & 7);
48858 	OpcodeFamily = 1; CurrentInstrCycles = 20;
48859 {{	int16_t src = m68k_dreg(regs, srcreg);
48860 {	uint32_t dsta = get_ilong_prefetch(2);
48861 	if ((dsta & 1) != 0) {
48862 		last_fault_for_exception_3 = dsta;
48863 		last_op_for_exception_3 = opcode;
48864 		last_addr_for_exception_3 = m68k_getpc() + 6;
48865 		Exception(3, 0, M68000_EXC_SRC_CPU);
48866 		goto endlabel2699;
48867 	}
48868 {{	int16_t dst = m68k_read_memory_16(dsta);
48869 	src |= dst;
48870 	CLEAR_CZNV;
48871 	SET_ZFLG (((int16_t)(src)) == 0);
48872 	SET_NFLG (((int16_t)(src)) < 0);
48873 m68k_incpc(6);
48874 fill_prefetch_0 ();
48875 	m68k_write_memory_16(dsta,src);
48876 }}}}}endlabel2699: ;
48877 return 20;
48878 }
CPUFUNC(op_8190_5)48879 unsigned long CPUFUNC(op_8190_5)(uint32_t opcode) /* OR */
48880 {
48881 	uint32_t srcreg = ((opcode >> 9) & 7);
48882 	uint32_t dstreg = opcode & 7;
48883 	OpcodeFamily = 1; CurrentInstrCycles = 20;
48884 {{	int32_t src = m68k_dreg(regs, srcreg);
48885 {	uint32_t dsta = m68k_areg(regs, dstreg);
48886 	if ((dsta & 1) != 0) {
48887 		last_fault_for_exception_3 = dsta;
48888 		last_op_for_exception_3 = opcode;
48889 		last_addr_for_exception_3 = m68k_getpc() + 2;
48890 		Exception(3, 0, M68000_EXC_SRC_CPU);
48891 		goto endlabel2700;
48892 	}
48893 {{	int32_t dst = m68k_read_memory_32(dsta);
48894 	src |= dst;
48895 	CLEAR_CZNV;
48896 	SET_ZFLG (((int32_t)(src)) == 0);
48897 	SET_NFLG (((int32_t)(src)) < 0);
48898 m68k_incpc(2);
48899 fill_prefetch_2 ();
48900 	m68k_write_memory_32(dsta,src);
48901 }}}}}endlabel2700: ;
48902 return 20;
48903 }
CPUFUNC(op_8198_5)48904 unsigned long CPUFUNC(op_8198_5)(uint32_t opcode) /* OR */
48905 {
48906 	uint32_t srcreg = ((opcode >> 9) & 7);
48907 	uint32_t dstreg = opcode & 7;
48908 	OpcodeFamily = 1; CurrentInstrCycles = 20;
48909 {{	int32_t src = m68k_dreg(regs, srcreg);
48910 {	uint32_t dsta = m68k_areg(regs, dstreg);
48911 	if ((dsta & 1) != 0) {
48912 		last_fault_for_exception_3 = dsta;
48913 		last_op_for_exception_3 = opcode;
48914 		last_addr_for_exception_3 = m68k_getpc() + 2;
48915 		Exception(3, 0, M68000_EXC_SRC_CPU);
48916 		goto endlabel2701;
48917 	}
48918 {{	int32_t dst = m68k_read_memory_32(dsta);
48919 	m68k_areg(regs, dstreg) += 4;
48920 	src |= dst;
48921 	CLEAR_CZNV;
48922 	SET_ZFLG (((int32_t)(src)) == 0);
48923 	SET_NFLG (((int32_t)(src)) < 0);
48924 m68k_incpc(2);
48925 fill_prefetch_2 ();
48926 	m68k_write_memory_32(dsta,src);
48927 }}}}}endlabel2701: ;
48928 return 20;
48929 }
CPUFUNC(op_81a0_5)48930 unsigned long CPUFUNC(op_81a0_5)(uint32_t opcode) /* OR */
48931 {
48932 	uint32_t srcreg = ((opcode >> 9) & 7);
48933 	uint32_t dstreg = opcode & 7;
48934 	OpcodeFamily = 1; CurrentInstrCycles = 22;
48935 {{	int32_t src = m68k_dreg(regs, srcreg);
48936 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
48937 	if ((dsta & 1) != 0) {
48938 		last_fault_for_exception_3 = dsta;
48939 		last_op_for_exception_3 = opcode;
48940 		last_addr_for_exception_3 = m68k_getpc() + 2;
48941 		Exception(3, 0, M68000_EXC_SRC_CPU);
48942 		goto endlabel2702;
48943 	}
48944 {{	int32_t dst = m68k_read_memory_32(dsta);
48945 	m68k_areg (regs, dstreg) = dsta;
48946 	src |= dst;
48947 	CLEAR_CZNV;
48948 	SET_ZFLG (((int32_t)(src)) == 0);
48949 	SET_NFLG (((int32_t)(src)) < 0);
48950 m68k_incpc(2);
48951 fill_prefetch_2 ();
48952 	m68k_write_memory_32(dsta,src);
48953 }}}}}endlabel2702: ;
48954 return 22;
48955 }
CPUFUNC(op_81a8_5)48956 unsigned long CPUFUNC(op_81a8_5)(uint32_t opcode) /* OR */
48957 {
48958 	uint32_t srcreg = ((opcode >> 9) & 7);
48959 	uint32_t dstreg = opcode & 7;
48960 	OpcodeFamily = 1; CurrentInstrCycles = 24;
48961 {{	int32_t src = m68k_dreg(regs, srcreg);
48962 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
48963 	if ((dsta & 1) != 0) {
48964 		last_fault_for_exception_3 = dsta;
48965 		last_op_for_exception_3 = opcode;
48966 		last_addr_for_exception_3 = m68k_getpc() + 4;
48967 		Exception(3, 0, M68000_EXC_SRC_CPU);
48968 		goto endlabel2703;
48969 	}
48970 {{	int32_t dst = m68k_read_memory_32(dsta);
48971 	src |= dst;
48972 	CLEAR_CZNV;
48973 	SET_ZFLG (((int32_t)(src)) == 0);
48974 	SET_NFLG (((int32_t)(src)) < 0);
48975 m68k_incpc(4);
48976 fill_prefetch_0 ();
48977 	m68k_write_memory_32(dsta,src);
48978 }}}}}endlabel2703: ;
48979 return 24;
48980 }
CPUFUNC(op_81b0_5)48981 unsigned long CPUFUNC(op_81b0_5)(uint32_t opcode) /* OR */
48982 {
48983 	uint32_t srcreg = ((opcode >> 9) & 7);
48984 	uint32_t dstreg = opcode & 7;
48985 	OpcodeFamily = 1; CurrentInstrCycles = 26;
48986 {{	int32_t src = m68k_dreg(regs, srcreg);
48987 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
48988 	BusCyclePenalty += 2;
48989 	if ((dsta & 1) != 0) {
48990 		last_fault_for_exception_3 = dsta;
48991 		last_op_for_exception_3 = opcode;
48992 		last_addr_for_exception_3 = m68k_getpc() + 4;
48993 		Exception(3, 0, M68000_EXC_SRC_CPU);
48994 		goto endlabel2704;
48995 	}
48996 {{	int32_t dst = m68k_read_memory_32(dsta);
48997 	src |= dst;
48998 	CLEAR_CZNV;
48999 	SET_ZFLG (((int32_t)(src)) == 0);
49000 	SET_NFLG (((int32_t)(src)) < 0);
49001 m68k_incpc(4);
49002 fill_prefetch_0 ();
49003 	m68k_write_memory_32(dsta,src);
49004 }}}}}endlabel2704: ;
49005 return 26;
49006 }
CPUFUNC(op_81b8_5)49007 unsigned long CPUFUNC(op_81b8_5)(uint32_t opcode) /* OR */
49008 {
49009 	uint32_t srcreg = ((opcode >> 9) & 7);
49010 	OpcodeFamily = 1; CurrentInstrCycles = 24;
49011 {{	int32_t src = m68k_dreg(regs, srcreg);
49012 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
49013 	if ((dsta & 1) != 0) {
49014 		last_fault_for_exception_3 = dsta;
49015 		last_op_for_exception_3 = opcode;
49016 		last_addr_for_exception_3 = m68k_getpc() + 4;
49017 		Exception(3, 0, M68000_EXC_SRC_CPU);
49018 		goto endlabel2705;
49019 	}
49020 {{	int32_t dst = m68k_read_memory_32(dsta);
49021 	src |= dst;
49022 	CLEAR_CZNV;
49023 	SET_ZFLG (((int32_t)(src)) == 0);
49024 	SET_NFLG (((int32_t)(src)) < 0);
49025 m68k_incpc(4);
49026 fill_prefetch_0 ();
49027 	m68k_write_memory_32(dsta,src);
49028 }}}}}endlabel2705: ;
49029 return 24;
49030 }
CPUFUNC(op_81b9_5)49031 unsigned long CPUFUNC(op_81b9_5)(uint32_t opcode) /* OR */
49032 {
49033 	uint32_t srcreg = ((opcode >> 9) & 7);
49034 	OpcodeFamily = 1; CurrentInstrCycles = 28;
49035 {{	int32_t src = m68k_dreg(regs, srcreg);
49036 {	uint32_t dsta = get_ilong_prefetch(2);
49037 	if ((dsta & 1) != 0) {
49038 		last_fault_for_exception_3 = dsta;
49039 		last_op_for_exception_3 = opcode;
49040 		last_addr_for_exception_3 = m68k_getpc() + 6;
49041 		Exception(3, 0, M68000_EXC_SRC_CPU);
49042 		goto endlabel2706;
49043 	}
49044 {{	int32_t dst = m68k_read_memory_32(dsta);
49045 	src |= dst;
49046 	CLEAR_CZNV;
49047 	SET_ZFLG (((int32_t)(src)) == 0);
49048 	SET_NFLG (((int32_t)(src)) < 0);
49049 m68k_incpc(6);
49050 fill_prefetch_0 ();
49051 	m68k_write_memory_32(dsta,src);
49052 }}}}}endlabel2706: ;
49053 return 28;
49054 }
CPUFUNC(op_81c0_5)49055 unsigned long CPUFUNC(op_81c0_5)(uint32_t opcode) /* DIVS */
49056 {
49057 	uint32_t srcreg = (opcode & 7);
49058 	uint32_t dstreg = (opcode >> 9) & 7;
49059 	unsigned int retcycles = 0;
49060 	OpcodeFamily = 61; CurrentInstrCycles = 4;
49061 {	uint32_t oldpc = m68k_getpc();
49062 {	int16_t src = m68k_dreg(regs, srcreg);
49063 {	int32_t dst = m68k_dreg(regs, dstreg);
49064 m68k_incpc(2);
49065 fill_prefetch_2 ();
49066 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2707; } else {
49067 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49068 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49069 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49070 	{
49071 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49072 	CLEAR_CZNV;
49073 	SET_ZFLG (((int16_t)(newv)) == 0);
49074 	SET_NFLG (((int16_t)(newv)) < 0);
49075 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49076 	m68k_dreg(regs, dstreg) = (newv);
49077 	}
49078 	}
49079 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49080 }}}endlabel2707: ;
49081  return (4+retcycles);
49082 }
CPUFUNC(op_81d0_5)49083 unsigned long CPUFUNC(op_81d0_5)(uint32_t opcode) /* DIVS */
49084 {
49085 	uint32_t srcreg = (opcode & 7);
49086 	uint32_t dstreg = (opcode >> 9) & 7;
49087 	unsigned int retcycles = 0;
49088 	OpcodeFamily = 61; CurrentInstrCycles = 8;
49089 {	uint32_t oldpc = m68k_getpc();
49090 {	uint32_t srca = m68k_areg(regs, srcreg);
49091 	if ((srca & 1) != 0) {
49092 		last_fault_for_exception_3 = srca;
49093 		last_op_for_exception_3 = opcode;
49094 		last_addr_for_exception_3 = m68k_getpc() + 2;
49095 		Exception(3, 0, M68000_EXC_SRC_CPU);
49096 		goto endlabel2708;
49097 	}
49098 {{	int16_t src = m68k_read_memory_16(srca);
49099 {	int32_t dst = m68k_dreg(regs, dstreg);
49100 m68k_incpc(2);
49101 fill_prefetch_2 ();
49102 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2708; } else {
49103 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49104 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49105 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49106 	{
49107 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49108 	CLEAR_CZNV;
49109 	SET_ZFLG (((int16_t)(newv)) == 0);
49110 	SET_NFLG (((int16_t)(newv)) < 0);
49111 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49112 	m68k_dreg(regs, dstreg) = (newv);
49113 	}
49114 	}
49115 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49116 }}}}}endlabel2708: ;
49117  return (8+retcycles);
49118 }
CPUFUNC(op_81d8_5)49119 unsigned long CPUFUNC(op_81d8_5)(uint32_t opcode) /* DIVS */
49120 {
49121 	uint32_t srcreg = (opcode & 7);
49122 	uint32_t dstreg = (opcode >> 9) & 7;
49123 	unsigned int retcycles = 0;
49124 	OpcodeFamily = 61; CurrentInstrCycles = 8;
49125 {	uint32_t oldpc = m68k_getpc();
49126 {	uint32_t srca = m68k_areg(regs, srcreg);
49127 	if ((srca & 1) != 0) {
49128 		last_fault_for_exception_3 = srca;
49129 		last_op_for_exception_3 = opcode;
49130 		last_addr_for_exception_3 = m68k_getpc() + 2;
49131 		Exception(3, 0, M68000_EXC_SRC_CPU);
49132 		goto endlabel2709;
49133 	}
49134 {{	int16_t src = m68k_read_memory_16(srca);
49135 	m68k_areg(regs, srcreg) += 2;
49136 {	int32_t dst = m68k_dreg(regs, dstreg);
49137 m68k_incpc(2);
49138 fill_prefetch_2 ();
49139 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2709; } else {
49140 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49141 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49142 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49143 	{
49144 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49145 	CLEAR_CZNV;
49146 	SET_ZFLG (((int16_t)(newv)) == 0);
49147 	SET_NFLG (((int16_t)(newv)) < 0);
49148 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49149 	m68k_dreg(regs, dstreg) = (newv);
49150 	}
49151 	}
49152 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49153 }}}}}endlabel2709: ;
49154  return (8+retcycles);
49155 }
CPUFUNC(op_81e0_5)49156 unsigned long CPUFUNC(op_81e0_5)(uint32_t opcode) /* DIVS */
49157 {
49158 	uint32_t srcreg = (opcode & 7);
49159 	uint32_t dstreg = (opcode >> 9) & 7;
49160 	unsigned int retcycles = 0;
49161 	OpcodeFamily = 61; CurrentInstrCycles = 10;
49162 {	uint32_t oldpc = m68k_getpc();
49163 {	uint32_t srca = m68k_areg(regs, srcreg) - 2;
49164 	if ((srca & 1) != 0) {
49165 		last_fault_for_exception_3 = srca;
49166 		last_op_for_exception_3 = opcode;
49167 		last_addr_for_exception_3 = m68k_getpc() + 2;
49168 		Exception(3, 0, M68000_EXC_SRC_CPU);
49169 		goto endlabel2710;
49170 	}
49171 {{	int16_t src = m68k_read_memory_16(srca);
49172 	m68k_areg (regs, srcreg) = srca;
49173 {	int32_t dst = m68k_dreg(regs, dstreg);
49174 m68k_incpc(2);
49175 fill_prefetch_2 ();
49176 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2710; } else {
49177 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49178 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49179 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49180 	{
49181 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49182 	CLEAR_CZNV;
49183 	SET_ZFLG (((int16_t)(newv)) == 0);
49184 	SET_NFLG (((int16_t)(newv)) < 0);
49185 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49186 	m68k_dreg(regs, dstreg) = (newv);
49187 	}
49188 	}
49189 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49190 }}}}}endlabel2710: ;
49191  return (10+retcycles);
49192 }
CPUFUNC(op_81e8_5)49193 unsigned long CPUFUNC(op_81e8_5)(uint32_t opcode) /* DIVS */
49194 {
49195 	uint32_t srcreg = (opcode & 7);
49196 	uint32_t dstreg = (opcode >> 9) & 7;
49197 	unsigned int retcycles = 0;
49198 	OpcodeFamily = 61; CurrentInstrCycles = 12;
49199 {	uint32_t oldpc = m68k_getpc();
49200 {	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
49201 	if ((srca & 1) != 0) {
49202 		last_fault_for_exception_3 = srca;
49203 		last_op_for_exception_3 = opcode;
49204 		last_addr_for_exception_3 = m68k_getpc() + 4;
49205 		Exception(3, 0, M68000_EXC_SRC_CPU);
49206 		goto endlabel2711;
49207 	}
49208 {{	int16_t src = m68k_read_memory_16(srca);
49209 {	int32_t dst = m68k_dreg(regs, dstreg);
49210 m68k_incpc(4);
49211 fill_prefetch_0 ();
49212 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2711; } else {
49213 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49214 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49215 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49216 	{
49217 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49218 	CLEAR_CZNV;
49219 	SET_ZFLG (((int16_t)(newv)) == 0);
49220 	SET_NFLG (((int16_t)(newv)) < 0);
49221 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49222 	m68k_dreg(regs, dstreg) = (newv);
49223 	}
49224 	}
49225 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49226 }}}}}endlabel2711: ;
49227  return (12+retcycles);
49228 }
CPUFUNC(op_81f0_5)49229 unsigned long CPUFUNC(op_81f0_5)(uint32_t opcode) /* DIVS */
49230 {
49231 	uint32_t srcreg = (opcode & 7);
49232 	uint32_t dstreg = (opcode >> 9) & 7;
49233 	unsigned int retcycles = 0;
49234 	OpcodeFamily = 61; CurrentInstrCycles = 14;
49235 {	uint32_t oldpc = m68k_getpc();
49236 {	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
49237 	BusCyclePenalty += 2;
49238 	if ((srca & 1) != 0) {
49239 		last_fault_for_exception_3 = srca;
49240 		last_op_for_exception_3 = opcode;
49241 		last_addr_for_exception_3 = m68k_getpc() + 4;
49242 		Exception(3, 0, M68000_EXC_SRC_CPU);
49243 		goto endlabel2712;
49244 	}
49245 {{	int16_t src = m68k_read_memory_16(srca);
49246 {	int32_t dst = m68k_dreg(regs, dstreg);
49247 m68k_incpc(4);
49248 fill_prefetch_0 ();
49249 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2712; } else {
49250 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49251 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49252 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49253 	{
49254 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49255 	CLEAR_CZNV;
49256 	SET_ZFLG (((int16_t)(newv)) == 0);
49257 	SET_NFLG (((int16_t)(newv)) < 0);
49258 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49259 	m68k_dreg(regs, dstreg) = (newv);
49260 	}
49261 	}
49262 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49263 }}}}}endlabel2712: ;
49264  return (14+retcycles);
49265 }
CPUFUNC(op_81f8_5)49266 unsigned long CPUFUNC(op_81f8_5)(uint32_t opcode) /* DIVS */
49267 {
49268 	uint32_t dstreg = (opcode >> 9) & 7;
49269 	unsigned int retcycles = 0;
49270 	OpcodeFamily = 61; CurrentInstrCycles = 12;
49271 {	uint32_t oldpc = m68k_getpc();
49272 {	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
49273 	if ((srca & 1) != 0) {
49274 		last_fault_for_exception_3 = srca;
49275 		last_op_for_exception_3 = opcode;
49276 		last_addr_for_exception_3 = m68k_getpc() + 4;
49277 		Exception(3, 0, M68000_EXC_SRC_CPU);
49278 		goto endlabel2713;
49279 	}
49280 {{	int16_t src = m68k_read_memory_16(srca);
49281 {	int32_t dst = m68k_dreg(regs, dstreg);
49282 m68k_incpc(4);
49283 fill_prefetch_0 ();
49284 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2713; } else {
49285 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49286 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49287 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49288 	{
49289 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49290 	CLEAR_CZNV;
49291 	SET_ZFLG (((int16_t)(newv)) == 0);
49292 	SET_NFLG (((int16_t)(newv)) < 0);
49293 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49294 	m68k_dreg(regs, dstreg) = (newv);
49295 	}
49296 	}
49297 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49298 }}}}}endlabel2713: ;
49299  return (12+retcycles);
49300 }
CPUFUNC(op_81f9_5)49301 unsigned long CPUFUNC(op_81f9_5)(uint32_t opcode) /* DIVS */
49302 {
49303 	uint32_t dstreg = (opcode >> 9) & 7;
49304 	unsigned int retcycles = 0;
49305 	OpcodeFamily = 61; CurrentInstrCycles = 16;
49306 {	uint32_t oldpc = m68k_getpc();
49307 {	uint32_t srca = get_ilong_prefetch(2);
49308 	if ((srca & 1) != 0) {
49309 		last_fault_for_exception_3 = srca;
49310 		last_op_for_exception_3 = opcode;
49311 		last_addr_for_exception_3 = m68k_getpc() + 6;
49312 		Exception(3, 0, M68000_EXC_SRC_CPU);
49313 		goto endlabel2714;
49314 	}
49315 {{	int16_t src = m68k_read_memory_16(srca);
49316 {	int32_t dst = m68k_dreg(regs, dstreg);
49317 m68k_incpc(6);
49318 fill_prefetch_0 ();
49319 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2714; } else {
49320 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49321 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49322 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49323 	{
49324 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49325 	CLEAR_CZNV;
49326 	SET_ZFLG (((int16_t)(newv)) == 0);
49327 	SET_NFLG (((int16_t)(newv)) < 0);
49328 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49329 	m68k_dreg(regs, dstreg) = (newv);
49330 	}
49331 	}
49332 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49333 }}}}}endlabel2714: ;
49334  return (16+retcycles);
49335 }
CPUFUNC(op_81fa_5)49336 unsigned long CPUFUNC(op_81fa_5)(uint32_t opcode) /* DIVS */
49337 {
49338 	uint32_t dstreg = (opcode >> 9) & 7;
49339 	unsigned int retcycles = 0;
49340 	OpcodeFamily = 61; CurrentInstrCycles = 12;
49341 {	uint32_t oldpc = m68k_getpc();
49342 {	uint32_t srca = m68k_getpc () + 2;
49343 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
49344 	if ((srca & 1) != 0) {
49345 		last_fault_for_exception_3 = srca;
49346 		last_op_for_exception_3 = opcode;
49347 		last_addr_for_exception_3 = m68k_getpc() + 4;
49348 		Exception(3, 0, M68000_EXC_SRC_CPU);
49349 		goto endlabel2715;
49350 	}
49351 {{	int16_t src = m68k_read_memory_16(srca);
49352 {	int32_t dst = m68k_dreg(regs, dstreg);
49353 m68k_incpc(4);
49354 fill_prefetch_0 ();
49355 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2715; } else {
49356 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49357 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49358 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49359 	{
49360 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49361 	CLEAR_CZNV;
49362 	SET_ZFLG (((int16_t)(newv)) == 0);
49363 	SET_NFLG (((int16_t)(newv)) < 0);
49364 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49365 	m68k_dreg(regs, dstreg) = (newv);
49366 	}
49367 	}
49368 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49369 }}}}}endlabel2715: ;
49370  return (12+retcycles);
49371 }
CPUFUNC(op_81fb_5)49372 unsigned long CPUFUNC(op_81fb_5)(uint32_t opcode) /* DIVS */
49373 {
49374 	uint32_t dstreg = (opcode >> 9) & 7;
49375 	unsigned int retcycles = 0;
49376 	OpcodeFamily = 61; CurrentInstrCycles = 14;
49377 {	uint32_t oldpc = m68k_getpc();
49378 {	uint32_t tmppc = m68k_getpc() + 2;
49379 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
49380 	BusCyclePenalty += 2;
49381 	if ((srca & 1) != 0) {
49382 		last_fault_for_exception_3 = srca;
49383 		last_op_for_exception_3 = opcode;
49384 		last_addr_for_exception_3 = m68k_getpc() + 4;
49385 		Exception(3, 0, M68000_EXC_SRC_CPU);
49386 		goto endlabel2716;
49387 	}
49388 {{	int16_t src = m68k_read_memory_16(srca);
49389 {	int32_t dst = m68k_dreg(regs, dstreg);
49390 m68k_incpc(4);
49391 fill_prefetch_0 ();
49392 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2716; } else {
49393 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49394 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49395 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49396 	{
49397 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49398 	CLEAR_CZNV;
49399 	SET_ZFLG (((int16_t)(newv)) == 0);
49400 	SET_NFLG (((int16_t)(newv)) < 0);
49401 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49402 	m68k_dreg(regs, dstreg) = (newv);
49403 	}
49404 	}
49405 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49406 }}}}}endlabel2716: ;
49407  return (14+retcycles);
49408 }
CPUFUNC(op_81fc_5)49409 unsigned long CPUFUNC(op_81fc_5)(uint32_t opcode) /* DIVS */
49410 {
49411 	uint32_t dstreg = (opcode >> 9) & 7;
49412 	unsigned int retcycles = 0;
49413 	OpcodeFamily = 61; CurrentInstrCycles = 8;
49414 {	uint32_t oldpc = m68k_getpc();
49415 {	int16_t src = get_iword_prefetch(2);
49416 {	int32_t dst = m68k_dreg(regs, dstreg);
49417 m68k_incpc(4);
49418 fill_prefetch_0 ();
49419 	if (src == 0) { SET_VFLG (0); Exception(5,oldpc,M68000_EXC_SRC_CPU); goto endlabel2717; } else {
49420 	int32_t newv = (int32_t)dst / (int32_t)(int16_t)src;
49421 	uint16_t rem = (int32_t)dst % (int32_t)(int16_t)src;
49422 	if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else
49423 	{
49424 	if (((int16_t)rem < 0) != ((int32_t)dst < 0)) rem = -rem;
49425 	CLEAR_CZNV;
49426 	SET_ZFLG (((int16_t)(newv)) == 0);
49427 	SET_NFLG (((int16_t)(newv)) < 0);
49428 	newv = (newv & 0xffff) | ((uint32_t)rem << 16);
49429 	m68k_dreg(regs, dstreg) = (newv);
49430 	}
49431 	}
49432 	retcycles = getDivs68kCycles((int32_t)dst, (int16_t)src);
49433 }}}endlabel2717: ;
49434  return (8+retcycles);
49435 }
CPUFUNC(op_9000_5)49436 unsigned long CPUFUNC(op_9000_5)(uint32_t opcode) /* SUB */
49437 {
49438 	uint32_t srcreg = (opcode & 7);
49439 	uint32_t dstreg = (opcode >> 9) & 7;
49440 	OpcodeFamily = 7; CurrentInstrCycles = 4;
49441 {{	int8_t src = m68k_dreg(regs, srcreg);
49442 {	int8_t dst = m68k_dreg(regs, dstreg);
49443 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49444 {	int flgs = ((int8_t)(src)) < 0;
49445 	int flgo = ((int8_t)(dst)) < 0;
49446 	int flgn = ((int8_t)(newv)) < 0;
49447 	SET_ZFLG (((int8_t)(newv)) == 0);
49448 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49449 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49450 	COPY_CARRY;
49451 	SET_NFLG (flgn != 0);
49452 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49453 }}}}}}m68k_incpc(2);
49454 fill_prefetch_2 ();
49455 return 4;
49456 }
CPUFUNC(op_9010_5)49457 unsigned long CPUFUNC(op_9010_5)(uint32_t opcode) /* SUB */
49458 {
49459 	uint32_t srcreg = (opcode & 7);
49460 	uint32_t dstreg = (opcode >> 9) & 7;
49461 	OpcodeFamily = 7; CurrentInstrCycles = 8;
49462 {{	uint32_t srca = m68k_areg(regs, srcreg);
49463 {	int8_t src = m68k_read_memory_8(srca);
49464 {	int8_t dst = m68k_dreg(regs, dstreg);
49465 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49466 {	int flgs = ((int8_t)(src)) < 0;
49467 	int flgo = ((int8_t)(dst)) < 0;
49468 	int flgn = ((int8_t)(newv)) < 0;
49469 	SET_ZFLG (((int8_t)(newv)) == 0);
49470 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49471 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49472 	COPY_CARRY;
49473 	SET_NFLG (flgn != 0);
49474 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49475 }}}}}}}m68k_incpc(2);
49476 fill_prefetch_2 ();
49477 return 8;
49478 }
CPUFUNC(op_9018_5)49479 unsigned long CPUFUNC(op_9018_5)(uint32_t opcode) /* SUB */
49480 {
49481 	uint32_t srcreg = (opcode & 7);
49482 	uint32_t dstreg = (opcode >> 9) & 7;
49483 	OpcodeFamily = 7; CurrentInstrCycles = 8;
49484 {{	uint32_t srca = m68k_areg(regs, srcreg);
49485 {	int8_t src = m68k_read_memory_8(srca);
49486 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
49487 {	int8_t dst = m68k_dreg(regs, dstreg);
49488 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49489 {	int flgs = ((int8_t)(src)) < 0;
49490 	int flgo = ((int8_t)(dst)) < 0;
49491 	int flgn = ((int8_t)(newv)) < 0;
49492 	SET_ZFLG (((int8_t)(newv)) == 0);
49493 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49494 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49495 	COPY_CARRY;
49496 	SET_NFLG (flgn != 0);
49497 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49498 }}}}}}}m68k_incpc(2);
49499 fill_prefetch_2 ();
49500 return 8;
49501 }
CPUFUNC(op_9020_5)49502 unsigned long CPUFUNC(op_9020_5)(uint32_t opcode) /* SUB */
49503 {
49504 	uint32_t srcreg = (opcode & 7);
49505 	uint32_t dstreg = (opcode >> 9) & 7;
49506 	OpcodeFamily = 7; CurrentInstrCycles = 10;
49507 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
49508 {	int8_t src = m68k_read_memory_8(srca);
49509 	m68k_areg (regs, srcreg) = srca;
49510 {	int8_t dst = m68k_dreg(regs, dstreg);
49511 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49512 {	int flgs = ((int8_t)(src)) < 0;
49513 	int flgo = ((int8_t)(dst)) < 0;
49514 	int flgn = ((int8_t)(newv)) < 0;
49515 	SET_ZFLG (((int8_t)(newv)) == 0);
49516 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49517 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49518 	COPY_CARRY;
49519 	SET_NFLG (flgn != 0);
49520 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49521 }}}}}}}m68k_incpc(2);
49522 fill_prefetch_2 ();
49523 return 10;
49524 }
CPUFUNC(op_9028_5)49525 unsigned long CPUFUNC(op_9028_5)(uint32_t opcode) /* SUB */
49526 {
49527 	uint32_t srcreg = (opcode & 7);
49528 	uint32_t dstreg = (opcode >> 9) & 7;
49529 	OpcodeFamily = 7; CurrentInstrCycles = 12;
49530 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
49531 {	int8_t src = m68k_read_memory_8(srca);
49532 {	int8_t dst = m68k_dreg(regs, dstreg);
49533 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49534 {	int flgs = ((int8_t)(src)) < 0;
49535 	int flgo = ((int8_t)(dst)) < 0;
49536 	int flgn = ((int8_t)(newv)) < 0;
49537 	SET_ZFLG (((int8_t)(newv)) == 0);
49538 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49539 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49540 	COPY_CARRY;
49541 	SET_NFLG (flgn != 0);
49542 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49543 }}}}}}}m68k_incpc(4);
49544 fill_prefetch_0 ();
49545 return 12;
49546 }
CPUFUNC(op_9030_5)49547 unsigned long CPUFUNC(op_9030_5)(uint32_t opcode) /* SUB */
49548 {
49549 	uint32_t srcreg = (opcode & 7);
49550 	uint32_t dstreg = (opcode >> 9) & 7;
49551 	OpcodeFamily = 7; CurrentInstrCycles = 14;
49552 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
49553 	BusCyclePenalty += 2;
49554 {	int8_t src = m68k_read_memory_8(srca);
49555 {	int8_t dst = m68k_dreg(regs, dstreg);
49556 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49557 {	int flgs = ((int8_t)(src)) < 0;
49558 	int flgo = ((int8_t)(dst)) < 0;
49559 	int flgn = ((int8_t)(newv)) < 0;
49560 	SET_ZFLG (((int8_t)(newv)) == 0);
49561 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49562 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49563 	COPY_CARRY;
49564 	SET_NFLG (flgn != 0);
49565 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49566 }}}}}}}m68k_incpc(4);
49567 fill_prefetch_0 ();
49568 return 14;
49569 }
CPUFUNC(op_9038_5)49570 unsigned long CPUFUNC(op_9038_5)(uint32_t opcode) /* SUB */
49571 {
49572 	uint32_t dstreg = (opcode >> 9) & 7;
49573 	OpcodeFamily = 7; CurrentInstrCycles = 12;
49574 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
49575 {	int8_t src = m68k_read_memory_8(srca);
49576 {	int8_t dst = m68k_dreg(regs, dstreg);
49577 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49578 {	int flgs = ((int8_t)(src)) < 0;
49579 	int flgo = ((int8_t)(dst)) < 0;
49580 	int flgn = ((int8_t)(newv)) < 0;
49581 	SET_ZFLG (((int8_t)(newv)) == 0);
49582 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49583 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49584 	COPY_CARRY;
49585 	SET_NFLG (flgn != 0);
49586 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49587 }}}}}}}m68k_incpc(4);
49588 fill_prefetch_0 ();
49589 return 12;
49590 }
CPUFUNC(op_9039_5)49591 unsigned long CPUFUNC(op_9039_5)(uint32_t opcode) /* SUB */
49592 {
49593 	uint32_t dstreg = (opcode >> 9) & 7;
49594 	OpcodeFamily = 7; CurrentInstrCycles = 16;
49595 {{	uint32_t srca = get_ilong_prefetch(2);
49596 {	int8_t src = m68k_read_memory_8(srca);
49597 {	int8_t dst = m68k_dreg(regs, dstreg);
49598 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49599 {	int flgs = ((int8_t)(src)) < 0;
49600 	int flgo = ((int8_t)(dst)) < 0;
49601 	int flgn = ((int8_t)(newv)) < 0;
49602 	SET_ZFLG (((int8_t)(newv)) == 0);
49603 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49604 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49605 	COPY_CARRY;
49606 	SET_NFLG (flgn != 0);
49607 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49608 }}}}}}}m68k_incpc(6);
49609 fill_prefetch_0 ();
49610 return 16;
49611 }
CPUFUNC(op_903a_5)49612 unsigned long CPUFUNC(op_903a_5)(uint32_t opcode) /* SUB */
49613 {
49614 	uint32_t dstreg = (opcode >> 9) & 7;
49615 	OpcodeFamily = 7; CurrentInstrCycles = 12;
49616 {{	uint32_t srca = m68k_getpc () + 2;
49617 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
49618 {	int8_t src = m68k_read_memory_8(srca);
49619 {	int8_t dst = m68k_dreg(regs, dstreg);
49620 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49621 {	int flgs = ((int8_t)(src)) < 0;
49622 	int flgo = ((int8_t)(dst)) < 0;
49623 	int flgn = ((int8_t)(newv)) < 0;
49624 	SET_ZFLG (((int8_t)(newv)) == 0);
49625 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49626 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49627 	COPY_CARRY;
49628 	SET_NFLG (flgn != 0);
49629 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49630 }}}}}}}m68k_incpc(4);
49631 fill_prefetch_0 ();
49632 return 12;
49633 }
CPUFUNC(op_903b_5)49634 unsigned long CPUFUNC(op_903b_5)(uint32_t opcode) /* SUB */
49635 {
49636 	uint32_t dstreg = (opcode >> 9) & 7;
49637 	OpcodeFamily = 7; CurrentInstrCycles = 14;
49638 {{	uint32_t tmppc = m68k_getpc() + 2;
49639 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
49640 	BusCyclePenalty += 2;
49641 {	int8_t src = m68k_read_memory_8(srca);
49642 {	int8_t dst = m68k_dreg(regs, dstreg);
49643 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49644 {	int flgs = ((int8_t)(src)) < 0;
49645 	int flgo = ((int8_t)(dst)) < 0;
49646 	int flgn = ((int8_t)(newv)) < 0;
49647 	SET_ZFLG (((int8_t)(newv)) == 0);
49648 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49649 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49650 	COPY_CARRY;
49651 	SET_NFLG (flgn != 0);
49652 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49653 }}}}}}}m68k_incpc(4);
49654 fill_prefetch_0 ();
49655 return 14;
49656 }
CPUFUNC(op_903c_5)49657 unsigned long CPUFUNC(op_903c_5)(uint32_t opcode) /* SUB */
49658 {
49659 	uint32_t dstreg = (opcode >> 9) & 7;
49660 	OpcodeFamily = 7; CurrentInstrCycles = 8;
49661 {{	int8_t src = get_ibyte_prefetch(2);
49662 {	int8_t dst = m68k_dreg(regs, dstreg);
49663 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
49664 {	int flgs = ((int8_t)(src)) < 0;
49665 	int flgo = ((int8_t)(dst)) < 0;
49666 	int flgn = ((int8_t)(newv)) < 0;
49667 	SET_ZFLG (((int8_t)(newv)) == 0);
49668 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49669 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
49670 	COPY_CARRY;
49671 	SET_NFLG (flgn != 0);
49672 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
49673 }}}}}}m68k_incpc(4);
49674 fill_prefetch_0 ();
49675 return 8;
49676 }
CPUFUNC(op_9040_5)49677 unsigned long CPUFUNC(op_9040_5)(uint32_t opcode) /* SUB */
49678 {
49679 	uint32_t srcreg = (opcode & 7);
49680 	uint32_t dstreg = (opcode >> 9) & 7;
49681 	OpcodeFamily = 7; CurrentInstrCycles = 4;
49682 {{	int16_t src = m68k_dreg(regs, srcreg);
49683 {	int16_t dst = m68k_dreg(regs, dstreg);
49684 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49685 {	int flgs = ((int16_t)(src)) < 0;
49686 	int flgo = ((int16_t)(dst)) < 0;
49687 	int flgn = ((int16_t)(newv)) < 0;
49688 	SET_ZFLG (((int16_t)(newv)) == 0);
49689 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49690 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49691 	COPY_CARRY;
49692 	SET_NFLG (flgn != 0);
49693 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49694 }}}}}}m68k_incpc(2);
49695 fill_prefetch_2 ();
49696 return 4;
49697 }
CPUFUNC(op_9048_5)49698 unsigned long CPUFUNC(op_9048_5)(uint32_t opcode) /* SUB */
49699 {
49700 	uint32_t srcreg = (opcode & 7);
49701 	uint32_t dstreg = (opcode >> 9) & 7;
49702 	OpcodeFamily = 7; CurrentInstrCycles = 4;
49703 {{	int16_t src = m68k_areg(regs, srcreg);
49704 {	int16_t dst = m68k_dreg(regs, dstreg);
49705 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49706 {	int flgs = ((int16_t)(src)) < 0;
49707 	int flgo = ((int16_t)(dst)) < 0;
49708 	int flgn = ((int16_t)(newv)) < 0;
49709 	SET_ZFLG (((int16_t)(newv)) == 0);
49710 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49711 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49712 	COPY_CARRY;
49713 	SET_NFLG (flgn != 0);
49714 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49715 }}}}}}m68k_incpc(2);
49716 fill_prefetch_2 ();
49717 return 4;
49718 }
CPUFUNC(op_9050_5)49719 unsigned long CPUFUNC(op_9050_5)(uint32_t opcode) /* SUB */
49720 {
49721 	uint32_t srcreg = (opcode & 7);
49722 	uint32_t dstreg = (opcode >> 9) & 7;
49723 	OpcodeFamily = 7; CurrentInstrCycles = 8;
49724 {{	uint32_t srca = m68k_areg(regs, srcreg);
49725 	if ((srca & 1) != 0) {
49726 		last_fault_for_exception_3 = srca;
49727 		last_op_for_exception_3 = opcode;
49728 		last_addr_for_exception_3 = m68k_getpc() + 2;
49729 		Exception(3, 0, M68000_EXC_SRC_CPU);
49730 		goto endlabel2731;
49731 	}
49732 {{	int16_t src = m68k_read_memory_16(srca);
49733 {	int16_t dst = m68k_dreg(regs, dstreg);
49734 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49735 {	int flgs = ((int16_t)(src)) < 0;
49736 	int flgo = ((int16_t)(dst)) < 0;
49737 	int flgn = ((int16_t)(newv)) < 0;
49738 	SET_ZFLG (((int16_t)(newv)) == 0);
49739 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49740 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49741 	COPY_CARRY;
49742 	SET_NFLG (flgn != 0);
49743 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49744 }}}}}}}}m68k_incpc(2);
49745 fill_prefetch_2 ();
49746 endlabel2731: ;
49747 return 8;
49748 }
CPUFUNC(op_9058_5)49749 unsigned long CPUFUNC(op_9058_5)(uint32_t opcode) /* SUB */
49750 {
49751 	uint32_t srcreg = (opcode & 7);
49752 	uint32_t dstreg = (opcode >> 9) & 7;
49753 	OpcodeFamily = 7; CurrentInstrCycles = 8;
49754 {{	uint32_t srca = m68k_areg(regs, srcreg);
49755 	if ((srca & 1) != 0) {
49756 		last_fault_for_exception_3 = srca;
49757 		last_op_for_exception_3 = opcode;
49758 		last_addr_for_exception_3 = m68k_getpc() + 2;
49759 		Exception(3, 0, M68000_EXC_SRC_CPU);
49760 		goto endlabel2732;
49761 	}
49762 {{	int16_t src = m68k_read_memory_16(srca);
49763 	m68k_areg(regs, srcreg) += 2;
49764 {	int16_t dst = m68k_dreg(regs, dstreg);
49765 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49766 {	int flgs = ((int16_t)(src)) < 0;
49767 	int flgo = ((int16_t)(dst)) < 0;
49768 	int flgn = ((int16_t)(newv)) < 0;
49769 	SET_ZFLG (((int16_t)(newv)) == 0);
49770 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49771 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49772 	COPY_CARRY;
49773 	SET_NFLG (flgn != 0);
49774 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49775 }}}}}}}}m68k_incpc(2);
49776 fill_prefetch_2 ();
49777 endlabel2732: ;
49778 return 8;
49779 }
CPUFUNC(op_9060_5)49780 unsigned long CPUFUNC(op_9060_5)(uint32_t opcode) /* SUB */
49781 {
49782 	uint32_t srcreg = (opcode & 7);
49783 	uint32_t dstreg = (opcode >> 9) & 7;
49784 	OpcodeFamily = 7; CurrentInstrCycles = 10;
49785 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
49786 	if ((srca & 1) != 0) {
49787 		last_fault_for_exception_3 = srca;
49788 		last_op_for_exception_3 = opcode;
49789 		last_addr_for_exception_3 = m68k_getpc() + 2;
49790 		Exception(3, 0, M68000_EXC_SRC_CPU);
49791 		goto endlabel2733;
49792 	}
49793 {{	int16_t src = m68k_read_memory_16(srca);
49794 	m68k_areg (regs, srcreg) = srca;
49795 {	int16_t dst = m68k_dreg(regs, dstreg);
49796 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49797 {	int flgs = ((int16_t)(src)) < 0;
49798 	int flgo = ((int16_t)(dst)) < 0;
49799 	int flgn = ((int16_t)(newv)) < 0;
49800 	SET_ZFLG (((int16_t)(newv)) == 0);
49801 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49802 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49803 	COPY_CARRY;
49804 	SET_NFLG (flgn != 0);
49805 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49806 }}}}}}}}m68k_incpc(2);
49807 fill_prefetch_2 ();
49808 endlabel2733: ;
49809 return 10;
49810 }
CPUFUNC(op_9068_5)49811 unsigned long CPUFUNC(op_9068_5)(uint32_t opcode) /* SUB */
49812 {
49813 	uint32_t srcreg = (opcode & 7);
49814 	uint32_t dstreg = (opcode >> 9) & 7;
49815 	OpcodeFamily = 7; CurrentInstrCycles = 12;
49816 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
49817 	if ((srca & 1) != 0) {
49818 		last_fault_for_exception_3 = srca;
49819 		last_op_for_exception_3 = opcode;
49820 		last_addr_for_exception_3 = m68k_getpc() + 4;
49821 		Exception(3, 0, M68000_EXC_SRC_CPU);
49822 		goto endlabel2734;
49823 	}
49824 {{	int16_t src = m68k_read_memory_16(srca);
49825 {	int16_t dst = m68k_dreg(regs, dstreg);
49826 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49827 {	int flgs = ((int16_t)(src)) < 0;
49828 	int flgo = ((int16_t)(dst)) < 0;
49829 	int flgn = ((int16_t)(newv)) < 0;
49830 	SET_ZFLG (((int16_t)(newv)) == 0);
49831 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49832 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49833 	COPY_CARRY;
49834 	SET_NFLG (flgn != 0);
49835 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49836 }}}}}}}}m68k_incpc(4);
49837 fill_prefetch_0 ();
49838 endlabel2734: ;
49839 return 12;
49840 }
CPUFUNC(op_9070_5)49841 unsigned long CPUFUNC(op_9070_5)(uint32_t opcode) /* SUB */
49842 {
49843 	uint32_t srcreg = (opcode & 7);
49844 	uint32_t dstreg = (opcode >> 9) & 7;
49845 	OpcodeFamily = 7; CurrentInstrCycles = 14;
49846 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
49847 	BusCyclePenalty += 2;
49848 	if ((srca & 1) != 0) {
49849 		last_fault_for_exception_3 = srca;
49850 		last_op_for_exception_3 = opcode;
49851 		last_addr_for_exception_3 = m68k_getpc() + 4;
49852 		Exception(3, 0, M68000_EXC_SRC_CPU);
49853 		goto endlabel2735;
49854 	}
49855 {{	int16_t src = m68k_read_memory_16(srca);
49856 {	int16_t dst = m68k_dreg(regs, dstreg);
49857 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49858 {	int flgs = ((int16_t)(src)) < 0;
49859 	int flgo = ((int16_t)(dst)) < 0;
49860 	int flgn = ((int16_t)(newv)) < 0;
49861 	SET_ZFLG (((int16_t)(newv)) == 0);
49862 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49863 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49864 	COPY_CARRY;
49865 	SET_NFLG (flgn != 0);
49866 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49867 }}}}}}}}m68k_incpc(4);
49868 fill_prefetch_0 ();
49869 endlabel2735: ;
49870 return 14;
49871 }
CPUFUNC(op_9078_5)49872 unsigned long CPUFUNC(op_9078_5)(uint32_t opcode) /* SUB */
49873 {
49874 	uint32_t dstreg = (opcode >> 9) & 7;
49875 	OpcodeFamily = 7; CurrentInstrCycles = 12;
49876 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
49877 	if ((srca & 1) != 0) {
49878 		last_fault_for_exception_3 = srca;
49879 		last_op_for_exception_3 = opcode;
49880 		last_addr_for_exception_3 = m68k_getpc() + 4;
49881 		Exception(3, 0, M68000_EXC_SRC_CPU);
49882 		goto endlabel2736;
49883 	}
49884 {{	int16_t src = m68k_read_memory_16(srca);
49885 {	int16_t dst = m68k_dreg(regs, dstreg);
49886 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49887 {	int flgs = ((int16_t)(src)) < 0;
49888 	int flgo = ((int16_t)(dst)) < 0;
49889 	int flgn = ((int16_t)(newv)) < 0;
49890 	SET_ZFLG (((int16_t)(newv)) == 0);
49891 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49892 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49893 	COPY_CARRY;
49894 	SET_NFLG (flgn != 0);
49895 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49896 }}}}}}}}m68k_incpc(4);
49897 fill_prefetch_0 ();
49898 endlabel2736: ;
49899 return 12;
49900 }
CPUFUNC(op_9079_5)49901 unsigned long CPUFUNC(op_9079_5)(uint32_t opcode) /* SUB */
49902 {
49903 	uint32_t dstreg = (opcode >> 9) & 7;
49904 	OpcodeFamily = 7; CurrentInstrCycles = 16;
49905 {{	uint32_t srca = get_ilong_prefetch(2);
49906 	if ((srca & 1) != 0) {
49907 		last_fault_for_exception_3 = srca;
49908 		last_op_for_exception_3 = opcode;
49909 		last_addr_for_exception_3 = m68k_getpc() + 6;
49910 		Exception(3, 0, M68000_EXC_SRC_CPU);
49911 		goto endlabel2737;
49912 	}
49913 {{	int16_t src = m68k_read_memory_16(srca);
49914 {	int16_t dst = m68k_dreg(regs, dstreg);
49915 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49916 {	int flgs = ((int16_t)(src)) < 0;
49917 	int flgo = ((int16_t)(dst)) < 0;
49918 	int flgn = ((int16_t)(newv)) < 0;
49919 	SET_ZFLG (((int16_t)(newv)) == 0);
49920 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49921 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49922 	COPY_CARRY;
49923 	SET_NFLG (flgn != 0);
49924 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49925 }}}}}}}}m68k_incpc(6);
49926 fill_prefetch_0 ();
49927 endlabel2737: ;
49928 return 16;
49929 }
CPUFUNC(op_907a_5)49930 unsigned long CPUFUNC(op_907a_5)(uint32_t opcode) /* SUB */
49931 {
49932 	uint32_t dstreg = (opcode >> 9) & 7;
49933 	OpcodeFamily = 7; CurrentInstrCycles = 12;
49934 {{	uint32_t srca = m68k_getpc () + 2;
49935 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
49936 	if ((srca & 1) != 0) {
49937 		last_fault_for_exception_3 = srca;
49938 		last_op_for_exception_3 = opcode;
49939 		last_addr_for_exception_3 = m68k_getpc() + 4;
49940 		Exception(3, 0, M68000_EXC_SRC_CPU);
49941 		goto endlabel2738;
49942 	}
49943 {{	int16_t src = m68k_read_memory_16(srca);
49944 {	int16_t dst = m68k_dreg(regs, dstreg);
49945 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49946 {	int flgs = ((int16_t)(src)) < 0;
49947 	int flgo = ((int16_t)(dst)) < 0;
49948 	int flgn = ((int16_t)(newv)) < 0;
49949 	SET_ZFLG (((int16_t)(newv)) == 0);
49950 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49951 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49952 	COPY_CARRY;
49953 	SET_NFLG (flgn != 0);
49954 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49955 }}}}}}}}m68k_incpc(4);
49956 fill_prefetch_0 ();
49957 endlabel2738: ;
49958 return 12;
49959 }
CPUFUNC(op_907b_5)49960 unsigned long CPUFUNC(op_907b_5)(uint32_t opcode) /* SUB */
49961 {
49962 	uint32_t dstreg = (opcode >> 9) & 7;
49963 	OpcodeFamily = 7; CurrentInstrCycles = 14;
49964 {{	uint32_t tmppc = m68k_getpc() + 2;
49965 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
49966 	BusCyclePenalty += 2;
49967 	if ((srca & 1) != 0) {
49968 		last_fault_for_exception_3 = srca;
49969 		last_op_for_exception_3 = opcode;
49970 		last_addr_for_exception_3 = m68k_getpc() + 4;
49971 		Exception(3, 0, M68000_EXC_SRC_CPU);
49972 		goto endlabel2739;
49973 	}
49974 {{	int16_t src = m68k_read_memory_16(srca);
49975 {	int16_t dst = m68k_dreg(regs, dstreg);
49976 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49977 {	int flgs = ((int16_t)(src)) < 0;
49978 	int flgo = ((int16_t)(dst)) < 0;
49979 	int flgn = ((int16_t)(newv)) < 0;
49980 	SET_ZFLG (((int16_t)(newv)) == 0);
49981 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
49982 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
49983 	COPY_CARRY;
49984 	SET_NFLG (flgn != 0);
49985 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
49986 }}}}}}}}m68k_incpc(4);
49987 fill_prefetch_0 ();
49988 endlabel2739: ;
49989 return 14;
49990 }
CPUFUNC(op_907c_5)49991 unsigned long CPUFUNC(op_907c_5)(uint32_t opcode) /* SUB */
49992 {
49993 	uint32_t dstreg = (opcode >> 9) & 7;
49994 	OpcodeFamily = 7; CurrentInstrCycles = 8;
49995 {{	int16_t src = get_iword_prefetch(2);
49996 {	int16_t dst = m68k_dreg(regs, dstreg);
49997 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
49998 {	int flgs = ((int16_t)(src)) < 0;
49999 	int flgo = ((int16_t)(dst)) < 0;
50000 	int flgn = ((int16_t)(newv)) < 0;
50001 	SET_ZFLG (((int16_t)(newv)) == 0);
50002 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50003 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
50004 	COPY_CARRY;
50005 	SET_NFLG (flgn != 0);
50006 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
50007 }}}}}}m68k_incpc(4);
50008 fill_prefetch_0 ();
50009 return 8;
50010 }
CPUFUNC(op_9080_5)50011 unsigned long CPUFUNC(op_9080_5)(uint32_t opcode) /* SUB */
50012 {
50013 	uint32_t srcreg = (opcode & 7);
50014 	uint32_t dstreg = (opcode >> 9) & 7;
50015 	OpcodeFamily = 7; CurrentInstrCycles = 8;
50016 {{	int32_t src = m68k_dreg(regs, srcreg);
50017 {	int32_t dst = m68k_dreg(regs, dstreg);
50018 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50019 {	int flgs = ((int32_t)(src)) < 0;
50020 	int flgo = ((int32_t)(dst)) < 0;
50021 	int flgn = ((int32_t)(newv)) < 0;
50022 	SET_ZFLG (((int32_t)(newv)) == 0);
50023 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50024 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50025 	COPY_CARRY;
50026 	SET_NFLG (flgn != 0);
50027 	m68k_dreg(regs, dstreg) = (newv);
50028 }}}}}}m68k_incpc(2);
50029 fill_prefetch_2 ();
50030 return 8;
50031 }
CPUFUNC(op_9088_5)50032 unsigned long CPUFUNC(op_9088_5)(uint32_t opcode) /* SUB */
50033 {
50034 	uint32_t srcreg = (opcode & 7);
50035 	uint32_t dstreg = (opcode >> 9) & 7;
50036 	OpcodeFamily = 7; CurrentInstrCycles = 8;
50037 {{	int32_t src = m68k_areg(regs, srcreg);
50038 {	int32_t dst = m68k_dreg(regs, dstreg);
50039 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50040 {	int flgs = ((int32_t)(src)) < 0;
50041 	int flgo = ((int32_t)(dst)) < 0;
50042 	int flgn = ((int32_t)(newv)) < 0;
50043 	SET_ZFLG (((int32_t)(newv)) == 0);
50044 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50045 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50046 	COPY_CARRY;
50047 	SET_NFLG (flgn != 0);
50048 	m68k_dreg(regs, dstreg) = (newv);
50049 }}}}}}m68k_incpc(2);
50050 fill_prefetch_2 ();
50051 return 8;
50052 }
CPUFUNC(op_9090_5)50053 unsigned long CPUFUNC(op_9090_5)(uint32_t opcode) /* SUB */
50054 {
50055 	uint32_t srcreg = (opcode & 7);
50056 	uint32_t dstreg = (opcode >> 9) & 7;
50057 	OpcodeFamily = 7; CurrentInstrCycles = 14;
50058 {{	uint32_t srca = m68k_areg(regs, srcreg);
50059 	if ((srca & 1) != 0) {
50060 		last_fault_for_exception_3 = srca;
50061 		last_op_for_exception_3 = opcode;
50062 		last_addr_for_exception_3 = m68k_getpc() + 2;
50063 		Exception(3, 0, M68000_EXC_SRC_CPU);
50064 		goto endlabel2743;
50065 	}
50066 {{	int32_t src = m68k_read_memory_32(srca);
50067 {	int32_t dst = m68k_dreg(regs, dstreg);
50068 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50069 {	int flgs = ((int32_t)(src)) < 0;
50070 	int flgo = ((int32_t)(dst)) < 0;
50071 	int flgn = ((int32_t)(newv)) < 0;
50072 	SET_ZFLG (((int32_t)(newv)) == 0);
50073 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50074 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50075 	COPY_CARRY;
50076 	SET_NFLG (flgn != 0);
50077 	m68k_dreg(regs, dstreg) = (newv);
50078 }}}}}}}}m68k_incpc(2);
50079 fill_prefetch_2 ();
50080 endlabel2743: ;
50081 return 14;
50082 }
CPUFUNC(op_9098_5)50083 unsigned long CPUFUNC(op_9098_5)(uint32_t opcode) /* SUB */
50084 {
50085 	uint32_t srcreg = (opcode & 7);
50086 	uint32_t dstreg = (opcode >> 9) & 7;
50087 	OpcodeFamily = 7; CurrentInstrCycles = 14;
50088 {{	uint32_t srca = m68k_areg(regs, srcreg);
50089 	if ((srca & 1) != 0) {
50090 		last_fault_for_exception_3 = srca;
50091 		last_op_for_exception_3 = opcode;
50092 		last_addr_for_exception_3 = m68k_getpc() + 2;
50093 		Exception(3, 0, M68000_EXC_SRC_CPU);
50094 		goto endlabel2744;
50095 	}
50096 {{	int32_t src = m68k_read_memory_32(srca);
50097 	m68k_areg(regs, srcreg) += 4;
50098 {	int32_t dst = m68k_dreg(regs, dstreg);
50099 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50100 {	int flgs = ((int32_t)(src)) < 0;
50101 	int flgo = ((int32_t)(dst)) < 0;
50102 	int flgn = ((int32_t)(newv)) < 0;
50103 	SET_ZFLG (((int32_t)(newv)) == 0);
50104 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50105 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50106 	COPY_CARRY;
50107 	SET_NFLG (flgn != 0);
50108 	m68k_dreg(regs, dstreg) = (newv);
50109 }}}}}}}}m68k_incpc(2);
50110 fill_prefetch_2 ();
50111 endlabel2744: ;
50112 return 14;
50113 }
CPUFUNC(op_90a0_5)50114 unsigned long CPUFUNC(op_90a0_5)(uint32_t opcode) /* SUB */
50115 {
50116 	uint32_t srcreg = (opcode & 7);
50117 	uint32_t dstreg = (opcode >> 9) & 7;
50118 	OpcodeFamily = 7; CurrentInstrCycles = 16;
50119 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
50120 	if ((srca & 1) != 0) {
50121 		last_fault_for_exception_3 = srca;
50122 		last_op_for_exception_3 = opcode;
50123 		last_addr_for_exception_3 = m68k_getpc() + 2;
50124 		Exception(3, 0, M68000_EXC_SRC_CPU);
50125 		goto endlabel2745;
50126 	}
50127 {{	int32_t src = m68k_read_memory_32(srca);
50128 	m68k_areg (regs, srcreg) = srca;
50129 {	int32_t dst = m68k_dreg(regs, dstreg);
50130 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50131 {	int flgs = ((int32_t)(src)) < 0;
50132 	int flgo = ((int32_t)(dst)) < 0;
50133 	int flgn = ((int32_t)(newv)) < 0;
50134 	SET_ZFLG (((int32_t)(newv)) == 0);
50135 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50136 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50137 	COPY_CARRY;
50138 	SET_NFLG (flgn != 0);
50139 	m68k_dreg(regs, dstreg) = (newv);
50140 }}}}}}}}m68k_incpc(2);
50141 fill_prefetch_2 ();
50142 endlabel2745: ;
50143 return 16;
50144 }
CPUFUNC(op_90a8_5)50145 unsigned long CPUFUNC(op_90a8_5)(uint32_t opcode) /* SUB */
50146 {
50147 	uint32_t srcreg = (opcode & 7);
50148 	uint32_t dstreg = (opcode >> 9) & 7;
50149 	OpcodeFamily = 7; CurrentInstrCycles = 18;
50150 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
50151 	if ((srca & 1) != 0) {
50152 		last_fault_for_exception_3 = srca;
50153 		last_op_for_exception_3 = opcode;
50154 		last_addr_for_exception_3 = m68k_getpc() + 4;
50155 		Exception(3, 0, M68000_EXC_SRC_CPU);
50156 		goto endlabel2746;
50157 	}
50158 {{	int32_t src = m68k_read_memory_32(srca);
50159 {	int32_t dst = m68k_dreg(regs, dstreg);
50160 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50161 {	int flgs = ((int32_t)(src)) < 0;
50162 	int flgo = ((int32_t)(dst)) < 0;
50163 	int flgn = ((int32_t)(newv)) < 0;
50164 	SET_ZFLG (((int32_t)(newv)) == 0);
50165 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50166 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50167 	COPY_CARRY;
50168 	SET_NFLG (flgn != 0);
50169 	m68k_dreg(regs, dstreg) = (newv);
50170 }}}}}}}}m68k_incpc(4);
50171 fill_prefetch_0 ();
50172 endlabel2746: ;
50173 return 18;
50174 }
CPUFUNC(op_90b0_5)50175 unsigned long CPUFUNC(op_90b0_5)(uint32_t opcode) /* SUB */
50176 {
50177 	uint32_t srcreg = (opcode & 7);
50178 	uint32_t dstreg = (opcode >> 9) & 7;
50179 	OpcodeFamily = 7; CurrentInstrCycles = 20;
50180 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
50181 	BusCyclePenalty += 2;
50182 	if ((srca & 1) != 0) {
50183 		last_fault_for_exception_3 = srca;
50184 		last_op_for_exception_3 = opcode;
50185 		last_addr_for_exception_3 = m68k_getpc() + 4;
50186 		Exception(3, 0, M68000_EXC_SRC_CPU);
50187 		goto endlabel2747;
50188 	}
50189 {{	int32_t src = m68k_read_memory_32(srca);
50190 {	int32_t dst = m68k_dreg(regs, dstreg);
50191 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50192 {	int flgs = ((int32_t)(src)) < 0;
50193 	int flgo = ((int32_t)(dst)) < 0;
50194 	int flgn = ((int32_t)(newv)) < 0;
50195 	SET_ZFLG (((int32_t)(newv)) == 0);
50196 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50197 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50198 	COPY_CARRY;
50199 	SET_NFLG (flgn != 0);
50200 	m68k_dreg(regs, dstreg) = (newv);
50201 }}}}}}}}m68k_incpc(4);
50202 fill_prefetch_0 ();
50203 endlabel2747: ;
50204 return 20;
50205 }
CPUFUNC(op_90b8_5)50206 unsigned long CPUFUNC(op_90b8_5)(uint32_t opcode) /* SUB */
50207 {
50208 	uint32_t dstreg = (opcode >> 9) & 7;
50209 	OpcodeFamily = 7; CurrentInstrCycles = 18;
50210 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
50211 	if ((srca & 1) != 0) {
50212 		last_fault_for_exception_3 = srca;
50213 		last_op_for_exception_3 = opcode;
50214 		last_addr_for_exception_3 = m68k_getpc() + 4;
50215 		Exception(3, 0, M68000_EXC_SRC_CPU);
50216 		goto endlabel2748;
50217 	}
50218 {{	int32_t src = m68k_read_memory_32(srca);
50219 {	int32_t dst = m68k_dreg(regs, dstreg);
50220 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50221 {	int flgs = ((int32_t)(src)) < 0;
50222 	int flgo = ((int32_t)(dst)) < 0;
50223 	int flgn = ((int32_t)(newv)) < 0;
50224 	SET_ZFLG (((int32_t)(newv)) == 0);
50225 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50226 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50227 	COPY_CARRY;
50228 	SET_NFLG (flgn != 0);
50229 	m68k_dreg(regs, dstreg) = (newv);
50230 }}}}}}}}m68k_incpc(4);
50231 fill_prefetch_0 ();
50232 endlabel2748: ;
50233 return 18;
50234 }
CPUFUNC(op_90b9_5)50235 unsigned long CPUFUNC(op_90b9_5)(uint32_t opcode) /* SUB */
50236 {
50237 	uint32_t dstreg = (opcode >> 9) & 7;
50238 	OpcodeFamily = 7; CurrentInstrCycles = 22;
50239 {{	uint32_t srca = get_ilong_prefetch(2);
50240 	if ((srca & 1) != 0) {
50241 		last_fault_for_exception_3 = srca;
50242 		last_op_for_exception_3 = opcode;
50243 		last_addr_for_exception_3 = m68k_getpc() + 6;
50244 		Exception(3, 0, M68000_EXC_SRC_CPU);
50245 		goto endlabel2749;
50246 	}
50247 {{	int32_t src = m68k_read_memory_32(srca);
50248 {	int32_t dst = m68k_dreg(regs, dstreg);
50249 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50250 {	int flgs = ((int32_t)(src)) < 0;
50251 	int flgo = ((int32_t)(dst)) < 0;
50252 	int flgn = ((int32_t)(newv)) < 0;
50253 	SET_ZFLG (((int32_t)(newv)) == 0);
50254 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50255 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50256 	COPY_CARRY;
50257 	SET_NFLG (flgn != 0);
50258 	m68k_dreg(regs, dstreg) = (newv);
50259 }}}}}}}}m68k_incpc(6);
50260 fill_prefetch_0 ();
50261 endlabel2749: ;
50262 return 22;
50263 }
CPUFUNC(op_90ba_5)50264 unsigned long CPUFUNC(op_90ba_5)(uint32_t opcode) /* SUB */
50265 {
50266 	uint32_t dstreg = (opcode >> 9) & 7;
50267 	OpcodeFamily = 7; CurrentInstrCycles = 18;
50268 {{	uint32_t srca = m68k_getpc () + 2;
50269 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
50270 	if ((srca & 1) != 0) {
50271 		last_fault_for_exception_3 = srca;
50272 		last_op_for_exception_3 = opcode;
50273 		last_addr_for_exception_3 = m68k_getpc() + 4;
50274 		Exception(3, 0, M68000_EXC_SRC_CPU);
50275 		goto endlabel2750;
50276 	}
50277 {{	int32_t src = m68k_read_memory_32(srca);
50278 {	int32_t dst = m68k_dreg(regs, dstreg);
50279 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50280 {	int flgs = ((int32_t)(src)) < 0;
50281 	int flgo = ((int32_t)(dst)) < 0;
50282 	int flgn = ((int32_t)(newv)) < 0;
50283 	SET_ZFLG (((int32_t)(newv)) == 0);
50284 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50285 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50286 	COPY_CARRY;
50287 	SET_NFLG (flgn != 0);
50288 	m68k_dreg(regs, dstreg) = (newv);
50289 }}}}}}}}m68k_incpc(4);
50290 fill_prefetch_0 ();
50291 endlabel2750: ;
50292 return 18;
50293 }
CPUFUNC(op_90bb_5)50294 unsigned long CPUFUNC(op_90bb_5)(uint32_t opcode) /* SUB */
50295 {
50296 	uint32_t dstreg = (opcode >> 9) & 7;
50297 	OpcodeFamily = 7; CurrentInstrCycles = 20;
50298 {{	uint32_t tmppc = m68k_getpc() + 2;
50299 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
50300 	BusCyclePenalty += 2;
50301 	if ((srca & 1) != 0) {
50302 		last_fault_for_exception_3 = srca;
50303 		last_op_for_exception_3 = opcode;
50304 		last_addr_for_exception_3 = m68k_getpc() + 4;
50305 		Exception(3, 0, M68000_EXC_SRC_CPU);
50306 		goto endlabel2751;
50307 	}
50308 {{	int32_t src = m68k_read_memory_32(srca);
50309 {	int32_t dst = m68k_dreg(regs, dstreg);
50310 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50311 {	int flgs = ((int32_t)(src)) < 0;
50312 	int flgo = ((int32_t)(dst)) < 0;
50313 	int flgn = ((int32_t)(newv)) < 0;
50314 	SET_ZFLG (((int32_t)(newv)) == 0);
50315 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50316 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50317 	COPY_CARRY;
50318 	SET_NFLG (flgn != 0);
50319 	m68k_dreg(regs, dstreg) = (newv);
50320 }}}}}}}}m68k_incpc(4);
50321 fill_prefetch_0 ();
50322 endlabel2751: ;
50323 return 20;
50324 }
CPUFUNC(op_90bc_5)50325 unsigned long CPUFUNC(op_90bc_5)(uint32_t opcode) /* SUB */
50326 {
50327 	uint32_t dstreg = (opcode >> 9) & 7;
50328 	OpcodeFamily = 7; CurrentInstrCycles = 16;
50329 {{	int32_t src = get_ilong_prefetch(2);
50330 {	int32_t dst = m68k_dreg(regs, dstreg);
50331 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
50332 {	int flgs = ((int32_t)(src)) < 0;
50333 	int flgo = ((int32_t)(dst)) < 0;
50334 	int flgn = ((int32_t)(newv)) < 0;
50335 	SET_ZFLG (((int32_t)(newv)) == 0);
50336 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50337 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
50338 	COPY_CARRY;
50339 	SET_NFLG (flgn != 0);
50340 	m68k_dreg(regs, dstreg) = (newv);
50341 }}}}}}m68k_incpc(6);
50342 fill_prefetch_0 ();
50343 return 16;
50344 }
CPUFUNC(op_90c0_5)50345 unsigned long CPUFUNC(op_90c0_5)(uint32_t opcode) /* SUBA */
50346 {
50347 	uint32_t srcreg = (opcode & 7);
50348 	uint32_t dstreg = (opcode >> 9) & 7;
50349 	OpcodeFamily = 8; CurrentInstrCycles = 8;
50350 {{	int16_t src = m68k_dreg(regs, srcreg);
50351 {	int32_t dst = m68k_areg(regs, dstreg);
50352 {	uint32_t newv = dst - src;
50353 	m68k_areg(regs, dstreg) = (newv);
50354 }}}}m68k_incpc(2);
50355 fill_prefetch_2 ();
50356 return 8;
50357 }
CPUFUNC(op_90c8_5)50358 unsigned long CPUFUNC(op_90c8_5)(uint32_t opcode) /* SUBA */
50359 {
50360 	uint32_t srcreg = (opcode & 7);
50361 	uint32_t dstreg = (opcode >> 9) & 7;
50362 	OpcodeFamily = 8; CurrentInstrCycles = 8;
50363 {{	int16_t src = m68k_areg(regs, srcreg);
50364 {	int32_t dst = m68k_areg(regs, dstreg);
50365 {	uint32_t newv = dst - src;
50366 	m68k_areg(regs, dstreg) = (newv);
50367 }}}}m68k_incpc(2);
50368 fill_prefetch_2 ();
50369 return 8;
50370 }
CPUFUNC(op_90d0_5)50371 unsigned long CPUFUNC(op_90d0_5)(uint32_t opcode) /* SUBA */
50372 {
50373 	uint32_t srcreg = (opcode & 7);
50374 	uint32_t dstreg = (opcode >> 9) & 7;
50375 	OpcodeFamily = 8; CurrentInstrCycles = 12;
50376 {{	uint32_t srca = m68k_areg(regs, srcreg);
50377 	if ((srca & 1) != 0) {
50378 		last_fault_for_exception_3 = srca;
50379 		last_op_for_exception_3 = opcode;
50380 		last_addr_for_exception_3 = m68k_getpc() + 2;
50381 		Exception(3, 0, M68000_EXC_SRC_CPU);
50382 		goto endlabel2755;
50383 	}
50384 {{	int16_t src = m68k_read_memory_16(srca);
50385 {	int32_t dst = m68k_areg(regs, dstreg);
50386 {	uint32_t newv = dst - src;
50387 	m68k_areg(regs, dstreg) = (newv);
50388 }}}}}}m68k_incpc(2);
50389 fill_prefetch_2 ();
50390 endlabel2755: ;
50391 return 12;
50392 }
CPUFUNC(op_90d8_5)50393 unsigned long CPUFUNC(op_90d8_5)(uint32_t opcode) /* SUBA */
50394 {
50395 	uint32_t srcreg = (opcode & 7);
50396 	uint32_t dstreg = (opcode >> 9) & 7;
50397 	OpcodeFamily = 8; CurrentInstrCycles = 12;
50398 {{	uint32_t srca = m68k_areg(regs, srcreg);
50399 	if ((srca & 1) != 0) {
50400 		last_fault_for_exception_3 = srca;
50401 		last_op_for_exception_3 = opcode;
50402 		last_addr_for_exception_3 = m68k_getpc() + 2;
50403 		Exception(3, 0, M68000_EXC_SRC_CPU);
50404 		goto endlabel2756;
50405 	}
50406 {{	int16_t src = m68k_read_memory_16(srca);
50407 	m68k_areg(regs, srcreg) += 2;
50408 {	int32_t dst = m68k_areg(regs, dstreg);
50409 {	uint32_t newv = dst - src;
50410 	m68k_areg(regs, dstreg) = (newv);
50411 }}}}}}m68k_incpc(2);
50412 fill_prefetch_2 ();
50413 endlabel2756: ;
50414 return 12;
50415 }
CPUFUNC(op_90e0_5)50416 unsigned long CPUFUNC(op_90e0_5)(uint32_t opcode) /* SUBA */
50417 {
50418 	uint32_t srcreg = (opcode & 7);
50419 	uint32_t dstreg = (opcode >> 9) & 7;
50420 	OpcodeFamily = 8; CurrentInstrCycles = 14;
50421 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
50422 	if ((srca & 1) != 0) {
50423 		last_fault_for_exception_3 = srca;
50424 		last_op_for_exception_3 = opcode;
50425 		last_addr_for_exception_3 = m68k_getpc() + 2;
50426 		Exception(3, 0, M68000_EXC_SRC_CPU);
50427 		goto endlabel2757;
50428 	}
50429 {{	int16_t src = m68k_read_memory_16(srca);
50430 	m68k_areg (regs, srcreg) = srca;
50431 {	int32_t dst = m68k_areg(regs, dstreg);
50432 {	uint32_t newv = dst - src;
50433 	m68k_areg(regs, dstreg) = (newv);
50434 }}}}}}m68k_incpc(2);
50435 fill_prefetch_2 ();
50436 endlabel2757: ;
50437 return 14;
50438 }
CPUFUNC(op_90e8_5)50439 unsigned long CPUFUNC(op_90e8_5)(uint32_t opcode) /* SUBA */
50440 {
50441 	uint32_t srcreg = (opcode & 7);
50442 	uint32_t dstreg = (opcode >> 9) & 7;
50443 	OpcodeFamily = 8; CurrentInstrCycles = 16;
50444 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
50445 	if ((srca & 1) != 0) {
50446 		last_fault_for_exception_3 = srca;
50447 		last_op_for_exception_3 = opcode;
50448 		last_addr_for_exception_3 = m68k_getpc() + 4;
50449 		Exception(3, 0, M68000_EXC_SRC_CPU);
50450 		goto endlabel2758;
50451 	}
50452 {{	int16_t src = m68k_read_memory_16(srca);
50453 {	int32_t dst = m68k_areg(regs, dstreg);
50454 {	uint32_t newv = dst - src;
50455 	m68k_areg(regs, dstreg) = (newv);
50456 }}}}}}m68k_incpc(4);
50457 fill_prefetch_0 ();
50458 endlabel2758: ;
50459 return 16;
50460 }
CPUFUNC(op_90f0_5)50461 unsigned long CPUFUNC(op_90f0_5)(uint32_t opcode) /* SUBA */
50462 {
50463 	uint32_t srcreg = (opcode & 7);
50464 	uint32_t dstreg = (opcode >> 9) & 7;
50465 	OpcodeFamily = 8; CurrentInstrCycles = 18;
50466 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
50467 	BusCyclePenalty += 2;
50468 	if ((srca & 1) != 0) {
50469 		last_fault_for_exception_3 = srca;
50470 		last_op_for_exception_3 = opcode;
50471 		last_addr_for_exception_3 = m68k_getpc() + 4;
50472 		Exception(3, 0, M68000_EXC_SRC_CPU);
50473 		goto endlabel2759;
50474 	}
50475 {{	int16_t src = m68k_read_memory_16(srca);
50476 {	int32_t dst = m68k_areg(regs, dstreg);
50477 {	uint32_t newv = dst - src;
50478 	m68k_areg(regs, dstreg) = (newv);
50479 }}}}}}m68k_incpc(4);
50480 fill_prefetch_0 ();
50481 endlabel2759: ;
50482 return 18;
50483 }
CPUFUNC(op_90f8_5)50484 unsigned long CPUFUNC(op_90f8_5)(uint32_t opcode) /* SUBA */
50485 {
50486 	uint32_t dstreg = (opcode >> 9) & 7;
50487 	OpcodeFamily = 8; CurrentInstrCycles = 16;
50488 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
50489 	if ((srca & 1) != 0) {
50490 		last_fault_for_exception_3 = srca;
50491 		last_op_for_exception_3 = opcode;
50492 		last_addr_for_exception_3 = m68k_getpc() + 4;
50493 		Exception(3, 0, M68000_EXC_SRC_CPU);
50494 		goto endlabel2760;
50495 	}
50496 {{	int16_t src = m68k_read_memory_16(srca);
50497 {	int32_t dst = m68k_areg(regs, dstreg);
50498 {	uint32_t newv = dst - src;
50499 	m68k_areg(regs, dstreg) = (newv);
50500 }}}}}}m68k_incpc(4);
50501 fill_prefetch_0 ();
50502 endlabel2760: ;
50503 return 16;
50504 }
CPUFUNC(op_90f9_5)50505 unsigned long CPUFUNC(op_90f9_5)(uint32_t opcode) /* SUBA */
50506 {
50507 	uint32_t dstreg = (opcode >> 9) & 7;
50508 	OpcodeFamily = 8; CurrentInstrCycles = 20;
50509 {{	uint32_t srca = get_ilong_prefetch(2);
50510 	if ((srca & 1) != 0) {
50511 		last_fault_for_exception_3 = srca;
50512 		last_op_for_exception_3 = opcode;
50513 		last_addr_for_exception_3 = m68k_getpc() + 6;
50514 		Exception(3, 0, M68000_EXC_SRC_CPU);
50515 		goto endlabel2761;
50516 	}
50517 {{	int16_t src = m68k_read_memory_16(srca);
50518 {	int32_t dst = m68k_areg(regs, dstreg);
50519 {	uint32_t newv = dst - src;
50520 	m68k_areg(regs, dstreg) = (newv);
50521 }}}}}}m68k_incpc(6);
50522 fill_prefetch_0 ();
50523 endlabel2761: ;
50524 return 20;
50525 }
CPUFUNC(op_90fa_5)50526 unsigned long CPUFUNC(op_90fa_5)(uint32_t opcode) /* SUBA */
50527 {
50528 	uint32_t dstreg = (opcode >> 9) & 7;
50529 	OpcodeFamily = 8; CurrentInstrCycles = 16;
50530 {{	uint32_t srca = m68k_getpc () + 2;
50531 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
50532 	if ((srca & 1) != 0) {
50533 		last_fault_for_exception_3 = srca;
50534 		last_op_for_exception_3 = opcode;
50535 		last_addr_for_exception_3 = m68k_getpc() + 4;
50536 		Exception(3, 0, M68000_EXC_SRC_CPU);
50537 		goto endlabel2762;
50538 	}
50539 {{	int16_t src = m68k_read_memory_16(srca);
50540 {	int32_t dst = m68k_areg(regs, dstreg);
50541 {	uint32_t newv = dst - src;
50542 	m68k_areg(regs, dstreg) = (newv);
50543 }}}}}}m68k_incpc(4);
50544 fill_prefetch_0 ();
50545 endlabel2762: ;
50546 return 16;
50547 }
CPUFUNC(op_90fb_5)50548 unsigned long CPUFUNC(op_90fb_5)(uint32_t opcode) /* SUBA */
50549 {
50550 	uint32_t dstreg = (opcode >> 9) & 7;
50551 	OpcodeFamily = 8; CurrentInstrCycles = 18;
50552 {{	uint32_t tmppc = m68k_getpc() + 2;
50553 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
50554 	BusCyclePenalty += 2;
50555 	if ((srca & 1) != 0) {
50556 		last_fault_for_exception_3 = srca;
50557 		last_op_for_exception_3 = opcode;
50558 		last_addr_for_exception_3 = m68k_getpc() + 4;
50559 		Exception(3, 0, M68000_EXC_SRC_CPU);
50560 		goto endlabel2763;
50561 	}
50562 {{	int16_t src = m68k_read_memory_16(srca);
50563 {	int32_t dst = m68k_areg(regs, dstreg);
50564 {	uint32_t newv = dst - src;
50565 	m68k_areg(regs, dstreg) = (newv);
50566 }}}}}}m68k_incpc(4);
50567 fill_prefetch_0 ();
50568 endlabel2763: ;
50569 return 18;
50570 }
CPUFUNC(op_90fc_5)50571 unsigned long CPUFUNC(op_90fc_5)(uint32_t opcode) /* SUBA */
50572 {
50573 	uint32_t dstreg = (opcode >> 9) & 7;
50574 	OpcodeFamily = 8; CurrentInstrCycles = 12;
50575 {{	int16_t src = get_iword_prefetch(2);
50576 {	int32_t dst = m68k_areg(regs, dstreg);
50577 {	uint32_t newv = dst - src;
50578 	m68k_areg(regs, dstreg) = (newv);
50579 }}}}m68k_incpc(4);
50580 fill_prefetch_0 ();
50581 return 12;
50582 }
CPUFUNC(op_9100_5)50583 unsigned long CPUFUNC(op_9100_5)(uint32_t opcode) /* SUBX */
50584 {
50585 	uint32_t srcreg = (opcode & 7);
50586 	uint32_t dstreg = (opcode >> 9) & 7;
50587 	OpcodeFamily = 9; CurrentInstrCycles = 4;
50588 {{	int8_t src = m68k_dreg(regs, srcreg);
50589 {	int8_t dst = m68k_dreg(regs, dstreg);
50590 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
50591 {	int flgs = ((int8_t)(src)) < 0;
50592 	int flgo = ((int8_t)(dst)) < 0;
50593 	int flgn = ((int8_t)(newv)) < 0;
50594 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
50595 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
50596 	COPY_CARRY;
50597 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
50598 	SET_NFLG (((int8_t)(newv)) < 0);
50599 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
50600 }}}}}m68k_incpc(2);
50601 fill_prefetch_2 ();
50602 return 4;
50603 }
CPUFUNC(op_9108_5)50604 unsigned long CPUFUNC(op_9108_5)(uint32_t opcode) /* SUBX */
50605 {
50606 	uint32_t srcreg = (opcode & 7);
50607 	uint32_t dstreg = (opcode >> 9) & 7;
50608 	OpcodeFamily = 9; CurrentInstrCycles = 18;
50609 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
50610 {	int8_t src = m68k_read_memory_8(srca);
50611 	m68k_areg (regs, srcreg) = srca;
50612 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
50613 {	int8_t dst = m68k_read_memory_8(dsta);
50614 	m68k_areg (regs, dstreg) = dsta;
50615 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
50616 {	int flgs = ((int8_t)(src)) < 0;
50617 	int flgo = ((int8_t)(dst)) < 0;
50618 	int flgn = ((int8_t)(newv)) < 0;
50619 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
50620 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
50621 	COPY_CARRY;
50622 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
50623 	SET_NFLG (((int8_t)(newv)) < 0);
50624 m68k_incpc(2);
50625 fill_prefetch_2 ();
50626 	m68k_write_memory_8(dsta,newv);
50627 }}}}}}}return 18;
50628 }
CPUFUNC(op_9110_5)50629 unsigned long CPUFUNC(op_9110_5)(uint32_t opcode) /* SUB */
50630 {
50631 	uint32_t srcreg = ((opcode >> 9) & 7);
50632 	uint32_t dstreg = opcode & 7;
50633 	OpcodeFamily = 7; CurrentInstrCycles = 12;
50634 {{	int8_t src = m68k_dreg(regs, srcreg);
50635 {	uint32_t dsta = m68k_areg(regs, dstreg);
50636 {	int8_t dst = m68k_read_memory_8(dsta);
50637 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
50638 {	int flgs = ((int8_t)(src)) < 0;
50639 	int flgo = ((int8_t)(dst)) < 0;
50640 	int flgn = ((int8_t)(newv)) < 0;
50641 	SET_ZFLG (((int8_t)(newv)) == 0);
50642 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50643 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
50644 	COPY_CARRY;
50645 	SET_NFLG (flgn != 0);
50646 m68k_incpc(2);
50647 fill_prefetch_2 ();
50648 	m68k_write_memory_8(dsta,newv);
50649 }}}}}}}return 12;
50650 }
CPUFUNC(op_9118_5)50651 unsigned long CPUFUNC(op_9118_5)(uint32_t opcode) /* SUB */
50652 {
50653 	uint32_t srcreg = ((opcode >> 9) & 7);
50654 	uint32_t dstreg = opcode & 7;
50655 	OpcodeFamily = 7; CurrentInstrCycles = 12;
50656 {{	int8_t src = m68k_dreg(regs, srcreg);
50657 {	uint32_t dsta = m68k_areg(regs, dstreg);
50658 {	int8_t dst = m68k_read_memory_8(dsta);
50659 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
50660 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
50661 {	int flgs = ((int8_t)(src)) < 0;
50662 	int flgo = ((int8_t)(dst)) < 0;
50663 	int flgn = ((int8_t)(newv)) < 0;
50664 	SET_ZFLG (((int8_t)(newv)) == 0);
50665 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50666 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
50667 	COPY_CARRY;
50668 	SET_NFLG (flgn != 0);
50669 m68k_incpc(2);
50670 fill_prefetch_2 ();
50671 	m68k_write_memory_8(dsta,newv);
50672 }}}}}}}return 12;
50673 }
CPUFUNC(op_9120_5)50674 unsigned long CPUFUNC(op_9120_5)(uint32_t opcode) /* SUB */
50675 {
50676 	uint32_t srcreg = ((opcode >> 9) & 7);
50677 	uint32_t dstreg = opcode & 7;
50678 	OpcodeFamily = 7; CurrentInstrCycles = 14;
50679 {{	int8_t src = m68k_dreg(regs, srcreg);
50680 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
50681 {	int8_t dst = m68k_read_memory_8(dsta);
50682 	m68k_areg (regs, dstreg) = dsta;
50683 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
50684 {	int flgs = ((int8_t)(src)) < 0;
50685 	int flgo = ((int8_t)(dst)) < 0;
50686 	int flgn = ((int8_t)(newv)) < 0;
50687 	SET_ZFLG (((int8_t)(newv)) == 0);
50688 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50689 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
50690 	COPY_CARRY;
50691 	SET_NFLG (flgn != 0);
50692 m68k_incpc(2);
50693 fill_prefetch_2 ();
50694 	m68k_write_memory_8(dsta,newv);
50695 }}}}}}}return 14;
50696 }
CPUFUNC(op_9128_5)50697 unsigned long CPUFUNC(op_9128_5)(uint32_t opcode) /* SUB */
50698 {
50699 	uint32_t srcreg = ((opcode >> 9) & 7);
50700 	uint32_t dstreg = opcode & 7;
50701 	OpcodeFamily = 7; CurrentInstrCycles = 16;
50702 {{	int8_t src = m68k_dreg(regs, srcreg);
50703 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
50704 {	int8_t dst = m68k_read_memory_8(dsta);
50705 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
50706 {	int flgs = ((int8_t)(src)) < 0;
50707 	int flgo = ((int8_t)(dst)) < 0;
50708 	int flgn = ((int8_t)(newv)) < 0;
50709 	SET_ZFLG (((int8_t)(newv)) == 0);
50710 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50711 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
50712 	COPY_CARRY;
50713 	SET_NFLG (flgn != 0);
50714 m68k_incpc(4);
50715 fill_prefetch_0 ();
50716 	m68k_write_memory_8(dsta,newv);
50717 }}}}}}}return 16;
50718 }
CPUFUNC(op_9130_5)50719 unsigned long CPUFUNC(op_9130_5)(uint32_t opcode) /* SUB */
50720 {
50721 	uint32_t srcreg = ((opcode >> 9) & 7);
50722 	uint32_t dstreg = opcode & 7;
50723 	OpcodeFamily = 7; CurrentInstrCycles = 18;
50724 {{	int8_t src = m68k_dreg(regs, srcreg);
50725 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
50726 	BusCyclePenalty += 2;
50727 {	int8_t dst = m68k_read_memory_8(dsta);
50728 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
50729 {	int flgs = ((int8_t)(src)) < 0;
50730 	int flgo = ((int8_t)(dst)) < 0;
50731 	int flgn = ((int8_t)(newv)) < 0;
50732 	SET_ZFLG (((int8_t)(newv)) == 0);
50733 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50734 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
50735 	COPY_CARRY;
50736 	SET_NFLG (flgn != 0);
50737 m68k_incpc(4);
50738 fill_prefetch_0 ();
50739 	m68k_write_memory_8(dsta,newv);
50740 }}}}}}}return 18;
50741 }
CPUFUNC(op_9138_5)50742 unsigned long CPUFUNC(op_9138_5)(uint32_t opcode) /* SUB */
50743 {
50744 	uint32_t srcreg = ((opcode >> 9) & 7);
50745 	OpcodeFamily = 7; CurrentInstrCycles = 16;
50746 {{	int8_t src = m68k_dreg(regs, srcreg);
50747 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
50748 {	int8_t dst = m68k_read_memory_8(dsta);
50749 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
50750 {	int flgs = ((int8_t)(src)) < 0;
50751 	int flgo = ((int8_t)(dst)) < 0;
50752 	int flgn = ((int8_t)(newv)) < 0;
50753 	SET_ZFLG (((int8_t)(newv)) == 0);
50754 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50755 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
50756 	COPY_CARRY;
50757 	SET_NFLG (flgn != 0);
50758 m68k_incpc(4);
50759 fill_prefetch_0 ();
50760 	m68k_write_memory_8(dsta,newv);
50761 }}}}}}}return 16;
50762 }
CPUFUNC(op_9139_5)50763 unsigned long CPUFUNC(op_9139_5)(uint32_t opcode) /* SUB */
50764 {
50765 	uint32_t srcreg = ((opcode >> 9) & 7);
50766 	OpcodeFamily = 7; CurrentInstrCycles = 20;
50767 {{	int8_t src = m68k_dreg(regs, srcreg);
50768 {	uint32_t dsta = get_ilong_prefetch(2);
50769 {	int8_t dst = m68k_read_memory_8(dsta);
50770 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
50771 {	int flgs = ((int8_t)(src)) < 0;
50772 	int flgo = ((int8_t)(dst)) < 0;
50773 	int flgn = ((int8_t)(newv)) < 0;
50774 	SET_ZFLG (((int8_t)(newv)) == 0);
50775 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50776 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
50777 	COPY_CARRY;
50778 	SET_NFLG (flgn != 0);
50779 m68k_incpc(6);
50780 fill_prefetch_0 ();
50781 	m68k_write_memory_8(dsta,newv);
50782 }}}}}}}return 20;
50783 }
CPUFUNC(op_9140_5)50784 unsigned long CPUFUNC(op_9140_5)(uint32_t opcode) /* SUBX */
50785 {
50786 	uint32_t srcreg = (opcode & 7);
50787 	uint32_t dstreg = (opcode >> 9) & 7;
50788 	OpcodeFamily = 9; CurrentInstrCycles = 4;
50789 {{	int16_t src = m68k_dreg(regs, srcreg);
50790 {	int16_t dst = m68k_dreg(regs, dstreg);
50791 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
50792 {	int flgs = ((int16_t)(src)) < 0;
50793 	int flgo = ((int16_t)(dst)) < 0;
50794 	int flgn = ((int16_t)(newv)) < 0;
50795 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
50796 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
50797 	COPY_CARRY;
50798 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
50799 	SET_NFLG (((int16_t)(newv)) < 0);
50800 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
50801 }}}}}m68k_incpc(2);
50802 fill_prefetch_2 ();
50803 return 4;
50804 }
CPUFUNC(op_9148_5)50805 unsigned long CPUFUNC(op_9148_5)(uint32_t opcode) /* SUBX */
50806 {
50807 	uint32_t srcreg = (opcode & 7);
50808 	uint32_t dstreg = (opcode >> 9) & 7;
50809 	OpcodeFamily = 9; CurrentInstrCycles = 18;
50810 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
50811 	if ((srca & 1) != 0) {
50812 		last_fault_for_exception_3 = srca;
50813 		last_op_for_exception_3 = opcode;
50814 		last_addr_for_exception_3 = m68k_getpc() + 2;
50815 		Exception(3, 0, M68000_EXC_SRC_CPU);
50816 		goto endlabel2775;
50817 	}
50818 {{	int16_t src = m68k_read_memory_16(srca);
50819 	m68k_areg (regs, srcreg) = srca;
50820 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
50821 	if ((dsta & 1) != 0) {
50822 		last_fault_for_exception_3 = dsta;
50823 		last_op_for_exception_3 = opcode;
50824 		last_addr_for_exception_3 = m68k_getpc() + 2;
50825 		Exception(3, 0, M68000_EXC_SRC_CPU);
50826 		goto endlabel2775;
50827 	}
50828 {{	int16_t dst = m68k_read_memory_16(dsta);
50829 	m68k_areg (regs, dstreg) = dsta;
50830 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
50831 {	int flgs = ((int16_t)(src)) < 0;
50832 	int flgo = ((int16_t)(dst)) < 0;
50833 	int flgn = ((int16_t)(newv)) < 0;
50834 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
50835 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
50836 	COPY_CARRY;
50837 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
50838 	SET_NFLG (((int16_t)(newv)) < 0);
50839 m68k_incpc(2);
50840 fill_prefetch_2 ();
50841 	m68k_write_memory_16(dsta,newv);
50842 }}}}}}}}}endlabel2775: ;
50843 return 18;
50844 }
CPUFUNC(op_9150_5)50845 unsigned long CPUFUNC(op_9150_5)(uint32_t opcode) /* SUB */
50846 {
50847 	uint32_t srcreg = ((opcode >> 9) & 7);
50848 	uint32_t dstreg = opcode & 7;
50849 	OpcodeFamily = 7; CurrentInstrCycles = 12;
50850 {{	int16_t src = m68k_dreg(regs, srcreg);
50851 {	uint32_t dsta = m68k_areg(regs, dstreg);
50852 	if ((dsta & 1) != 0) {
50853 		last_fault_for_exception_3 = dsta;
50854 		last_op_for_exception_3 = opcode;
50855 		last_addr_for_exception_3 = m68k_getpc() + 2;
50856 		Exception(3, 0, M68000_EXC_SRC_CPU);
50857 		goto endlabel2776;
50858 	}
50859 {{	int16_t dst = m68k_read_memory_16(dsta);
50860 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
50861 {	int flgs = ((int16_t)(src)) < 0;
50862 	int flgo = ((int16_t)(dst)) < 0;
50863 	int flgn = ((int16_t)(newv)) < 0;
50864 	SET_ZFLG (((int16_t)(newv)) == 0);
50865 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50866 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
50867 	COPY_CARRY;
50868 	SET_NFLG (flgn != 0);
50869 m68k_incpc(2);
50870 fill_prefetch_2 ();
50871 	m68k_write_memory_16(dsta,newv);
50872 }}}}}}}}endlabel2776: ;
50873 return 12;
50874 }
CPUFUNC(op_9158_5)50875 unsigned long CPUFUNC(op_9158_5)(uint32_t opcode) /* SUB */
50876 {
50877 	uint32_t srcreg = ((opcode >> 9) & 7);
50878 	uint32_t dstreg = opcode & 7;
50879 	OpcodeFamily = 7; CurrentInstrCycles = 12;
50880 {{	int16_t src = m68k_dreg(regs, srcreg);
50881 {	uint32_t dsta = m68k_areg(regs, dstreg);
50882 	if ((dsta & 1) != 0) {
50883 		last_fault_for_exception_3 = dsta;
50884 		last_op_for_exception_3 = opcode;
50885 		last_addr_for_exception_3 = m68k_getpc() + 2;
50886 		Exception(3, 0, M68000_EXC_SRC_CPU);
50887 		goto endlabel2777;
50888 	}
50889 {{	int16_t dst = m68k_read_memory_16(dsta);
50890 	m68k_areg(regs, dstreg) += 2;
50891 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
50892 {	int flgs = ((int16_t)(src)) < 0;
50893 	int flgo = ((int16_t)(dst)) < 0;
50894 	int flgn = ((int16_t)(newv)) < 0;
50895 	SET_ZFLG (((int16_t)(newv)) == 0);
50896 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50897 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
50898 	COPY_CARRY;
50899 	SET_NFLG (flgn != 0);
50900 m68k_incpc(2);
50901 fill_prefetch_2 ();
50902 	m68k_write_memory_16(dsta,newv);
50903 }}}}}}}}endlabel2777: ;
50904 return 12;
50905 }
CPUFUNC(op_9160_5)50906 unsigned long CPUFUNC(op_9160_5)(uint32_t opcode) /* SUB */
50907 {
50908 	uint32_t srcreg = ((opcode >> 9) & 7);
50909 	uint32_t dstreg = opcode & 7;
50910 	OpcodeFamily = 7; CurrentInstrCycles = 14;
50911 {{	int16_t src = m68k_dreg(regs, srcreg);
50912 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
50913 	if ((dsta & 1) != 0) {
50914 		last_fault_for_exception_3 = dsta;
50915 		last_op_for_exception_3 = opcode;
50916 		last_addr_for_exception_3 = m68k_getpc() + 2;
50917 		Exception(3, 0, M68000_EXC_SRC_CPU);
50918 		goto endlabel2778;
50919 	}
50920 {{	int16_t dst = m68k_read_memory_16(dsta);
50921 	m68k_areg (regs, dstreg) = dsta;
50922 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
50923 {	int flgs = ((int16_t)(src)) < 0;
50924 	int flgo = ((int16_t)(dst)) < 0;
50925 	int flgn = ((int16_t)(newv)) < 0;
50926 	SET_ZFLG (((int16_t)(newv)) == 0);
50927 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50928 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
50929 	COPY_CARRY;
50930 	SET_NFLG (flgn != 0);
50931 m68k_incpc(2);
50932 fill_prefetch_2 ();
50933 	m68k_write_memory_16(dsta,newv);
50934 }}}}}}}}endlabel2778: ;
50935 return 14;
50936 }
CPUFUNC(op_9168_5)50937 unsigned long CPUFUNC(op_9168_5)(uint32_t opcode) /* SUB */
50938 {
50939 	uint32_t srcreg = ((opcode >> 9) & 7);
50940 	uint32_t dstreg = opcode & 7;
50941 	OpcodeFamily = 7; CurrentInstrCycles = 16;
50942 {{	int16_t src = m68k_dreg(regs, srcreg);
50943 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
50944 	if ((dsta & 1) != 0) {
50945 		last_fault_for_exception_3 = dsta;
50946 		last_op_for_exception_3 = opcode;
50947 		last_addr_for_exception_3 = m68k_getpc() + 4;
50948 		Exception(3, 0, M68000_EXC_SRC_CPU);
50949 		goto endlabel2779;
50950 	}
50951 {{	int16_t dst = m68k_read_memory_16(dsta);
50952 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
50953 {	int flgs = ((int16_t)(src)) < 0;
50954 	int flgo = ((int16_t)(dst)) < 0;
50955 	int flgn = ((int16_t)(newv)) < 0;
50956 	SET_ZFLG (((int16_t)(newv)) == 0);
50957 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50958 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
50959 	COPY_CARRY;
50960 	SET_NFLG (flgn != 0);
50961 m68k_incpc(4);
50962 fill_prefetch_0 ();
50963 	m68k_write_memory_16(dsta,newv);
50964 }}}}}}}}endlabel2779: ;
50965 return 16;
50966 }
CPUFUNC(op_9170_5)50967 unsigned long CPUFUNC(op_9170_5)(uint32_t opcode) /* SUB */
50968 {
50969 	uint32_t srcreg = ((opcode >> 9) & 7);
50970 	uint32_t dstreg = opcode & 7;
50971 	OpcodeFamily = 7; CurrentInstrCycles = 18;
50972 {{	int16_t src = m68k_dreg(regs, srcreg);
50973 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
50974 	BusCyclePenalty += 2;
50975 	if ((dsta & 1) != 0) {
50976 		last_fault_for_exception_3 = dsta;
50977 		last_op_for_exception_3 = opcode;
50978 		last_addr_for_exception_3 = m68k_getpc() + 4;
50979 		Exception(3, 0, M68000_EXC_SRC_CPU);
50980 		goto endlabel2780;
50981 	}
50982 {{	int16_t dst = m68k_read_memory_16(dsta);
50983 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
50984 {	int flgs = ((int16_t)(src)) < 0;
50985 	int flgo = ((int16_t)(dst)) < 0;
50986 	int flgn = ((int16_t)(newv)) < 0;
50987 	SET_ZFLG (((int16_t)(newv)) == 0);
50988 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
50989 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
50990 	COPY_CARRY;
50991 	SET_NFLG (flgn != 0);
50992 m68k_incpc(4);
50993 fill_prefetch_0 ();
50994 	m68k_write_memory_16(dsta,newv);
50995 }}}}}}}}endlabel2780: ;
50996 return 18;
50997 }
CPUFUNC(op_9178_5)50998 unsigned long CPUFUNC(op_9178_5)(uint32_t opcode) /* SUB */
50999 {
51000 	uint32_t srcreg = ((opcode >> 9) & 7);
51001 	OpcodeFamily = 7; CurrentInstrCycles = 16;
51002 {{	int16_t src = m68k_dreg(regs, srcreg);
51003 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
51004 	if ((dsta & 1) != 0) {
51005 		last_fault_for_exception_3 = dsta;
51006 		last_op_for_exception_3 = opcode;
51007 		last_addr_for_exception_3 = m68k_getpc() + 4;
51008 		Exception(3, 0, M68000_EXC_SRC_CPU);
51009 		goto endlabel2781;
51010 	}
51011 {{	int16_t dst = m68k_read_memory_16(dsta);
51012 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51013 {	int flgs = ((int16_t)(src)) < 0;
51014 	int flgo = ((int16_t)(dst)) < 0;
51015 	int flgn = ((int16_t)(newv)) < 0;
51016 	SET_ZFLG (((int16_t)(newv)) == 0);
51017 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51018 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51019 	COPY_CARRY;
51020 	SET_NFLG (flgn != 0);
51021 m68k_incpc(4);
51022 fill_prefetch_0 ();
51023 	m68k_write_memory_16(dsta,newv);
51024 }}}}}}}}endlabel2781: ;
51025 return 16;
51026 }
CPUFUNC(op_9179_5)51027 unsigned long CPUFUNC(op_9179_5)(uint32_t opcode) /* SUB */
51028 {
51029 	uint32_t srcreg = ((opcode >> 9) & 7);
51030 	OpcodeFamily = 7; CurrentInstrCycles = 20;
51031 {{	int16_t src = m68k_dreg(regs, srcreg);
51032 {	uint32_t dsta = get_ilong_prefetch(2);
51033 	if ((dsta & 1) != 0) {
51034 		last_fault_for_exception_3 = dsta;
51035 		last_op_for_exception_3 = opcode;
51036 		last_addr_for_exception_3 = m68k_getpc() + 6;
51037 		Exception(3, 0, M68000_EXC_SRC_CPU);
51038 		goto endlabel2782;
51039 	}
51040 {{	int16_t dst = m68k_read_memory_16(dsta);
51041 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51042 {	int flgs = ((int16_t)(src)) < 0;
51043 	int flgo = ((int16_t)(dst)) < 0;
51044 	int flgn = ((int16_t)(newv)) < 0;
51045 	SET_ZFLG (((int16_t)(newv)) == 0);
51046 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51047 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51048 	COPY_CARRY;
51049 	SET_NFLG (flgn != 0);
51050 m68k_incpc(6);
51051 fill_prefetch_0 ();
51052 	m68k_write_memory_16(dsta,newv);
51053 }}}}}}}}endlabel2782: ;
51054 return 20;
51055 }
CPUFUNC(op_9180_5)51056 unsigned long CPUFUNC(op_9180_5)(uint32_t opcode) /* SUBX */
51057 {
51058 	uint32_t srcreg = (opcode & 7);
51059 	uint32_t dstreg = (opcode >> 9) & 7;
51060 	OpcodeFamily = 9; CurrentInstrCycles = 8;
51061 {{	int32_t src = m68k_dreg(regs, srcreg);
51062 {	int32_t dst = m68k_dreg(regs, dstreg);
51063 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
51064 {	int flgs = ((int32_t)(src)) < 0;
51065 	int flgo = ((int32_t)(dst)) < 0;
51066 	int flgn = ((int32_t)(newv)) < 0;
51067 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
51068 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
51069 	COPY_CARRY;
51070 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
51071 	SET_NFLG (((int32_t)(newv)) < 0);
51072 	m68k_dreg(regs, dstreg) = (newv);
51073 }}}}}m68k_incpc(2);
51074 fill_prefetch_2 ();
51075 return 8;
51076 }
CPUFUNC(op_9188_5)51077 unsigned long CPUFUNC(op_9188_5)(uint32_t opcode) /* SUBX */
51078 {
51079 	uint32_t srcreg = (opcode & 7);
51080 	uint32_t dstreg = (opcode >> 9) & 7;
51081 	OpcodeFamily = 9; CurrentInstrCycles = 30;
51082 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
51083 	if ((srca & 1) != 0) {
51084 		last_fault_for_exception_3 = srca;
51085 		last_op_for_exception_3 = opcode;
51086 		last_addr_for_exception_3 = m68k_getpc() + 2;
51087 		Exception(3, 0, M68000_EXC_SRC_CPU);
51088 		goto endlabel2784;
51089 	}
51090 {{	int32_t src = m68k_read_memory_32(srca);
51091 	m68k_areg (regs, srcreg) = srca;
51092 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
51093 	if ((dsta & 1) != 0) {
51094 		last_fault_for_exception_3 = dsta;
51095 		last_op_for_exception_3 = opcode;
51096 		last_addr_for_exception_3 = m68k_getpc() + 2;
51097 		Exception(3, 0, M68000_EXC_SRC_CPU);
51098 		goto endlabel2784;
51099 	}
51100 {{	int32_t dst = m68k_read_memory_32(dsta);
51101 	m68k_areg (regs, dstreg) = dsta;
51102 {	uint32_t newv = dst - src - (GET_XFLG ? 1 : 0);
51103 {	int flgs = ((int32_t)(src)) < 0;
51104 	int flgo = ((int32_t)(dst)) < 0;
51105 	int flgn = ((int32_t)(newv)) < 0;
51106 	SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn));
51107 	SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn)));
51108 	COPY_CARRY;
51109 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
51110 	SET_NFLG (((int32_t)(newv)) < 0);
51111 m68k_incpc(2);
51112 fill_prefetch_2 ();
51113 	m68k_write_memory_32(dsta,newv);
51114 }}}}}}}}}endlabel2784: ;
51115 return 30;
51116 }
CPUFUNC(op_9190_5)51117 unsigned long CPUFUNC(op_9190_5)(uint32_t opcode) /* SUB */
51118 {
51119 	uint32_t srcreg = ((opcode >> 9) & 7);
51120 	uint32_t dstreg = opcode & 7;
51121 	OpcodeFamily = 7; CurrentInstrCycles = 20;
51122 {{	int32_t src = m68k_dreg(regs, srcreg);
51123 {	uint32_t dsta = m68k_areg(regs, dstreg);
51124 	if ((dsta & 1) != 0) {
51125 		last_fault_for_exception_3 = dsta;
51126 		last_op_for_exception_3 = opcode;
51127 		last_addr_for_exception_3 = m68k_getpc() + 2;
51128 		Exception(3, 0, M68000_EXC_SRC_CPU);
51129 		goto endlabel2785;
51130 	}
51131 {{	int32_t dst = m68k_read_memory_32(dsta);
51132 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
51133 {	int flgs = ((int32_t)(src)) < 0;
51134 	int flgo = ((int32_t)(dst)) < 0;
51135 	int flgn = ((int32_t)(newv)) < 0;
51136 	SET_ZFLG (((int32_t)(newv)) == 0);
51137 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51138 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
51139 	COPY_CARRY;
51140 	SET_NFLG (flgn != 0);
51141 m68k_incpc(2);
51142 fill_prefetch_2 ();
51143 	m68k_write_memory_32(dsta,newv);
51144 }}}}}}}}endlabel2785: ;
51145 return 20;
51146 }
CPUFUNC(op_9198_5)51147 unsigned long CPUFUNC(op_9198_5)(uint32_t opcode) /* SUB */
51148 {
51149 	uint32_t srcreg = ((opcode >> 9) & 7);
51150 	uint32_t dstreg = opcode & 7;
51151 	OpcodeFamily = 7; CurrentInstrCycles = 20;
51152 {{	int32_t src = m68k_dreg(regs, srcreg);
51153 {	uint32_t dsta = m68k_areg(regs, dstreg);
51154 	if ((dsta & 1) != 0) {
51155 		last_fault_for_exception_3 = dsta;
51156 		last_op_for_exception_3 = opcode;
51157 		last_addr_for_exception_3 = m68k_getpc() + 2;
51158 		Exception(3, 0, M68000_EXC_SRC_CPU);
51159 		goto endlabel2786;
51160 	}
51161 {{	int32_t dst = m68k_read_memory_32(dsta);
51162 	m68k_areg(regs, dstreg) += 4;
51163 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
51164 {	int flgs = ((int32_t)(src)) < 0;
51165 	int flgo = ((int32_t)(dst)) < 0;
51166 	int flgn = ((int32_t)(newv)) < 0;
51167 	SET_ZFLG (((int32_t)(newv)) == 0);
51168 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51169 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
51170 	COPY_CARRY;
51171 	SET_NFLG (flgn != 0);
51172 m68k_incpc(2);
51173 fill_prefetch_2 ();
51174 	m68k_write_memory_32(dsta,newv);
51175 }}}}}}}}endlabel2786: ;
51176 return 20;
51177 }
CPUFUNC(op_91a0_5)51178 unsigned long CPUFUNC(op_91a0_5)(uint32_t opcode) /* SUB */
51179 {
51180 	uint32_t srcreg = ((opcode >> 9) & 7);
51181 	uint32_t dstreg = opcode & 7;
51182 	OpcodeFamily = 7; CurrentInstrCycles = 22;
51183 {{	int32_t src = m68k_dreg(regs, srcreg);
51184 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
51185 	if ((dsta & 1) != 0) {
51186 		last_fault_for_exception_3 = dsta;
51187 		last_op_for_exception_3 = opcode;
51188 		last_addr_for_exception_3 = m68k_getpc() + 2;
51189 		Exception(3, 0, M68000_EXC_SRC_CPU);
51190 		goto endlabel2787;
51191 	}
51192 {{	int32_t dst = m68k_read_memory_32(dsta);
51193 	m68k_areg (regs, dstreg) = dsta;
51194 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
51195 {	int flgs = ((int32_t)(src)) < 0;
51196 	int flgo = ((int32_t)(dst)) < 0;
51197 	int flgn = ((int32_t)(newv)) < 0;
51198 	SET_ZFLG (((int32_t)(newv)) == 0);
51199 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51200 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
51201 	COPY_CARRY;
51202 	SET_NFLG (flgn != 0);
51203 m68k_incpc(2);
51204 fill_prefetch_2 ();
51205 	m68k_write_memory_32(dsta,newv);
51206 }}}}}}}}endlabel2787: ;
51207 return 22;
51208 }
CPUFUNC(op_91a8_5)51209 unsigned long CPUFUNC(op_91a8_5)(uint32_t opcode) /* SUB */
51210 {
51211 	uint32_t srcreg = ((opcode >> 9) & 7);
51212 	uint32_t dstreg = opcode & 7;
51213 	OpcodeFamily = 7; CurrentInstrCycles = 24;
51214 {{	int32_t src = m68k_dreg(regs, srcreg);
51215 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
51216 	if ((dsta & 1) != 0) {
51217 		last_fault_for_exception_3 = dsta;
51218 		last_op_for_exception_3 = opcode;
51219 		last_addr_for_exception_3 = m68k_getpc() + 4;
51220 		Exception(3, 0, M68000_EXC_SRC_CPU);
51221 		goto endlabel2788;
51222 	}
51223 {{	int32_t dst = m68k_read_memory_32(dsta);
51224 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
51225 {	int flgs = ((int32_t)(src)) < 0;
51226 	int flgo = ((int32_t)(dst)) < 0;
51227 	int flgn = ((int32_t)(newv)) < 0;
51228 	SET_ZFLG (((int32_t)(newv)) == 0);
51229 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51230 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
51231 	COPY_CARRY;
51232 	SET_NFLG (flgn != 0);
51233 m68k_incpc(4);
51234 fill_prefetch_0 ();
51235 	m68k_write_memory_32(dsta,newv);
51236 }}}}}}}}endlabel2788: ;
51237 return 24;
51238 }
CPUFUNC(op_91b0_5)51239 unsigned long CPUFUNC(op_91b0_5)(uint32_t opcode) /* SUB */
51240 {
51241 	uint32_t srcreg = ((opcode >> 9) & 7);
51242 	uint32_t dstreg = opcode & 7;
51243 	OpcodeFamily = 7; CurrentInstrCycles = 26;
51244 {{	int32_t src = m68k_dreg(regs, srcreg);
51245 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
51246 	BusCyclePenalty += 2;
51247 	if ((dsta & 1) != 0) {
51248 		last_fault_for_exception_3 = dsta;
51249 		last_op_for_exception_3 = opcode;
51250 		last_addr_for_exception_3 = m68k_getpc() + 4;
51251 		Exception(3, 0, M68000_EXC_SRC_CPU);
51252 		goto endlabel2789;
51253 	}
51254 {{	int32_t dst = m68k_read_memory_32(dsta);
51255 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
51256 {	int flgs = ((int32_t)(src)) < 0;
51257 	int flgo = ((int32_t)(dst)) < 0;
51258 	int flgn = ((int32_t)(newv)) < 0;
51259 	SET_ZFLG (((int32_t)(newv)) == 0);
51260 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51261 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
51262 	COPY_CARRY;
51263 	SET_NFLG (flgn != 0);
51264 m68k_incpc(4);
51265 fill_prefetch_0 ();
51266 	m68k_write_memory_32(dsta,newv);
51267 }}}}}}}}endlabel2789: ;
51268 return 26;
51269 }
CPUFUNC(op_91b8_5)51270 unsigned long CPUFUNC(op_91b8_5)(uint32_t opcode) /* SUB */
51271 {
51272 	uint32_t srcreg = ((opcode >> 9) & 7);
51273 	OpcodeFamily = 7; CurrentInstrCycles = 24;
51274 {{	int32_t src = m68k_dreg(regs, srcreg);
51275 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
51276 	if ((dsta & 1) != 0) {
51277 		last_fault_for_exception_3 = dsta;
51278 		last_op_for_exception_3 = opcode;
51279 		last_addr_for_exception_3 = m68k_getpc() + 4;
51280 		Exception(3, 0, M68000_EXC_SRC_CPU);
51281 		goto endlabel2790;
51282 	}
51283 {{	int32_t dst = m68k_read_memory_32(dsta);
51284 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
51285 {	int flgs = ((int32_t)(src)) < 0;
51286 	int flgo = ((int32_t)(dst)) < 0;
51287 	int flgn = ((int32_t)(newv)) < 0;
51288 	SET_ZFLG (((int32_t)(newv)) == 0);
51289 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51290 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
51291 	COPY_CARRY;
51292 	SET_NFLG (flgn != 0);
51293 m68k_incpc(4);
51294 fill_prefetch_0 ();
51295 	m68k_write_memory_32(dsta,newv);
51296 }}}}}}}}endlabel2790: ;
51297 return 24;
51298 }
CPUFUNC(op_91b9_5)51299 unsigned long CPUFUNC(op_91b9_5)(uint32_t opcode) /* SUB */
51300 {
51301 	uint32_t srcreg = ((opcode >> 9) & 7);
51302 	OpcodeFamily = 7; CurrentInstrCycles = 28;
51303 {{	int32_t src = m68k_dreg(regs, srcreg);
51304 {	uint32_t dsta = get_ilong_prefetch(2);
51305 	if ((dsta & 1) != 0) {
51306 		last_fault_for_exception_3 = dsta;
51307 		last_op_for_exception_3 = opcode;
51308 		last_addr_for_exception_3 = m68k_getpc() + 6;
51309 		Exception(3, 0, M68000_EXC_SRC_CPU);
51310 		goto endlabel2791;
51311 	}
51312 {{	int32_t dst = m68k_read_memory_32(dsta);
51313 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
51314 {	int flgs = ((int32_t)(src)) < 0;
51315 	int flgo = ((int32_t)(dst)) < 0;
51316 	int flgn = ((int32_t)(newv)) < 0;
51317 	SET_ZFLG (((int32_t)(newv)) == 0);
51318 	SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo));
51319 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
51320 	COPY_CARRY;
51321 	SET_NFLG (flgn != 0);
51322 m68k_incpc(6);
51323 fill_prefetch_0 ();
51324 	m68k_write_memory_32(dsta,newv);
51325 }}}}}}}}endlabel2791: ;
51326 return 28;
51327 }
CPUFUNC(op_91c0_5)51328 unsigned long CPUFUNC(op_91c0_5)(uint32_t opcode) /* SUBA */
51329 {
51330 	uint32_t srcreg = (opcode & 7);
51331 	uint32_t dstreg = (opcode >> 9) & 7;
51332 	OpcodeFamily = 8; CurrentInstrCycles = 8;
51333 {{	int32_t src = m68k_dreg(regs, srcreg);
51334 {	int32_t dst = m68k_areg(regs, dstreg);
51335 {	uint32_t newv = dst - src;
51336 	m68k_areg(regs, dstreg) = (newv);
51337 }}}}m68k_incpc(2);
51338 fill_prefetch_2 ();
51339 return 8;
51340 }
CPUFUNC(op_91c8_5)51341 unsigned long CPUFUNC(op_91c8_5)(uint32_t opcode) /* SUBA */
51342 {
51343 	uint32_t srcreg = (opcode & 7);
51344 	uint32_t dstreg = (opcode >> 9) & 7;
51345 	OpcodeFamily = 8; CurrentInstrCycles = 8;
51346 {{	int32_t src = m68k_areg(regs, srcreg);
51347 {	int32_t dst = m68k_areg(regs, dstreg);
51348 {	uint32_t newv = dst - src;
51349 	m68k_areg(regs, dstreg) = (newv);
51350 }}}}m68k_incpc(2);
51351 fill_prefetch_2 ();
51352 return 8;
51353 }
CPUFUNC(op_91d0_5)51354 unsigned long CPUFUNC(op_91d0_5)(uint32_t opcode) /* SUBA */
51355 {
51356 	uint32_t srcreg = (opcode & 7);
51357 	uint32_t dstreg = (opcode >> 9) & 7;
51358 	OpcodeFamily = 8; CurrentInstrCycles = 14;
51359 {{	uint32_t srca = m68k_areg(regs, srcreg);
51360 	if ((srca & 1) != 0) {
51361 		last_fault_for_exception_3 = srca;
51362 		last_op_for_exception_3 = opcode;
51363 		last_addr_for_exception_3 = m68k_getpc() + 2;
51364 		Exception(3, 0, M68000_EXC_SRC_CPU);
51365 		goto endlabel2794;
51366 	}
51367 {{	int32_t src = m68k_read_memory_32(srca);
51368 {	int32_t dst = m68k_areg(regs, dstreg);
51369 {	uint32_t newv = dst - src;
51370 	m68k_areg(regs, dstreg) = (newv);
51371 }}}}}}m68k_incpc(2);
51372 fill_prefetch_2 ();
51373 endlabel2794: ;
51374 return 14;
51375 }
CPUFUNC(op_91d8_5)51376 unsigned long CPUFUNC(op_91d8_5)(uint32_t opcode) /* SUBA */
51377 {
51378 	uint32_t srcreg = (opcode & 7);
51379 	uint32_t dstreg = (opcode >> 9) & 7;
51380 	OpcodeFamily = 8; CurrentInstrCycles = 14;
51381 {{	uint32_t srca = m68k_areg(regs, srcreg);
51382 	if ((srca & 1) != 0) {
51383 		last_fault_for_exception_3 = srca;
51384 		last_op_for_exception_3 = opcode;
51385 		last_addr_for_exception_3 = m68k_getpc() + 2;
51386 		Exception(3, 0, M68000_EXC_SRC_CPU);
51387 		goto endlabel2795;
51388 	}
51389 {{	int32_t src = m68k_read_memory_32(srca);
51390 	m68k_areg(regs, srcreg) += 4;
51391 {	int32_t dst = m68k_areg(regs, dstreg);
51392 {	uint32_t newv = dst - src;
51393 	m68k_areg(regs, dstreg) = (newv);
51394 }}}}}}m68k_incpc(2);
51395 fill_prefetch_2 ();
51396 endlabel2795: ;
51397 return 14;
51398 }
CPUFUNC(op_91e0_5)51399 unsigned long CPUFUNC(op_91e0_5)(uint32_t opcode) /* SUBA */
51400 {
51401 	uint32_t srcreg = (opcode & 7);
51402 	uint32_t dstreg = (opcode >> 9) & 7;
51403 	OpcodeFamily = 8; CurrentInstrCycles = 16;
51404 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
51405 	if ((srca & 1) != 0) {
51406 		last_fault_for_exception_3 = srca;
51407 		last_op_for_exception_3 = opcode;
51408 		last_addr_for_exception_3 = m68k_getpc() + 2;
51409 		Exception(3, 0, M68000_EXC_SRC_CPU);
51410 		goto endlabel2796;
51411 	}
51412 {{	int32_t src = m68k_read_memory_32(srca);
51413 	m68k_areg (regs, srcreg) = srca;
51414 {	int32_t dst = m68k_areg(regs, dstreg);
51415 {	uint32_t newv = dst - src;
51416 	m68k_areg(regs, dstreg) = (newv);
51417 }}}}}}m68k_incpc(2);
51418 fill_prefetch_2 ();
51419 endlabel2796: ;
51420 return 16;
51421 }
CPUFUNC(op_91e8_5)51422 unsigned long CPUFUNC(op_91e8_5)(uint32_t opcode) /* SUBA */
51423 {
51424 	uint32_t srcreg = (opcode & 7);
51425 	uint32_t dstreg = (opcode >> 9) & 7;
51426 	OpcodeFamily = 8; CurrentInstrCycles = 18;
51427 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
51428 	if ((srca & 1) != 0) {
51429 		last_fault_for_exception_3 = srca;
51430 		last_op_for_exception_3 = opcode;
51431 		last_addr_for_exception_3 = m68k_getpc() + 4;
51432 		Exception(3, 0, M68000_EXC_SRC_CPU);
51433 		goto endlabel2797;
51434 	}
51435 {{	int32_t src = m68k_read_memory_32(srca);
51436 {	int32_t dst = m68k_areg(regs, dstreg);
51437 {	uint32_t newv = dst - src;
51438 	m68k_areg(regs, dstreg) = (newv);
51439 }}}}}}m68k_incpc(4);
51440 fill_prefetch_0 ();
51441 endlabel2797: ;
51442 return 18;
51443 }
CPUFUNC(op_91f0_5)51444 unsigned long CPUFUNC(op_91f0_5)(uint32_t opcode) /* SUBA */
51445 {
51446 	uint32_t srcreg = (opcode & 7);
51447 	uint32_t dstreg = (opcode >> 9) & 7;
51448 	OpcodeFamily = 8; CurrentInstrCycles = 20;
51449 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
51450 	BusCyclePenalty += 2;
51451 	if ((srca & 1) != 0) {
51452 		last_fault_for_exception_3 = srca;
51453 		last_op_for_exception_3 = opcode;
51454 		last_addr_for_exception_3 = m68k_getpc() + 4;
51455 		Exception(3, 0, M68000_EXC_SRC_CPU);
51456 		goto endlabel2798;
51457 	}
51458 {{	int32_t src = m68k_read_memory_32(srca);
51459 {	int32_t dst = m68k_areg(regs, dstreg);
51460 {	uint32_t newv = dst - src;
51461 	m68k_areg(regs, dstreg) = (newv);
51462 }}}}}}m68k_incpc(4);
51463 fill_prefetch_0 ();
51464 endlabel2798: ;
51465 return 20;
51466 }
CPUFUNC(op_91f8_5)51467 unsigned long CPUFUNC(op_91f8_5)(uint32_t opcode) /* SUBA */
51468 {
51469 	uint32_t dstreg = (opcode >> 9) & 7;
51470 	OpcodeFamily = 8; CurrentInstrCycles = 18;
51471 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
51472 	if ((srca & 1) != 0) {
51473 		last_fault_for_exception_3 = srca;
51474 		last_op_for_exception_3 = opcode;
51475 		last_addr_for_exception_3 = m68k_getpc() + 4;
51476 		Exception(3, 0, M68000_EXC_SRC_CPU);
51477 		goto endlabel2799;
51478 	}
51479 {{	int32_t src = m68k_read_memory_32(srca);
51480 {	int32_t dst = m68k_areg(regs, dstreg);
51481 {	uint32_t newv = dst - src;
51482 	m68k_areg(regs, dstreg) = (newv);
51483 }}}}}}m68k_incpc(4);
51484 fill_prefetch_0 ();
51485 endlabel2799: ;
51486 return 18;
51487 }
CPUFUNC(op_91f9_5)51488 unsigned long CPUFUNC(op_91f9_5)(uint32_t opcode) /* SUBA */
51489 {
51490 	uint32_t dstreg = (opcode >> 9) & 7;
51491 	OpcodeFamily = 8; CurrentInstrCycles = 22;
51492 {{	uint32_t srca = get_ilong_prefetch(2);
51493 	if ((srca & 1) != 0) {
51494 		last_fault_for_exception_3 = srca;
51495 		last_op_for_exception_3 = opcode;
51496 		last_addr_for_exception_3 = m68k_getpc() + 6;
51497 		Exception(3, 0, M68000_EXC_SRC_CPU);
51498 		goto endlabel2800;
51499 	}
51500 {{	int32_t src = m68k_read_memory_32(srca);
51501 {	int32_t dst = m68k_areg(regs, dstreg);
51502 {	uint32_t newv = dst - src;
51503 	m68k_areg(regs, dstreg) = (newv);
51504 }}}}}}m68k_incpc(6);
51505 fill_prefetch_0 ();
51506 endlabel2800: ;
51507 return 22;
51508 }
CPUFUNC(op_91fa_5)51509 unsigned long CPUFUNC(op_91fa_5)(uint32_t opcode) /* SUBA */
51510 {
51511 	uint32_t dstreg = (opcode >> 9) & 7;
51512 	OpcodeFamily = 8; CurrentInstrCycles = 18;
51513 {{	uint32_t srca = m68k_getpc () + 2;
51514 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
51515 	if ((srca & 1) != 0) {
51516 		last_fault_for_exception_3 = srca;
51517 		last_op_for_exception_3 = opcode;
51518 		last_addr_for_exception_3 = m68k_getpc() + 4;
51519 		Exception(3, 0, M68000_EXC_SRC_CPU);
51520 		goto endlabel2801;
51521 	}
51522 {{	int32_t src = m68k_read_memory_32(srca);
51523 {	int32_t dst = m68k_areg(regs, dstreg);
51524 {	uint32_t newv = dst - src;
51525 	m68k_areg(regs, dstreg) = (newv);
51526 }}}}}}m68k_incpc(4);
51527 fill_prefetch_0 ();
51528 endlabel2801: ;
51529 return 18;
51530 }
CPUFUNC(op_91fb_5)51531 unsigned long CPUFUNC(op_91fb_5)(uint32_t opcode) /* SUBA */
51532 {
51533 	uint32_t dstreg = (opcode >> 9) & 7;
51534 	OpcodeFamily = 8; CurrentInstrCycles = 20;
51535 {{	uint32_t tmppc = m68k_getpc() + 2;
51536 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
51537 	BusCyclePenalty += 2;
51538 	if ((srca & 1) != 0) {
51539 		last_fault_for_exception_3 = srca;
51540 		last_op_for_exception_3 = opcode;
51541 		last_addr_for_exception_3 = m68k_getpc() + 4;
51542 		Exception(3, 0, M68000_EXC_SRC_CPU);
51543 		goto endlabel2802;
51544 	}
51545 {{	int32_t src = m68k_read_memory_32(srca);
51546 {	int32_t dst = m68k_areg(regs, dstreg);
51547 {	uint32_t newv = dst - src;
51548 	m68k_areg(regs, dstreg) = (newv);
51549 }}}}}}m68k_incpc(4);
51550 fill_prefetch_0 ();
51551 endlabel2802: ;
51552 return 20;
51553 }
CPUFUNC(op_91fc_5)51554 unsigned long CPUFUNC(op_91fc_5)(uint32_t opcode) /* SUBA */
51555 {
51556 	uint32_t dstreg = (opcode >> 9) & 7;
51557 	OpcodeFamily = 8; CurrentInstrCycles = 16;
51558 {{	int32_t src = get_ilong_prefetch(2);
51559 {	int32_t dst = m68k_areg(regs, dstreg);
51560 {	uint32_t newv = dst - src;
51561 	m68k_areg(regs, dstreg) = (newv);
51562 }}}}m68k_incpc(6);
51563 fill_prefetch_0 ();
51564 return 16;
51565 }
CPUFUNC(op_b000_5)51566 unsigned long CPUFUNC(op_b000_5)(uint32_t opcode) /* CMP */
51567 {
51568 	uint32_t srcreg = (opcode & 7);
51569 	uint32_t dstreg = (opcode >> 9) & 7;
51570 	OpcodeFamily = 25; CurrentInstrCycles = 4;
51571 {{	int8_t src = m68k_dreg(regs, srcreg);
51572 {	int8_t dst = m68k_dreg(regs, dstreg);
51573 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51574 {	int flgs = ((int8_t)(src)) < 0;
51575 	int flgo = ((int8_t)(dst)) < 0;
51576 	int flgn = ((int8_t)(newv)) < 0;
51577 	SET_ZFLG (((int8_t)(newv)) == 0);
51578 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51579 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51580 	SET_NFLG (flgn != 0);
51581 }}}}}}m68k_incpc(2);
51582 fill_prefetch_2 ();
51583 return 4;
51584 }
CPUFUNC(op_b010_5)51585 unsigned long CPUFUNC(op_b010_5)(uint32_t opcode) /* CMP */
51586 {
51587 	uint32_t srcreg = (opcode & 7);
51588 	uint32_t dstreg = (opcode >> 9) & 7;
51589 	OpcodeFamily = 25; CurrentInstrCycles = 8;
51590 {{	uint32_t srca = m68k_areg(regs, srcreg);
51591 {	int8_t src = m68k_read_memory_8(srca);
51592 {	int8_t dst = m68k_dreg(regs, dstreg);
51593 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51594 {	int flgs = ((int8_t)(src)) < 0;
51595 	int flgo = ((int8_t)(dst)) < 0;
51596 	int flgn = ((int8_t)(newv)) < 0;
51597 	SET_ZFLG (((int8_t)(newv)) == 0);
51598 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51599 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51600 	SET_NFLG (flgn != 0);
51601 }}}}}}}m68k_incpc(2);
51602 fill_prefetch_2 ();
51603 return 8;
51604 }
CPUFUNC(op_b018_5)51605 unsigned long CPUFUNC(op_b018_5)(uint32_t opcode) /* CMP */
51606 {
51607 	uint32_t srcreg = (opcode & 7);
51608 	uint32_t dstreg = (opcode >> 9) & 7;
51609 	OpcodeFamily = 25; CurrentInstrCycles = 8;
51610 {{	uint32_t srca = m68k_areg(regs, srcreg);
51611 {	int8_t src = m68k_read_memory_8(srca);
51612 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
51613 {	int8_t dst = m68k_dreg(regs, dstreg);
51614 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51615 {	int flgs = ((int8_t)(src)) < 0;
51616 	int flgo = ((int8_t)(dst)) < 0;
51617 	int flgn = ((int8_t)(newv)) < 0;
51618 	SET_ZFLG (((int8_t)(newv)) == 0);
51619 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51620 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51621 	SET_NFLG (flgn != 0);
51622 }}}}}}}m68k_incpc(2);
51623 fill_prefetch_2 ();
51624 return 8;
51625 }
CPUFUNC(op_b020_5)51626 unsigned long CPUFUNC(op_b020_5)(uint32_t opcode) /* CMP */
51627 {
51628 	uint32_t srcreg = (opcode & 7);
51629 	uint32_t dstreg = (opcode >> 9) & 7;
51630 	OpcodeFamily = 25; CurrentInstrCycles = 10;
51631 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
51632 {	int8_t src = m68k_read_memory_8(srca);
51633 	m68k_areg (regs, srcreg) = srca;
51634 {	int8_t dst = m68k_dreg(regs, dstreg);
51635 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51636 {	int flgs = ((int8_t)(src)) < 0;
51637 	int flgo = ((int8_t)(dst)) < 0;
51638 	int flgn = ((int8_t)(newv)) < 0;
51639 	SET_ZFLG (((int8_t)(newv)) == 0);
51640 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51641 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51642 	SET_NFLG (flgn != 0);
51643 }}}}}}}m68k_incpc(2);
51644 fill_prefetch_2 ();
51645 return 10;
51646 }
CPUFUNC(op_b028_5)51647 unsigned long CPUFUNC(op_b028_5)(uint32_t opcode) /* CMP */
51648 {
51649 	uint32_t srcreg = (opcode & 7);
51650 	uint32_t dstreg = (opcode >> 9) & 7;
51651 	OpcodeFamily = 25; CurrentInstrCycles = 12;
51652 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
51653 {	int8_t src = m68k_read_memory_8(srca);
51654 {	int8_t dst = m68k_dreg(regs, dstreg);
51655 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51656 {	int flgs = ((int8_t)(src)) < 0;
51657 	int flgo = ((int8_t)(dst)) < 0;
51658 	int flgn = ((int8_t)(newv)) < 0;
51659 	SET_ZFLG (((int8_t)(newv)) == 0);
51660 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51661 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51662 	SET_NFLG (flgn != 0);
51663 }}}}}}}m68k_incpc(4);
51664 fill_prefetch_0 ();
51665 return 12;
51666 }
CPUFUNC(op_b030_5)51667 unsigned long CPUFUNC(op_b030_5)(uint32_t opcode) /* CMP */
51668 {
51669 	uint32_t srcreg = (opcode & 7);
51670 	uint32_t dstreg = (opcode >> 9) & 7;
51671 	OpcodeFamily = 25; CurrentInstrCycles = 14;
51672 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
51673 	BusCyclePenalty += 2;
51674 {	int8_t src = m68k_read_memory_8(srca);
51675 {	int8_t dst = m68k_dreg(regs, dstreg);
51676 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51677 {	int flgs = ((int8_t)(src)) < 0;
51678 	int flgo = ((int8_t)(dst)) < 0;
51679 	int flgn = ((int8_t)(newv)) < 0;
51680 	SET_ZFLG (((int8_t)(newv)) == 0);
51681 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51682 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51683 	SET_NFLG (flgn != 0);
51684 }}}}}}}m68k_incpc(4);
51685 fill_prefetch_0 ();
51686 return 14;
51687 }
CPUFUNC(op_b038_5)51688 unsigned long CPUFUNC(op_b038_5)(uint32_t opcode) /* CMP */
51689 {
51690 	uint32_t dstreg = (opcode >> 9) & 7;
51691 	OpcodeFamily = 25; CurrentInstrCycles = 12;
51692 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
51693 {	int8_t src = m68k_read_memory_8(srca);
51694 {	int8_t dst = m68k_dreg(regs, dstreg);
51695 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51696 {	int flgs = ((int8_t)(src)) < 0;
51697 	int flgo = ((int8_t)(dst)) < 0;
51698 	int flgn = ((int8_t)(newv)) < 0;
51699 	SET_ZFLG (((int8_t)(newv)) == 0);
51700 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51701 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51702 	SET_NFLG (flgn != 0);
51703 }}}}}}}m68k_incpc(4);
51704 fill_prefetch_0 ();
51705 return 12;
51706 }
CPUFUNC(op_b039_5)51707 unsigned long CPUFUNC(op_b039_5)(uint32_t opcode) /* CMP */
51708 {
51709 	uint32_t dstreg = (opcode >> 9) & 7;
51710 	OpcodeFamily = 25; CurrentInstrCycles = 16;
51711 {{	uint32_t srca = get_ilong_prefetch(2);
51712 {	int8_t src = m68k_read_memory_8(srca);
51713 {	int8_t dst = m68k_dreg(regs, dstreg);
51714 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51715 {	int flgs = ((int8_t)(src)) < 0;
51716 	int flgo = ((int8_t)(dst)) < 0;
51717 	int flgn = ((int8_t)(newv)) < 0;
51718 	SET_ZFLG (((int8_t)(newv)) == 0);
51719 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51720 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51721 	SET_NFLG (flgn != 0);
51722 }}}}}}}m68k_incpc(6);
51723 fill_prefetch_0 ();
51724 return 16;
51725 }
CPUFUNC(op_b03a_5)51726 unsigned long CPUFUNC(op_b03a_5)(uint32_t opcode) /* CMP */
51727 {
51728 	uint32_t dstreg = (opcode >> 9) & 7;
51729 	OpcodeFamily = 25; CurrentInstrCycles = 12;
51730 {{	uint32_t srca = m68k_getpc () + 2;
51731 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
51732 {	int8_t src = m68k_read_memory_8(srca);
51733 {	int8_t dst = m68k_dreg(regs, dstreg);
51734 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51735 {	int flgs = ((int8_t)(src)) < 0;
51736 	int flgo = ((int8_t)(dst)) < 0;
51737 	int flgn = ((int8_t)(newv)) < 0;
51738 	SET_ZFLG (((int8_t)(newv)) == 0);
51739 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51740 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51741 	SET_NFLG (flgn != 0);
51742 }}}}}}}m68k_incpc(4);
51743 fill_prefetch_0 ();
51744 return 12;
51745 }
CPUFUNC(op_b03b_5)51746 unsigned long CPUFUNC(op_b03b_5)(uint32_t opcode) /* CMP */
51747 {
51748 	uint32_t dstreg = (opcode >> 9) & 7;
51749 	OpcodeFamily = 25; CurrentInstrCycles = 14;
51750 {{	uint32_t tmppc = m68k_getpc() + 2;
51751 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
51752 	BusCyclePenalty += 2;
51753 {	int8_t src = m68k_read_memory_8(srca);
51754 {	int8_t dst = m68k_dreg(regs, dstreg);
51755 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51756 {	int flgs = ((int8_t)(src)) < 0;
51757 	int flgo = ((int8_t)(dst)) < 0;
51758 	int flgn = ((int8_t)(newv)) < 0;
51759 	SET_ZFLG (((int8_t)(newv)) == 0);
51760 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51761 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51762 	SET_NFLG (flgn != 0);
51763 }}}}}}}m68k_incpc(4);
51764 fill_prefetch_0 ();
51765 return 14;
51766 }
51767 #endif
51768 
51769 #ifdef PART_7
CPUFUNC(op_b03c_5)51770 unsigned long CPUFUNC(op_b03c_5)(uint32_t opcode) /* CMP */
51771 {
51772 	uint32_t dstreg = (opcode >> 9) & 7;
51773 	OpcodeFamily = 25; CurrentInstrCycles = 8;
51774 {{	int8_t src = get_ibyte_prefetch(2);
51775 {	int8_t dst = m68k_dreg(regs, dstreg);
51776 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
51777 {	int flgs = ((int8_t)(src)) < 0;
51778 	int flgo = ((int8_t)(dst)) < 0;
51779 	int flgn = ((int8_t)(newv)) < 0;
51780 	SET_ZFLG (((int8_t)(newv)) == 0);
51781 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51782 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
51783 	SET_NFLG (flgn != 0);
51784 }}}}}}m68k_incpc(4);
51785 fill_prefetch_0 ();
51786 return 8;
51787 }
CPUFUNC(op_b040_5)51788 unsigned long CPUFUNC(op_b040_5)(uint32_t opcode) /* CMP */
51789 {
51790 	uint32_t srcreg = (opcode & 7);
51791 	uint32_t dstreg = (opcode >> 9) & 7;
51792 	OpcodeFamily = 25; CurrentInstrCycles = 4;
51793 {{	int16_t src = m68k_dreg(regs, srcreg);
51794 {	int16_t dst = m68k_dreg(regs, dstreg);
51795 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51796 {	int flgs = ((int16_t)(src)) < 0;
51797 	int flgo = ((int16_t)(dst)) < 0;
51798 	int flgn = ((int16_t)(newv)) < 0;
51799 	SET_ZFLG (((int16_t)(newv)) == 0);
51800 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51801 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51802 	SET_NFLG (flgn != 0);
51803 }}}}}}m68k_incpc(2);
51804 fill_prefetch_2 ();
51805 return 4;
51806 }
CPUFUNC(op_b048_5)51807 unsigned long CPUFUNC(op_b048_5)(uint32_t opcode) /* CMP */
51808 {
51809 	uint32_t srcreg = (opcode & 7);
51810 	uint32_t dstreg = (opcode >> 9) & 7;
51811 	OpcodeFamily = 25; CurrentInstrCycles = 4;
51812 {{	int16_t src = m68k_areg(regs, srcreg);
51813 {	int16_t dst = m68k_dreg(regs, dstreg);
51814 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51815 {	int flgs = ((int16_t)(src)) < 0;
51816 	int flgo = ((int16_t)(dst)) < 0;
51817 	int flgn = ((int16_t)(newv)) < 0;
51818 	SET_ZFLG (((int16_t)(newv)) == 0);
51819 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51820 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51821 	SET_NFLG (flgn != 0);
51822 }}}}}}m68k_incpc(2);
51823 fill_prefetch_2 ();
51824 return 4;
51825 }
CPUFUNC(op_b050_5)51826 unsigned long CPUFUNC(op_b050_5)(uint32_t opcode) /* CMP */
51827 {
51828 	uint32_t srcreg = (opcode & 7);
51829 	uint32_t dstreg = (opcode >> 9) & 7;
51830 	OpcodeFamily = 25; CurrentInstrCycles = 8;
51831 {{	uint32_t srca = m68k_areg(regs, srcreg);
51832 	if ((srca & 1) != 0) {
51833 		last_fault_for_exception_3 = srca;
51834 		last_op_for_exception_3 = opcode;
51835 		last_addr_for_exception_3 = m68k_getpc() + 2;
51836 		Exception(3, 0, M68000_EXC_SRC_CPU);
51837 		goto endlabel2817;
51838 	}
51839 {{	int16_t src = m68k_read_memory_16(srca);
51840 {	int16_t dst = m68k_dreg(regs, dstreg);
51841 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51842 {	int flgs = ((int16_t)(src)) < 0;
51843 	int flgo = ((int16_t)(dst)) < 0;
51844 	int flgn = ((int16_t)(newv)) < 0;
51845 	SET_ZFLG (((int16_t)(newv)) == 0);
51846 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51847 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51848 	SET_NFLG (flgn != 0);
51849 }}}}}}}}m68k_incpc(2);
51850 fill_prefetch_2 ();
51851 endlabel2817: ;
51852 return 8;
51853 }
CPUFUNC(op_b058_5)51854 unsigned long CPUFUNC(op_b058_5)(uint32_t opcode) /* CMP */
51855 {
51856 	uint32_t srcreg = (opcode & 7);
51857 	uint32_t dstreg = (opcode >> 9) & 7;
51858 	OpcodeFamily = 25; CurrentInstrCycles = 8;
51859 {{	uint32_t srca = m68k_areg(regs, srcreg);
51860 	if ((srca & 1) != 0) {
51861 		last_fault_for_exception_3 = srca;
51862 		last_op_for_exception_3 = opcode;
51863 		last_addr_for_exception_3 = m68k_getpc() + 2;
51864 		Exception(3, 0, M68000_EXC_SRC_CPU);
51865 		goto endlabel2818;
51866 	}
51867 {{	int16_t src = m68k_read_memory_16(srca);
51868 	m68k_areg(regs, srcreg) += 2;
51869 {	int16_t dst = m68k_dreg(regs, dstreg);
51870 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51871 {	int flgs = ((int16_t)(src)) < 0;
51872 	int flgo = ((int16_t)(dst)) < 0;
51873 	int flgn = ((int16_t)(newv)) < 0;
51874 	SET_ZFLG (((int16_t)(newv)) == 0);
51875 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51876 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51877 	SET_NFLG (flgn != 0);
51878 }}}}}}}}m68k_incpc(2);
51879 fill_prefetch_2 ();
51880 endlabel2818: ;
51881 return 8;
51882 }
CPUFUNC(op_b060_5)51883 unsigned long CPUFUNC(op_b060_5)(uint32_t opcode) /* CMP */
51884 {
51885 	uint32_t srcreg = (opcode & 7);
51886 	uint32_t dstreg = (opcode >> 9) & 7;
51887 	OpcodeFamily = 25; CurrentInstrCycles = 10;
51888 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
51889 	if ((srca & 1) != 0) {
51890 		last_fault_for_exception_3 = srca;
51891 		last_op_for_exception_3 = opcode;
51892 		last_addr_for_exception_3 = m68k_getpc() + 2;
51893 		Exception(3, 0, M68000_EXC_SRC_CPU);
51894 		goto endlabel2819;
51895 	}
51896 {{	int16_t src = m68k_read_memory_16(srca);
51897 	m68k_areg (regs, srcreg) = srca;
51898 {	int16_t dst = m68k_dreg(regs, dstreg);
51899 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51900 {	int flgs = ((int16_t)(src)) < 0;
51901 	int flgo = ((int16_t)(dst)) < 0;
51902 	int flgn = ((int16_t)(newv)) < 0;
51903 	SET_ZFLG (((int16_t)(newv)) == 0);
51904 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51905 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51906 	SET_NFLG (flgn != 0);
51907 }}}}}}}}m68k_incpc(2);
51908 fill_prefetch_2 ();
51909 endlabel2819: ;
51910 return 10;
51911 }
CPUFUNC(op_b068_5)51912 unsigned long CPUFUNC(op_b068_5)(uint32_t opcode) /* CMP */
51913 {
51914 	uint32_t srcreg = (opcode & 7);
51915 	uint32_t dstreg = (opcode >> 9) & 7;
51916 	OpcodeFamily = 25; CurrentInstrCycles = 12;
51917 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
51918 	if ((srca & 1) != 0) {
51919 		last_fault_for_exception_3 = srca;
51920 		last_op_for_exception_3 = opcode;
51921 		last_addr_for_exception_3 = m68k_getpc() + 4;
51922 		Exception(3, 0, M68000_EXC_SRC_CPU);
51923 		goto endlabel2820;
51924 	}
51925 {{	int16_t src = m68k_read_memory_16(srca);
51926 {	int16_t dst = m68k_dreg(regs, dstreg);
51927 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51928 {	int flgs = ((int16_t)(src)) < 0;
51929 	int flgo = ((int16_t)(dst)) < 0;
51930 	int flgn = ((int16_t)(newv)) < 0;
51931 	SET_ZFLG (((int16_t)(newv)) == 0);
51932 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51933 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51934 	SET_NFLG (flgn != 0);
51935 }}}}}}}}m68k_incpc(4);
51936 fill_prefetch_0 ();
51937 endlabel2820: ;
51938 return 12;
51939 }
CPUFUNC(op_b070_5)51940 unsigned long CPUFUNC(op_b070_5)(uint32_t opcode) /* CMP */
51941 {
51942 	uint32_t srcreg = (opcode & 7);
51943 	uint32_t dstreg = (opcode >> 9) & 7;
51944 	OpcodeFamily = 25; CurrentInstrCycles = 14;
51945 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
51946 	BusCyclePenalty += 2;
51947 	if ((srca & 1) != 0) {
51948 		last_fault_for_exception_3 = srca;
51949 		last_op_for_exception_3 = opcode;
51950 		last_addr_for_exception_3 = m68k_getpc() + 4;
51951 		Exception(3, 0, M68000_EXC_SRC_CPU);
51952 		goto endlabel2821;
51953 	}
51954 {{	int16_t src = m68k_read_memory_16(srca);
51955 {	int16_t dst = m68k_dreg(regs, dstreg);
51956 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51957 {	int flgs = ((int16_t)(src)) < 0;
51958 	int flgo = ((int16_t)(dst)) < 0;
51959 	int flgn = ((int16_t)(newv)) < 0;
51960 	SET_ZFLG (((int16_t)(newv)) == 0);
51961 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51962 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51963 	SET_NFLG (flgn != 0);
51964 }}}}}}}}m68k_incpc(4);
51965 fill_prefetch_0 ();
51966 endlabel2821: ;
51967 return 14;
51968 }
CPUFUNC(op_b078_5)51969 unsigned long CPUFUNC(op_b078_5)(uint32_t opcode) /* CMP */
51970 {
51971 	uint32_t dstreg = (opcode >> 9) & 7;
51972 	OpcodeFamily = 25; CurrentInstrCycles = 12;
51973 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
51974 	if ((srca & 1) != 0) {
51975 		last_fault_for_exception_3 = srca;
51976 		last_op_for_exception_3 = opcode;
51977 		last_addr_for_exception_3 = m68k_getpc() + 4;
51978 		Exception(3, 0, M68000_EXC_SRC_CPU);
51979 		goto endlabel2822;
51980 	}
51981 {{	int16_t src = m68k_read_memory_16(srca);
51982 {	int16_t dst = m68k_dreg(regs, dstreg);
51983 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
51984 {	int flgs = ((int16_t)(src)) < 0;
51985 	int flgo = ((int16_t)(dst)) < 0;
51986 	int flgn = ((int16_t)(newv)) < 0;
51987 	SET_ZFLG (((int16_t)(newv)) == 0);
51988 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
51989 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
51990 	SET_NFLG (flgn != 0);
51991 }}}}}}}}m68k_incpc(4);
51992 fill_prefetch_0 ();
51993 endlabel2822: ;
51994 return 12;
51995 }
CPUFUNC(op_b079_5)51996 unsigned long CPUFUNC(op_b079_5)(uint32_t opcode) /* CMP */
51997 {
51998 	uint32_t dstreg = (opcode >> 9) & 7;
51999 	OpcodeFamily = 25; CurrentInstrCycles = 16;
52000 {{	uint32_t srca = get_ilong_prefetch(2);
52001 	if ((srca & 1) != 0) {
52002 		last_fault_for_exception_3 = srca;
52003 		last_op_for_exception_3 = opcode;
52004 		last_addr_for_exception_3 = m68k_getpc() + 6;
52005 		Exception(3, 0, M68000_EXC_SRC_CPU);
52006 		goto endlabel2823;
52007 	}
52008 {{	int16_t src = m68k_read_memory_16(srca);
52009 {	int16_t dst = m68k_dreg(regs, dstreg);
52010 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
52011 {	int flgs = ((int16_t)(src)) < 0;
52012 	int flgo = ((int16_t)(dst)) < 0;
52013 	int flgn = ((int16_t)(newv)) < 0;
52014 	SET_ZFLG (((int16_t)(newv)) == 0);
52015 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52016 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
52017 	SET_NFLG (flgn != 0);
52018 }}}}}}}}m68k_incpc(6);
52019 fill_prefetch_0 ();
52020 endlabel2823: ;
52021 return 16;
52022 }
CPUFUNC(op_b07a_5)52023 unsigned long CPUFUNC(op_b07a_5)(uint32_t opcode) /* CMP */
52024 {
52025 	uint32_t dstreg = (opcode >> 9) & 7;
52026 	OpcodeFamily = 25; CurrentInstrCycles = 12;
52027 {{	uint32_t srca = m68k_getpc () + 2;
52028 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
52029 	if ((srca & 1) != 0) {
52030 		last_fault_for_exception_3 = srca;
52031 		last_op_for_exception_3 = opcode;
52032 		last_addr_for_exception_3 = m68k_getpc() + 4;
52033 		Exception(3, 0, M68000_EXC_SRC_CPU);
52034 		goto endlabel2824;
52035 	}
52036 {{	int16_t src = m68k_read_memory_16(srca);
52037 {	int16_t dst = m68k_dreg(regs, dstreg);
52038 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
52039 {	int flgs = ((int16_t)(src)) < 0;
52040 	int flgo = ((int16_t)(dst)) < 0;
52041 	int flgn = ((int16_t)(newv)) < 0;
52042 	SET_ZFLG (((int16_t)(newv)) == 0);
52043 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52044 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
52045 	SET_NFLG (flgn != 0);
52046 }}}}}}}}m68k_incpc(4);
52047 fill_prefetch_0 ();
52048 endlabel2824: ;
52049 return 12;
52050 }
CPUFUNC(op_b07b_5)52051 unsigned long CPUFUNC(op_b07b_5)(uint32_t opcode) /* CMP */
52052 {
52053 	uint32_t dstreg = (opcode >> 9) & 7;
52054 	OpcodeFamily = 25; CurrentInstrCycles = 14;
52055 {{	uint32_t tmppc = m68k_getpc() + 2;
52056 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
52057 	BusCyclePenalty += 2;
52058 	if ((srca & 1) != 0) {
52059 		last_fault_for_exception_3 = srca;
52060 		last_op_for_exception_3 = opcode;
52061 		last_addr_for_exception_3 = m68k_getpc() + 4;
52062 		Exception(3, 0, M68000_EXC_SRC_CPU);
52063 		goto endlabel2825;
52064 	}
52065 {{	int16_t src = m68k_read_memory_16(srca);
52066 {	int16_t dst = m68k_dreg(regs, dstreg);
52067 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
52068 {	int flgs = ((int16_t)(src)) < 0;
52069 	int flgo = ((int16_t)(dst)) < 0;
52070 	int flgn = ((int16_t)(newv)) < 0;
52071 	SET_ZFLG (((int16_t)(newv)) == 0);
52072 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52073 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
52074 	SET_NFLG (flgn != 0);
52075 }}}}}}}}m68k_incpc(4);
52076 fill_prefetch_0 ();
52077 endlabel2825: ;
52078 return 14;
52079 }
CPUFUNC(op_b07c_5)52080 unsigned long CPUFUNC(op_b07c_5)(uint32_t opcode) /* CMP */
52081 {
52082 	uint32_t dstreg = (opcode >> 9) & 7;
52083 	OpcodeFamily = 25; CurrentInstrCycles = 8;
52084 {{	int16_t src = get_iword_prefetch(2);
52085 {	int16_t dst = m68k_dreg(regs, dstreg);
52086 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
52087 {	int flgs = ((int16_t)(src)) < 0;
52088 	int flgo = ((int16_t)(dst)) < 0;
52089 	int flgn = ((int16_t)(newv)) < 0;
52090 	SET_ZFLG (((int16_t)(newv)) == 0);
52091 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52092 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
52093 	SET_NFLG (flgn != 0);
52094 }}}}}}m68k_incpc(4);
52095 fill_prefetch_0 ();
52096 return 8;
52097 }
CPUFUNC(op_b080_5)52098 unsigned long CPUFUNC(op_b080_5)(uint32_t opcode) /* CMP */
52099 {
52100 	uint32_t srcreg = (opcode & 7);
52101 	uint32_t dstreg = (opcode >> 9) & 7;
52102 	OpcodeFamily = 25; CurrentInstrCycles = 6;
52103 {{	int32_t src = m68k_dreg(regs, srcreg);
52104 {	int32_t dst = m68k_dreg(regs, dstreg);
52105 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52106 {	int flgs = ((int32_t)(src)) < 0;
52107 	int flgo = ((int32_t)(dst)) < 0;
52108 	int flgn = ((int32_t)(newv)) < 0;
52109 	SET_ZFLG (((int32_t)(newv)) == 0);
52110 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52111 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52112 	SET_NFLG (flgn != 0);
52113 }}}}}}m68k_incpc(2);
52114 fill_prefetch_2 ();
52115 return 6;
52116 }
CPUFUNC(op_b088_5)52117 unsigned long CPUFUNC(op_b088_5)(uint32_t opcode) /* CMP */
52118 {
52119 	uint32_t srcreg = (opcode & 7);
52120 	uint32_t dstreg = (opcode >> 9) & 7;
52121 	OpcodeFamily = 25; CurrentInstrCycles = 6;
52122 {{	int32_t src = m68k_areg(regs, srcreg);
52123 {	int32_t dst = m68k_dreg(regs, dstreg);
52124 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52125 {	int flgs = ((int32_t)(src)) < 0;
52126 	int flgo = ((int32_t)(dst)) < 0;
52127 	int flgn = ((int32_t)(newv)) < 0;
52128 	SET_ZFLG (((int32_t)(newv)) == 0);
52129 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52130 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52131 	SET_NFLG (flgn != 0);
52132 }}}}}}m68k_incpc(2);
52133 fill_prefetch_2 ();
52134 return 6;
52135 }
CPUFUNC(op_b090_5)52136 unsigned long CPUFUNC(op_b090_5)(uint32_t opcode) /* CMP */
52137 {
52138 	uint32_t srcreg = (opcode & 7);
52139 	uint32_t dstreg = (opcode >> 9) & 7;
52140 	OpcodeFamily = 25; CurrentInstrCycles = 14;
52141 {{	uint32_t srca = m68k_areg(regs, srcreg);
52142 	if ((srca & 1) != 0) {
52143 		last_fault_for_exception_3 = srca;
52144 		last_op_for_exception_3 = opcode;
52145 		last_addr_for_exception_3 = m68k_getpc() + 2;
52146 		Exception(3, 0, M68000_EXC_SRC_CPU);
52147 		goto endlabel2829;
52148 	}
52149 {{	int32_t src = m68k_read_memory_32(srca);
52150 {	int32_t dst = m68k_dreg(regs, dstreg);
52151 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52152 {	int flgs = ((int32_t)(src)) < 0;
52153 	int flgo = ((int32_t)(dst)) < 0;
52154 	int flgn = ((int32_t)(newv)) < 0;
52155 	SET_ZFLG (((int32_t)(newv)) == 0);
52156 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52157 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52158 	SET_NFLG (flgn != 0);
52159 }}}}}}}}m68k_incpc(2);
52160 fill_prefetch_2 ();
52161 endlabel2829: ;
52162 return 14;
52163 }
CPUFUNC(op_b098_5)52164 unsigned long CPUFUNC(op_b098_5)(uint32_t opcode) /* CMP */
52165 {
52166 	uint32_t srcreg = (opcode & 7);
52167 	uint32_t dstreg = (opcode >> 9) & 7;
52168 	OpcodeFamily = 25; CurrentInstrCycles = 14;
52169 {{	uint32_t srca = m68k_areg(regs, srcreg);
52170 	if ((srca & 1) != 0) {
52171 		last_fault_for_exception_3 = srca;
52172 		last_op_for_exception_3 = opcode;
52173 		last_addr_for_exception_3 = m68k_getpc() + 2;
52174 		Exception(3, 0, M68000_EXC_SRC_CPU);
52175 		goto endlabel2830;
52176 	}
52177 {{	int32_t src = m68k_read_memory_32(srca);
52178 	m68k_areg(regs, srcreg) += 4;
52179 {	int32_t dst = m68k_dreg(regs, dstreg);
52180 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52181 {	int flgs = ((int32_t)(src)) < 0;
52182 	int flgo = ((int32_t)(dst)) < 0;
52183 	int flgn = ((int32_t)(newv)) < 0;
52184 	SET_ZFLG (((int32_t)(newv)) == 0);
52185 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52186 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52187 	SET_NFLG (flgn != 0);
52188 }}}}}}}}m68k_incpc(2);
52189 fill_prefetch_2 ();
52190 endlabel2830: ;
52191 return 14;
52192 }
CPUFUNC(op_b0a0_5)52193 unsigned long CPUFUNC(op_b0a0_5)(uint32_t opcode) /* CMP */
52194 {
52195 	uint32_t srcreg = (opcode & 7);
52196 	uint32_t dstreg = (opcode >> 9) & 7;
52197 	OpcodeFamily = 25; CurrentInstrCycles = 16;
52198 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
52199 	if ((srca & 1) != 0) {
52200 		last_fault_for_exception_3 = srca;
52201 		last_op_for_exception_3 = opcode;
52202 		last_addr_for_exception_3 = m68k_getpc() + 2;
52203 		Exception(3, 0, M68000_EXC_SRC_CPU);
52204 		goto endlabel2831;
52205 	}
52206 {{	int32_t src = m68k_read_memory_32(srca);
52207 	m68k_areg (regs, srcreg) = srca;
52208 {	int32_t dst = m68k_dreg(regs, dstreg);
52209 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52210 {	int flgs = ((int32_t)(src)) < 0;
52211 	int flgo = ((int32_t)(dst)) < 0;
52212 	int flgn = ((int32_t)(newv)) < 0;
52213 	SET_ZFLG (((int32_t)(newv)) == 0);
52214 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52215 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52216 	SET_NFLG (flgn != 0);
52217 }}}}}}}}m68k_incpc(2);
52218 fill_prefetch_2 ();
52219 endlabel2831: ;
52220 return 16;
52221 }
CPUFUNC(op_b0a8_5)52222 unsigned long CPUFUNC(op_b0a8_5)(uint32_t opcode) /* CMP */
52223 {
52224 	uint32_t srcreg = (opcode & 7);
52225 	uint32_t dstreg = (opcode >> 9) & 7;
52226 	OpcodeFamily = 25; CurrentInstrCycles = 18;
52227 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
52228 	if ((srca & 1) != 0) {
52229 		last_fault_for_exception_3 = srca;
52230 		last_op_for_exception_3 = opcode;
52231 		last_addr_for_exception_3 = m68k_getpc() + 4;
52232 		Exception(3, 0, M68000_EXC_SRC_CPU);
52233 		goto endlabel2832;
52234 	}
52235 {{	int32_t src = m68k_read_memory_32(srca);
52236 {	int32_t dst = m68k_dreg(regs, dstreg);
52237 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52238 {	int flgs = ((int32_t)(src)) < 0;
52239 	int flgo = ((int32_t)(dst)) < 0;
52240 	int flgn = ((int32_t)(newv)) < 0;
52241 	SET_ZFLG (((int32_t)(newv)) == 0);
52242 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52243 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52244 	SET_NFLG (flgn != 0);
52245 }}}}}}}}m68k_incpc(4);
52246 fill_prefetch_0 ();
52247 endlabel2832: ;
52248 return 18;
52249 }
CPUFUNC(op_b0b0_5)52250 unsigned long CPUFUNC(op_b0b0_5)(uint32_t opcode) /* CMP */
52251 {
52252 	uint32_t srcreg = (opcode & 7);
52253 	uint32_t dstreg = (opcode >> 9) & 7;
52254 	OpcodeFamily = 25; CurrentInstrCycles = 20;
52255 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
52256 	BusCyclePenalty += 2;
52257 	if ((srca & 1) != 0) {
52258 		last_fault_for_exception_3 = srca;
52259 		last_op_for_exception_3 = opcode;
52260 		last_addr_for_exception_3 = m68k_getpc() + 4;
52261 		Exception(3, 0, M68000_EXC_SRC_CPU);
52262 		goto endlabel2833;
52263 	}
52264 {{	int32_t src = m68k_read_memory_32(srca);
52265 {	int32_t dst = m68k_dreg(regs, dstreg);
52266 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52267 {	int flgs = ((int32_t)(src)) < 0;
52268 	int flgo = ((int32_t)(dst)) < 0;
52269 	int flgn = ((int32_t)(newv)) < 0;
52270 	SET_ZFLG (((int32_t)(newv)) == 0);
52271 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52272 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52273 	SET_NFLG (flgn != 0);
52274 }}}}}}}}m68k_incpc(4);
52275 fill_prefetch_0 ();
52276 endlabel2833: ;
52277 return 20;
52278 }
CPUFUNC(op_b0b8_5)52279 unsigned long CPUFUNC(op_b0b8_5)(uint32_t opcode) /* CMP */
52280 {
52281 	uint32_t dstreg = (opcode >> 9) & 7;
52282 	OpcodeFamily = 25; CurrentInstrCycles = 18;
52283 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
52284 	if ((srca & 1) != 0) {
52285 		last_fault_for_exception_3 = srca;
52286 		last_op_for_exception_3 = opcode;
52287 		last_addr_for_exception_3 = m68k_getpc() + 4;
52288 		Exception(3, 0, M68000_EXC_SRC_CPU);
52289 		goto endlabel2834;
52290 	}
52291 {{	int32_t src = m68k_read_memory_32(srca);
52292 {	int32_t dst = m68k_dreg(regs, dstreg);
52293 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52294 {	int flgs = ((int32_t)(src)) < 0;
52295 	int flgo = ((int32_t)(dst)) < 0;
52296 	int flgn = ((int32_t)(newv)) < 0;
52297 	SET_ZFLG (((int32_t)(newv)) == 0);
52298 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52299 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52300 	SET_NFLG (flgn != 0);
52301 }}}}}}}}m68k_incpc(4);
52302 fill_prefetch_0 ();
52303 endlabel2834: ;
52304 return 18;
52305 }
CPUFUNC(op_b0b9_5)52306 unsigned long CPUFUNC(op_b0b9_5)(uint32_t opcode) /* CMP */
52307 {
52308 	uint32_t dstreg = (opcode >> 9) & 7;
52309 	OpcodeFamily = 25; CurrentInstrCycles = 22;
52310 {{	uint32_t srca = get_ilong_prefetch(2);
52311 	if ((srca & 1) != 0) {
52312 		last_fault_for_exception_3 = srca;
52313 		last_op_for_exception_3 = opcode;
52314 		last_addr_for_exception_3 = m68k_getpc() + 6;
52315 		Exception(3, 0, M68000_EXC_SRC_CPU);
52316 		goto endlabel2835;
52317 	}
52318 {{	int32_t src = m68k_read_memory_32(srca);
52319 {	int32_t dst = m68k_dreg(regs, dstreg);
52320 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52321 {	int flgs = ((int32_t)(src)) < 0;
52322 	int flgo = ((int32_t)(dst)) < 0;
52323 	int flgn = ((int32_t)(newv)) < 0;
52324 	SET_ZFLG (((int32_t)(newv)) == 0);
52325 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52326 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52327 	SET_NFLG (flgn != 0);
52328 }}}}}}}}m68k_incpc(6);
52329 fill_prefetch_0 ();
52330 endlabel2835: ;
52331 return 22;
52332 }
CPUFUNC(op_b0ba_5)52333 unsigned long CPUFUNC(op_b0ba_5)(uint32_t opcode) /* CMP */
52334 {
52335 	uint32_t dstreg = (opcode >> 9) & 7;
52336 	OpcodeFamily = 25; CurrentInstrCycles = 18;
52337 {{	uint32_t srca = m68k_getpc () + 2;
52338 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
52339 	if ((srca & 1) != 0) {
52340 		last_fault_for_exception_3 = srca;
52341 		last_op_for_exception_3 = opcode;
52342 		last_addr_for_exception_3 = m68k_getpc() + 4;
52343 		Exception(3, 0, M68000_EXC_SRC_CPU);
52344 		goto endlabel2836;
52345 	}
52346 {{	int32_t src = m68k_read_memory_32(srca);
52347 {	int32_t dst = m68k_dreg(regs, dstreg);
52348 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52349 {	int flgs = ((int32_t)(src)) < 0;
52350 	int flgo = ((int32_t)(dst)) < 0;
52351 	int flgn = ((int32_t)(newv)) < 0;
52352 	SET_ZFLG (((int32_t)(newv)) == 0);
52353 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52354 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52355 	SET_NFLG (flgn != 0);
52356 }}}}}}}}m68k_incpc(4);
52357 fill_prefetch_0 ();
52358 endlabel2836: ;
52359 return 18;
52360 }
CPUFUNC(op_b0bb_5)52361 unsigned long CPUFUNC(op_b0bb_5)(uint32_t opcode) /* CMP */
52362 {
52363 	uint32_t dstreg = (opcode >> 9) & 7;
52364 	OpcodeFamily = 25; CurrentInstrCycles = 20;
52365 {{	uint32_t tmppc = m68k_getpc() + 2;
52366 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
52367 	BusCyclePenalty += 2;
52368 	if ((srca & 1) != 0) {
52369 		last_fault_for_exception_3 = srca;
52370 		last_op_for_exception_3 = opcode;
52371 		last_addr_for_exception_3 = m68k_getpc() + 4;
52372 		Exception(3, 0, M68000_EXC_SRC_CPU);
52373 		goto endlabel2837;
52374 	}
52375 {{	int32_t src = m68k_read_memory_32(srca);
52376 {	int32_t dst = m68k_dreg(regs, dstreg);
52377 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52378 {	int flgs = ((int32_t)(src)) < 0;
52379 	int flgo = ((int32_t)(dst)) < 0;
52380 	int flgn = ((int32_t)(newv)) < 0;
52381 	SET_ZFLG (((int32_t)(newv)) == 0);
52382 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52383 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52384 	SET_NFLG (flgn != 0);
52385 }}}}}}}}m68k_incpc(4);
52386 fill_prefetch_0 ();
52387 endlabel2837: ;
52388 return 20;
52389 }
CPUFUNC(op_b0bc_5)52390 unsigned long CPUFUNC(op_b0bc_5)(uint32_t opcode) /* CMP */
52391 {
52392 	uint32_t dstreg = (opcode >> 9) & 7;
52393 	OpcodeFamily = 25; CurrentInstrCycles = 14;
52394 {{	int32_t src = get_ilong_prefetch(2);
52395 {	int32_t dst = m68k_dreg(regs, dstreg);
52396 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52397 {	int flgs = ((int32_t)(src)) < 0;
52398 	int flgo = ((int32_t)(dst)) < 0;
52399 	int flgn = ((int32_t)(newv)) < 0;
52400 	SET_ZFLG (((int32_t)(newv)) == 0);
52401 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52402 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52403 	SET_NFLG (flgn != 0);
52404 }}}}}}m68k_incpc(6);
52405 fill_prefetch_0 ();
52406 return 14;
52407 }
CPUFUNC(op_b0c0_5)52408 unsigned long CPUFUNC(op_b0c0_5)(uint32_t opcode) /* CMPA */
52409 {
52410 	uint32_t srcreg = (opcode & 7);
52411 	uint32_t dstreg = (opcode >> 9) & 7;
52412 	OpcodeFamily = 27; CurrentInstrCycles = 6;
52413 {{	int16_t src = m68k_dreg(regs, srcreg);
52414 {	int32_t dst = m68k_areg(regs, dstreg);
52415 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52416 {	int flgs = ((int32_t)(src)) < 0;
52417 	int flgo = ((int32_t)(dst)) < 0;
52418 	int flgn = ((int32_t)(newv)) < 0;
52419 	SET_ZFLG (((int32_t)(newv)) == 0);
52420 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52421 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52422 	SET_NFLG (flgn != 0);
52423 }}}}}}m68k_incpc(2);
52424 fill_prefetch_2 ();
52425 return 6;
52426 }
CPUFUNC(op_b0c8_5)52427 unsigned long CPUFUNC(op_b0c8_5)(uint32_t opcode) /* CMPA */
52428 {
52429 	uint32_t srcreg = (opcode & 7);
52430 	uint32_t dstreg = (opcode >> 9) & 7;
52431 	OpcodeFamily = 27; CurrentInstrCycles = 6;
52432 {{	int16_t src = m68k_areg(regs, srcreg);
52433 {	int32_t dst = m68k_areg(regs, dstreg);
52434 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52435 {	int flgs = ((int32_t)(src)) < 0;
52436 	int flgo = ((int32_t)(dst)) < 0;
52437 	int flgn = ((int32_t)(newv)) < 0;
52438 	SET_ZFLG (((int32_t)(newv)) == 0);
52439 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52440 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52441 	SET_NFLG (flgn != 0);
52442 }}}}}}m68k_incpc(2);
52443 fill_prefetch_2 ();
52444 return 6;
52445 }
CPUFUNC(op_b0d0_5)52446 unsigned long CPUFUNC(op_b0d0_5)(uint32_t opcode) /* CMPA */
52447 {
52448 	uint32_t srcreg = (opcode & 7);
52449 	uint32_t dstreg = (opcode >> 9) & 7;
52450 	OpcodeFamily = 27; CurrentInstrCycles = 10;
52451 {{	uint32_t srca = m68k_areg(regs, srcreg);
52452 	if ((srca & 1) != 0) {
52453 		last_fault_for_exception_3 = srca;
52454 		last_op_for_exception_3 = opcode;
52455 		last_addr_for_exception_3 = m68k_getpc() + 2;
52456 		Exception(3, 0, M68000_EXC_SRC_CPU);
52457 		goto endlabel2841;
52458 	}
52459 {{	int16_t src = m68k_read_memory_16(srca);
52460 {	int32_t dst = m68k_areg(regs, dstreg);
52461 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52462 {	int flgs = ((int32_t)(src)) < 0;
52463 	int flgo = ((int32_t)(dst)) < 0;
52464 	int flgn = ((int32_t)(newv)) < 0;
52465 	SET_ZFLG (((int32_t)(newv)) == 0);
52466 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52467 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52468 	SET_NFLG (flgn != 0);
52469 }}}}}}}}m68k_incpc(2);
52470 fill_prefetch_2 ();
52471 endlabel2841: ;
52472 return 10;
52473 }
CPUFUNC(op_b0d8_5)52474 unsigned long CPUFUNC(op_b0d8_5)(uint32_t opcode) /* CMPA */
52475 {
52476 	uint32_t srcreg = (opcode & 7);
52477 	uint32_t dstreg = (opcode >> 9) & 7;
52478 	OpcodeFamily = 27; CurrentInstrCycles = 10;
52479 {{	uint32_t srca = m68k_areg(regs, srcreg);
52480 	if ((srca & 1) != 0) {
52481 		last_fault_for_exception_3 = srca;
52482 		last_op_for_exception_3 = opcode;
52483 		last_addr_for_exception_3 = m68k_getpc() + 2;
52484 		Exception(3, 0, M68000_EXC_SRC_CPU);
52485 		goto endlabel2842;
52486 	}
52487 {{	int16_t src = m68k_read_memory_16(srca);
52488 	m68k_areg(regs, srcreg) += 2;
52489 {	int32_t dst = m68k_areg(regs, dstreg);
52490 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52491 {	int flgs = ((int32_t)(src)) < 0;
52492 	int flgo = ((int32_t)(dst)) < 0;
52493 	int flgn = ((int32_t)(newv)) < 0;
52494 	SET_ZFLG (((int32_t)(newv)) == 0);
52495 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52496 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52497 	SET_NFLG (flgn != 0);
52498 }}}}}}}}m68k_incpc(2);
52499 fill_prefetch_2 ();
52500 endlabel2842: ;
52501 return 10;
52502 }
CPUFUNC(op_b0e0_5)52503 unsigned long CPUFUNC(op_b0e0_5)(uint32_t opcode) /* CMPA */
52504 {
52505 	uint32_t srcreg = (opcode & 7);
52506 	uint32_t dstreg = (opcode >> 9) & 7;
52507 	OpcodeFamily = 27; CurrentInstrCycles = 12;
52508 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
52509 	if ((srca & 1) != 0) {
52510 		last_fault_for_exception_3 = srca;
52511 		last_op_for_exception_3 = opcode;
52512 		last_addr_for_exception_3 = m68k_getpc() + 2;
52513 		Exception(3, 0, M68000_EXC_SRC_CPU);
52514 		goto endlabel2843;
52515 	}
52516 {{	int16_t src = m68k_read_memory_16(srca);
52517 	m68k_areg (regs, srcreg) = srca;
52518 {	int32_t dst = m68k_areg(regs, dstreg);
52519 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52520 {	int flgs = ((int32_t)(src)) < 0;
52521 	int flgo = ((int32_t)(dst)) < 0;
52522 	int flgn = ((int32_t)(newv)) < 0;
52523 	SET_ZFLG (((int32_t)(newv)) == 0);
52524 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52525 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52526 	SET_NFLG (flgn != 0);
52527 }}}}}}}}m68k_incpc(2);
52528 fill_prefetch_2 ();
52529 endlabel2843: ;
52530 return 12;
52531 }
CPUFUNC(op_b0e8_5)52532 unsigned long CPUFUNC(op_b0e8_5)(uint32_t opcode) /* CMPA */
52533 {
52534 	uint32_t srcreg = (opcode & 7);
52535 	uint32_t dstreg = (opcode >> 9) & 7;
52536 	OpcodeFamily = 27; CurrentInstrCycles = 14;
52537 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
52538 	if ((srca & 1) != 0) {
52539 		last_fault_for_exception_3 = srca;
52540 		last_op_for_exception_3 = opcode;
52541 		last_addr_for_exception_3 = m68k_getpc() + 4;
52542 		Exception(3, 0, M68000_EXC_SRC_CPU);
52543 		goto endlabel2844;
52544 	}
52545 {{	int16_t src = m68k_read_memory_16(srca);
52546 {	int32_t dst = m68k_areg(regs, dstreg);
52547 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52548 {	int flgs = ((int32_t)(src)) < 0;
52549 	int flgo = ((int32_t)(dst)) < 0;
52550 	int flgn = ((int32_t)(newv)) < 0;
52551 	SET_ZFLG (((int32_t)(newv)) == 0);
52552 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52553 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52554 	SET_NFLG (flgn != 0);
52555 }}}}}}}}m68k_incpc(4);
52556 fill_prefetch_0 ();
52557 endlabel2844: ;
52558 return 14;
52559 }
CPUFUNC(op_b0f0_5)52560 unsigned long CPUFUNC(op_b0f0_5)(uint32_t opcode) /* CMPA */
52561 {
52562 	uint32_t srcreg = (opcode & 7);
52563 	uint32_t dstreg = (opcode >> 9) & 7;
52564 	OpcodeFamily = 27; CurrentInstrCycles = 16;
52565 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
52566 	BusCyclePenalty += 2;
52567 	if ((srca & 1) != 0) {
52568 		last_fault_for_exception_3 = srca;
52569 		last_op_for_exception_3 = opcode;
52570 		last_addr_for_exception_3 = m68k_getpc() + 4;
52571 		Exception(3, 0, M68000_EXC_SRC_CPU);
52572 		goto endlabel2845;
52573 	}
52574 {{	int16_t src = m68k_read_memory_16(srca);
52575 {	int32_t dst = m68k_areg(regs, dstreg);
52576 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52577 {	int flgs = ((int32_t)(src)) < 0;
52578 	int flgo = ((int32_t)(dst)) < 0;
52579 	int flgn = ((int32_t)(newv)) < 0;
52580 	SET_ZFLG (((int32_t)(newv)) == 0);
52581 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52582 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52583 	SET_NFLG (flgn != 0);
52584 }}}}}}}}m68k_incpc(4);
52585 fill_prefetch_0 ();
52586 endlabel2845: ;
52587 return 16;
52588 }
CPUFUNC(op_b0f8_5)52589 unsigned long CPUFUNC(op_b0f8_5)(uint32_t opcode) /* CMPA */
52590 {
52591 	uint32_t dstreg = (opcode >> 9) & 7;
52592 	OpcodeFamily = 27; CurrentInstrCycles = 14;
52593 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
52594 	if ((srca & 1) != 0) {
52595 		last_fault_for_exception_3 = srca;
52596 		last_op_for_exception_3 = opcode;
52597 		last_addr_for_exception_3 = m68k_getpc() + 4;
52598 		Exception(3, 0, M68000_EXC_SRC_CPU);
52599 		goto endlabel2846;
52600 	}
52601 {{	int16_t src = m68k_read_memory_16(srca);
52602 {	int32_t dst = m68k_areg(regs, dstreg);
52603 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52604 {	int flgs = ((int32_t)(src)) < 0;
52605 	int flgo = ((int32_t)(dst)) < 0;
52606 	int flgn = ((int32_t)(newv)) < 0;
52607 	SET_ZFLG (((int32_t)(newv)) == 0);
52608 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52609 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52610 	SET_NFLG (flgn != 0);
52611 }}}}}}}}m68k_incpc(4);
52612 fill_prefetch_0 ();
52613 endlabel2846: ;
52614 return 14;
52615 }
CPUFUNC(op_b0f9_5)52616 unsigned long CPUFUNC(op_b0f9_5)(uint32_t opcode) /* CMPA */
52617 {
52618 	uint32_t dstreg = (opcode >> 9) & 7;
52619 	OpcodeFamily = 27; CurrentInstrCycles = 18;
52620 {{	uint32_t srca = get_ilong_prefetch(2);
52621 	if ((srca & 1) != 0) {
52622 		last_fault_for_exception_3 = srca;
52623 		last_op_for_exception_3 = opcode;
52624 		last_addr_for_exception_3 = m68k_getpc() + 6;
52625 		Exception(3, 0, M68000_EXC_SRC_CPU);
52626 		goto endlabel2847;
52627 	}
52628 {{	int16_t src = m68k_read_memory_16(srca);
52629 {	int32_t dst = m68k_areg(regs, dstreg);
52630 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52631 {	int flgs = ((int32_t)(src)) < 0;
52632 	int flgo = ((int32_t)(dst)) < 0;
52633 	int flgn = ((int32_t)(newv)) < 0;
52634 	SET_ZFLG (((int32_t)(newv)) == 0);
52635 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52636 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52637 	SET_NFLG (flgn != 0);
52638 }}}}}}}}m68k_incpc(6);
52639 fill_prefetch_0 ();
52640 endlabel2847: ;
52641 return 18;
52642 }
CPUFUNC(op_b0fa_5)52643 unsigned long CPUFUNC(op_b0fa_5)(uint32_t opcode) /* CMPA */
52644 {
52645 	uint32_t dstreg = (opcode >> 9) & 7;
52646 	OpcodeFamily = 27; CurrentInstrCycles = 14;
52647 {{	uint32_t srca = m68k_getpc () + 2;
52648 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
52649 	if ((srca & 1) != 0) {
52650 		last_fault_for_exception_3 = srca;
52651 		last_op_for_exception_3 = opcode;
52652 		last_addr_for_exception_3 = m68k_getpc() + 4;
52653 		Exception(3, 0, M68000_EXC_SRC_CPU);
52654 		goto endlabel2848;
52655 	}
52656 {{	int16_t src = m68k_read_memory_16(srca);
52657 {	int32_t dst = m68k_areg(regs, dstreg);
52658 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52659 {	int flgs = ((int32_t)(src)) < 0;
52660 	int flgo = ((int32_t)(dst)) < 0;
52661 	int flgn = ((int32_t)(newv)) < 0;
52662 	SET_ZFLG (((int32_t)(newv)) == 0);
52663 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52664 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52665 	SET_NFLG (flgn != 0);
52666 }}}}}}}}m68k_incpc(4);
52667 fill_prefetch_0 ();
52668 endlabel2848: ;
52669 return 14;
52670 }
CPUFUNC(op_b0fb_5)52671 unsigned long CPUFUNC(op_b0fb_5)(uint32_t opcode) /* CMPA */
52672 {
52673 	uint32_t dstreg = (opcode >> 9) & 7;
52674 	OpcodeFamily = 27; CurrentInstrCycles = 16;
52675 {{	uint32_t tmppc = m68k_getpc() + 2;
52676 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
52677 	BusCyclePenalty += 2;
52678 	if ((srca & 1) != 0) {
52679 		last_fault_for_exception_3 = srca;
52680 		last_op_for_exception_3 = opcode;
52681 		last_addr_for_exception_3 = m68k_getpc() + 4;
52682 		Exception(3, 0, M68000_EXC_SRC_CPU);
52683 		goto endlabel2849;
52684 	}
52685 {{	int16_t src = m68k_read_memory_16(srca);
52686 {	int32_t dst = m68k_areg(regs, dstreg);
52687 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52688 {	int flgs = ((int32_t)(src)) < 0;
52689 	int flgo = ((int32_t)(dst)) < 0;
52690 	int flgn = ((int32_t)(newv)) < 0;
52691 	SET_ZFLG (((int32_t)(newv)) == 0);
52692 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52693 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52694 	SET_NFLG (flgn != 0);
52695 }}}}}}}}m68k_incpc(4);
52696 fill_prefetch_0 ();
52697 endlabel2849: ;
52698 return 16;
52699 }
CPUFUNC(op_b0fc_5)52700 unsigned long CPUFUNC(op_b0fc_5)(uint32_t opcode) /* CMPA */
52701 {
52702 	uint32_t dstreg = (opcode >> 9) & 7;
52703 	OpcodeFamily = 27; CurrentInstrCycles = 10;
52704 {{	int16_t src = get_iword_prefetch(2);
52705 {	int32_t dst = m68k_areg(regs, dstreg);
52706 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
52707 {	int flgs = ((int32_t)(src)) < 0;
52708 	int flgo = ((int32_t)(dst)) < 0;
52709 	int flgn = ((int32_t)(newv)) < 0;
52710 	SET_ZFLG (((int32_t)(newv)) == 0);
52711 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52712 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
52713 	SET_NFLG (flgn != 0);
52714 }}}}}}m68k_incpc(4);
52715 fill_prefetch_0 ();
52716 return 10;
52717 }
CPUFUNC(op_b100_5)52718 unsigned long CPUFUNC(op_b100_5)(uint32_t opcode) /* EOR */
52719 {
52720 	uint32_t srcreg = ((opcode >> 9) & 7);
52721 	uint32_t dstreg = opcode & 7;
52722 	OpcodeFamily = 3; CurrentInstrCycles = 4;
52723 {{	int8_t src = m68k_dreg(regs, srcreg);
52724 {	int8_t dst = m68k_dreg(regs, dstreg);
52725 	src ^= dst;
52726 	CLEAR_CZNV;
52727 	SET_ZFLG (((int8_t)(src)) == 0);
52728 	SET_NFLG (((int8_t)(src)) < 0);
52729 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
52730 }}}m68k_incpc(2);
52731 fill_prefetch_2 ();
52732 return 4;
52733 }
CPUFUNC(op_b108_5)52734 unsigned long CPUFUNC(op_b108_5)(uint32_t opcode) /* CMPM */
52735 {
52736 	uint32_t srcreg = (opcode & 7);
52737 	uint32_t dstreg = (opcode >> 9) & 7;
52738 	OpcodeFamily = 26; CurrentInstrCycles = 12;
52739 {{	uint32_t srca = m68k_areg(regs, srcreg);
52740 {	int8_t src = m68k_read_memory_8(srca);
52741 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
52742 {	uint32_t dsta = m68k_areg(regs, dstreg);
52743 {	int8_t dst = m68k_read_memory_8(dsta);
52744 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
52745 {{uint32_t newv = ((int8_t)(dst)) - ((int8_t)(src));
52746 {	int flgs = ((int8_t)(src)) < 0;
52747 	int flgo = ((int8_t)(dst)) < 0;
52748 	int flgn = ((int8_t)(newv)) < 0;
52749 	SET_ZFLG (((int8_t)(newv)) == 0);
52750 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52751 	SET_CFLG (((uint8_t)(src)) > ((uint8_t)(dst)));
52752 	SET_NFLG (flgn != 0);
52753 }}}}}}}}m68k_incpc(2);
52754 fill_prefetch_2 ();
52755 return 12;
52756 }
CPUFUNC(op_b110_5)52757 unsigned long CPUFUNC(op_b110_5)(uint32_t opcode) /* EOR */
52758 {
52759 	uint32_t srcreg = ((opcode >> 9) & 7);
52760 	uint32_t dstreg = opcode & 7;
52761 	OpcodeFamily = 3; CurrentInstrCycles = 12;
52762 {{	int8_t src = m68k_dreg(regs, srcreg);
52763 {	uint32_t dsta = m68k_areg(regs, dstreg);
52764 {	int8_t dst = m68k_read_memory_8(dsta);
52765 	src ^= dst;
52766 	CLEAR_CZNV;
52767 	SET_ZFLG (((int8_t)(src)) == 0);
52768 	SET_NFLG (((int8_t)(src)) < 0);
52769 m68k_incpc(2);
52770 fill_prefetch_2 ();
52771 	m68k_write_memory_8(dsta,src);
52772 }}}}return 12;
52773 }
CPUFUNC(op_b118_5)52774 unsigned long CPUFUNC(op_b118_5)(uint32_t opcode) /* EOR */
52775 {
52776 	uint32_t srcreg = ((opcode >> 9) & 7);
52777 	uint32_t dstreg = opcode & 7;
52778 	OpcodeFamily = 3; CurrentInstrCycles = 12;
52779 {{	int8_t src = m68k_dreg(regs, srcreg);
52780 {	uint32_t dsta = m68k_areg(regs, dstreg);
52781 {	int8_t dst = m68k_read_memory_8(dsta);
52782 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
52783 	src ^= dst;
52784 	CLEAR_CZNV;
52785 	SET_ZFLG (((int8_t)(src)) == 0);
52786 	SET_NFLG (((int8_t)(src)) < 0);
52787 m68k_incpc(2);
52788 fill_prefetch_2 ();
52789 	m68k_write_memory_8(dsta,src);
52790 }}}}return 12;
52791 }
CPUFUNC(op_b120_5)52792 unsigned long CPUFUNC(op_b120_5)(uint32_t opcode) /* EOR */
52793 {
52794 	uint32_t srcreg = ((opcode >> 9) & 7);
52795 	uint32_t dstreg = opcode & 7;
52796 	OpcodeFamily = 3; CurrentInstrCycles = 14;
52797 {{	int8_t src = m68k_dreg(regs, srcreg);
52798 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
52799 {	int8_t dst = m68k_read_memory_8(dsta);
52800 	m68k_areg (regs, dstreg) = dsta;
52801 	src ^= dst;
52802 	CLEAR_CZNV;
52803 	SET_ZFLG (((int8_t)(src)) == 0);
52804 	SET_NFLG (((int8_t)(src)) < 0);
52805 m68k_incpc(2);
52806 fill_prefetch_2 ();
52807 	m68k_write_memory_8(dsta,src);
52808 }}}}return 14;
52809 }
CPUFUNC(op_b128_5)52810 unsigned long CPUFUNC(op_b128_5)(uint32_t opcode) /* EOR */
52811 {
52812 	uint32_t srcreg = ((opcode >> 9) & 7);
52813 	uint32_t dstreg = opcode & 7;
52814 	OpcodeFamily = 3; CurrentInstrCycles = 16;
52815 {{	int8_t src = m68k_dreg(regs, srcreg);
52816 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
52817 {	int8_t dst = m68k_read_memory_8(dsta);
52818 	src ^= dst;
52819 	CLEAR_CZNV;
52820 	SET_ZFLG (((int8_t)(src)) == 0);
52821 	SET_NFLG (((int8_t)(src)) < 0);
52822 m68k_incpc(4);
52823 fill_prefetch_0 ();
52824 	m68k_write_memory_8(dsta,src);
52825 }}}}return 16;
52826 }
CPUFUNC(op_b130_5)52827 unsigned long CPUFUNC(op_b130_5)(uint32_t opcode) /* EOR */
52828 {
52829 	uint32_t srcreg = ((opcode >> 9) & 7);
52830 	uint32_t dstreg = opcode & 7;
52831 	OpcodeFamily = 3; CurrentInstrCycles = 18;
52832 {{	int8_t src = m68k_dreg(regs, srcreg);
52833 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
52834 	BusCyclePenalty += 2;
52835 {	int8_t dst = m68k_read_memory_8(dsta);
52836 	src ^= dst;
52837 	CLEAR_CZNV;
52838 	SET_ZFLG (((int8_t)(src)) == 0);
52839 	SET_NFLG (((int8_t)(src)) < 0);
52840 m68k_incpc(4);
52841 fill_prefetch_0 ();
52842 	m68k_write_memory_8(dsta,src);
52843 }}}}return 18;
52844 }
CPUFUNC(op_b138_5)52845 unsigned long CPUFUNC(op_b138_5)(uint32_t opcode) /* EOR */
52846 {
52847 	uint32_t srcreg = ((opcode >> 9) & 7);
52848 	OpcodeFamily = 3; CurrentInstrCycles = 16;
52849 {{	int8_t src = m68k_dreg(regs, srcreg);
52850 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
52851 {	int8_t dst = m68k_read_memory_8(dsta);
52852 	src ^= dst;
52853 	CLEAR_CZNV;
52854 	SET_ZFLG (((int8_t)(src)) == 0);
52855 	SET_NFLG (((int8_t)(src)) < 0);
52856 m68k_incpc(4);
52857 fill_prefetch_0 ();
52858 	m68k_write_memory_8(dsta,src);
52859 }}}}return 16;
52860 }
CPUFUNC(op_b139_5)52861 unsigned long CPUFUNC(op_b139_5)(uint32_t opcode) /* EOR */
52862 {
52863 	uint32_t srcreg = ((opcode >> 9) & 7);
52864 	OpcodeFamily = 3; CurrentInstrCycles = 20;
52865 {{	int8_t src = m68k_dreg(regs, srcreg);
52866 {	uint32_t dsta = get_ilong_prefetch(2);
52867 {	int8_t dst = m68k_read_memory_8(dsta);
52868 	src ^= dst;
52869 	CLEAR_CZNV;
52870 	SET_ZFLG (((int8_t)(src)) == 0);
52871 	SET_NFLG (((int8_t)(src)) < 0);
52872 m68k_incpc(6);
52873 fill_prefetch_0 ();
52874 	m68k_write_memory_8(dsta,src);
52875 }}}}return 20;
52876 }
CPUFUNC(op_b140_5)52877 unsigned long CPUFUNC(op_b140_5)(uint32_t opcode) /* EOR */
52878 {
52879 	uint32_t srcreg = ((opcode >> 9) & 7);
52880 	uint32_t dstreg = opcode & 7;
52881 	OpcodeFamily = 3; CurrentInstrCycles = 4;
52882 {{	int16_t src = m68k_dreg(regs, srcreg);
52883 {	int16_t dst = m68k_dreg(regs, dstreg);
52884 	src ^= dst;
52885 	CLEAR_CZNV;
52886 	SET_ZFLG (((int16_t)(src)) == 0);
52887 	SET_NFLG (((int16_t)(src)) < 0);
52888 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
52889 }}}m68k_incpc(2);
52890 fill_prefetch_2 ();
52891 return 4;
52892 }
CPUFUNC(op_b148_5)52893 unsigned long CPUFUNC(op_b148_5)(uint32_t opcode) /* CMPM */
52894 {
52895 	uint32_t srcreg = (opcode & 7);
52896 	uint32_t dstreg = (opcode >> 9) & 7;
52897 	OpcodeFamily = 26; CurrentInstrCycles = 12;
52898 {{	uint32_t srca = m68k_areg(regs, srcreg);
52899 	if ((srca & 1) != 0) {
52900 		last_fault_for_exception_3 = srca;
52901 		last_op_for_exception_3 = opcode;
52902 		last_addr_for_exception_3 = m68k_getpc() + 2;
52903 		Exception(3, 0, M68000_EXC_SRC_CPU);
52904 		goto endlabel2861;
52905 	}
52906 {{	int16_t src = m68k_read_memory_16(srca);
52907 	m68k_areg(regs, srcreg) += 2;
52908 {	uint32_t dsta = m68k_areg(regs, dstreg);
52909 	if ((dsta & 1) != 0) {
52910 		last_fault_for_exception_3 = dsta;
52911 		last_op_for_exception_3 = opcode;
52912 		last_addr_for_exception_3 = m68k_getpc() + 2;
52913 		Exception(3, 0, M68000_EXC_SRC_CPU);
52914 		goto endlabel2861;
52915 	}
52916 {{	int16_t dst = m68k_read_memory_16(dsta);
52917 	m68k_areg(regs, dstreg) += 2;
52918 {{uint32_t newv = ((int16_t)(dst)) - ((int16_t)(src));
52919 {	int flgs = ((int16_t)(src)) < 0;
52920 	int flgo = ((int16_t)(dst)) < 0;
52921 	int flgn = ((int16_t)(newv)) < 0;
52922 	SET_ZFLG (((int16_t)(newv)) == 0);
52923 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
52924 	SET_CFLG (((uint16_t)(src)) > ((uint16_t)(dst)));
52925 	SET_NFLG (flgn != 0);
52926 }}}}}}}}}}m68k_incpc(2);
52927 fill_prefetch_2 ();
52928 endlabel2861: ;
52929 return 12;
52930 }
CPUFUNC(op_b150_5)52931 unsigned long CPUFUNC(op_b150_5)(uint32_t opcode) /* EOR */
52932 {
52933 	uint32_t srcreg = ((opcode >> 9) & 7);
52934 	uint32_t dstreg = opcode & 7;
52935 	OpcodeFamily = 3; CurrentInstrCycles = 12;
52936 {{	int16_t src = m68k_dreg(regs, srcreg);
52937 {	uint32_t dsta = m68k_areg(regs, dstreg);
52938 	if ((dsta & 1) != 0) {
52939 		last_fault_for_exception_3 = dsta;
52940 		last_op_for_exception_3 = opcode;
52941 		last_addr_for_exception_3 = m68k_getpc() + 2;
52942 		Exception(3, 0, M68000_EXC_SRC_CPU);
52943 		goto endlabel2862;
52944 	}
52945 {{	int16_t dst = m68k_read_memory_16(dsta);
52946 	src ^= dst;
52947 	CLEAR_CZNV;
52948 	SET_ZFLG (((int16_t)(src)) == 0);
52949 	SET_NFLG (((int16_t)(src)) < 0);
52950 m68k_incpc(2);
52951 fill_prefetch_2 ();
52952 	m68k_write_memory_16(dsta,src);
52953 }}}}}endlabel2862: ;
52954 return 12;
52955 }
CPUFUNC(op_b158_5)52956 unsigned long CPUFUNC(op_b158_5)(uint32_t opcode) /* EOR */
52957 {
52958 	uint32_t srcreg = ((opcode >> 9) & 7);
52959 	uint32_t dstreg = opcode & 7;
52960 	OpcodeFamily = 3; CurrentInstrCycles = 12;
52961 {{	int16_t src = m68k_dreg(regs, srcreg);
52962 {	uint32_t dsta = m68k_areg(regs, dstreg);
52963 	if ((dsta & 1) != 0) {
52964 		last_fault_for_exception_3 = dsta;
52965 		last_op_for_exception_3 = opcode;
52966 		last_addr_for_exception_3 = m68k_getpc() + 2;
52967 		Exception(3, 0, M68000_EXC_SRC_CPU);
52968 		goto endlabel2863;
52969 	}
52970 {{	int16_t dst = m68k_read_memory_16(dsta);
52971 	m68k_areg(regs, dstreg) += 2;
52972 	src ^= dst;
52973 	CLEAR_CZNV;
52974 	SET_ZFLG (((int16_t)(src)) == 0);
52975 	SET_NFLG (((int16_t)(src)) < 0);
52976 m68k_incpc(2);
52977 fill_prefetch_2 ();
52978 	m68k_write_memory_16(dsta,src);
52979 }}}}}endlabel2863: ;
52980 return 12;
52981 }
CPUFUNC(op_b160_5)52982 unsigned long CPUFUNC(op_b160_5)(uint32_t opcode) /* EOR */
52983 {
52984 	uint32_t srcreg = ((opcode >> 9) & 7);
52985 	uint32_t dstreg = opcode & 7;
52986 	OpcodeFamily = 3; CurrentInstrCycles = 14;
52987 {{	int16_t src = m68k_dreg(regs, srcreg);
52988 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
52989 	if ((dsta & 1) != 0) {
52990 		last_fault_for_exception_3 = dsta;
52991 		last_op_for_exception_3 = opcode;
52992 		last_addr_for_exception_3 = m68k_getpc() + 2;
52993 		Exception(3, 0, M68000_EXC_SRC_CPU);
52994 		goto endlabel2864;
52995 	}
52996 {{	int16_t dst = m68k_read_memory_16(dsta);
52997 	m68k_areg (regs, dstreg) = dsta;
52998 	src ^= dst;
52999 	CLEAR_CZNV;
53000 	SET_ZFLG (((int16_t)(src)) == 0);
53001 	SET_NFLG (((int16_t)(src)) < 0);
53002 m68k_incpc(2);
53003 fill_prefetch_2 ();
53004 	m68k_write_memory_16(dsta,src);
53005 }}}}}endlabel2864: ;
53006 return 14;
53007 }
CPUFUNC(op_b168_5)53008 unsigned long CPUFUNC(op_b168_5)(uint32_t opcode) /* EOR */
53009 {
53010 	uint32_t srcreg = ((opcode >> 9) & 7);
53011 	uint32_t dstreg = opcode & 7;
53012 	OpcodeFamily = 3; CurrentInstrCycles = 16;
53013 {{	int16_t src = m68k_dreg(regs, srcreg);
53014 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
53015 	if ((dsta & 1) != 0) {
53016 		last_fault_for_exception_3 = dsta;
53017 		last_op_for_exception_3 = opcode;
53018 		last_addr_for_exception_3 = m68k_getpc() + 4;
53019 		Exception(3, 0, M68000_EXC_SRC_CPU);
53020 		goto endlabel2865;
53021 	}
53022 {{	int16_t dst = m68k_read_memory_16(dsta);
53023 	src ^= dst;
53024 	CLEAR_CZNV;
53025 	SET_ZFLG (((int16_t)(src)) == 0);
53026 	SET_NFLG (((int16_t)(src)) < 0);
53027 m68k_incpc(4);
53028 fill_prefetch_0 ();
53029 	m68k_write_memory_16(dsta,src);
53030 }}}}}endlabel2865: ;
53031 return 16;
53032 }
CPUFUNC(op_b170_5)53033 unsigned long CPUFUNC(op_b170_5)(uint32_t opcode) /* EOR */
53034 {
53035 	uint32_t srcreg = ((opcode >> 9) & 7);
53036 	uint32_t dstreg = opcode & 7;
53037 	OpcodeFamily = 3; CurrentInstrCycles = 18;
53038 {{	int16_t src = m68k_dreg(regs, srcreg);
53039 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
53040 	BusCyclePenalty += 2;
53041 	if ((dsta & 1) != 0) {
53042 		last_fault_for_exception_3 = dsta;
53043 		last_op_for_exception_3 = opcode;
53044 		last_addr_for_exception_3 = m68k_getpc() + 4;
53045 		Exception(3, 0, M68000_EXC_SRC_CPU);
53046 		goto endlabel2866;
53047 	}
53048 {{	int16_t dst = m68k_read_memory_16(dsta);
53049 	src ^= dst;
53050 	CLEAR_CZNV;
53051 	SET_ZFLG (((int16_t)(src)) == 0);
53052 	SET_NFLG (((int16_t)(src)) < 0);
53053 m68k_incpc(4);
53054 fill_prefetch_0 ();
53055 	m68k_write_memory_16(dsta,src);
53056 }}}}}endlabel2866: ;
53057 return 18;
53058 }
CPUFUNC(op_b178_5)53059 unsigned long CPUFUNC(op_b178_5)(uint32_t opcode) /* EOR */
53060 {
53061 	uint32_t srcreg = ((opcode >> 9) & 7);
53062 	OpcodeFamily = 3; CurrentInstrCycles = 16;
53063 {{	int16_t src = m68k_dreg(regs, srcreg);
53064 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
53065 	if ((dsta & 1) != 0) {
53066 		last_fault_for_exception_3 = dsta;
53067 		last_op_for_exception_3 = opcode;
53068 		last_addr_for_exception_3 = m68k_getpc() + 4;
53069 		Exception(3, 0, M68000_EXC_SRC_CPU);
53070 		goto endlabel2867;
53071 	}
53072 {{	int16_t dst = m68k_read_memory_16(dsta);
53073 	src ^= dst;
53074 	CLEAR_CZNV;
53075 	SET_ZFLG (((int16_t)(src)) == 0);
53076 	SET_NFLG (((int16_t)(src)) < 0);
53077 m68k_incpc(4);
53078 fill_prefetch_0 ();
53079 	m68k_write_memory_16(dsta,src);
53080 }}}}}endlabel2867: ;
53081 return 16;
53082 }
CPUFUNC(op_b179_5)53083 unsigned long CPUFUNC(op_b179_5)(uint32_t opcode) /* EOR */
53084 {
53085 	uint32_t srcreg = ((opcode >> 9) & 7);
53086 	OpcodeFamily = 3; CurrentInstrCycles = 20;
53087 {{	int16_t src = m68k_dreg(regs, srcreg);
53088 {	uint32_t dsta = get_ilong_prefetch(2);
53089 	if ((dsta & 1) != 0) {
53090 		last_fault_for_exception_3 = dsta;
53091 		last_op_for_exception_3 = opcode;
53092 		last_addr_for_exception_3 = m68k_getpc() + 6;
53093 		Exception(3, 0, M68000_EXC_SRC_CPU);
53094 		goto endlabel2868;
53095 	}
53096 {{	int16_t dst = m68k_read_memory_16(dsta);
53097 	src ^= dst;
53098 	CLEAR_CZNV;
53099 	SET_ZFLG (((int16_t)(src)) == 0);
53100 	SET_NFLG (((int16_t)(src)) < 0);
53101 m68k_incpc(6);
53102 fill_prefetch_0 ();
53103 	m68k_write_memory_16(dsta,src);
53104 }}}}}endlabel2868: ;
53105 return 20;
53106 }
CPUFUNC(op_b180_5)53107 unsigned long CPUFUNC(op_b180_5)(uint32_t opcode) /* EOR */
53108 {
53109 	uint32_t srcreg = ((opcode >> 9) & 7);
53110 	uint32_t dstreg = opcode & 7;
53111 	OpcodeFamily = 3; CurrentInstrCycles = 8;
53112 {{	int32_t src = m68k_dreg(regs, srcreg);
53113 {	int32_t dst = m68k_dreg(regs, dstreg);
53114 	src ^= dst;
53115 	CLEAR_CZNV;
53116 	SET_ZFLG (((int32_t)(src)) == 0);
53117 	SET_NFLG (((int32_t)(src)) < 0);
53118 	m68k_dreg(regs, dstreg) = (src);
53119 }}}m68k_incpc(2);
53120 fill_prefetch_2 ();
53121 return 8;
53122 }
CPUFUNC(op_b188_5)53123 unsigned long CPUFUNC(op_b188_5)(uint32_t opcode) /* CMPM */
53124 {
53125 	uint32_t srcreg = (opcode & 7);
53126 	uint32_t dstreg = (opcode >> 9) & 7;
53127 	OpcodeFamily = 26; CurrentInstrCycles = 20;
53128 {{	uint32_t srca = m68k_areg(regs, srcreg);
53129 	if ((srca & 1) != 0) {
53130 		last_fault_for_exception_3 = srca;
53131 		last_op_for_exception_3 = opcode;
53132 		last_addr_for_exception_3 = m68k_getpc() + 2;
53133 		Exception(3, 0, M68000_EXC_SRC_CPU);
53134 		goto endlabel2870;
53135 	}
53136 {{	int32_t src = m68k_read_memory_32(srca);
53137 	m68k_areg(regs, srcreg) += 4;
53138 {	uint32_t dsta = m68k_areg(regs, dstreg);
53139 	if ((dsta & 1) != 0) {
53140 		last_fault_for_exception_3 = dsta;
53141 		last_op_for_exception_3 = opcode;
53142 		last_addr_for_exception_3 = m68k_getpc() + 2;
53143 		Exception(3, 0, M68000_EXC_SRC_CPU);
53144 		goto endlabel2870;
53145 	}
53146 {{	int32_t dst = m68k_read_memory_32(dsta);
53147 	m68k_areg(regs, dstreg) += 4;
53148 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53149 {	int flgs = ((int32_t)(src)) < 0;
53150 	int flgo = ((int32_t)(dst)) < 0;
53151 	int flgn = ((int32_t)(newv)) < 0;
53152 	SET_ZFLG (((int32_t)(newv)) == 0);
53153 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53154 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53155 	SET_NFLG (flgn != 0);
53156 }}}}}}}}}}m68k_incpc(2);
53157 fill_prefetch_2 ();
53158 endlabel2870: ;
53159 return 20;
53160 }
CPUFUNC(op_b190_5)53161 unsigned long CPUFUNC(op_b190_5)(uint32_t opcode) /* EOR */
53162 {
53163 	uint32_t srcreg = ((opcode >> 9) & 7);
53164 	uint32_t dstreg = opcode & 7;
53165 	OpcodeFamily = 3; CurrentInstrCycles = 20;
53166 {{	int32_t src = m68k_dreg(regs, srcreg);
53167 {	uint32_t dsta = m68k_areg(regs, dstreg);
53168 	if ((dsta & 1) != 0) {
53169 		last_fault_for_exception_3 = dsta;
53170 		last_op_for_exception_3 = opcode;
53171 		last_addr_for_exception_3 = m68k_getpc() + 2;
53172 		Exception(3, 0, M68000_EXC_SRC_CPU);
53173 		goto endlabel2871;
53174 	}
53175 {{	int32_t dst = m68k_read_memory_32(dsta);
53176 	src ^= dst;
53177 	CLEAR_CZNV;
53178 	SET_ZFLG (((int32_t)(src)) == 0);
53179 	SET_NFLG (((int32_t)(src)) < 0);
53180 m68k_incpc(2);
53181 fill_prefetch_2 ();
53182 	m68k_write_memory_32(dsta,src);
53183 }}}}}endlabel2871: ;
53184 return 20;
53185 }
CPUFUNC(op_b198_5)53186 unsigned long CPUFUNC(op_b198_5)(uint32_t opcode) /* EOR */
53187 {
53188 	uint32_t srcreg = ((opcode >> 9) & 7);
53189 	uint32_t dstreg = opcode & 7;
53190 	OpcodeFamily = 3; CurrentInstrCycles = 20;
53191 {{	int32_t src = m68k_dreg(regs, srcreg);
53192 {	uint32_t dsta = m68k_areg(regs, dstreg);
53193 	if ((dsta & 1) != 0) {
53194 		last_fault_for_exception_3 = dsta;
53195 		last_op_for_exception_3 = opcode;
53196 		last_addr_for_exception_3 = m68k_getpc() + 2;
53197 		Exception(3, 0, M68000_EXC_SRC_CPU);
53198 		goto endlabel2872;
53199 	}
53200 {{	int32_t dst = m68k_read_memory_32(dsta);
53201 	m68k_areg(regs, dstreg) += 4;
53202 	src ^= dst;
53203 	CLEAR_CZNV;
53204 	SET_ZFLG (((int32_t)(src)) == 0);
53205 	SET_NFLG (((int32_t)(src)) < 0);
53206 m68k_incpc(2);
53207 fill_prefetch_2 ();
53208 	m68k_write_memory_32(dsta,src);
53209 }}}}}endlabel2872: ;
53210 return 20;
53211 }
CPUFUNC(op_b1a0_5)53212 unsigned long CPUFUNC(op_b1a0_5)(uint32_t opcode) /* EOR */
53213 {
53214 	uint32_t srcreg = ((opcode >> 9) & 7);
53215 	uint32_t dstreg = opcode & 7;
53216 	OpcodeFamily = 3; CurrentInstrCycles = 22;
53217 {{	int32_t src = m68k_dreg(regs, srcreg);
53218 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
53219 	if ((dsta & 1) != 0) {
53220 		last_fault_for_exception_3 = dsta;
53221 		last_op_for_exception_3 = opcode;
53222 		last_addr_for_exception_3 = m68k_getpc() + 2;
53223 		Exception(3, 0, M68000_EXC_SRC_CPU);
53224 		goto endlabel2873;
53225 	}
53226 {{	int32_t dst = m68k_read_memory_32(dsta);
53227 	m68k_areg (regs, dstreg) = dsta;
53228 	src ^= dst;
53229 	CLEAR_CZNV;
53230 	SET_ZFLG (((int32_t)(src)) == 0);
53231 	SET_NFLG (((int32_t)(src)) < 0);
53232 m68k_incpc(2);
53233 fill_prefetch_2 ();
53234 	m68k_write_memory_32(dsta,src);
53235 }}}}}endlabel2873: ;
53236 return 22;
53237 }
CPUFUNC(op_b1a8_5)53238 unsigned long CPUFUNC(op_b1a8_5)(uint32_t opcode) /* EOR */
53239 {
53240 	uint32_t srcreg = ((opcode >> 9) & 7);
53241 	uint32_t dstreg = opcode & 7;
53242 	OpcodeFamily = 3; CurrentInstrCycles = 24;
53243 {{	int32_t src = m68k_dreg(regs, srcreg);
53244 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
53245 	if ((dsta & 1) != 0) {
53246 		last_fault_for_exception_3 = dsta;
53247 		last_op_for_exception_3 = opcode;
53248 		last_addr_for_exception_3 = m68k_getpc() + 4;
53249 		Exception(3, 0, M68000_EXC_SRC_CPU);
53250 		goto endlabel2874;
53251 	}
53252 {{	int32_t dst = m68k_read_memory_32(dsta);
53253 	src ^= dst;
53254 	CLEAR_CZNV;
53255 	SET_ZFLG (((int32_t)(src)) == 0);
53256 	SET_NFLG (((int32_t)(src)) < 0);
53257 m68k_incpc(4);
53258 fill_prefetch_0 ();
53259 	m68k_write_memory_32(dsta,src);
53260 }}}}}endlabel2874: ;
53261 return 24;
53262 }
CPUFUNC(op_b1b0_5)53263 unsigned long CPUFUNC(op_b1b0_5)(uint32_t opcode) /* EOR */
53264 {
53265 	uint32_t srcreg = ((opcode >> 9) & 7);
53266 	uint32_t dstreg = opcode & 7;
53267 	OpcodeFamily = 3; CurrentInstrCycles = 26;
53268 {{	int32_t src = m68k_dreg(regs, srcreg);
53269 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
53270 	BusCyclePenalty += 2;
53271 	if ((dsta & 1) != 0) {
53272 		last_fault_for_exception_3 = dsta;
53273 		last_op_for_exception_3 = opcode;
53274 		last_addr_for_exception_3 = m68k_getpc() + 4;
53275 		Exception(3, 0, M68000_EXC_SRC_CPU);
53276 		goto endlabel2875;
53277 	}
53278 {{	int32_t dst = m68k_read_memory_32(dsta);
53279 	src ^= dst;
53280 	CLEAR_CZNV;
53281 	SET_ZFLG (((int32_t)(src)) == 0);
53282 	SET_NFLG (((int32_t)(src)) < 0);
53283 m68k_incpc(4);
53284 fill_prefetch_0 ();
53285 	m68k_write_memory_32(dsta,src);
53286 }}}}}endlabel2875: ;
53287 return 26;
53288 }
CPUFUNC(op_b1b8_5)53289 unsigned long CPUFUNC(op_b1b8_5)(uint32_t opcode) /* EOR */
53290 {
53291 	uint32_t srcreg = ((opcode >> 9) & 7);
53292 	OpcodeFamily = 3; CurrentInstrCycles = 24;
53293 {{	int32_t src = m68k_dreg(regs, srcreg);
53294 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
53295 	if ((dsta & 1) != 0) {
53296 		last_fault_for_exception_3 = dsta;
53297 		last_op_for_exception_3 = opcode;
53298 		last_addr_for_exception_3 = m68k_getpc() + 4;
53299 		Exception(3, 0, M68000_EXC_SRC_CPU);
53300 		goto endlabel2876;
53301 	}
53302 {{	int32_t dst = m68k_read_memory_32(dsta);
53303 	src ^= dst;
53304 	CLEAR_CZNV;
53305 	SET_ZFLG (((int32_t)(src)) == 0);
53306 	SET_NFLG (((int32_t)(src)) < 0);
53307 m68k_incpc(4);
53308 fill_prefetch_0 ();
53309 	m68k_write_memory_32(dsta,src);
53310 }}}}}endlabel2876: ;
53311 return 24;
53312 }
CPUFUNC(op_b1b9_5)53313 unsigned long CPUFUNC(op_b1b9_5)(uint32_t opcode) /* EOR */
53314 {
53315 	uint32_t srcreg = ((opcode >> 9) & 7);
53316 	OpcodeFamily = 3; CurrentInstrCycles = 28;
53317 {{	int32_t src = m68k_dreg(regs, srcreg);
53318 {	uint32_t dsta = get_ilong_prefetch(2);
53319 	if ((dsta & 1) != 0) {
53320 		last_fault_for_exception_3 = dsta;
53321 		last_op_for_exception_3 = opcode;
53322 		last_addr_for_exception_3 = m68k_getpc() + 6;
53323 		Exception(3, 0, M68000_EXC_SRC_CPU);
53324 		goto endlabel2877;
53325 	}
53326 {{	int32_t dst = m68k_read_memory_32(dsta);
53327 	src ^= dst;
53328 	CLEAR_CZNV;
53329 	SET_ZFLG (((int32_t)(src)) == 0);
53330 	SET_NFLG (((int32_t)(src)) < 0);
53331 m68k_incpc(6);
53332 fill_prefetch_0 ();
53333 	m68k_write_memory_32(dsta,src);
53334 }}}}}endlabel2877: ;
53335 return 28;
53336 }
CPUFUNC(op_b1c0_5)53337 unsigned long CPUFUNC(op_b1c0_5)(uint32_t opcode) /* CMPA */
53338 {
53339 	uint32_t srcreg = (opcode & 7);
53340 	uint32_t dstreg = (opcode >> 9) & 7;
53341 	OpcodeFamily = 27; CurrentInstrCycles = 6;
53342 {{	int32_t src = m68k_dreg(regs, srcreg);
53343 {	int32_t dst = m68k_areg(regs, dstreg);
53344 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53345 {	int flgs = ((int32_t)(src)) < 0;
53346 	int flgo = ((int32_t)(dst)) < 0;
53347 	int flgn = ((int32_t)(newv)) < 0;
53348 	SET_ZFLG (((int32_t)(newv)) == 0);
53349 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53350 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53351 	SET_NFLG (flgn != 0);
53352 }}}}}}m68k_incpc(2);
53353 fill_prefetch_2 ();
53354 return 6;
53355 }
CPUFUNC(op_b1c8_5)53356 unsigned long CPUFUNC(op_b1c8_5)(uint32_t opcode) /* CMPA */
53357 {
53358 	uint32_t srcreg = (opcode & 7);
53359 	uint32_t dstreg = (opcode >> 9) & 7;
53360 	OpcodeFamily = 27; CurrentInstrCycles = 6;
53361 {{	int32_t src = m68k_areg(regs, srcreg);
53362 {	int32_t dst = m68k_areg(regs, dstreg);
53363 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53364 {	int flgs = ((int32_t)(src)) < 0;
53365 	int flgo = ((int32_t)(dst)) < 0;
53366 	int flgn = ((int32_t)(newv)) < 0;
53367 	SET_ZFLG (((int32_t)(newv)) == 0);
53368 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53369 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53370 	SET_NFLG (flgn != 0);
53371 }}}}}}m68k_incpc(2);
53372 fill_prefetch_2 ();
53373 return 6;
53374 }
CPUFUNC(op_b1d0_5)53375 unsigned long CPUFUNC(op_b1d0_5)(uint32_t opcode) /* CMPA */
53376 {
53377 	uint32_t srcreg = (opcode & 7);
53378 	uint32_t dstreg = (opcode >> 9) & 7;
53379 	OpcodeFamily = 27; CurrentInstrCycles = 14;
53380 {{	uint32_t srca = m68k_areg(regs, srcreg);
53381 	if ((srca & 1) != 0) {
53382 		last_fault_for_exception_3 = srca;
53383 		last_op_for_exception_3 = opcode;
53384 		last_addr_for_exception_3 = m68k_getpc() + 2;
53385 		Exception(3, 0, M68000_EXC_SRC_CPU);
53386 		goto endlabel2880;
53387 	}
53388 {{	int32_t src = m68k_read_memory_32(srca);
53389 {	int32_t dst = m68k_areg(regs, dstreg);
53390 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53391 {	int flgs = ((int32_t)(src)) < 0;
53392 	int flgo = ((int32_t)(dst)) < 0;
53393 	int flgn = ((int32_t)(newv)) < 0;
53394 	SET_ZFLG (((int32_t)(newv)) == 0);
53395 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53396 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53397 	SET_NFLG (flgn != 0);
53398 }}}}}}}}m68k_incpc(2);
53399 fill_prefetch_2 ();
53400 endlabel2880: ;
53401 return 14;
53402 }
CPUFUNC(op_b1d8_5)53403 unsigned long CPUFUNC(op_b1d8_5)(uint32_t opcode) /* CMPA */
53404 {
53405 	uint32_t srcreg = (opcode & 7);
53406 	uint32_t dstreg = (opcode >> 9) & 7;
53407 	OpcodeFamily = 27; CurrentInstrCycles = 14;
53408 {{	uint32_t srca = m68k_areg(regs, srcreg);
53409 	if ((srca & 1) != 0) {
53410 		last_fault_for_exception_3 = srca;
53411 		last_op_for_exception_3 = opcode;
53412 		last_addr_for_exception_3 = m68k_getpc() + 2;
53413 		Exception(3, 0, M68000_EXC_SRC_CPU);
53414 		goto endlabel2881;
53415 	}
53416 {{	int32_t src = m68k_read_memory_32(srca);
53417 	m68k_areg(regs, srcreg) += 4;
53418 {	int32_t dst = m68k_areg(regs, dstreg);
53419 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53420 {	int flgs = ((int32_t)(src)) < 0;
53421 	int flgo = ((int32_t)(dst)) < 0;
53422 	int flgn = ((int32_t)(newv)) < 0;
53423 	SET_ZFLG (((int32_t)(newv)) == 0);
53424 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53425 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53426 	SET_NFLG (flgn != 0);
53427 }}}}}}}}m68k_incpc(2);
53428 fill_prefetch_2 ();
53429 endlabel2881: ;
53430 return 14;
53431 }
CPUFUNC(op_b1e0_5)53432 unsigned long CPUFUNC(op_b1e0_5)(uint32_t opcode) /* CMPA */
53433 {
53434 	uint32_t srcreg = (opcode & 7);
53435 	uint32_t dstreg = (opcode >> 9) & 7;
53436 	OpcodeFamily = 27; CurrentInstrCycles = 16;
53437 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
53438 	if ((srca & 1) != 0) {
53439 		last_fault_for_exception_3 = srca;
53440 		last_op_for_exception_3 = opcode;
53441 		last_addr_for_exception_3 = m68k_getpc() + 2;
53442 		Exception(3, 0, M68000_EXC_SRC_CPU);
53443 		goto endlabel2882;
53444 	}
53445 {{	int32_t src = m68k_read_memory_32(srca);
53446 	m68k_areg (regs, srcreg) = srca;
53447 {	int32_t dst = m68k_areg(regs, dstreg);
53448 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53449 {	int flgs = ((int32_t)(src)) < 0;
53450 	int flgo = ((int32_t)(dst)) < 0;
53451 	int flgn = ((int32_t)(newv)) < 0;
53452 	SET_ZFLG (((int32_t)(newv)) == 0);
53453 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53454 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53455 	SET_NFLG (flgn != 0);
53456 }}}}}}}}m68k_incpc(2);
53457 fill_prefetch_2 ();
53458 endlabel2882: ;
53459 return 16;
53460 }
CPUFUNC(op_b1e8_5)53461 unsigned long CPUFUNC(op_b1e8_5)(uint32_t opcode) /* CMPA */
53462 {
53463 	uint32_t srcreg = (opcode & 7);
53464 	uint32_t dstreg = (opcode >> 9) & 7;
53465 	OpcodeFamily = 27; CurrentInstrCycles = 18;
53466 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
53467 	if ((srca & 1) != 0) {
53468 		last_fault_for_exception_3 = srca;
53469 		last_op_for_exception_3 = opcode;
53470 		last_addr_for_exception_3 = m68k_getpc() + 4;
53471 		Exception(3, 0, M68000_EXC_SRC_CPU);
53472 		goto endlabel2883;
53473 	}
53474 {{	int32_t src = m68k_read_memory_32(srca);
53475 {	int32_t dst = m68k_areg(regs, dstreg);
53476 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53477 {	int flgs = ((int32_t)(src)) < 0;
53478 	int flgo = ((int32_t)(dst)) < 0;
53479 	int flgn = ((int32_t)(newv)) < 0;
53480 	SET_ZFLG (((int32_t)(newv)) == 0);
53481 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53482 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53483 	SET_NFLG (flgn != 0);
53484 }}}}}}}}m68k_incpc(4);
53485 fill_prefetch_0 ();
53486 endlabel2883: ;
53487 return 18;
53488 }
CPUFUNC(op_b1f0_5)53489 unsigned long CPUFUNC(op_b1f0_5)(uint32_t opcode) /* CMPA */
53490 {
53491 	uint32_t srcreg = (opcode & 7);
53492 	uint32_t dstreg = (opcode >> 9) & 7;
53493 	OpcodeFamily = 27; CurrentInstrCycles = 20;
53494 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
53495 	BusCyclePenalty += 2;
53496 	if ((srca & 1) != 0) {
53497 		last_fault_for_exception_3 = srca;
53498 		last_op_for_exception_3 = opcode;
53499 		last_addr_for_exception_3 = m68k_getpc() + 4;
53500 		Exception(3, 0, M68000_EXC_SRC_CPU);
53501 		goto endlabel2884;
53502 	}
53503 {{	int32_t src = m68k_read_memory_32(srca);
53504 {	int32_t dst = m68k_areg(regs, dstreg);
53505 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53506 {	int flgs = ((int32_t)(src)) < 0;
53507 	int flgo = ((int32_t)(dst)) < 0;
53508 	int flgn = ((int32_t)(newv)) < 0;
53509 	SET_ZFLG (((int32_t)(newv)) == 0);
53510 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53511 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53512 	SET_NFLG (flgn != 0);
53513 }}}}}}}}m68k_incpc(4);
53514 fill_prefetch_0 ();
53515 endlabel2884: ;
53516 return 20;
53517 }
CPUFUNC(op_b1f8_5)53518 unsigned long CPUFUNC(op_b1f8_5)(uint32_t opcode) /* CMPA */
53519 {
53520 	uint32_t dstreg = (opcode >> 9) & 7;
53521 	OpcodeFamily = 27; CurrentInstrCycles = 18;
53522 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
53523 	if ((srca & 1) != 0) {
53524 		last_fault_for_exception_3 = srca;
53525 		last_op_for_exception_3 = opcode;
53526 		last_addr_for_exception_3 = m68k_getpc() + 4;
53527 		Exception(3, 0, M68000_EXC_SRC_CPU);
53528 		goto endlabel2885;
53529 	}
53530 {{	int32_t src = m68k_read_memory_32(srca);
53531 {	int32_t dst = m68k_areg(regs, dstreg);
53532 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53533 {	int flgs = ((int32_t)(src)) < 0;
53534 	int flgo = ((int32_t)(dst)) < 0;
53535 	int flgn = ((int32_t)(newv)) < 0;
53536 	SET_ZFLG (((int32_t)(newv)) == 0);
53537 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53538 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53539 	SET_NFLG (flgn != 0);
53540 }}}}}}}}m68k_incpc(4);
53541 fill_prefetch_0 ();
53542 endlabel2885: ;
53543 return 18;
53544 }
CPUFUNC(op_b1f9_5)53545 unsigned long CPUFUNC(op_b1f9_5)(uint32_t opcode) /* CMPA */
53546 {
53547 	uint32_t dstreg = (opcode >> 9) & 7;
53548 	OpcodeFamily = 27; CurrentInstrCycles = 22;
53549 {{	uint32_t srca = get_ilong_prefetch(2);
53550 	if ((srca & 1) != 0) {
53551 		last_fault_for_exception_3 = srca;
53552 		last_op_for_exception_3 = opcode;
53553 		last_addr_for_exception_3 = m68k_getpc() + 6;
53554 		Exception(3, 0, M68000_EXC_SRC_CPU);
53555 		goto endlabel2886;
53556 	}
53557 {{	int32_t src = m68k_read_memory_32(srca);
53558 {	int32_t dst = m68k_areg(regs, dstreg);
53559 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53560 {	int flgs = ((int32_t)(src)) < 0;
53561 	int flgo = ((int32_t)(dst)) < 0;
53562 	int flgn = ((int32_t)(newv)) < 0;
53563 	SET_ZFLG (((int32_t)(newv)) == 0);
53564 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53565 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53566 	SET_NFLG (flgn != 0);
53567 }}}}}}}}m68k_incpc(6);
53568 fill_prefetch_0 ();
53569 endlabel2886: ;
53570 return 22;
53571 }
CPUFUNC(op_b1fa_5)53572 unsigned long CPUFUNC(op_b1fa_5)(uint32_t opcode) /* CMPA */
53573 {
53574 	uint32_t dstreg = (opcode >> 9) & 7;
53575 	OpcodeFamily = 27; CurrentInstrCycles = 18;
53576 {{	uint32_t srca = m68k_getpc () + 2;
53577 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
53578 	if ((srca & 1) != 0) {
53579 		last_fault_for_exception_3 = srca;
53580 		last_op_for_exception_3 = opcode;
53581 		last_addr_for_exception_3 = m68k_getpc() + 4;
53582 		Exception(3, 0, M68000_EXC_SRC_CPU);
53583 		goto endlabel2887;
53584 	}
53585 {{	int32_t src = m68k_read_memory_32(srca);
53586 {	int32_t dst = m68k_areg(regs, dstreg);
53587 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53588 {	int flgs = ((int32_t)(src)) < 0;
53589 	int flgo = ((int32_t)(dst)) < 0;
53590 	int flgn = ((int32_t)(newv)) < 0;
53591 	SET_ZFLG (((int32_t)(newv)) == 0);
53592 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53593 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53594 	SET_NFLG (flgn != 0);
53595 }}}}}}}}m68k_incpc(4);
53596 fill_prefetch_0 ();
53597 endlabel2887: ;
53598 return 18;
53599 }
CPUFUNC(op_b1fb_5)53600 unsigned long CPUFUNC(op_b1fb_5)(uint32_t opcode) /* CMPA */
53601 {
53602 	uint32_t dstreg = (opcode >> 9) & 7;
53603 	OpcodeFamily = 27; CurrentInstrCycles = 20;
53604 {{	uint32_t tmppc = m68k_getpc() + 2;
53605 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
53606 	BusCyclePenalty += 2;
53607 	if ((srca & 1) != 0) {
53608 		last_fault_for_exception_3 = srca;
53609 		last_op_for_exception_3 = opcode;
53610 		last_addr_for_exception_3 = m68k_getpc() + 4;
53611 		Exception(3, 0, M68000_EXC_SRC_CPU);
53612 		goto endlabel2888;
53613 	}
53614 {{	int32_t src = m68k_read_memory_32(srca);
53615 {	int32_t dst = m68k_areg(regs, dstreg);
53616 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53617 {	int flgs = ((int32_t)(src)) < 0;
53618 	int flgo = ((int32_t)(dst)) < 0;
53619 	int flgn = ((int32_t)(newv)) < 0;
53620 	SET_ZFLG (((int32_t)(newv)) == 0);
53621 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53622 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53623 	SET_NFLG (flgn != 0);
53624 }}}}}}}}m68k_incpc(4);
53625 fill_prefetch_0 ();
53626 endlabel2888: ;
53627 return 20;
53628 }
CPUFUNC(op_b1fc_5)53629 unsigned long CPUFUNC(op_b1fc_5)(uint32_t opcode) /* CMPA */
53630 {
53631 	uint32_t dstreg = (opcode >> 9) & 7;
53632 	OpcodeFamily = 27; CurrentInstrCycles = 14;
53633 {{	int32_t src = get_ilong_prefetch(2);
53634 {	int32_t dst = m68k_areg(regs, dstreg);
53635 {{uint32_t newv = ((int32_t)(dst)) - ((int32_t)(src));
53636 {	int flgs = ((int32_t)(src)) < 0;
53637 	int flgo = ((int32_t)(dst)) < 0;
53638 	int flgn = ((int32_t)(newv)) < 0;
53639 	SET_ZFLG (((int32_t)(newv)) == 0);
53640 	SET_VFLG ((flgs != flgo) && (flgn != flgo));
53641 	SET_CFLG (((uint32_t)(src)) > ((uint32_t)(dst)));
53642 	SET_NFLG (flgn != 0);
53643 }}}}}}m68k_incpc(6);
53644 fill_prefetch_0 ();
53645 return 14;
53646 }
CPUFUNC(op_c000_5)53647 unsigned long CPUFUNC(op_c000_5)(uint32_t opcode) /* AND */
53648 {
53649 	uint32_t srcreg = (opcode & 7);
53650 	uint32_t dstreg = (opcode >> 9) & 7;
53651 	OpcodeFamily = 2; CurrentInstrCycles = 4;
53652 {{	int8_t src = m68k_dreg(regs, srcreg);
53653 {	int8_t dst = m68k_dreg(regs, dstreg);
53654 	src &= dst;
53655 	CLEAR_CZNV;
53656 	SET_ZFLG (((int8_t)(src)) == 0);
53657 	SET_NFLG (((int8_t)(src)) < 0);
53658 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53659 }}}m68k_incpc(2);
53660 fill_prefetch_2 ();
53661 return 4;
53662 }
CPUFUNC(op_c010_5)53663 unsigned long CPUFUNC(op_c010_5)(uint32_t opcode) /* AND */
53664 {
53665 	uint32_t srcreg = (opcode & 7);
53666 	uint32_t dstreg = (opcode >> 9) & 7;
53667 	OpcodeFamily = 2; CurrentInstrCycles = 8;
53668 {{	uint32_t srca = m68k_areg(regs, srcreg);
53669 {	int8_t src = m68k_read_memory_8(srca);
53670 {	int8_t dst = m68k_dreg(regs, dstreg);
53671 	src &= dst;
53672 	CLEAR_CZNV;
53673 	SET_ZFLG (((int8_t)(src)) == 0);
53674 	SET_NFLG (((int8_t)(src)) < 0);
53675 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53676 }}}}m68k_incpc(2);
53677 fill_prefetch_2 ();
53678 return 8;
53679 }
CPUFUNC(op_c018_5)53680 unsigned long CPUFUNC(op_c018_5)(uint32_t opcode) /* AND */
53681 {
53682 	uint32_t srcreg = (opcode & 7);
53683 	uint32_t dstreg = (opcode >> 9) & 7;
53684 	OpcodeFamily = 2; CurrentInstrCycles = 8;
53685 {{	uint32_t srca = m68k_areg(regs, srcreg);
53686 {	int8_t src = m68k_read_memory_8(srca);
53687 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
53688 {	int8_t dst = m68k_dreg(regs, dstreg);
53689 	src &= dst;
53690 	CLEAR_CZNV;
53691 	SET_ZFLG (((int8_t)(src)) == 0);
53692 	SET_NFLG (((int8_t)(src)) < 0);
53693 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53694 }}}}m68k_incpc(2);
53695 fill_prefetch_2 ();
53696 return 8;
53697 }
CPUFUNC(op_c020_5)53698 unsigned long CPUFUNC(op_c020_5)(uint32_t opcode) /* AND */
53699 {
53700 	uint32_t srcreg = (opcode & 7);
53701 	uint32_t dstreg = (opcode >> 9) & 7;
53702 	OpcodeFamily = 2; CurrentInstrCycles = 10;
53703 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
53704 {	int8_t src = m68k_read_memory_8(srca);
53705 	m68k_areg (regs, srcreg) = srca;
53706 {	int8_t dst = m68k_dreg(regs, dstreg);
53707 	src &= dst;
53708 	CLEAR_CZNV;
53709 	SET_ZFLG (((int8_t)(src)) == 0);
53710 	SET_NFLG (((int8_t)(src)) < 0);
53711 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53712 }}}}m68k_incpc(2);
53713 fill_prefetch_2 ();
53714 return 10;
53715 }
CPUFUNC(op_c028_5)53716 unsigned long CPUFUNC(op_c028_5)(uint32_t opcode) /* AND */
53717 {
53718 	uint32_t srcreg = (opcode & 7);
53719 	uint32_t dstreg = (opcode >> 9) & 7;
53720 	OpcodeFamily = 2; CurrentInstrCycles = 12;
53721 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
53722 {	int8_t src = m68k_read_memory_8(srca);
53723 {	int8_t dst = m68k_dreg(regs, dstreg);
53724 	src &= dst;
53725 	CLEAR_CZNV;
53726 	SET_ZFLG (((int8_t)(src)) == 0);
53727 	SET_NFLG (((int8_t)(src)) < 0);
53728 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53729 }}}}m68k_incpc(4);
53730 fill_prefetch_0 ();
53731 return 12;
53732 }
CPUFUNC(op_c030_5)53733 unsigned long CPUFUNC(op_c030_5)(uint32_t opcode) /* AND */
53734 {
53735 	uint32_t srcreg = (opcode & 7);
53736 	uint32_t dstreg = (opcode >> 9) & 7;
53737 	OpcodeFamily = 2; CurrentInstrCycles = 14;
53738 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
53739 	BusCyclePenalty += 2;
53740 {	int8_t src = m68k_read_memory_8(srca);
53741 {	int8_t dst = m68k_dreg(regs, dstreg);
53742 	src &= dst;
53743 	CLEAR_CZNV;
53744 	SET_ZFLG (((int8_t)(src)) == 0);
53745 	SET_NFLG (((int8_t)(src)) < 0);
53746 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53747 }}}}m68k_incpc(4);
53748 fill_prefetch_0 ();
53749 return 14;
53750 }
CPUFUNC(op_c038_5)53751 unsigned long CPUFUNC(op_c038_5)(uint32_t opcode) /* AND */
53752 {
53753 	uint32_t dstreg = (opcode >> 9) & 7;
53754 	OpcodeFamily = 2; CurrentInstrCycles = 12;
53755 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
53756 {	int8_t src = m68k_read_memory_8(srca);
53757 {	int8_t dst = m68k_dreg(regs, dstreg);
53758 	src &= dst;
53759 	CLEAR_CZNV;
53760 	SET_ZFLG (((int8_t)(src)) == 0);
53761 	SET_NFLG (((int8_t)(src)) < 0);
53762 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53763 }}}}m68k_incpc(4);
53764 fill_prefetch_0 ();
53765 return 12;
53766 }
CPUFUNC(op_c039_5)53767 unsigned long CPUFUNC(op_c039_5)(uint32_t opcode) /* AND */
53768 {
53769 	uint32_t dstreg = (opcode >> 9) & 7;
53770 	OpcodeFamily = 2; CurrentInstrCycles = 16;
53771 {{	uint32_t srca = get_ilong_prefetch(2);
53772 {	int8_t src = m68k_read_memory_8(srca);
53773 {	int8_t dst = m68k_dreg(regs, dstreg);
53774 	src &= dst;
53775 	CLEAR_CZNV;
53776 	SET_ZFLG (((int8_t)(src)) == 0);
53777 	SET_NFLG (((int8_t)(src)) < 0);
53778 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53779 }}}}m68k_incpc(6);
53780 fill_prefetch_0 ();
53781 return 16;
53782 }
CPUFUNC(op_c03a_5)53783 unsigned long CPUFUNC(op_c03a_5)(uint32_t opcode) /* AND */
53784 {
53785 	uint32_t dstreg = (opcode >> 9) & 7;
53786 	OpcodeFamily = 2; CurrentInstrCycles = 12;
53787 {{	uint32_t srca = m68k_getpc () + 2;
53788 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
53789 {	int8_t src = m68k_read_memory_8(srca);
53790 {	int8_t dst = m68k_dreg(regs, dstreg);
53791 	src &= dst;
53792 	CLEAR_CZNV;
53793 	SET_ZFLG (((int8_t)(src)) == 0);
53794 	SET_NFLG (((int8_t)(src)) < 0);
53795 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53796 }}}}m68k_incpc(4);
53797 fill_prefetch_0 ();
53798 return 12;
53799 }
CPUFUNC(op_c03b_5)53800 unsigned long CPUFUNC(op_c03b_5)(uint32_t opcode) /* AND */
53801 {
53802 	uint32_t dstreg = (opcode >> 9) & 7;
53803 	OpcodeFamily = 2; CurrentInstrCycles = 14;
53804 {{	uint32_t tmppc = m68k_getpc() + 2;
53805 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
53806 	BusCyclePenalty += 2;
53807 {	int8_t src = m68k_read_memory_8(srca);
53808 {	int8_t dst = m68k_dreg(regs, dstreg);
53809 	src &= dst;
53810 	CLEAR_CZNV;
53811 	SET_ZFLG (((int8_t)(src)) == 0);
53812 	SET_NFLG (((int8_t)(src)) < 0);
53813 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53814 }}}}m68k_incpc(4);
53815 fill_prefetch_0 ();
53816 return 14;
53817 }
CPUFUNC(op_c03c_5)53818 unsigned long CPUFUNC(op_c03c_5)(uint32_t opcode) /* AND */
53819 {
53820 	uint32_t dstreg = (opcode >> 9) & 7;
53821 	OpcodeFamily = 2; CurrentInstrCycles = 8;
53822 {{	int8_t src = get_ibyte_prefetch(2);
53823 {	int8_t dst = m68k_dreg(regs, dstreg);
53824 	src &= dst;
53825 	CLEAR_CZNV;
53826 	SET_ZFLG (((int8_t)(src)) == 0);
53827 	SET_NFLG (((int8_t)(src)) < 0);
53828 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((src) & 0xff);
53829 }}}m68k_incpc(4);
53830 fill_prefetch_0 ();
53831 return 8;
53832 }
CPUFUNC(op_c040_5)53833 unsigned long CPUFUNC(op_c040_5)(uint32_t opcode) /* AND */
53834 {
53835 	uint32_t srcreg = (opcode & 7);
53836 	uint32_t dstreg = (opcode >> 9) & 7;
53837 	OpcodeFamily = 2; CurrentInstrCycles = 4;
53838 {{	int16_t src = m68k_dreg(regs, srcreg);
53839 {	int16_t dst = m68k_dreg(regs, dstreg);
53840 	src &= dst;
53841 	CLEAR_CZNV;
53842 	SET_ZFLG (((int16_t)(src)) == 0);
53843 	SET_NFLG (((int16_t)(src)) < 0);
53844 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
53845 }}}m68k_incpc(2);
53846 fill_prefetch_2 ();
53847 return 4;
53848 }
CPUFUNC(op_c050_5)53849 unsigned long CPUFUNC(op_c050_5)(uint32_t opcode) /* AND */
53850 {
53851 	uint32_t srcreg = (opcode & 7);
53852 	uint32_t dstreg = (opcode >> 9) & 7;
53853 	OpcodeFamily = 2; CurrentInstrCycles = 8;
53854 {{	uint32_t srca = m68k_areg(regs, srcreg);
53855 	if ((srca & 1) != 0) {
53856 		last_fault_for_exception_3 = srca;
53857 		last_op_for_exception_3 = opcode;
53858 		last_addr_for_exception_3 = m68k_getpc() + 2;
53859 		Exception(3, 0, M68000_EXC_SRC_CPU);
53860 		goto endlabel2902;
53861 	}
53862 {{	int16_t src = m68k_read_memory_16(srca);
53863 {	int16_t dst = m68k_dreg(regs, dstreg);
53864 	src &= dst;
53865 	CLEAR_CZNV;
53866 	SET_ZFLG (((int16_t)(src)) == 0);
53867 	SET_NFLG (((int16_t)(src)) < 0);
53868 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
53869 }}}}}m68k_incpc(2);
53870 fill_prefetch_2 ();
53871 endlabel2902: ;
53872 return 8;
53873 }
CPUFUNC(op_c058_5)53874 unsigned long CPUFUNC(op_c058_5)(uint32_t opcode) /* AND */
53875 {
53876 	uint32_t srcreg = (opcode & 7);
53877 	uint32_t dstreg = (opcode >> 9) & 7;
53878 	OpcodeFamily = 2; CurrentInstrCycles = 8;
53879 {{	uint32_t srca = m68k_areg(regs, srcreg);
53880 	if ((srca & 1) != 0) {
53881 		last_fault_for_exception_3 = srca;
53882 		last_op_for_exception_3 = opcode;
53883 		last_addr_for_exception_3 = m68k_getpc() + 2;
53884 		Exception(3, 0, M68000_EXC_SRC_CPU);
53885 		goto endlabel2903;
53886 	}
53887 {{	int16_t src = m68k_read_memory_16(srca);
53888 	m68k_areg(regs, srcreg) += 2;
53889 {	int16_t dst = m68k_dreg(regs, dstreg);
53890 	src &= dst;
53891 	CLEAR_CZNV;
53892 	SET_ZFLG (((int16_t)(src)) == 0);
53893 	SET_NFLG (((int16_t)(src)) < 0);
53894 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
53895 }}}}}m68k_incpc(2);
53896 fill_prefetch_2 ();
53897 endlabel2903: ;
53898 return 8;
53899 }
CPUFUNC(op_c060_5)53900 unsigned long CPUFUNC(op_c060_5)(uint32_t opcode) /* AND */
53901 {
53902 	uint32_t srcreg = (opcode & 7);
53903 	uint32_t dstreg = (opcode >> 9) & 7;
53904 	OpcodeFamily = 2; CurrentInstrCycles = 10;
53905 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
53906 	if ((srca & 1) != 0) {
53907 		last_fault_for_exception_3 = srca;
53908 		last_op_for_exception_3 = opcode;
53909 		last_addr_for_exception_3 = m68k_getpc() + 2;
53910 		Exception(3, 0, M68000_EXC_SRC_CPU);
53911 		goto endlabel2904;
53912 	}
53913 {{	int16_t src = m68k_read_memory_16(srca);
53914 	m68k_areg (regs, srcreg) = srca;
53915 {	int16_t dst = m68k_dreg(regs, dstreg);
53916 	src &= dst;
53917 	CLEAR_CZNV;
53918 	SET_ZFLG (((int16_t)(src)) == 0);
53919 	SET_NFLG (((int16_t)(src)) < 0);
53920 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
53921 }}}}}m68k_incpc(2);
53922 fill_prefetch_2 ();
53923 endlabel2904: ;
53924 return 10;
53925 }
CPUFUNC(op_c068_5)53926 unsigned long CPUFUNC(op_c068_5)(uint32_t opcode) /* AND */
53927 {
53928 	uint32_t srcreg = (opcode & 7);
53929 	uint32_t dstreg = (opcode >> 9) & 7;
53930 	OpcodeFamily = 2; CurrentInstrCycles = 12;
53931 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
53932 	if ((srca & 1) != 0) {
53933 		last_fault_for_exception_3 = srca;
53934 		last_op_for_exception_3 = opcode;
53935 		last_addr_for_exception_3 = m68k_getpc() + 4;
53936 		Exception(3, 0, M68000_EXC_SRC_CPU);
53937 		goto endlabel2905;
53938 	}
53939 {{	int16_t src = m68k_read_memory_16(srca);
53940 {	int16_t dst = m68k_dreg(regs, dstreg);
53941 	src &= dst;
53942 	CLEAR_CZNV;
53943 	SET_ZFLG (((int16_t)(src)) == 0);
53944 	SET_NFLG (((int16_t)(src)) < 0);
53945 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
53946 }}}}}m68k_incpc(4);
53947 fill_prefetch_0 ();
53948 endlabel2905: ;
53949 return 12;
53950 }
CPUFUNC(op_c070_5)53951 unsigned long CPUFUNC(op_c070_5)(uint32_t opcode) /* AND */
53952 {
53953 	uint32_t srcreg = (opcode & 7);
53954 	uint32_t dstreg = (opcode >> 9) & 7;
53955 	OpcodeFamily = 2; CurrentInstrCycles = 14;
53956 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
53957 	BusCyclePenalty += 2;
53958 	if ((srca & 1) != 0) {
53959 		last_fault_for_exception_3 = srca;
53960 		last_op_for_exception_3 = opcode;
53961 		last_addr_for_exception_3 = m68k_getpc() + 4;
53962 		Exception(3, 0, M68000_EXC_SRC_CPU);
53963 		goto endlabel2906;
53964 	}
53965 {{	int16_t src = m68k_read_memory_16(srca);
53966 {	int16_t dst = m68k_dreg(regs, dstreg);
53967 	src &= dst;
53968 	CLEAR_CZNV;
53969 	SET_ZFLG (((int16_t)(src)) == 0);
53970 	SET_NFLG (((int16_t)(src)) < 0);
53971 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
53972 }}}}}m68k_incpc(4);
53973 fill_prefetch_0 ();
53974 endlabel2906: ;
53975 return 14;
53976 }
CPUFUNC(op_c078_5)53977 unsigned long CPUFUNC(op_c078_5)(uint32_t opcode) /* AND */
53978 {
53979 	uint32_t dstreg = (opcode >> 9) & 7;
53980 	OpcodeFamily = 2; CurrentInstrCycles = 12;
53981 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
53982 	if ((srca & 1) != 0) {
53983 		last_fault_for_exception_3 = srca;
53984 		last_op_for_exception_3 = opcode;
53985 		last_addr_for_exception_3 = m68k_getpc() + 4;
53986 		Exception(3, 0, M68000_EXC_SRC_CPU);
53987 		goto endlabel2907;
53988 	}
53989 {{	int16_t src = m68k_read_memory_16(srca);
53990 {	int16_t dst = m68k_dreg(regs, dstreg);
53991 	src &= dst;
53992 	CLEAR_CZNV;
53993 	SET_ZFLG (((int16_t)(src)) == 0);
53994 	SET_NFLG (((int16_t)(src)) < 0);
53995 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
53996 }}}}}m68k_incpc(4);
53997 fill_prefetch_0 ();
53998 endlabel2907: ;
53999 return 12;
54000 }
CPUFUNC(op_c079_5)54001 unsigned long CPUFUNC(op_c079_5)(uint32_t opcode) /* AND */
54002 {
54003 	uint32_t dstreg = (opcode >> 9) & 7;
54004 	OpcodeFamily = 2; CurrentInstrCycles = 16;
54005 {{	uint32_t srca = get_ilong_prefetch(2);
54006 	if ((srca & 1) != 0) {
54007 		last_fault_for_exception_3 = srca;
54008 		last_op_for_exception_3 = opcode;
54009 		last_addr_for_exception_3 = m68k_getpc() + 6;
54010 		Exception(3, 0, M68000_EXC_SRC_CPU);
54011 		goto endlabel2908;
54012 	}
54013 {{	int16_t src = m68k_read_memory_16(srca);
54014 {	int16_t dst = m68k_dreg(regs, dstreg);
54015 	src &= dst;
54016 	CLEAR_CZNV;
54017 	SET_ZFLG (((int16_t)(src)) == 0);
54018 	SET_NFLG (((int16_t)(src)) < 0);
54019 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
54020 }}}}}m68k_incpc(6);
54021 fill_prefetch_0 ();
54022 endlabel2908: ;
54023 return 16;
54024 }
CPUFUNC(op_c07a_5)54025 unsigned long CPUFUNC(op_c07a_5)(uint32_t opcode) /* AND */
54026 {
54027 	uint32_t dstreg = (opcode >> 9) & 7;
54028 	OpcodeFamily = 2; CurrentInstrCycles = 12;
54029 {{	uint32_t srca = m68k_getpc () + 2;
54030 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
54031 	if ((srca & 1) != 0) {
54032 		last_fault_for_exception_3 = srca;
54033 		last_op_for_exception_3 = opcode;
54034 		last_addr_for_exception_3 = m68k_getpc() + 4;
54035 		Exception(3, 0, M68000_EXC_SRC_CPU);
54036 		goto endlabel2909;
54037 	}
54038 {{	int16_t src = m68k_read_memory_16(srca);
54039 {	int16_t dst = m68k_dreg(regs, dstreg);
54040 	src &= dst;
54041 	CLEAR_CZNV;
54042 	SET_ZFLG (((int16_t)(src)) == 0);
54043 	SET_NFLG (((int16_t)(src)) < 0);
54044 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
54045 }}}}}m68k_incpc(4);
54046 fill_prefetch_0 ();
54047 endlabel2909: ;
54048 return 12;
54049 }
CPUFUNC(op_c07b_5)54050 unsigned long CPUFUNC(op_c07b_5)(uint32_t opcode) /* AND */
54051 {
54052 	uint32_t dstreg = (opcode >> 9) & 7;
54053 	OpcodeFamily = 2; CurrentInstrCycles = 14;
54054 {{	uint32_t tmppc = m68k_getpc() + 2;
54055 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
54056 	BusCyclePenalty += 2;
54057 	if ((srca & 1) != 0) {
54058 		last_fault_for_exception_3 = srca;
54059 		last_op_for_exception_3 = opcode;
54060 		last_addr_for_exception_3 = m68k_getpc() + 4;
54061 		Exception(3, 0, M68000_EXC_SRC_CPU);
54062 		goto endlabel2910;
54063 	}
54064 {{	int16_t src = m68k_read_memory_16(srca);
54065 {	int16_t dst = m68k_dreg(regs, dstreg);
54066 	src &= dst;
54067 	CLEAR_CZNV;
54068 	SET_ZFLG (((int16_t)(src)) == 0);
54069 	SET_NFLG (((int16_t)(src)) < 0);
54070 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
54071 }}}}}m68k_incpc(4);
54072 fill_prefetch_0 ();
54073 endlabel2910: ;
54074 return 14;
54075 }
CPUFUNC(op_c07c_5)54076 unsigned long CPUFUNC(op_c07c_5)(uint32_t opcode) /* AND */
54077 {
54078 	uint32_t dstreg = (opcode >> 9) & 7;
54079 	OpcodeFamily = 2; CurrentInstrCycles = 8;
54080 {{	int16_t src = get_iword_prefetch(2);
54081 {	int16_t dst = m68k_dreg(regs, dstreg);
54082 	src &= dst;
54083 	CLEAR_CZNV;
54084 	SET_ZFLG (((int16_t)(src)) == 0);
54085 	SET_NFLG (((int16_t)(src)) < 0);
54086 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((src) & 0xffff);
54087 }}}m68k_incpc(4);
54088 fill_prefetch_0 ();
54089 return 8;
54090 }
CPUFUNC(op_c080_5)54091 unsigned long CPUFUNC(op_c080_5)(uint32_t opcode) /* AND */
54092 {
54093 	uint32_t srcreg = (opcode & 7);
54094 	uint32_t dstreg = (opcode >> 9) & 7;
54095 	OpcodeFamily = 2; CurrentInstrCycles = 8;
54096 {{	int32_t src = m68k_dreg(regs, srcreg);
54097 {	int32_t dst = m68k_dreg(regs, dstreg);
54098 	src &= dst;
54099 	CLEAR_CZNV;
54100 	SET_ZFLG (((int32_t)(src)) == 0);
54101 	SET_NFLG (((int32_t)(src)) < 0);
54102 	m68k_dreg(regs, dstreg) = (src);
54103 }}}m68k_incpc(2);
54104 fill_prefetch_2 ();
54105 return 8;
54106 }
CPUFUNC(op_c090_5)54107 unsigned long CPUFUNC(op_c090_5)(uint32_t opcode) /* AND */
54108 {
54109 	uint32_t srcreg = (opcode & 7);
54110 	uint32_t dstreg = (opcode >> 9) & 7;
54111 	OpcodeFamily = 2; CurrentInstrCycles = 14;
54112 {{	uint32_t srca = m68k_areg(regs, srcreg);
54113 	if ((srca & 1) != 0) {
54114 		last_fault_for_exception_3 = srca;
54115 		last_op_for_exception_3 = opcode;
54116 		last_addr_for_exception_3 = m68k_getpc() + 2;
54117 		Exception(3, 0, M68000_EXC_SRC_CPU);
54118 		goto endlabel2913;
54119 	}
54120 {{	int32_t src = m68k_read_memory_32(srca);
54121 {	int32_t dst = m68k_dreg(regs, dstreg);
54122 	src &= dst;
54123 	CLEAR_CZNV;
54124 	SET_ZFLG (((int32_t)(src)) == 0);
54125 	SET_NFLG (((int32_t)(src)) < 0);
54126 	m68k_dreg(regs, dstreg) = (src);
54127 }}}}}m68k_incpc(2);
54128 fill_prefetch_2 ();
54129 endlabel2913: ;
54130 return 14;
54131 }
CPUFUNC(op_c098_5)54132 unsigned long CPUFUNC(op_c098_5)(uint32_t opcode) /* AND */
54133 {
54134 	uint32_t srcreg = (opcode & 7);
54135 	uint32_t dstreg = (opcode >> 9) & 7;
54136 	OpcodeFamily = 2; CurrentInstrCycles = 14;
54137 {{	uint32_t srca = m68k_areg(regs, srcreg);
54138 	if ((srca & 1) != 0) {
54139 		last_fault_for_exception_3 = srca;
54140 		last_op_for_exception_3 = opcode;
54141 		last_addr_for_exception_3 = m68k_getpc() + 2;
54142 		Exception(3, 0, M68000_EXC_SRC_CPU);
54143 		goto endlabel2914;
54144 	}
54145 {{	int32_t src = m68k_read_memory_32(srca);
54146 	m68k_areg(regs, srcreg) += 4;
54147 {	int32_t dst = m68k_dreg(regs, dstreg);
54148 	src &= dst;
54149 	CLEAR_CZNV;
54150 	SET_ZFLG (((int32_t)(src)) == 0);
54151 	SET_NFLG (((int32_t)(src)) < 0);
54152 	m68k_dreg(regs, dstreg) = (src);
54153 }}}}}m68k_incpc(2);
54154 fill_prefetch_2 ();
54155 endlabel2914: ;
54156 return 14;
54157 }
CPUFUNC(op_c0a0_5)54158 unsigned long CPUFUNC(op_c0a0_5)(uint32_t opcode) /* AND */
54159 {
54160 	uint32_t srcreg = (opcode & 7);
54161 	uint32_t dstreg = (opcode >> 9) & 7;
54162 	OpcodeFamily = 2; CurrentInstrCycles = 16;
54163 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
54164 	if ((srca & 1) != 0) {
54165 		last_fault_for_exception_3 = srca;
54166 		last_op_for_exception_3 = opcode;
54167 		last_addr_for_exception_3 = m68k_getpc() + 2;
54168 		Exception(3, 0, M68000_EXC_SRC_CPU);
54169 		goto endlabel2915;
54170 	}
54171 {{	int32_t src = m68k_read_memory_32(srca);
54172 	m68k_areg (regs, srcreg) = srca;
54173 {	int32_t dst = m68k_dreg(regs, dstreg);
54174 	src &= dst;
54175 	CLEAR_CZNV;
54176 	SET_ZFLG (((int32_t)(src)) == 0);
54177 	SET_NFLG (((int32_t)(src)) < 0);
54178 	m68k_dreg(regs, dstreg) = (src);
54179 }}}}}m68k_incpc(2);
54180 fill_prefetch_2 ();
54181 endlabel2915: ;
54182 return 16;
54183 }
CPUFUNC(op_c0a8_5)54184 unsigned long CPUFUNC(op_c0a8_5)(uint32_t opcode) /* AND */
54185 {
54186 	uint32_t srcreg = (opcode & 7);
54187 	uint32_t dstreg = (opcode >> 9) & 7;
54188 	OpcodeFamily = 2; CurrentInstrCycles = 18;
54189 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
54190 	if ((srca & 1) != 0) {
54191 		last_fault_for_exception_3 = srca;
54192 		last_op_for_exception_3 = opcode;
54193 		last_addr_for_exception_3 = m68k_getpc() + 4;
54194 		Exception(3, 0, M68000_EXC_SRC_CPU);
54195 		goto endlabel2916;
54196 	}
54197 {{	int32_t src = m68k_read_memory_32(srca);
54198 {	int32_t dst = m68k_dreg(regs, dstreg);
54199 	src &= dst;
54200 	CLEAR_CZNV;
54201 	SET_ZFLG (((int32_t)(src)) == 0);
54202 	SET_NFLG (((int32_t)(src)) < 0);
54203 	m68k_dreg(regs, dstreg) = (src);
54204 }}}}}m68k_incpc(4);
54205 fill_prefetch_0 ();
54206 endlabel2916: ;
54207 return 18;
54208 }
CPUFUNC(op_c0b0_5)54209 unsigned long CPUFUNC(op_c0b0_5)(uint32_t opcode) /* AND */
54210 {
54211 	uint32_t srcreg = (opcode & 7);
54212 	uint32_t dstreg = (opcode >> 9) & 7;
54213 	OpcodeFamily = 2; CurrentInstrCycles = 20;
54214 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
54215 	BusCyclePenalty += 2;
54216 	if ((srca & 1) != 0) {
54217 		last_fault_for_exception_3 = srca;
54218 		last_op_for_exception_3 = opcode;
54219 		last_addr_for_exception_3 = m68k_getpc() + 4;
54220 		Exception(3, 0, M68000_EXC_SRC_CPU);
54221 		goto endlabel2917;
54222 	}
54223 {{	int32_t src = m68k_read_memory_32(srca);
54224 {	int32_t dst = m68k_dreg(regs, dstreg);
54225 	src &= dst;
54226 	CLEAR_CZNV;
54227 	SET_ZFLG (((int32_t)(src)) == 0);
54228 	SET_NFLG (((int32_t)(src)) < 0);
54229 	m68k_dreg(regs, dstreg) = (src);
54230 }}}}}m68k_incpc(4);
54231 fill_prefetch_0 ();
54232 endlabel2917: ;
54233 return 20;
54234 }
CPUFUNC(op_c0b8_5)54235 unsigned long CPUFUNC(op_c0b8_5)(uint32_t opcode) /* AND */
54236 {
54237 	uint32_t dstreg = (opcode >> 9) & 7;
54238 	OpcodeFamily = 2; CurrentInstrCycles = 18;
54239 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
54240 	if ((srca & 1) != 0) {
54241 		last_fault_for_exception_3 = srca;
54242 		last_op_for_exception_3 = opcode;
54243 		last_addr_for_exception_3 = m68k_getpc() + 4;
54244 		Exception(3, 0, M68000_EXC_SRC_CPU);
54245 		goto endlabel2918;
54246 	}
54247 {{	int32_t src = m68k_read_memory_32(srca);
54248 {	int32_t dst = m68k_dreg(regs, dstreg);
54249 	src &= dst;
54250 	CLEAR_CZNV;
54251 	SET_ZFLG (((int32_t)(src)) == 0);
54252 	SET_NFLG (((int32_t)(src)) < 0);
54253 	m68k_dreg(regs, dstreg) = (src);
54254 }}}}}m68k_incpc(4);
54255 fill_prefetch_0 ();
54256 endlabel2918: ;
54257 return 18;
54258 }
CPUFUNC(op_c0b9_5)54259 unsigned long CPUFUNC(op_c0b9_5)(uint32_t opcode) /* AND */
54260 {
54261 	uint32_t dstreg = (opcode >> 9) & 7;
54262 	OpcodeFamily = 2; CurrentInstrCycles = 22;
54263 {{	uint32_t srca = get_ilong_prefetch(2);
54264 	if ((srca & 1) != 0) {
54265 		last_fault_for_exception_3 = srca;
54266 		last_op_for_exception_3 = opcode;
54267 		last_addr_for_exception_3 = m68k_getpc() + 6;
54268 		Exception(3, 0, M68000_EXC_SRC_CPU);
54269 		goto endlabel2919;
54270 	}
54271 {{	int32_t src = m68k_read_memory_32(srca);
54272 {	int32_t dst = m68k_dreg(regs, dstreg);
54273 	src &= dst;
54274 	CLEAR_CZNV;
54275 	SET_ZFLG (((int32_t)(src)) == 0);
54276 	SET_NFLG (((int32_t)(src)) < 0);
54277 	m68k_dreg(regs, dstreg) = (src);
54278 }}}}}m68k_incpc(6);
54279 fill_prefetch_0 ();
54280 endlabel2919: ;
54281 return 22;
54282 }
CPUFUNC(op_c0ba_5)54283 unsigned long CPUFUNC(op_c0ba_5)(uint32_t opcode) /* AND */
54284 {
54285 	uint32_t dstreg = (opcode >> 9) & 7;
54286 	OpcodeFamily = 2; CurrentInstrCycles = 18;
54287 {{	uint32_t srca = m68k_getpc () + 2;
54288 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
54289 	if ((srca & 1) != 0) {
54290 		last_fault_for_exception_3 = srca;
54291 		last_op_for_exception_3 = opcode;
54292 		last_addr_for_exception_3 = m68k_getpc() + 4;
54293 		Exception(3, 0, M68000_EXC_SRC_CPU);
54294 		goto endlabel2920;
54295 	}
54296 {{	int32_t src = m68k_read_memory_32(srca);
54297 {	int32_t dst = m68k_dreg(regs, dstreg);
54298 	src &= dst;
54299 	CLEAR_CZNV;
54300 	SET_ZFLG (((int32_t)(src)) == 0);
54301 	SET_NFLG (((int32_t)(src)) < 0);
54302 	m68k_dreg(regs, dstreg) = (src);
54303 }}}}}m68k_incpc(4);
54304 fill_prefetch_0 ();
54305 endlabel2920: ;
54306 return 18;
54307 }
CPUFUNC(op_c0bb_5)54308 unsigned long CPUFUNC(op_c0bb_5)(uint32_t opcode) /* AND */
54309 {
54310 	uint32_t dstreg = (opcode >> 9) & 7;
54311 	OpcodeFamily = 2; CurrentInstrCycles = 20;
54312 {{	uint32_t tmppc = m68k_getpc() + 2;
54313 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
54314 	BusCyclePenalty += 2;
54315 	if ((srca & 1) != 0) {
54316 		last_fault_for_exception_3 = srca;
54317 		last_op_for_exception_3 = opcode;
54318 		last_addr_for_exception_3 = m68k_getpc() + 4;
54319 		Exception(3, 0, M68000_EXC_SRC_CPU);
54320 		goto endlabel2921;
54321 	}
54322 {{	int32_t src = m68k_read_memory_32(srca);
54323 {	int32_t dst = m68k_dreg(regs, dstreg);
54324 	src &= dst;
54325 	CLEAR_CZNV;
54326 	SET_ZFLG (((int32_t)(src)) == 0);
54327 	SET_NFLG (((int32_t)(src)) < 0);
54328 	m68k_dreg(regs, dstreg) = (src);
54329 }}}}}m68k_incpc(4);
54330 fill_prefetch_0 ();
54331 endlabel2921: ;
54332 return 20;
54333 }
CPUFUNC(op_c0bc_5)54334 unsigned long CPUFUNC(op_c0bc_5)(uint32_t opcode) /* AND */
54335 {
54336 	uint32_t dstreg = (opcode >> 9) & 7;
54337 	OpcodeFamily = 2; CurrentInstrCycles = 16;
54338 {{	int32_t src = get_ilong_prefetch(2);
54339 {	int32_t dst = m68k_dreg(regs, dstreg);
54340 	src &= dst;
54341 	CLEAR_CZNV;
54342 	SET_ZFLG (((int32_t)(src)) == 0);
54343 	SET_NFLG (((int32_t)(src)) < 0);
54344 	m68k_dreg(regs, dstreg) = (src);
54345 }}}m68k_incpc(6);
54346 fill_prefetch_0 ();
54347 return 16;
54348 }
CPUFUNC(op_c0c0_5)54349 unsigned long CPUFUNC(op_c0c0_5)(uint32_t opcode) /* MULU */
54350 {
54351 	uint32_t srcreg = (opcode & 7);
54352 	uint32_t dstreg = (opcode >> 9) & 7;
54353 	unsigned int retcycles = 0;
54354 	OpcodeFamily = 62; CurrentInstrCycles = 38;
54355 {{	int16_t src = m68k_dreg(regs, srcreg);
54356 {	int16_t dst = m68k_dreg(regs, dstreg);
54357 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54358 	CLEAR_CZNV;
54359 	SET_ZFLG (((int32_t)(newv)) == 0);
54360 	SET_NFLG (((int32_t)(newv)) < 0);
54361 	m68k_dreg(regs, dstreg) = (newv);
54362 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54363 }}}}m68k_incpc(2);
54364 fill_prefetch_2 ();
54365  return (38+retcycles*2);
54366 }
CPUFUNC(op_c0d0_5)54367 unsigned long CPUFUNC(op_c0d0_5)(uint32_t opcode) /* MULU */
54368 {
54369 	uint32_t srcreg = (opcode & 7);
54370 	uint32_t dstreg = (opcode >> 9) & 7;
54371 	unsigned int retcycles = 0;
54372 	OpcodeFamily = 62; CurrentInstrCycles = 42;
54373 {{	uint32_t srca = m68k_areg(regs, srcreg);
54374 	if ((srca & 1) != 0) {
54375 		last_fault_for_exception_3 = srca;
54376 		last_op_for_exception_3 = opcode;
54377 		last_addr_for_exception_3 = m68k_getpc() + 2;
54378 		Exception(3, 0, M68000_EXC_SRC_CPU);
54379 		goto endlabel2924;
54380 	}
54381 {{	int16_t src = m68k_read_memory_16(srca);
54382 {	int16_t dst = m68k_dreg(regs, dstreg);
54383 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54384 	CLEAR_CZNV;
54385 	SET_ZFLG (((int32_t)(newv)) == 0);
54386 	SET_NFLG (((int32_t)(newv)) < 0);
54387 	m68k_dreg(regs, dstreg) = (newv);
54388 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54389 }}}}}}m68k_incpc(2);
54390 fill_prefetch_2 ();
54391 endlabel2924: ;
54392  return (42+retcycles*2);
54393 }
CPUFUNC(op_c0d8_5)54394 unsigned long CPUFUNC(op_c0d8_5)(uint32_t opcode) /* MULU */
54395 {
54396 	uint32_t srcreg = (opcode & 7);
54397 	uint32_t dstreg = (opcode >> 9) & 7;
54398 	unsigned int retcycles = 0;
54399 	OpcodeFamily = 62; CurrentInstrCycles = 42;
54400 {{	uint32_t srca = m68k_areg(regs, srcreg);
54401 	if ((srca & 1) != 0) {
54402 		last_fault_for_exception_3 = srca;
54403 		last_op_for_exception_3 = opcode;
54404 		last_addr_for_exception_3 = m68k_getpc() + 2;
54405 		Exception(3, 0, M68000_EXC_SRC_CPU);
54406 		goto endlabel2925;
54407 	}
54408 {{	int16_t src = m68k_read_memory_16(srca);
54409 	m68k_areg(regs, srcreg) += 2;
54410 {	int16_t dst = m68k_dreg(regs, dstreg);
54411 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54412 	CLEAR_CZNV;
54413 	SET_ZFLG (((int32_t)(newv)) == 0);
54414 	SET_NFLG (((int32_t)(newv)) < 0);
54415 	m68k_dreg(regs, dstreg) = (newv);
54416 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54417 }}}}}}m68k_incpc(2);
54418 fill_prefetch_2 ();
54419 endlabel2925: ;
54420  return (42+retcycles*2);
54421 }
CPUFUNC(op_c0e0_5)54422 unsigned long CPUFUNC(op_c0e0_5)(uint32_t opcode) /* MULU */
54423 {
54424 	uint32_t srcreg = (opcode & 7);
54425 	uint32_t dstreg = (opcode >> 9) & 7;
54426 	unsigned int retcycles = 0;
54427 	OpcodeFamily = 62; CurrentInstrCycles = 44;
54428 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
54429 	if ((srca & 1) != 0) {
54430 		last_fault_for_exception_3 = srca;
54431 		last_op_for_exception_3 = opcode;
54432 		last_addr_for_exception_3 = m68k_getpc() + 2;
54433 		Exception(3, 0, M68000_EXC_SRC_CPU);
54434 		goto endlabel2926;
54435 	}
54436 {{	int16_t src = m68k_read_memory_16(srca);
54437 	m68k_areg (regs, srcreg) = srca;
54438 {	int16_t dst = m68k_dreg(regs, dstreg);
54439 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54440 	CLEAR_CZNV;
54441 	SET_ZFLG (((int32_t)(newv)) == 0);
54442 	SET_NFLG (((int32_t)(newv)) < 0);
54443 	m68k_dreg(regs, dstreg) = (newv);
54444 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54445 }}}}}}m68k_incpc(2);
54446 fill_prefetch_2 ();
54447 endlabel2926: ;
54448  return (44+retcycles*2);
54449 }
CPUFUNC(op_c0e8_5)54450 unsigned long CPUFUNC(op_c0e8_5)(uint32_t opcode) /* MULU */
54451 {
54452 	uint32_t srcreg = (opcode & 7);
54453 	uint32_t dstreg = (opcode >> 9) & 7;
54454 	unsigned int retcycles = 0;
54455 	OpcodeFamily = 62; CurrentInstrCycles = 46;
54456 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
54457 	if ((srca & 1) != 0) {
54458 		last_fault_for_exception_3 = srca;
54459 		last_op_for_exception_3 = opcode;
54460 		last_addr_for_exception_3 = m68k_getpc() + 4;
54461 		Exception(3, 0, M68000_EXC_SRC_CPU);
54462 		goto endlabel2927;
54463 	}
54464 {{	int16_t src = m68k_read_memory_16(srca);
54465 {	int16_t dst = m68k_dreg(regs, dstreg);
54466 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54467 	CLEAR_CZNV;
54468 	SET_ZFLG (((int32_t)(newv)) == 0);
54469 	SET_NFLG (((int32_t)(newv)) < 0);
54470 	m68k_dreg(regs, dstreg) = (newv);
54471 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54472 }}}}}}m68k_incpc(4);
54473 fill_prefetch_0 ();
54474 endlabel2927: ;
54475  return (46+retcycles*2);
54476 }
CPUFUNC(op_c0f0_5)54477 unsigned long CPUFUNC(op_c0f0_5)(uint32_t opcode) /* MULU */
54478 {
54479 	uint32_t srcreg = (opcode & 7);
54480 	uint32_t dstreg = (opcode >> 9) & 7;
54481 	unsigned int retcycles = 0;
54482 	OpcodeFamily = 62; CurrentInstrCycles = 48;
54483 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
54484 	BusCyclePenalty += 2;
54485 	if ((srca & 1) != 0) {
54486 		last_fault_for_exception_3 = srca;
54487 		last_op_for_exception_3 = opcode;
54488 		last_addr_for_exception_3 = m68k_getpc() + 4;
54489 		Exception(3, 0, M68000_EXC_SRC_CPU);
54490 		goto endlabel2928;
54491 	}
54492 {{	int16_t src = m68k_read_memory_16(srca);
54493 {	int16_t dst = m68k_dreg(regs, dstreg);
54494 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54495 	CLEAR_CZNV;
54496 	SET_ZFLG (((int32_t)(newv)) == 0);
54497 	SET_NFLG (((int32_t)(newv)) < 0);
54498 	m68k_dreg(regs, dstreg) = (newv);
54499 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54500 }}}}}}m68k_incpc(4);
54501 fill_prefetch_0 ();
54502 endlabel2928: ;
54503  return (48+retcycles*2);
54504 }
CPUFUNC(op_c0f8_5)54505 unsigned long CPUFUNC(op_c0f8_5)(uint32_t opcode) /* MULU */
54506 {
54507 	uint32_t dstreg = (opcode >> 9) & 7;
54508 	unsigned int retcycles = 0;
54509 	OpcodeFamily = 62; CurrentInstrCycles = 46;
54510 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
54511 	if ((srca & 1) != 0) {
54512 		last_fault_for_exception_3 = srca;
54513 		last_op_for_exception_3 = opcode;
54514 		last_addr_for_exception_3 = m68k_getpc() + 4;
54515 		Exception(3, 0, M68000_EXC_SRC_CPU);
54516 		goto endlabel2929;
54517 	}
54518 {{	int16_t src = m68k_read_memory_16(srca);
54519 {	int16_t dst = m68k_dreg(regs, dstreg);
54520 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54521 	CLEAR_CZNV;
54522 	SET_ZFLG (((int32_t)(newv)) == 0);
54523 	SET_NFLG (((int32_t)(newv)) < 0);
54524 	m68k_dreg(regs, dstreg) = (newv);
54525 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54526 }}}}}}m68k_incpc(4);
54527 fill_prefetch_0 ();
54528 endlabel2929: ;
54529  return (46+retcycles*2);
54530 }
CPUFUNC(op_c0f9_5)54531 unsigned long CPUFUNC(op_c0f9_5)(uint32_t opcode) /* MULU */
54532 {
54533 	uint32_t dstreg = (opcode >> 9) & 7;
54534 	unsigned int retcycles = 0;
54535 	OpcodeFamily = 62; CurrentInstrCycles = 50;
54536 {{	uint32_t srca = get_ilong_prefetch(2);
54537 	if ((srca & 1) != 0) {
54538 		last_fault_for_exception_3 = srca;
54539 		last_op_for_exception_3 = opcode;
54540 		last_addr_for_exception_3 = m68k_getpc() + 6;
54541 		Exception(3, 0, M68000_EXC_SRC_CPU);
54542 		goto endlabel2930;
54543 	}
54544 {{	int16_t src = m68k_read_memory_16(srca);
54545 {	int16_t dst = m68k_dreg(regs, dstreg);
54546 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54547 	CLEAR_CZNV;
54548 	SET_ZFLG (((int32_t)(newv)) == 0);
54549 	SET_NFLG (((int32_t)(newv)) < 0);
54550 	m68k_dreg(regs, dstreg) = (newv);
54551 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54552 }}}}}}m68k_incpc(6);
54553 fill_prefetch_0 ();
54554 endlabel2930: ;
54555  return (50+retcycles*2);
54556 }
CPUFUNC(op_c0fa_5)54557 unsigned long CPUFUNC(op_c0fa_5)(uint32_t opcode) /* MULU */
54558 {
54559 	uint32_t dstreg = (opcode >> 9) & 7;
54560 	unsigned int retcycles = 0;
54561 	OpcodeFamily = 62; CurrentInstrCycles = 46;
54562 {{	uint32_t srca = m68k_getpc () + 2;
54563 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
54564 	if ((srca & 1) != 0) {
54565 		last_fault_for_exception_3 = srca;
54566 		last_op_for_exception_3 = opcode;
54567 		last_addr_for_exception_3 = m68k_getpc() + 4;
54568 		Exception(3, 0, M68000_EXC_SRC_CPU);
54569 		goto endlabel2931;
54570 	}
54571 {{	int16_t src = m68k_read_memory_16(srca);
54572 {	int16_t dst = m68k_dreg(regs, dstreg);
54573 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54574 	CLEAR_CZNV;
54575 	SET_ZFLG (((int32_t)(newv)) == 0);
54576 	SET_NFLG (((int32_t)(newv)) < 0);
54577 	m68k_dreg(regs, dstreg) = (newv);
54578 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54579 }}}}}}m68k_incpc(4);
54580 fill_prefetch_0 ();
54581 endlabel2931: ;
54582  return (46+retcycles*2);
54583 }
CPUFUNC(op_c0fb_5)54584 unsigned long CPUFUNC(op_c0fb_5)(uint32_t opcode) /* MULU */
54585 {
54586 	uint32_t dstreg = (opcode >> 9) & 7;
54587 	unsigned int retcycles = 0;
54588 	OpcodeFamily = 62; CurrentInstrCycles = 48;
54589 {{	uint32_t tmppc = m68k_getpc() + 2;
54590 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
54591 	BusCyclePenalty += 2;
54592 	if ((srca & 1) != 0) {
54593 		last_fault_for_exception_3 = srca;
54594 		last_op_for_exception_3 = opcode;
54595 		last_addr_for_exception_3 = m68k_getpc() + 4;
54596 		Exception(3, 0, M68000_EXC_SRC_CPU);
54597 		goto endlabel2932;
54598 	}
54599 {{	int16_t src = m68k_read_memory_16(srca);
54600 {	int16_t dst = m68k_dreg(regs, dstreg);
54601 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54602 	CLEAR_CZNV;
54603 	SET_ZFLG (((int32_t)(newv)) == 0);
54604 	SET_NFLG (((int32_t)(newv)) < 0);
54605 	m68k_dreg(regs, dstreg) = (newv);
54606 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54607 }}}}}}m68k_incpc(4);
54608 fill_prefetch_0 ();
54609 endlabel2932: ;
54610  return (48+retcycles*2);
54611 }
CPUFUNC(op_c0fc_5)54612 unsigned long CPUFUNC(op_c0fc_5)(uint32_t opcode) /* MULU */
54613 {
54614 	uint32_t dstreg = (opcode >> 9) & 7;
54615 	unsigned int retcycles = 0;
54616 	OpcodeFamily = 62; CurrentInstrCycles = 42;
54617 {{	int16_t src = get_iword_prefetch(2);
54618 {	int16_t dst = m68k_dreg(regs, dstreg);
54619 {	uint32_t newv = (uint32_t)(uint16_t)dst * (uint32_t)(uint16_t)src;
54620 	CLEAR_CZNV;
54621 	SET_ZFLG (((int32_t)(newv)) == 0);
54622 	SET_NFLG (((int32_t)(newv)) < 0);
54623 	m68k_dreg(regs, dstreg) = (newv);
54624 	while (src) { if (src & 1) retcycles++; src = (uint16_t)src >> 1; }
54625 }}}}m68k_incpc(4);
54626 fill_prefetch_0 ();
54627  return (42+retcycles*2);
54628 }
CPUFUNC(op_c100_5)54629 unsigned long CPUFUNC(op_c100_5)(uint32_t opcode) /* ABCD */
54630 {
54631 	uint32_t srcreg = (opcode & 7);
54632 	uint32_t dstreg = (opcode >> 9) & 7;
54633 	OpcodeFamily = 14; CurrentInstrCycles = 6;
54634 {{	int8_t src = m68k_dreg(regs, srcreg);
54635 {	int8_t dst = m68k_dreg(regs, dstreg);
54636 {	uint16_t newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0);
54637 	uint16_t newv_hi = (src & 0xF0) + (dst & 0xF0);
54638 	uint16_t newv, tmp_newv;
54639 	int cflg;
54640 	newv = tmp_newv = newv_hi + newv_lo;	if (newv_lo > 9) { newv += 6; }
54641 	cflg = (newv & 0x3F0) > 0x90;
54642 	if (cflg) newv += 0x60;
54643 	SET_CFLG (cflg);
54644 	COPY_CARRY;
54645 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
54646 	SET_NFLG (((int8_t)(newv)) < 0);
54647 	SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0);
54648 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
54649 }}}}m68k_incpc(2);
54650 fill_prefetch_2 ();
54651 return 6;
54652 }
CPUFUNC(op_c108_5)54653 unsigned long CPUFUNC(op_c108_5)(uint32_t opcode) /* ABCD */
54654 {
54655 	uint32_t srcreg = (opcode & 7);
54656 	uint32_t dstreg = (opcode >> 9) & 7;
54657 	OpcodeFamily = 14; CurrentInstrCycles = 18;
54658 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
54659 {	int8_t src = m68k_read_memory_8(srca);
54660 	m68k_areg (regs, srcreg) = srca;
54661 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
54662 {	int8_t dst = m68k_read_memory_8(dsta);
54663 	m68k_areg (regs, dstreg) = dsta;
54664 {	uint16_t newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0);
54665 	uint16_t newv_hi = (src & 0xF0) + (dst & 0xF0);
54666 	uint16_t newv, tmp_newv;
54667 	int cflg;
54668 	newv = tmp_newv = newv_hi + newv_lo;	if (newv_lo > 9) { newv += 6; }
54669 	cflg = (newv & 0x3F0) > 0x90;
54670 	if (cflg) newv += 0x60;
54671 	SET_CFLG (cflg);
54672 	COPY_CARRY;
54673 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
54674 	SET_NFLG (((int8_t)(newv)) < 0);
54675 	SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0);
54676 m68k_incpc(2);
54677 fill_prefetch_2 ();
54678 	m68k_write_memory_8(dsta,newv);
54679 }}}}}}return 18;
54680 }
CPUFUNC(op_c110_5)54681 unsigned long CPUFUNC(op_c110_5)(uint32_t opcode) /* AND */
54682 {
54683 	uint32_t srcreg = ((opcode >> 9) & 7);
54684 	uint32_t dstreg = opcode & 7;
54685 	OpcodeFamily = 2; CurrentInstrCycles = 12;
54686 {{	int8_t src = m68k_dreg(regs, srcreg);
54687 {	uint32_t dsta = m68k_areg(regs, dstreg);
54688 {	int8_t dst = m68k_read_memory_8(dsta);
54689 	src &= dst;
54690 	CLEAR_CZNV;
54691 	SET_ZFLG (((int8_t)(src)) == 0);
54692 	SET_NFLG (((int8_t)(src)) < 0);
54693 m68k_incpc(2);
54694 fill_prefetch_2 ();
54695 	m68k_write_memory_8(dsta,src);
54696 }}}}return 12;
54697 }
CPUFUNC(op_c118_5)54698 unsigned long CPUFUNC(op_c118_5)(uint32_t opcode) /* AND */
54699 {
54700 	uint32_t srcreg = ((opcode >> 9) & 7);
54701 	uint32_t dstreg = opcode & 7;
54702 	OpcodeFamily = 2; CurrentInstrCycles = 12;
54703 {{	int8_t src = m68k_dreg(regs, srcreg);
54704 {	uint32_t dsta = m68k_areg(regs, dstreg);
54705 {	int8_t dst = m68k_read_memory_8(dsta);
54706 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
54707 	src &= dst;
54708 	CLEAR_CZNV;
54709 	SET_ZFLG (((int8_t)(src)) == 0);
54710 	SET_NFLG (((int8_t)(src)) < 0);
54711 m68k_incpc(2);
54712 fill_prefetch_2 ();
54713 	m68k_write_memory_8(dsta,src);
54714 }}}}return 12;
54715 }
CPUFUNC(op_c120_5)54716 unsigned long CPUFUNC(op_c120_5)(uint32_t opcode) /* AND */
54717 {
54718 	uint32_t srcreg = ((opcode >> 9) & 7);
54719 	uint32_t dstreg = opcode & 7;
54720 	OpcodeFamily = 2; CurrentInstrCycles = 14;
54721 {{	int8_t src = m68k_dreg(regs, srcreg);
54722 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
54723 {	int8_t dst = m68k_read_memory_8(dsta);
54724 	m68k_areg (regs, dstreg) = dsta;
54725 	src &= dst;
54726 	CLEAR_CZNV;
54727 	SET_ZFLG (((int8_t)(src)) == 0);
54728 	SET_NFLG (((int8_t)(src)) < 0);
54729 m68k_incpc(2);
54730 fill_prefetch_2 ();
54731 	m68k_write_memory_8(dsta,src);
54732 }}}}return 14;
54733 }
CPUFUNC(op_c128_5)54734 unsigned long CPUFUNC(op_c128_5)(uint32_t opcode) /* AND */
54735 {
54736 	uint32_t srcreg = ((opcode >> 9) & 7);
54737 	uint32_t dstreg = opcode & 7;
54738 	OpcodeFamily = 2; CurrentInstrCycles = 16;
54739 {{	int8_t src = m68k_dreg(regs, srcreg);
54740 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
54741 {	int8_t dst = m68k_read_memory_8(dsta);
54742 	src &= dst;
54743 	CLEAR_CZNV;
54744 	SET_ZFLG (((int8_t)(src)) == 0);
54745 	SET_NFLG (((int8_t)(src)) < 0);
54746 m68k_incpc(4);
54747 fill_prefetch_0 ();
54748 	m68k_write_memory_8(dsta,src);
54749 }}}}return 16;
54750 }
CPUFUNC(op_c130_5)54751 unsigned long CPUFUNC(op_c130_5)(uint32_t opcode) /* AND */
54752 {
54753 	uint32_t srcreg = ((opcode >> 9) & 7);
54754 	uint32_t dstreg = opcode & 7;
54755 	OpcodeFamily = 2; CurrentInstrCycles = 18;
54756 {{	int8_t src = m68k_dreg(regs, srcreg);
54757 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
54758 	BusCyclePenalty += 2;
54759 {	int8_t dst = m68k_read_memory_8(dsta);
54760 	src &= dst;
54761 	CLEAR_CZNV;
54762 	SET_ZFLG (((int8_t)(src)) == 0);
54763 	SET_NFLG (((int8_t)(src)) < 0);
54764 m68k_incpc(4);
54765 fill_prefetch_0 ();
54766 	m68k_write_memory_8(dsta,src);
54767 }}}}return 18;
54768 }
CPUFUNC(op_c138_5)54769 unsigned long CPUFUNC(op_c138_5)(uint32_t opcode) /* AND */
54770 {
54771 	uint32_t srcreg = ((opcode >> 9) & 7);
54772 	OpcodeFamily = 2; CurrentInstrCycles = 16;
54773 {{	int8_t src = m68k_dreg(regs, srcreg);
54774 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
54775 {	int8_t dst = m68k_read_memory_8(dsta);
54776 	src &= dst;
54777 	CLEAR_CZNV;
54778 	SET_ZFLG (((int8_t)(src)) == 0);
54779 	SET_NFLG (((int8_t)(src)) < 0);
54780 m68k_incpc(4);
54781 fill_prefetch_0 ();
54782 	m68k_write_memory_8(dsta,src);
54783 }}}}return 16;
54784 }
CPUFUNC(op_c139_5)54785 unsigned long CPUFUNC(op_c139_5)(uint32_t opcode) /* AND */
54786 {
54787 	uint32_t srcreg = ((opcode >> 9) & 7);
54788 	OpcodeFamily = 2; CurrentInstrCycles = 20;
54789 {{	int8_t src = m68k_dreg(regs, srcreg);
54790 {	uint32_t dsta = get_ilong_prefetch(2);
54791 {	int8_t dst = m68k_read_memory_8(dsta);
54792 	src &= dst;
54793 	CLEAR_CZNV;
54794 	SET_ZFLG (((int8_t)(src)) == 0);
54795 	SET_NFLG (((int8_t)(src)) < 0);
54796 m68k_incpc(6);
54797 fill_prefetch_0 ();
54798 	m68k_write_memory_8(dsta,src);
54799 }}}}return 20;
54800 }
CPUFUNC(op_c140_5)54801 unsigned long CPUFUNC(op_c140_5)(uint32_t opcode) /* EXG */
54802 {
54803 	uint32_t srcreg = ((opcode >> 9) & 7);
54804 	uint32_t dstreg = opcode & 7;
54805 	OpcodeFamily = 35; CurrentInstrCycles = 6;
54806 {{	int32_t src = m68k_dreg(regs, srcreg);
54807 {	int32_t dst = m68k_dreg(regs, dstreg);
54808 	m68k_dreg(regs, srcreg) = (dst);
54809 	m68k_dreg(regs, dstreg) = (src);
54810 }}}m68k_incpc(2);
54811 fill_prefetch_2 ();
54812 return 6;
54813 }
CPUFUNC(op_c148_5)54814 unsigned long CPUFUNC(op_c148_5)(uint32_t opcode) /* EXG */
54815 {
54816 	uint32_t srcreg = ((opcode >> 9) & 7);
54817 	uint32_t dstreg = opcode & 7;
54818 	OpcodeFamily = 35; CurrentInstrCycles = 6;
54819 {{	int32_t src = m68k_areg(regs, srcreg);
54820 {	int32_t dst = m68k_areg(regs, dstreg);
54821 	m68k_areg(regs, srcreg) = (dst);
54822 	m68k_areg(regs, dstreg) = (src);
54823 }}}m68k_incpc(2);
54824 fill_prefetch_2 ();
54825 return 6;
54826 }
CPUFUNC(op_c150_5)54827 unsigned long CPUFUNC(op_c150_5)(uint32_t opcode) /* AND */
54828 {
54829 	uint32_t srcreg = ((opcode >> 9) & 7);
54830 	uint32_t dstreg = opcode & 7;
54831 	OpcodeFamily = 2; CurrentInstrCycles = 12;
54832 {{	int16_t src = m68k_dreg(regs, srcreg);
54833 {	uint32_t dsta = m68k_areg(regs, dstreg);
54834 	if ((dsta & 1) != 0) {
54835 		last_fault_for_exception_3 = dsta;
54836 		last_op_for_exception_3 = opcode;
54837 		last_addr_for_exception_3 = m68k_getpc() + 2;
54838 		Exception(3, 0, M68000_EXC_SRC_CPU);
54839 		goto endlabel2945;
54840 	}
54841 {{	int16_t dst = m68k_read_memory_16(dsta);
54842 	src &= dst;
54843 	CLEAR_CZNV;
54844 	SET_ZFLG (((int16_t)(src)) == 0);
54845 	SET_NFLG (((int16_t)(src)) < 0);
54846 m68k_incpc(2);
54847 fill_prefetch_2 ();
54848 	m68k_write_memory_16(dsta,src);
54849 }}}}}endlabel2945: ;
54850 return 12;
54851 }
CPUFUNC(op_c158_5)54852 unsigned long CPUFUNC(op_c158_5)(uint32_t opcode) /* AND */
54853 {
54854 	uint32_t srcreg = ((opcode >> 9) & 7);
54855 	uint32_t dstreg = opcode & 7;
54856 	OpcodeFamily = 2; CurrentInstrCycles = 12;
54857 {{	int16_t src = m68k_dreg(regs, srcreg);
54858 {	uint32_t dsta = m68k_areg(regs, dstreg);
54859 	if ((dsta & 1) != 0) {
54860 		last_fault_for_exception_3 = dsta;
54861 		last_op_for_exception_3 = opcode;
54862 		last_addr_for_exception_3 = m68k_getpc() + 2;
54863 		Exception(3, 0, M68000_EXC_SRC_CPU);
54864 		goto endlabel2946;
54865 	}
54866 {{	int16_t dst = m68k_read_memory_16(dsta);
54867 	m68k_areg(regs, dstreg) += 2;
54868 	src &= dst;
54869 	CLEAR_CZNV;
54870 	SET_ZFLG (((int16_t)(src)) == 0);
54871 	SET_NFLG (((int16_t)(src)) < 0);
54872 m68k_incpc(2);
54873 fill_prefetch_2 ();
54874 	m68k_write_memory_16(dsta,src);
54875 }}}}}endlabel2946: ;
54876 return 12;
54877 }
CPUFUNC(op_c160_5)54878 unsigned long CPUFUNC(op_c160_5)(uint32_t opcode) /* AND */
54879 {
54880 	uint32_t srcreg = ((opcode >> 9) & 7);
54881 	uint32_t dstreg = opcode & 7;
54882 	OpcodeFamily = 2; CurrentInstrCycles = 14;
54883 {{	int16_t src = m68k_dreg(regs, srcreg);
54884 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
54885 	if ((dsta & 1) != 0) {
54886 		last_fault_for_exception_3 = dsta;
54887 		last_op_for_exception_3 = opcode;
54888 		last_addr_for_exception_3 = m68k_getpc() + 2;
54889 		Exception(3, 0, M68000_EXC_SRC_CPU);
54890 		goto endlabel2947;
54891 	}
54892 {{	int16_t dst = m68k_read_memory_16(dsta);
54893 	m68k_areg (regs, dstreg) = dsta;
54894 	src &= dst;
54895 	CLEAR_CZNV;
54896 	SET_ZFLG (((int16_t)(src)) == 0);
54897 	SET_NFLG (((int16_t)(src)) < 0);
54898 m68k_incpc(2);
54899 fill_prefetch_2 ();
54900 	m68k_write_memory_16(dsta,src);
54901 }}}}}endlabel2947: ;
54902 return 14;
54903 }
CPUFUNC(op_c168_5)54904 unsigned long CPUFUNC(op_c168_5)(uint32_t opcode) /* AND */
54905 {
54906 	uint32_t srcreg = ((opcode >> 9) & 7);
54907 	uint32_t dstreg = opcode & 7;
54908 	OpcodeFamily = 2; CurrentInstrCycles = 16;
54909 {{	int16_t src = m68k_dreg(regs, srcreg);
54910 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
54911 	if ((dsta & 1) != 0) {
54912 		last_fault_for_exception_3 = dsta;
54913 		last_op_for_exception_3 = opcode;
54914 		last_addr_for_exception_3 = m68k_getpc() + 4;
54915 		Exception(3, 0, M68000_EXC_SRC_CPU);
54916 		goto endlabel2948;
54917 	}
54918 {{	int16_t dst = m68k_read_memory_16(dsta);
54919 	src &= dst;
54920 	CLEAR_CZNV;
54921 	SET_ZFLG (((int16_t)(src)) == 0);
54922 	SET_NFLG (((int16_t)(src)) < 0);
54923 m68k_incpc(4);
54924 fill_prefetch_0 ();
54925 	m68k_write_memory_16(dsta,src);
54926 }}}}}endlabel2948: ;
54927 return 16;
54928 }
CPUFUNC(op_c170_5)54929 unsigned long CPUFUNC(op_c170_5)(uint32_t opcode) /* AND */
54930 {
54931 	uint32_t srcreg = ((opcode >> 9) & 7);
54932 	uint32_t dstreg = opcode & 7;
54933 	OpcodeFamily = 2; CurrentInstrCycles = 18;
54934 {{	int16_t src = m68k_dreg(regs, srcreg);
54935 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
54936 	BusCyclePenalty += 2;
54937 	if ((dsta & 1) != 0) {
54938 		last_fault_for_exception_3 = dsta;
54939 		last_op_for_exception_3 = opcode;
54940 		last_addr_for_exception_3 = m68k_getpc() + 4;
54941 		Exception(3, 0, M68000_EXC_SRC_CPU);
54942 		goto endlabel2949;
54943 	}
54944 {{	int16_t dst = m68k_read_memory_16(dsta);
54945 	src &= dst;
54946 	CLEAR_CZNV;
54947 	SET_ZFLG (((int16_t)(src)) == 0);
54948 	SET_NFLG (((int16_t)(src)) < 0);
54949 m68k_incpc(4);
54950 fill_prefetch_0 ();
54951 	m68k_write_memory_16(dsta,src);
54952 }}}}}endlabel2949: ;
54953 return 18;
54954 }
CPUFUNC(op_c178_5)54955 unsigned long CPUFUNC(op_c178_5)(uint32_t opcode) /* AND */
54956 {
54957 	uint32_t srcreg = ((opcode >> 9) & 7);
54958 	OpcodeFamily = 2; CurrentInstrCycles = 16;
54959 {{	int16_t src = m68k_dreg(regs, srcreg);
54960 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
54961 	if ((dsta & 1) != 0) {
54962 		last_fault_for_exception_3 = dsta;
54963 		last_op_for_exception_3 = opcode;
54964 		last_addr_for_exception_3 = m68k_getpc() + 4;
54965 		Exception(3, 0, M68000_EXC_SRC_CPU);
54966 		goto endlabel2950;
54967 	}
54968 {{	int16_t dst = m68k_read_memory_16(dsta);
54969 	src &= dst;
54970 	CLEAR_CZNV;
54971 	SET_ZFLG (((int16_t)(src)) == 0);
54972 	SET_NFLG (((int16_t)(src)) < 0);
54973 m68k_incpc(4);
54974 fill_prefetch_0 ();
54975 	m68k_write_memory_16(dsta,src);
54976 }}}}}endlabel2950: ;
54977 return 16;
54978 }
CPUFUNC(op_c179_5)54979 unsigned long CPUFUNC(op_c179_5)(uint32_t opcode) /* AND */
54980 {
54981 	uint32_t srcreg = ((opcode >> 9) & 7);
54982 	OpcodeFamily = 2; CurrentInstrCycles = 20;
54983 {{	int16_t src = m68k_dreg(regs, srcreg);
54984 {	uint32_t dsta = get_ilong_prefetch(2);
54985 	if ((dsta & 1) != 0) {
54986 		last_fault_for_exception_3 = dsta;
54987 		last_op_for_exception_3 = opcode;
54988 		last_addr_for_exception_3 = m68k_getpc() + 6;
54989 		Exception(3, 0, M68000_EXC_SRC_CPU);
54990 		goto endlabel2951;
54991 	}
54992 {{	int16_t dst = m68k_read_memory_16(dsta);
54993 	src &= dst;
54994 	CLEAR_CZNV;
54995 	SET_ZFLG (((int16_t)(src)) == 0);
54996 	SET_NFLG (((int16_t)(src)) < 0);
54997 m68k_incpc(6);
54998 fill_prefetch_0 ();
54999 	m68k_write_memory_16(dsta,src);
55000 }}}}}endlabel2951: ;
55001 return 20;
55002 }
CPUFUNC(op_c188_5)55003 unsigned long CPUFUNC(op_c188_5)(uint32_t opcode) /* EXG */
55004 {
55005 	uint32_t srcreg = ((opcode >> 9) & 7);
55006 	uint32_t dstreg = opcode & 7;
55007 	OpcodeFamily = 35; CurrentInstrCycles = 6;
55008 {{	int32_t src = m68k_dreg(regs, srcreg);
55009 {	int32_t dst = m68k_areg(regs, dstreg);
55010 	m68k_dreg(regs, srcreg) = (dst);
55011 	m68k_areg(regs, dstreg) = (src);
55012 }}}m68k_incpc(2);
55013 fill_prefetch_2 ();
55014 return 6;
55015 }
CPUFUNC(op_c190_5)55016 unsigned long CPUFUNC(op_c190_5)(uint32_t opcode) /* AND */
55017 {
55018 	uint32_t srcreg = ((opcode >> 9) & 7);
55019 	uint32_t dstreg = opcode & 7;
55020 	OpcodeFamily = 2; CurrentInstrCycles = 20;
55021 {{	int32_t src = m68k_dreg(regs, srcreg);
55022 {	uint32_t dsta = m68k_areg(regs, dstreg);
55023 	if ((dsta & 1) != 0) {
55024 		last_fault_for_exception_3 = dsta;
55025 		last_op_for_exception_3 = opcode;
55026 		last_addr_for_exception_3 = m68k_getpc() + 2;
55027 		Exception(3, 0, M68000_EXC_SRC_CPU);
55028 		goto endlabel2953;
55029 	}
55030 {{	int32_t dst = m68k_read_memory_32(dsta);
55031 	src &= dst;
55032 	CLEAR_CZNV;
55033 	SET_ZFLG (((int32_t)(src)) == 0);
55034 	SET_NFLG (((int32_t)(src)) < 0);
55035 m68k_incpc(2);
55036 fill_prefetch_2 ();
55037 	m68k_write_memory_32(dsta,src);
55038 }}}}}endlabel2953: ;
55039 return 20;
55040 }
CPUFUNC(op_c198_5)55041 unsigned long CPUFUNC(op_c198_5)(uint32_t opcode) /* AND */
55042 {
55043 	uint32_t srcreg = ((opcode >> 9) & 7);
55044 	uint32_t dstreg = opcode & 7;
55045 	OpcodeFamily = 2; CurrentInstrCycles = 20;
55046 {{	int32_t src = m68k_dreg(regs, srcreg);
55047 {	uint32_t dsta = m68k_areg(regs, dstreg);
55048 	if ((dsta & 1) != 0) {
55049 		last_fault_for_exception_3 = dsta;
55050 		last_op_for_exception_3 = opcode;
55051 		last_addr_for_exception_3 = m68k_getpc() + 2;
55052 		Exception(3, 0, M68000_EXC_SRC_CPU);
55053 		goto endlabel2954;
55054 	}
55055 {{	int32_t dst = m68k_read_memory_32(dsta);
55056 	m68k_areg(regs, dstreg) += 4;
55057 	src &= dst;
55058 	CLEAR_CZNV;
55059 	SET_ZFLG (((int32_t)(src)) == 0);
55060 	SET_NFLG (((int32_t)(src)) < 0);
55061 m68k_incpc(2);
55062 fill_prefetch_2 ();
55063 	m68k_write_memory_32(dsta,src);
55064 }}}}}endlabel2954: ;
55065 return 20;
55066 }
CPUFUNC(op_c1a0_5)55067 unsigned long CPUFUNC(op_c1a0_5)(uint32_t opcode) /* AND */
55068 {
55069 	uint32_t srcreg = ((opcode >> 9) & 7);
55070 	uint32_t dstreg = opcode & 7;
55071 	OpcodeFamily = 2; CurrentInstrCycles = 22;
55072 {{	int32_t src = m68k_dreg(regs, srcreg);
55073 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
55074 	if ((dsta & 1) != 0) {
55075 		last_fault_for_exception_3 = dsta;
55076 		last_op_for_exception_3 = opcode;
55077 		last_addr_for_exception_3 = m68k_getpc() + 2;
55078 		Exception(3, 0, M68000_EXC_SRC_CPU);
55079 		goto endlabel2955;
55080 	}
55081 {{	int32_t dst = m68k_read_memory_32(dsta);
55082 	m68k_areg (regs, dstreg) = dsta;
55083 	src &= dst;
55084 	CLEAR_CZNV;
55085 	SET_ZFLG (((int32_t)(src)) == 0);
55086 	SET_NFLG (((int32_t)(src)) < 0);
55087 m68k_incpc(2);
55088 fill_prefetch_2 ();
55089 	m68k_write_memory_32(dsta,src);
55090 }}}}}endlabel2955: ;
55091 return 22;
55092 }
CPUFUNC(op_c1a8_5)55093 unsigned long CPUFUNC(op_c1a8_5)(uint32_t opcode) /* AND */
55094 {
55095 	uint32_t srcreg = ((opcode >> 9) & 7);
55096 	uint32_t dstreg = opcode & 7;
55097 	OpcodeFamily = 2; CurrentInstrCycles = 24;
55098 {{	int32_t src = m68k_dreg(regs, srcreg);
55099 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
55100 	if ((dsta & 1) != 0) {
55101 		last_fault_for_exception_3 = dsta;
55102 		last_op_for_exception_3 = opcode;
55103 		last_addr_for_exception_3 = m68k_getpc() + 4;
55104 		Exception(3, 0, M68000_EXC_SRC_CPU);
55105 		goto endlabel2956;
55106 	}
55107 {{	int32_t dst = m68k_read_memory_32(dsta);
55108 	src &= dst;
55109 	CLEAR_CZNV;
55110 	SET_ZFLG (((int32_t)(src)) == 0);
55111 	SET_NFLG (((int32_t)(src)) < 0);
55112 m68k_incpc(4);
55113 fill_prefetch_0 ();
55114 	m68k_write_memory_32(dsta,src);
55115 }}}}}endlabel2956: ;
55116 return 24;
55117 }
CPUFUNC(op_c1b0_5)55118 unsigned long CPUFUNC(op_c1b0_5)(uint32_t opcode) /* AND */
55119 {
55120 	uint32_t srcreg = ((opcode >> 9) & 7);
55121 	uint32_t dstreg = opcode & 7;
55122 	OpcodeFamily = 2; CurrentInstrCycles = 26;
55123 {{	int32_t src = m68k_dreg(regs, srcreg);
55124 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
55125 	BusCyclePenalty += 2;
55126 	if ((dsta & 1) != 0) {
55127 		last_fault_for_exception_3 = dsta;
55128 		last_op_for_exception_3 = opcode;
55129 		last_addr_for_exception_3 = m68k_getpc() + 4;
55130 		Exception(3, 0, M68000_EXC_SRC_CPU);
55131 		goto endlabel2957;
55132 	}
55133 {{	int32_t dst = m68k_read_memory_32(dsta);
55134 	src &= dst;
55135 	CLEAR_CZNV;
55136 	SET_ZFLG (((int32_t)(src)) == 0);
55137 	SET_NFLG (((int32_t)(src)) < 0);
55138 m68k_incpc(4);
55139 fill_prefetch_0 ();
55140 	m68k_write_memory_32(dsta,src);
55141 }}}}}endlabel2957: ;
55142 return 26;
55143 }
CPUFUNC(op_c1b8_5)55144 unsigned long CPUFUNC(op_c1b8_5)(uint32_t opcode) /* AND */
55145 {
55146 	uint32_t srcreg = ((opcode >> 9) & 7);
55147 	OpcodeFamily = 2; CurrentInstrCycles = 24;
55148 {{	int32_t src = m68k_dreg(regs, srcreg);
55149 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
55150 	if ((dsta & 1) != 0) {
55151 		last_fault_for_exception_3 = dsta;
55152 		last_op_for_exception_3 = opcode;
55153 		last_addr_for_exception_3 = m68k_getpc() + 4;
55154 		Exception(3, 0, M68000_EXC_SRC_CPU);
55155 		goto endlabel2958;
55156 	}
55157 {{	int32_t dst = m68k_read_memory_32(dsta);
55158 	src &= dst;
55159 	CLEAR_CZNV;
55160 	SET_ZFLG (((int32_t)(src)) == 0);
55161 	SET_NFLG (((int32_t)(src)) < 0);
55162 m68k_incpc(4);
55163 fill_prefetch_0 ();
55164 	m68k_write_memory_32(dsta,src);
55165 }}}}}endlabel2958: ;
55166 return 24;
55167 }
CPUFUNC(op_c1b9_5)55168 unsigned long CPUFUNC(op_c1b9_5)(uint32_t opcode) /* AND */
55169 {
55170 	uint32_t srcreg = ((opcode >> 9) & 7);
55171 	OpcodeFamily = 2; CurrentInstrCycles = 28;
55172 {{	int32_t src = m68k_dreg(regs, srcreg);
55173 {	uint32_t dsta = get_ilong_prefetch(2);
55174 	if ((dsta & 1) != 0) {
55175 		last_fault_for_exception_3 = dsta;
55176 		last_op_for_exception_3 = opcode;
55177 		last_addr_for_exception_3 = m68k_getpc() + 6;
55178 		Exception(3, 0, M68000_EXC_SRC_CPU);
55179 		goto endlabel2959;
55180 	}
55181 {{	int32_t dst = m68k_read_memory_32(dsta);
55182 	src &= dst;
55183 	CLEAR_CZNV;
55184 	SET_ZFLG (((int32_t)(src)) == 0);
55185 	SET_NFLG (((int32_t)(src)) < 0);
55186 m68k_incpc(6);
55187 fill_prefetch_0 ();
55188 	m68k_write_memory_32(dsta,src);
55189 }}}}}endlabel2959: ;
55190 return 28;
55191 }
CPUFUNC(op_c1c0_5)55192 unsigned long CPUFUNC(op_c1c0_5)(uint32_t opcode) /* MULS */
55193 {
55194 	uint32_t srcreg = (opcode & 7);
55195 	uint32_t dstreg = (opcode >> 9) & 7;
55196 	unsigned int retcycles = 0;
55197 	OpcodeFamily = 63; CurrentInstrCycles = 38;
55198 {{	int16_t src = m68k_dreg(regs, srcreg);
55199 {	int16_t dst = m68k_dreg(regs, dstreg);
55200 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55201 	uint32_t src2;
55202 	CLEAR_CZNV;
55203 	SET_ZFLG (((int32_t)(newv)) == 0);
55204 	SET_NFLG (((int32_t)(newv)) < 0);
55205 	m68k_dreg(regs, dstreg) = (newv);
55206 	src2 = ((uint32_t)src) << 1;
55207 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55208 }}}}m68k_incpc(2);
55209 fill_prefetch_2 ();
55210  return (38+retcycles*2);
55211 }
CPUFUNC(op_c1d0_5)55212 unsigned long CPUFUNC(op_c1d0_5)(uint32_t opcode) /* MULS */
55213 {
55214 	uint32_t srcreg = (opcode & 7);
55215 	uint32_t dstreg = (opcode >> 9) & 7;
55216 	unsigned int retcycles = 0;
55217 	OpcodeFamily = 63; CurrentInstrCycles = 42;
55218 {{	uint32_t srca = m68k_areg(regs, srcreg);
55219 	if ((srca & 1) != 0) {
55220 		last_fault_for_exception_3 = srca;
55221 		last_op_for_exception_3 = opcode;
55222 		last_addr_for_exception_3 = m68k_getpc() + 2;
55223 		Exception(3, 0, M68000_EXC_SRC_CPU);
55224 		goto endlabel2961;
55225 	}
55226 {{	int16_t src = m68k_read_memory_16(srca);
55227 {	int16_t dst = m68k_dreg(regs, dstreg);
55228 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55229 	uint32_t src2;
55230 	CLEAR_CZNV;
55231 	SET_ZFLG (((int32_t)(newv)) == 0);
55232 	SET_NFLG (((int32_t)(newv)) < 0);
55233 	m68k_dreg(regs, dstreg) = (newv);
55234 	src2 = ((uint32_t)src) << 1;
55235 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55236 }}}}}}m68k_incpc(2);
55237 fill_prefetch_2 ();
55238 endlabel2961: ;
55239  return (42+retcycles*2);
55240 }
CPUFUNC(op_c1d8_5)55241 unsigned long CPUFUNC(op_c1d8_5)(uint32_t opcode) /* MULS */
55242 {
55243 	uint32_t srcreg = (opcode & 7);
55244 	uint32_t dstreg = (opcode >> 9) & 7;
55245 	unsigned int retcycles = 0;
55246 	OpcodeFamily = 63; CurrentInstrCycles = 42;
55247 {{	uint32_t srca = m68k_areg(regs, srcreg);
55248 	if ((srca & 1) != 0) {
55249 		last_fault_for_exception_3 = srca;
55250 		last_op_for_exception_3 = opcode;
55251 		last_addr_for_exception_3 = m68k_getpc() + 2;
55252 		Exception(3, 0, M68000_EXC_SRC_CPU);
55253 		goto endlabel2962;
55254 	}
55255 {{	int16_t src = m68k_read_memory_16(srca);
55256 	m68k_areg(regs, srcreg) += 2;
55257 {	int16_t dst = m68k_dreg(regs, dstreg);
55258 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55259 	uint32_t src2;
55260 	CLEAR_CZNV;
55261 	SET_ZFLG (((int32_t)(newv)) == 0);
55262 	SET_NFLG (((int32_t)(newv)) < 0);
55263 	m68k_dreg(regs, dstreg) = (newv);
55264 	src2 = ((uint32_t)src) << 1;
55265 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55266 }}}}}}m68k_incpc(2);
55267 fill_prefetch_2 ();
55268 endlabel2962: ;
55269  return (42+retcycles*2);
55270 }
CPUFUNC(op_c1e0_5)55271 unsigned long CPUFUNC(op_c1e0_5)(uint32_t opcode) /* MULS */
55272 {
55273 	uint32_t srcreg = (opcode & 7);
55274 	uint32_t dstreg = (opcode >> 9) & 7;
55275 	unsigned int retcycles = 0;
55276 	OpcodeFamily = 63; CurrentInstrCycles = 44;
55277 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
55278 	if ((srca & 1) != 0) {
55279 		last_fault_for_exception_3 = srca;
55280 		last_op_for_exception_3 = opcode;
55281 		last_addr_for_exception_3 = m68k_getpc() + 2;
55282 		Exception(3, 0, M68000_EXC_SRC_CPU);
55283 		goto endlabel2963;
55284 	}
55285 {{	int16_t src = m68k_read_memory_16(srca);
55286 	m68k_areg (regs, srcreg) = srca;
55287 {	int16_t dst = m68k_dreg(regs, dstreg);
55288 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55289 	uint32_t src2;
55290 	CLEAR_CZNV;
55291 	SET_ZFLG (((int32_t)(newv)) == 0);
55292 	SET_NFLG (((int32_t)(newv)) < 0);
55293 	m68k_dreg(regs, dstreg) = (newv);
55294 	src2 = ((uint32_t)src) << 1;
55295 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55296 }}}}}}m68k_incpc(2);
55297 fill_prefetch_2 ();
55298 endlabel2963: ;
55299  return (44+retcycles*2);
55300 }
CPUFUNC(op_c1e8_5)55301 unsigned long CPUFUNC(op_c1e8_5)(uint32_t opcode) /* MULS */
55302 {
55303 	uint32_t srcreg = (opcode & 7);
55304 	uint32_t dstreg = (opcode >> 9) & 7;
55305 	unsigned int retcycles = 0;
55306 	OpcodeFamily = 63; CurrentInstrCycles = 46;
55307 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
55308 	if ((srca & 1) != 0) {
55309 		last_fault_for_exception_3 = srca;
55310 		last_op_for_exception_3 = opcode;
55311 		last_addr_for_exception_3 = m68k_getpc() + 4;
55312 		Exception(3, 0, M68000_EXC_SRC_CPU);
55313 		goto endlabel2964;
55314 	}
55315 {{	int16_t src = m68k_read_memory_16(srca);
55316 {	int16_t dst = m68k_dreg(regs, dstreg);
55317 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55318 	uint32_t src2;
55319 	CLEAR_CZNV;
55320 	SET_ZFLG (((int32_t)(newv)) == 0);
55321 	SET_NFLG (((int32_t)(newv)) < 0);
55322 	m68k_dreg(regs, dstreg) = (newv);
55323 	src2 = ((uint32_t)src) << 1;
55324 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55325 }}}}}}m68k_incpc(4);
55326 fill_prefetch_0 ();
55327 endlabel2964: ;
55328  return (46+retcycles*2);
55329 }
CPUFUNC(op_c1f0_5)55330 unsigned long CPUFUNC(op_c1f0_5)(uint32_t opcode) /* MULS */
55331 {
55332 	uint32_t srcreg = (opcode & 7);
55333 	uint32_t dstreg = (opcode >> 9) & 7;
55334 	unsigned int retcycles = 0;
55335 	OpcodeFamily = 63; CurrentInstrCycles = 48;
55336 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
55337 	BusCyclePenalty += 2;
55338 	if ((srca & 1) != 0) {
55339 		last_fault_for_exception_3 = srca;
55340 		last_op_for_exception_3 = opcode;
55341 		last_addr_for_exception_3 = m68k_getpc() + 4;
55342 		Exception(3, 0, M68000_EXC_SRC_CPU);
55343 		goto endlabel2965;
55344 	}
55345 {{	int16_t src = m68k_read_memory_16(srca);
55346 {	int16_t dst = m68k_dreg(regs, dstreg);
55347 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55348 	uint32_t src2;
55349 	CLEAR_CZNV;
55350 	SET_ZFLG (((int32_t)(newv)) == 0);
55351 	SET_NFLG (((int32_t)(newv)) < 0);
55352 	m68k_dreg(regs, dstreg) = (newv);
55353 	src2 = ((uint32_t)src) << 1;
55354 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55355 }}}}}}m68k_incpc(4);
55356 fill_prefetch_0 ();
55357 endlabel2965: ;
55358  return (48+retcycles*2);
55359 }
CPUFUNC(op_c1f8_5)55360 unsigned long CPUFUNC(op_c1f8_5)(uint32_t opcode) /* MULS */
55361 {
55362 	uint32_t dstreg = (opcode >> 9) & 7;
55363 	unsigned int retcycles = 0;
55364 	OpcodeFamily = 63; CurrentInstrCycles = 46;
55365 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
55366 	if ((srca & 1) != 0) {
55367 		last_fault_for_exception_3 = srca;
55368 		last_op_for_exception_3 = opcode;
55369 		last_addr_for_exception_3 = m68k_getpc() + 4;
55370 		Exception(3, 0, M68000_EXC_SRC_CPU);
55371 		goto endlabel2966;
55372 	}
55373 {{	int16_t src = m68k_read_memory_16(srca);
55374 {	int16_t dst = m68k_dreg(regs, dstreg);
55375 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55376 	uint32_t src2;
55377 	CLEAR_CZNV;
55378 	SET_ZFLG (((int32_t)(newv)) == 0);
55379 	SET_NFLG (((int32_t)(newv)) < 0);
55380 	m68k_dreg(regs, dstreg) = (newv);
55381 	src2 = ((uint32_t)src) << 1;
55382 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55383 }}}}}}m68k_incpc(4);
55384 fill_prefetch_0 ();
55385 endlabel2966: ;
55386  return (46+retcycles*2);
55387 }
CPUFUNC(op_c1f9_5)55388 unsigned long CPUFUNC(op_c1f9_5)(uint32_t opcode) /* MULS */
55389 {
55390 	uint32_t dstreg = (opcode >> 9) & 7;
55391 	unsigned int retcycles = 0;
55392 	OpcodeFamily = 63; CurrentInstrCycles = 50;
55393 {{	uint32_t srca = get_ilong_prefetch(2);
55394 	if ((srca & 1) != 0) {
55395 		last_fault_for_exception_3 = srca;
55396 		last_op_for_exception_3 = opcode;
55397 		last_addr_for_exception_3 = m68k_getpc() + 6;
55398 		Exception(3, 0, M68000_EXC_SRC_CPU);
55399 		goto endlabel2967;
55400 	}
55401 {{	int16_t src = m68k_read_memory_16(srca);
55402 {	int16_t dst = m68k_dreg(regs, dstreg);
55403 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55404 	uint32_t src2;
55405 	CLEAR_CZNV;
55406 	SET_ZFLG (((int32_t)(newv)) == 0);
55407 	SET_NFLG (((int32_t)(newv)) < 0);
55408 	m68k_dreg(regs, dstreg) = (newv);
55409 	src2 = ((uint32_t)src) << 1;
55410 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55411 }}}}}}m68k_incpc(6);
55412 fill_prefetch_0 ();
55413 endlabel2967: ;
55414  return (50+retcycles*2);
55415 }
CPUFUNC(op_c1fa_5)55416 unsigned long CPUFUNC(op_c1fa_5)(uint32_t opcode) /* MULS */
55417 {
55418 	uint32_t dstreg = (opcode >> 9) & 7;
55419 	unsigned int retcycles = 0;
55420 	OpcodeFamily = 63; CurrentInstrCycles = 46;
55421 {{	uint32_t srca = m68k_getpc () + 2;
55422 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
55423 	if ((srca & 1) != 0) {
55424 		last_fault_for_exception_3 = srca;
55425 		last_op_for_exception_3 = opcode;
55426 		last_addr_for_exception_3 = m68k_getpc() + 4;
55427 		Exception(3, 0, M68000_EXC_SRC_CPU);
55428 		goto endlabel2968;
55429 	}
55430 {{	int16_t src = m68k_read_memory_16(srca);
55431 {	int16_t dst = m68k_dreg(regs, dstreg);
55432 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55433 	uint32_t src2;
55434 	CLEAR_CZNV;
55435 	SET_ZFLG (((int32_t)(newv)) == 0);
55436 	SET_NFLG (((int32_t)(newv)) < 0);
55437 	m68k_dreg(regs, dstreg) = (newv);
55438 	src2 = ((uint32_t)src) << 1;
55439 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55440 }}}}}}m68k_incpc(4);
55441 fill_prefetch_0 ();
55442 endlabel2968: ;
55443  return (46+retcycles*2);
55444 }
CPUFUNC(op_c1fb_5)55445 unsigned long CPUFUNC(op_c1fb_5)(uint32_t opcode) /* MULS */
55446 {
55447 	uint32_t dstreg = (opcode >> 9) & 7;
55448 	unsigned int retcycles = 0;
55449 	OpcodeFamily = 63; CurrentInstrCycles = 48;
55450 {{	uint32_t tmppc = m68k_getpc() + 2;
55451 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
55452 	BusCyclePenalty += 2;
55453 	if ((srca & 1) != 0) {
55454 		last_fault_for_exception_3 = srca;
55455 		last_op_for_exception_3 = opcode;
55456 		last_addr_for_exception_3 = m68k_getpc() + 4;
55457 		Exception(3, 0, M68000_EXC_SRC_CPU);
55458 		goto endlabel2969;
55459 	}
55460 {{	int16_t src = m68k_read_memory_16(srca);
55461 {	int16_t dst = m68k_dreg(regs, dstreg);
55462 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55463 	uint32_t src2;
55464 	CLEAR_CZNV;
55465 	SET_ZFLG (((int32_t)(newv)) == 0);
55466 	SET_NFLG (((int32_t)(newv)) < 0);
55467 	m68k_dreg(regs, dstreg) = (newv);
55468 	src2 = ((uint32_t)src) << 1;
55469 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55470 }}}}}}m68k_incpc(4);
55471 fill_prefetch_0 ();
55472 endlabel2969: ;
55473  return (48+retcycles*2);
55474 }
CPUFUNC(op_c1fc_5)55475 unsigned long CPUFUNC(op_c1fc_5)(uint32_t opcode) /* MULS */
55476 {
55477 	uint32_t dstreg = (opcode >> 9) & 7;
55478 	unsigned int retcycles = 0;
55479 	OpcodeFamily = 63; CurrentInstrCycles = 42;
55480 {{	int16_t src = get_iword_prefetch(2);
55481 {	int16_t dst = m68k_dreg(regs, dstreg);
55482 {	uint32_t newv = (int32_t)(int16_t)dst * (int32_t)(int16_t)src;
55483 	uint32_t src2;
55484 	CLEAR_CZNV;
55485 	SET_ZFLG (((int32_t)(newv)) == 0);
55486 	SET_NFLG (((int32_t)(newv)) < 0);
55487 	m68k_dreg(regs, dstreg) = (newv);
55488 	src2 = ((uint32_t)src) << 1;
55489 	while (src2) { if ( ( (src2 & 3) == 1 ) || ( (src2 & 3) == 2 ) ) retcycles++; src2 >>= 1; }
55490 }}}}m68k_incpc(4);
55491 fill_prefetch_0 ();
55492  return (42+retcycles*2);
55493 }
CPUFUNC(op_d000_5)55494 unsigned long CPUFUNC(op_d000_5)(uint32_t opcode) /* ADD */
55495 {
55496 	uint32_t srcreg = (opcode & 7);
55497 	uint32_t dstreg = (opcode >> 9) & 7;
55498 	OpcodeFamily = 11; CurrentInstrCycles = 4;
55499 {{	int8_t src = m68k_dreg(regs, srcreg);
55500 {	int8_t dst = m68k_dreg(regs, dstreg);
55501 {	refill_prefetch (m68k_getpc(), 2);
55502 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55503 {	int flgs = ((int8_t)(src)) < 0;
55504 	int flgo = ((int8_t)(dst)) < 0;
55505 	int flgn = ((int8_t)(newv)) < 0;
55506 	SET_ZFLG (((int8_t)(newv)) == 0);
55507 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55508 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55509 	COPY_CARRY;
55510 	SET_NFLG (flgn != 0);
55511 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55512 }}}}}}m68k_incpc(2);
55513 fill_prefetch_2 ();
55514 return 4;
55515 }
CPUFUNC(op_d010_5)55516 unsigned long CPUFUNC(op_d010_5)(uint32_t opcode) /* ADD */
55517 {
55518 	uint32_t srcreg = (opcode & 7);
55519 	uint32_t dstreg = (opcode >> 9) & 7;
55520 	OpcodeFamily = 11; CurrentInstrCycles = 8;
55521 {{	uint32_t srca = m68k_areg(regs, srcreg);
55522 {	int8_t src = m68k_read_memory_8(srca);
55523 {	int8_t dst = m68k_dreg(regs, dstreg);
55524 {	refill_prefetch (m68k_getpc(), 2);
55525 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55526 {	int flgs = ((int8_t)(src)) < 0;
55527 	int flgo = ((int8_t)(dst)) < 0;
55528 	int flgn = ((int8_t)(newv)) < 0;
55529 	SET_ZFLG (((int8_t)(newv)) == 0);
55530 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55531 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55532 	COPY_CARRY;
55533 	SET_NFLG (flgn != 0);
55534 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55535 }}}}}}}m68k_incpc(2);
55536 fill_prefetch_2 ();
55537 return 8;
55538 }
CPUFUNC(op_d018_5)55539 unsigned long CPUFUNC(op_d018_5)(uint32_t opcode) /* ADD */
55540 {
55541 	uint32_t srcreg = (opcode & 7);
55542 	uint32_t dstreg = (opcode >> 9) & 7;
55543 	OpcodeFamily = 11; CurrentInstrCycles = 8;
55544 {{	uint32_t srca = m68k_areg(regs, srcreg);
55545 {	int8_t src = m68k_read_memory_8(srca);
55546 	m68k_areg(regs, srcreg) += areg_byteinc[srcreg];
55547 {	int8_t dst = m68k_dreg(regs, dstreg);
55548 {	refill_prefetch (m68k_getpc(), 2);
55549 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55550 {	int flgs = ((int8_t)(src)) < 0;
55551 	int flgo = ((int8_t)(dst)) < 0;
55552 	int flgn = ((int8_t)(newv)) < 0;
55553 	SET_ZFLG (((int8_t)(newv)) == 0);
55554 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55555 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55556 	COPY_CARRY;
55557 	SET_NFLG (flgn != 0);
55558 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55559 }}}}}}}m68k_incpc(2);
55560 fill_prefetch_2 ();
55561 return 8;
55562 }
CPUFUNC(op_d020_5)55563 unsigned long CPUFUNC(op_d020_5)(uint32_t opcode) /* ADD */
55564 {
55565 	uint32_t srcreg = (opcode & 7);
55566 	uint32_t dstreg = (opcode >> 9) & 7;
55567 	OpcodeFamily = 11; CurrentInstrCycles = 10;
55568 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
55569 {	int8_t src = m68k_read_memory_8(srca);
55570 	m68k_areg (regs, srcreg) = srca;
55571 {	int8_t dst = m68k_dreg(regs, dstreg);
55572 {	refill_prefetch (m68k_getpc(), 2);
55573 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55574 {	int flgs = ((int8_t)(src)) < 0;
55575 	int flgo = ((int8_t)(dst)) < 0;
55576 	int flgn = ((int8_t)(newv)) < 0;
55577 	SET_ZFLG (((int8_t)(newv)) == 0);
55578 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55579 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55580 	COPY_CARRY;
55581 	SET_NFLG (flgn != 0);
55582 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55583 }}}}}}}m68k_incpc(2);
55584 fill_prefetch_2 ();
55585 return 10;
55586 }
CPUFUNC(op_d028_5)55587 unsigned long CPUFUNC(op_d028_5)(uint32_t opcode) /* ADD */
55588 {
55589 	uint32_t srcreg = (opcode & 7);
55590 	uint32_t dstreg = (opcode >> 9) & 7;
55591 	OpcodeFamily = 11; CurrentInstrCycles = 12;
55592 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
55593 {	int8_t src = m68k_read_memory_8(srca);
55594 {	int8_t dst = m68k_dreg(regs, dstreg);
55595 {	refill_prefetch (m68k_getpc(), 2);
55596 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55597 {	int flgs = ((int8_t)(src)) < 0;
55598 	int flgo = ((int8_t)(dst)) < 0;
55599 	int flgn = ((int8_t)(newv)) < 0;
55600 	SET_ZFLG (((int8_t)(newv)) == 0);
55601 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55602 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55603 	COPY_CARRY;
55604 	SET_NFLG (flgn != 0);
55605 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55606 }}}}}}}m68k_incpc(4);
55607 fill_prefetch_0 ();
55608 return 12;
55609 }
CPUFUNC(op_d030_5)55610 unsigned long CPUFUNC(op_d030_5)(uint32_t opcode) /* ADD */
55611 {
55612 	uint32_t srcreg = (opcode & 7);
55613 	uint32_t dstreg = (opcode >> 9) & 7;
55614 	OpcodeFamily = 11; CurrentInstrCycles = 14;
55615 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
55616 	BusCyclePenalty += 2;
55617 {	int8_t src = m68k_read_memory_8(srca);
55618 {	int8_t dst = m68k_dreg(regs, dstreg);
55619 {	refill_prefetch (m68k_getpc(), 2);
55620 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55621 {	int flgs = ((int8_t)(src)) < 0;
55622 	int flgo = ((int8_t)(dst)) < 0;
55623 	int flgn = ((int8_t)(newv)) < 0;
55624 	SET_ZFLG (((int8_t)(newv)) == 0);
55625 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55626 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55627 	COPY_CARRY;
55628 	SET_NFLG (flgn != 0);
55629 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55630 }}}}}}}m68k_incpc(4);
55631 fill_prefetch_0 ();
55632 return 14;
55633 }
CPUFUNC(op_d038_5)55634 unsigned long CPUFUNC(op_d038_5)(uint32_t opcode) /* ADD */
55635 {
55636 	uint32_t dstreg = (opcode >> 9) & 7;
55637 	OpcodeFamily = 11; CurrentInstrCycles = 12;
55638 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
55639 {	int8_t src = m68k_read_memory_8(srca);
55640 {	int8_t dst = m68k_dreg(regs, dstreg);
55641 {	refill_prefetch (m68k_getpc(), 2);
55642 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55643 {	int flgs = ((int8_t)(src)) < 0;
55644 	int flgo = ((int8_t)(dst)) < 0;
55645 	int flgn = ((int8_t)(newv)) < 0;
55646 	SET_ZFLG (((int8_t)(newv)) == 0);
55647 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55648 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55649 	COPY_CARRY;
55650 	SET_NFLG (flgn != 0);
55651 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55652 }}}}}}}m68k_incpc(4);
55653 fill_prefetch_0 ();
55654 return 12;
55655 }
CPUFUNC(op_d039_5)55656 unsigned long CPUFUNC(op_d039_5)(uint32_t opcode) /* ADD */
55657 {
55658 	uint32_t dstreg = (opcode >> 9) & 7;
55659 	OpcodeFamily = 11; CurrentInstrCycles = 16;
55660 {{	uint32_t srca = get_ilong_prefetch(2);
55661 {	int8_t src = m68k_read_memory_8(srca);
55662 {	int8_t dst = m68k_dreg(regs, dstreg);
55663 {	refill_prefetch (m68k_getpc(), 2);
55664 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55665 {	int flgs = ((int8_t)(src)) < 0;
55666 	int flgo = ((int8_t)(dst)) < 0;
55667 	int flgn = ((int8_t)(newv)) < 0;
55668 	SET_ZFLG (((int8_t)(newv)) == 0);
55669 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55670 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55671 	COPY_CARRY;
55672 	SET_NFLG (flgn != 0);
55673 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55674 }}}}}}}m68k_incpc(6);
55675 fill_prefetch_0 ();
55676 return 16;
55677 }
CPUFUNC(op_d03a_5)55678 unsigned long CPUFUNC(op_d03a_5)(uint32_t opcode) /* ADD */
55679 {
55680 	uint32_t dstreg = (opcode >> 9) & 7;
55681 	OpcodeFamily = 11; CurrentInstrCycles = 12;
55682 {{	uint32_t srca = m68k_getpc () + 2;
55683 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
55684 {	int8_t src = m68k_read_memory_8(srca);
55685 {	int8_t dst = m68k_dreg(regs, dstreg);
55686 {	refill_prefetch (m68k_getpc(), 2);
55687 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55688 {	int flgs = ((int8_t)(src)) < 0;
55689 	int flgo = ((int8_t)(dst)) < 0;
55690 	int flgn = ((int8_t)(newv)) < 0;
55691 	SET_ZFLG (((int8_t)(newv)) == 0);
55692 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55693 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55694 	COPY_CARRY;
55695 	SET_NFLG (flgn != 0);
55696 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55697 }}}}}}}m68k_incpc(4);
55698 fill_prefetch_0 ();
55699 return 12;
55700 }
CPUFUNC(op_d03b_5)55701 unsigned long CPUFUNC(op_d03b_5)(uint32_t opcode) /* ADD */
55702 {
55703 	uint32_t dstreg = (opcode >> 9) & 7;
55704 	OpcodeFamily = 11; CurrentInstrCycles = 14;
55705 {{	uint32_t tmppc = m68k_getpc() + 2;
55706 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
55707 	BusCyclePenalty += 2;
55708 {	int8_t src = m68k_read_memory_8(srca);
55709 {	int8_t dst = m68k_dreg(regs, dstreg);
55710 {	refill_prefetch (m68k_getpc(), 2);
55711 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55712 {	int flgs = ((int8_t)(src)) < 0;
55713 	int flgo = ((int8_t)(dst)) < 0;
55714 	int flgn = ((int8_t)(newv)) < 0;
55715 	SET_ZFLG (((int8_t)(newv)) == 0);
55716 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55717 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55718 	COPY_CARRY;
55719 	SET_NFLG (flgn != 0);
55720 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55721 }}}}}}}m68k_incpc(4);
55722 fill_prefetch_0 ();
55723 return 14;
55724 }
CPUFUNC(op_d03c_5)55725 unsigned long CPUFUNC(op_d03c_5)(uint32_t opcode) /* ADD */
55726 {
55727 	uint32_t dstreg = (opcode >> 9) & 7;
55728 	OpcodeFamily = 11; CurrentInstrCycles = 8;
55729 {{	int8_t src = get_ibyte_prefetch(2);
55730 {	int8_t dst = m68k_dreg(regs, dstreg);
55731 {	refill_prefetch (m68k_getpc(), 2);
55732 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
55733 {	int flgs = ((int8_t)(src)) < 0;
55734 	int flgo = ((int8_t)(dst)) < 0;
55735 	int flgn = ((int8_t)(newv)) < 0;
55736 	SET_ZFLG (((int8_t)(newv)) == 0);
55737 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55738 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
55739 	COPY_CARRY;
55740 	SET_NFLG (flgn != 0);
55741 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
55742 }}}}}}m68k_incpc(4);
55743 fill_prefetch_0 ();
55744 return 8;
55745 }
CPUFUNC(op_d040_5)55746 unsigned long CPUFUNC(op_d040_5)(uint32_t opcode) /* ADD */
55747 {
55748 	uint32_t srcreg = (opcode & 7);
55749 	uint32_t dstreg = (opcode >> 9) & 7;
55750 	OpcodeFamily = 11; CurrentInstrCycles = 4;
55751 {{	int16_t src = m68k_dreg(regs, srcreg);
55752 {	int16_t dst = m68k_dreg(regs, dstreg);
55753 {	refill_prefetch (m68k_getpc(), 2);
55754 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55755 {	int flgs = ((int16_t)(src)) < 0;
55756 	int flgo = ((int16_t)(dst)) < 0;
55757 	int flgn = ((int16_t)(newv)) < 0;
55758 	SET_ZFLG (((int16_t)(newv)) == 0);
55759 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55760 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55761 	COPY_CARRY;
55762 	SET_NFLG (flgn != 0);
55763 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55764 }}}}}}m68k_incpc(2);
55765 fill_prefetch_2 ();
55766 return 4;
55767 }
CPUFUNC(op_d048_5)55768 unsigned long CPUFUNC(op_d048_5)(uint32_t opcode) /* ADD */
55769 {
55770 	uint32_t srcreg = (opcode & 7);
55771 	uint32_t dstreg = (opcode >> 9) & 7;
55772 	OpcodeFamily = 11; CurrentInstrCycles = 4;
55773 {{	int16_t src = m68k_areg(regs, srcreg);
55774 {	int16_t dst = m68k_dreg(regs, dstreg);
55775 {	refill_prefetch (m68k_getpc(), 2);
55776 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55777 {	int flgs = ((int16_t)(src)) < 0;
55778 	int flgo = ((int16_t)(dst)) < 0;
55779 	int flgn = ((int16_t)(newv)) < 0;
55780 	SET_ZFLG (((int16_t)(newv)) == 0);
55781 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55782 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55783 	COPY_CARRY;
55784 	SET_NFLG (flgn != 0);
55785 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55786 }}}}}}m68k_incpc(2);
55787 fill_prefetch_2 ();
55788 return 4;
55789 }
CPUFUNC(op_d050_5)55790 unsigned long CPUFUNC(op_d050_5)(uint32_t opcode) /* ADD */
55791 {
55792 	uint32_t srcreg = (opcode & 7);
55793 	uint32_t dstreg = (opcode >> 9) & 7;
55794 	OpcodeFamily = 11; CurrentInstrCycles = 8;
55795 {{	uint32_t srca = m68k_areg(regs, srcreg);
55796 	if ((srca & 1) != 0) {
55797 		last_fault_for_exception_3 = srca;
55798 		last_op_for_exception_3 = opcode;
55799 		last_addr_for_exception_3 = m68k_getpc() + 2;
55800 		Exception(3, 0, M68000_EXC_SRC_CPU);
55801 		goto endlabel2984;
55802 	}
55803 {{	int16_t src = m68k_read_memory_16(srca);
55804 {	int16_t dst = m68k_dreg(regs, dstreg);
55805 {	refill_prefetch (m68k_getpc(), 2);
55806 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55807 {	int flgs = ((int16_t)(src)) < 0;
55808 	int flgo = ((int16_t)(dst)) < 0;
55809 	int flgn = ((int16_t)(newv)) < 0;
55810 	SET_ZFLG (((int16_t)(newv)) == 0);
55811 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55812 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55813 	COPY_CARRY;
55814 	SET_NFLG (flgn != 0);
55815 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55816 }}}}}}}}m68k_incpc(2);
55817 fill_prefetch_2 ();
55818 endlabel2984: ;
55819 return 8;
55820 }
CPUFUNC(op_d058_5)55821 unsigned long CPUFUNC(op_d058_5)(uint32_t opcode) /* ADD */
55822 {
55823 	uint32_t srcreg = (opcode & 7);
55824 	uint32_t dstreg = (opcode >> 9) & 7;
55825 	OpcodeFamily = 11; CurrentInstrCycles = 8;
55826 {{	uint32_t srca = m68k_areg(regs, srcreg);
55827 	if ((srca & 1) != 0) {
55828 		last_fault_for_exception_3 = srca;
55829 		last_op_for_exception_3 = opcode;
55830 		last_addr_for_exception_3 = m68k_getpc() + 2;
55831 		Exception(3, 0, M68000_EXC_SRC_CPU);
55832 		goto endlabel2985;
55833 	}
55834 {{	int16_t src = m68k_read_memory_16(srca);
55835 	m68k_areg(regs, srcreg) += 2;
55836 {	int16_t dst = m68k_dreg(regs, dstreg);
55837 {	refill_prefetch (m68k_getpc(), 2);
55838 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55839 {	int flgs = ((int16_t)(src)) < 0;
55840 	int flgo = ((int16_t)(dst)) < 0;
55841 	int flgn = ((int16_t)(newv)) < 0;
55842 	SET_ZFLG (((int16_t)(newv)) == 0);
55843 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55844 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55845 	COPY_CARRY;
55846 	SET_NFLG (flgn != 0);
55847 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55848 }}}}}}}}m68k_incpc(2);
55849 fill_prefetch_2 ();
55850 endlabel2985: ;
55851 return 8;
55852 }
CPUFUNC(op_d060_5)55853 unsigned long CPUFUNC(op_d060_5)(uint32_t opcode) /* ADD */
55854 {
55855 	uint32_t srcreg = (opcode & 7);
55856 	uint32_t dstreg = (opcode >> 9) & 7;
55857 	OpcodeFamily = 11; CurrentInstrCycles = 10;
55858 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
55859 	if ((srca & 1) != 0) {
55860 		last_fault_for_exception_3 = srca;
55861 		last_op_for_exception_3 = opcode;
55862 		last_addr_for_exception_3 = m68k_getpc() + 2;
55863 		Exception(3, 0, M68000_EXC_SRC_CPU);
55864 		goto endlabel2986;
55865 	}
55866 {{	int16_t src = m68k_read_memory_16(srca);
55867 	m68k_areg (regs, srcreg) = srca;
55868 {	int16_t dst = m68k_dreg(regs, dstreg);
55869 {	refill_prefetch (m68k_getpc(), 2);
55870 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55871 {	int flgs = ((int16_t)(src)) < 0;
55872 	int flgo = ((int16_t)(dst)) < 0;
55873 	int flgn = ((int16_t)(newv)) < 0;
55874 	SET_ZFLG (((int16_t)(newv)) == 0);
55875 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55876 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55877 	COPY_CARRY;
55878 	SET_NFLG (flgn != 0);
55879 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55880 }}}}}}}}m68k_incpc(2);
55881 fill_prefetch_2 ();
55882 endlabel2986: ;
55883 return 10;
55884 }
CPUFUNC(op_d068_5)55885 unsigned long CPUFUNC(op_d068_5)(uint32_t opcode) /* ADD */
55886 {
55887 	uint32_t srcreg = (opcode & 7);
55888 	uint32_t dstreg = (opcode >> 9) & 7;
55889 	OpcodeFamily = 11; CurrentInstrCycles = 12;
55890 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
55891 	if ((srca & 1) != 0) {
55892 		last_fault_for_exception_3 = srca;
55893 		last_op_for_exception_3 = opcode;
55894 		last_addr_for_exception_3 = m68k_getpc() + 4;
55895 		Exception(3, 0, M68000_EXC_SRC_CPU);
55896 		goto endlabel2987;
55897 	}
55898 {{	int16_t src = m68k_read_memory_16(srca);
55899 {	int16_t dst = m68k_dreg(regs, dstreg);
55900 {	refill_prefetch (m68k_getpc(), 2);
55901 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55902 {	int flgs = ((int16_t)(src)) < 0;
55903 	int flgo = ((int16_t)(dst)) < 0;
55904 	int flgn = ((int16_t)(newv)) < 0;
55905 	SET_ZFLG (((int16_t)(newv)) == 0);
55906 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55907 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55908 	COPY_CARRY;
55909 	SET_NFLG (flgn != 0);
55910 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55911 }}}}}}}}m68k_incpc(4);
55912 fill_prefetch_0 ();
55913 endlabel2987: ;
55914 return 12;
55915 }
CPUFUNC(op_d070_5)55916 unsigned long CPUFUNC(op_d070_5)(uint32_t opcode) /* ADD */
55917 {
55918 	uint32_t srcreg = (opcode & 7);
55919 	uint32_t dstreg = (opcode >> 9) & 7;
55920 	OpcodeFamily = 11; CurrentInstrCycles = 14;
55921 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
55922 	BusCyclePenalty += 2;
55923 	if ((srca & 1) != 0) {
55924 		last_fault_for_exception_3 = srca;
55925 		last_op_for_exception_3 = opcode;
55926 		last_addr_for_exception_3 = m68k_getpc() + 4;
55927 		Exception(3, 0, M68000_EXC_SRC_CPU);
55928 		goto endlabel2988;
55929 	}
55930 {{	int16_t src = m68k_read_memory_16(srca);
55931 {	int16_t dst = m68k_dreg(regs, dstreg);
55932 {	refill_prefetch (m68k_getpc(), 2);
55933 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55934 {	int flgs = ((int16_t)(src)) < 0;
55935 	int flgo = ((int16_t)(dst)) < 0;
55936 	int flgn = ((int16_t)(newv)) < 0;
55937 	SET_ZFLG (((int16_t)(newv)) == 0);
55938 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55939 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55940 	COPY_CARRY;
55941 	SET_NFLG (flgn != 0);
55942 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55943 }}}}}}}}m68k_incpc(4);
55944 fill_prefetch_0 ();
55945 endlabel2988: ;
55946 return 14;
55947 }
CPUFUNC(op_d078_5)55948 unsigned long CPUFUNC(op_d078_5)(uint32_t opcode) /* ADD */
55949 {
55950 	uint32_t dstreg = (opcode >> 9) & 7;
55951 	OpcodeFamily = 11; CurrentInstrCycles = 12;
55952 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
55953 	if ((srca & 1) != 0) {
55954 		last_fault_for_exception_3 = srca;
55955 		last_op_for_exception_3 = opcode;
55956 		last_addr_for_exception_3 = m68k_getpc() + 4;
55957 		Exception(3, 0, M68000_EXC_SRC_CPU);
55958 		goto endlabel2989;
55959 	}
55960 {{	int16_t src = m68k_read_memory_16(srca);
55961 {	int16_t dst = m68k_dreg(regs, dstreg);
55962 {	refill_prefetch (m68k_getpc(), 2);
55963 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55964 {	int flgs = ((int16_t)(src)) < 0;
55965 	int flgo = ((int16_t)(dst)) < 0;
55966 	int flgn = ((int16_t)(newv)) < 0;
55967 	SET_ZFLG (((int16_t)(newv)) == 0);
55968 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55969 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
55970 	COPY_CARRY;
55971 	SET_NFLG (flgn != 0);
55972 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
55973 }}}}}}}}m68k_incpc(4);
55974 fill_prefetch_0 ();
55975 endlabel2989: ;
55976 return 12;
55977 }
CPUFUNC(op_d079_5)55978 unsigned long CPUFUNC(op_d079_5)(uint32_t opcode) /* ADD */
55979 {
55980 	uint32_t dstreg = (opcode >> 9) & 7;
55981 	OpcodeFamily = 11; CurrentInstrCycles = 16;
55982 {{	uint32_t srca = get_ilong_prefetch(2);
55983 	if ((srca & 1) != 0) {
55984 		last_fault_for_exception_3 = srca;
55985 		last_op_for_exception_3 = opcode;
55986 		last_addr_for_exception_3 = m68k_getpc() + 6;
55987 		Exception(3, 0, M68000_EXC_SRC_CPU);
55988 		goto endlabel2990;
55989 	}
55990 {{	int16_t src = m68k_read_memory_16(srca);
55991 {	int16_t dst = m68k_dreg(regs, dstreg);
55992 {	refill_prefetch (m68k_getpc(), 2);
55993 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
55994 {	int flgs = ((int16_t)(src)) < 0;
55995 	int flgo = ((int16_t)(dst)) < 0;
55996 	int flgn = ((int16_t)(newv)) < 0;
55997 	SET_ZFLG (((int16_t)(newv)) == 0);
55998 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
55999 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
56000 	COPY_CARRY;
56001 	SET_NFLG (flgn != 0);
56002 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
56003 }}}}}}}}m68k_incpc(6);
56004 fill_prefetch_0 ();
56005 endlabel2990: ;
56006 return 16;
56007 }
CPUFUNC(op_d07a_5)56008 unsigned long CPUFUNC(op_d07a_5)(uint32_t opcode) /* ADD */
56009 {
56010 	uint32_t dstreg = (opcode >> 9) & 7;
56011 	OpcodeFamily = 11; CurrentInstrCycles = 12;
56012 {{	uint32_t srca = m68k_getpc () + 2;
56013 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
56014 	if ((srca & 1) != 0) {
56015 		last_fault_for_exception_3 = srca;
56016 		last_op_for_exception_3 = opcode;
56017 		last_addr_for_exception_3 = m68k_getpc() + 4;
56018 		Exception(3, 0, M68000_EXC_SRC_CPU);
56019 		goto endlabel2991;
56020 	}
56021 {{	int16_t src = m68k_read_memory_16(srca);
56022 {	int16_t dst = m68k_dreg(regs, dstreg);
56023 {	refill_prefetch (m68k_getpc(), 2);
56024 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
56025 {	int flgs = ((int16_t)(src)) < 0;
56026 	int flgo = ((int16_t)(dst)) < 0;
56027 	int flgn = ((int16_t)(newv)) < 0;
56028 	SET_ZFLG (((int16_t)(newv)) == 0);
56029 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56030 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
56031 	COPY_CARRY;
56032 	SET_NFLG (flgn != 0);
56033 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
56034 }}}}}}}}m68k_incpc(4);
56035 fill_prefetch_0 ();
56036 endlabel2991: ;
56037 return 12;
56038 }
CPUFUNC(op_d07b_5)56039 unsigned long CPUFUNC(op_d07b_5)(uint32_t opcode) /* ADD */
56040 {
56041 	uint32_t dstreg = (opcode >> 9) & 7;
56042 	OpcodeFamily = 11; CurrentInstrCycles = 14;
56043 {{	uint32_t tmppc = m68k_getpc() + 2;
56044 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
56045 	BusCyclePenalty += 2;
56046 	if ((srca & 1) != 0) {
56047 		last_fault_for_exception_3 = srca;
56048 		last_op_for_exception_3 = opcode;
56049 		last_addr_for_exception_3 = m68k_getpc() + 4;
56050 		Exception(3, 0, M68000_EXC_SRC_CPU);
56051 		goto endlabel2992;
56052 	}
56053 {{	int16_t src = m68k_read_memory_16(srca);
56054 {	int16_t dst = m68k_dreg(regs, dstreg);
56055 {	refill_prefetch (m68k_getpc(), 2);
56056 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
56057 {	int flgs = ((int16_t)(src)) < 0;
56058 	int flgo = ((int16_t)(dst)) < 0;
56059 	int flgn = ((int16_t)(newv)) < 0;
56060 	SET_ZFLG (((int16_t)(newv)) == 0);
56061 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56062 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
56063 	COPY_CARRY;
56064 	SET_NFLG (flgn != 0);
56065 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
56066 }}}}}}}}m68k_incpc(4);
56067 fill_prefetch_0 ();
56068 endlabel2992: ;
56069 return 14;
56070 }
CPUFUNC(op_d07c_5)56071 unsigned long CPUFUNC(op_d07c_5)(uint32_t opcode) /* ADD */
56072 {
56073 	uint32_t dstreg = (opcode >> 9) & 7;
56074 	OpcodeFamily = 11; CurrentInstrCycles = 8;
56075 {{	int16_t src = get_iword_prefetch(2);
56076 {	int16_t dst = m68k_dreg(regs, dstreg);
56077 {	refill_prefetch (m68k_getpc(), 2);
56078 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
56079 {	int flgs = ((int16_t)(src)) < 0;
56080 	int flgo = ((int16_t)(dst)) < 0;
56081 	int flgn = ((int16_t)(newv)) < 0;
56082 	SET_ZFLG (((int16_t)(newv)) == 0);
56083 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56084 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
56085 	COPY_CARRY;
56086 	SET_NFLG (flgn != 0);
56087 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
56088 }}}}}}m68k_incpc(4);
56089 fill_prefetch_0 ();
56090 return 8;
56091 }
CPUFUNC(op_d080_5)56092 unsigned long CPUFUNC(op_d080_5)(uint32_t opcode) /* ADD */
56093 {
56094 	uint32_t srcreg = (opcode & 7);
56095 	uint32_t dstreg = (opcode >> 9) & 7;
56096 	OpcodeFamily = 11; CurrentInstrCycles = 8;
56097 {{	int32_t src = m68k_dreg(regs, srcreg);
56098 {	int32_t dst = m68k_dreg(regs, dstreg);
56099 {	refill_prefetch (m68k_getpc(), 2);
56100 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56101 {	int flgs = ((int32_t)(src)) < 0;
56102 	int flgo = ((int32_t)(dst)) < 0;
56103 	int flgn = ((int32_t)(newv)) < 0;
56104 	SET_ZFLG (((int32_t)(newv)) == 0);
56105 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56106 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56107 	COPY_CARRY;
56108 	SET_NFLG (flgn != 0);
56109 	m68k_dreg(regs, dstreg) = (newv);
56110 }}}}}}m68k_incpc(2);
56111 fill_prefetch_2 ();
56112 return 8;
56113 }
CPUFUNC(op_d088_5)56114 unsigned long CPUFUNC(op_d088_5)(uint32_t opcode) /* ADD */
56115 {
56116 	uint32_t srcreg = (opcode & 7);
56117 	uint32_t dstreg = (opcode >> 9) & 7;
56118 	OpcodeFamily = 11; CurrentInstrCycles = 8;
56119 {{	int32_t src = m68k_areg(regs, srcreg);
56120 {	int32_t dst = m68k_dreg(regs, dstreg);
56121 {	refill_prefetch (m68k_getpc(), 2);
56122 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56123 {	int flgs = ((int32_t)(src)) < 0;
56124 	int flgo = ((int32_t)(dst)) < 0;
56125 	int flgn = ((int32_t)(newv)) < 0;
56126 	SET_ZFLG (((int32_t)(newv)) == 0);
56127 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56128 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56129 	COPY_CARRY;
56130 	SET_NFLG (flgn != 0);
56131 	m68k_dreg(regs, dstreg) = (newv);
56132 }}}}}}m68k_incpc(2);
56133 fill_prefetch_2 ();
56134 return 8;
56135 }
CPUFUNC(op_d090_5)56136 unsigned long CPUFUNC(op_d090_5)(uint32_t opcode) /* ADD */
56137 {
56138 	uint32_t srcreg = (opcode & 7);
56139 	uint32_t dstreg = (opcode >> 9) & 7;
56140 	OpcodeFamily = 11; CurrentInstrCycles = 14;
56141 {{	uint32_t srca = m68k_areg(regs, srcreg);
56142 	if ((srca & 1) != 0) {
56143 		last_fault_for_exception_3 = srca;
56144 		last_op_for_exception_3 = opcode;
56145 		last_addr_for_exception_3 = m68k_getpc() + 2;
56146 		Exception(3, 0, M68000_EXC_SRC_CPU);
56147 		goto endlabel2996;
56148 	}
56149 {{	int32_t src = m68k_read_memory_32(srca);
56150 {	int32_t dst = m68k_dreg(regs, dstreg);
56151 {	refill_prefetch (m68k_getpc(), 2);
56152 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56153 {	int flgs = ((int32_t)(src)) < 0;
56154 	int flgo = ((int32_t)(dst)) < 0;
56155 	int flgn = ((int32_t)(newv)) < 0;
56156 	SET_ZFLG (((int32_t)(newv)) == 0);
56157 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56158 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56159 	COPY_CARRY;
56160 	SET_NFLG (flgn != 0);
56161 	m68k_dreg(regs, dstreg) = (newv);
56162 }}}}}}}}m68k_incpc(2);
56163 fill_prefetch_2 ();
56164 endlabel2996: ;
56165 return 14;
56166 }
CPUFUNC(op_d098_5)56167 unsigned long CPUFUNC(op_d098_5)(uint32_t opcode) /* ADD */
56168 {
56169 	uint32_t srcreg = (opcode & 7);
56170 	uint32_t dstreg = (opcode >> 9) & 7;
56171 	OpcodeFamily = 11; CurrentInstrCycles = 14;
56172 {{	uint32_t srca = m68k_areg(regs, srcreg);
56173 	if ((srca & 1) != 0) {
56174 		last_fault_for_exception_3 = srca;
56175 		last_op_for_exception_3 = opcode;
56176 		last_addr_for_exception_3 = m68k_getpc() + 2;
56177 		Exception(3, 0, M68000_EXC_SRC_CPU);
56178 		goto endlabel2997;
56179 	}
56180 {{	int32_t src = m68k_read_memory_32(srca);
56181 	m68k_areg(regs, srcreg) += 4;
56182 {	int32_t dst = m68k_dreg(regs, dstreg);
56183 {	refill_prefetch (m68k_getpc(), 2);
56184 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56185 {	int flgs = ((int32_t)(src)) < 0;
56186 	int flgo = ((int32_t)(dst)) < 0;
56187 	int flgn = ((int32_t)(newv)) < 0;
56188 	SET_ZFLG (((int32_t)(newv)) == 0);
56189 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56190 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56191 	COPY_CARRY;
56192 	SET_NFLG (flgn != 0);
56193 	m68k_dreg(regs, dstreg) = (newv);
56194 }}}}}}}}m68k_incpc(2);
56195 fill_prefetch_2 ();
56196 endlabel2997: ;
56197 return 14;
56198 }
CPUFUNC(op_d0a0_5)56199 unsigned long CPUFUNC(op_d0a0_5)(uint32_t opcode) /* ADD */
56200 {
56201 	uint32_t srcreg = (opcode & 7);
56202 	uint32_t dstreg = (opcode >> 9) & 7;
56203 	OpcodeFamily = 11; CurrentInstrCycles = 16;
56204 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
56205 	if ((srca & 1) != 0) {
56206 		last_fault_for_exception_3 = srca;
56207 		last_op_for_exception_3 = opcode;
56208 		last_addr_for_exception_3 = m68k_getpc() + 2;
56209 		Exception(3, 0, M68000_EXC_SRC_CPU);
56210 		goto endlabel2998;
56211 	}
56212 {{	int32_t src = m68k_read_memory_32(srca);
56213 	m68k_areg (regs, srcreg) = srca;
56214 {	int32_t dst = m68k_dreg(regs, dstreg);
56215 {	refill_prefetch (m68k_getpc(), 2);
56216 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56217 {	int flgs = ((int32_t)(src)) < 0;
56218 	int flgo = ((int32_t)(dst)) < 0;
56219 	int flgn = ((int32_t)(newv)) < 0;
56220 	SET_ZFLG (((int32_t)(newv)) == 0);
56221 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56222 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56223 	COPY_CARRY;
56224 	SET_NFLG (flgn != 0);
56225 	m68k_dreg(regs, dstreg) = (newv);
56226 }}}}}}}}m68k_incpc(2);
56227 fill_prefetch_2 ();
56228 endlabel2998: ;
56229 return 16;
56230 }
CPUFUNC(op_d0a8_5)56231 unsigned long CPUFUNC(op_d0a8_5)(uint32_t opcode) /* ADD */
56232 {
56233 	uint32_t srcreg = (opcode & 7);
56234 	uint32_t dstreg = (opcode >> 9) & 7;
56235 	OpcodeFamily = 11; CurrentInstrCycles = 18;
56236 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
56237 	if ((srca & 1) != 0) {
56238 		last_fault_for_exception_3 = srca;
56239 		last_op_for_exception_3 = opcode;
56240 		last_addr_for_exception_3 = m68k_getpc() + 4;
56241 		Exception(3, 0, M68000_EXC_SRC_CPU);
56242 		goto endlabel2999;
56243 	}
56244 {{	int32_t src = m68k_read_memory_32(srca);
56245 {	int32_t dst = m68k_dreg(regs, dstreg);
56246 {	refill_prefetch (m68k_getpc(), 2);
56247 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56248 {	int flgs = ((int32_t)(src)) < 0;
56249 	int flgo = ((int32_t)(dst)) < 0;
56250 	int flgn = ((int32_t)(newv)) < 0;
56251 	SET_ZFLG (((int32_t)(newv)) == 0);
56252 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56253 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56254 	COPY_CARRY;
56255 	SET_NFLG (flgn != 0);
56256 	m68k_dreg(regs, dstreg) = (newv);
56257 }}}}}}}}m68k_incpc(4);
56258 fill_prefetch_0 ();
56259 endlabel2999: ;
56260 return 18;
56261 }
CPUFUNC(op_d0b0_5)56262 unsigned long CPUFUNC(op_d0b0_5)(uint32_t opcode) /* ADD */
56263 {
56264 	uint32_t srcreg = (opcode & 7);
56265 	uint32_t dstreg = (opcode >> 9) & 7;
56266 	OpcodeFamily = 11; CurrentInstrCycles = 20;
56267 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
56268 	BusCyclePenalty += 2;
56269 	if ((srca & 1) != 0) {
56270 		last_fault_for_exception_3 = srca;
56271 		last_op_for_exception_3 = opcode;
56272 		last_addr_for_exception_3 = m68k_getpc() + 4;
56273 		Exception(3, 0, M68000_EXC_SRC_CPU);
56274 		goto endlabel3000;
56275 	}
56276 {{	int32_t src = m68k_read_memory_32(srca);
56277 {	int32_t dst = m68k_dreg(regs, dstreg);
56278 {	refill_prefetch (m68k_getpc(), 2);
56279 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56280 {	int flgs = ((int32_t)(src)) < 0;
56281 	int flgo = ((int32_t)(dst)) < 0;
56282 	int flgn = ((int32_t)(newv)) < 0;
56283 	SET_ZFLG (((int32_t)(newv)) == 0);
56284 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56285 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56286 	COPY_CARRY;
56287 	SET_NFLG (flgn != 0);
56288 	m68k_dreg(regs, dstreg) = (newv);
56289 }}}}}}}}m68k_incpc(4);
56290 fill_prefetch_0 ();
56291 endlabel3000: ;
56292 return 20;
56293 }
CPUFUNC(op_d0b8_5)56294 unsigned long CPUFUNC(op_d0b8_5)(uint32_t opcode) /* ADD */
56295 {
56296 	uint32_t dstreg = (opcode >> 9) & 7;
56297 	OpcodeFamily = 11; CurrentInstrCycles = 18;
56298 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
56299 	if ((srca & 1) != 0) {
56300 		last_fault_for_exception_3 = srca;
56301 		last_op_for_exception_3 = opcode;
56302 		last_addr_for_exception_3 = m68k_getpc() + 4;
56303 		Exception(3, 0, M68000_EXC_SRC_CPU);
56304 		goto endlabel3001;
56305 	}
56306 {{	int32_t src = m68k_read_memory_32(srca);
56307 {	int32_t dst = m68k_dreg(regs, dstreg);
56308 {	refill_prefetch (m68k_getpc(), 2);
56309 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56310 {	int flgs = ((int32_t)(src)) < 0;
56311 	int flgo = ((int32_t)(dst)) < 0;
56312 	int flgn = ((int32_t)(newv)) < 0;
56313 	SET_ZFLG (((int32_t)(newv)) == 0);
56314 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56315 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56316 	COPY_CARRY;
56317 	SET_NFLG (flgn != 0);
56318 	m68k_dreg(regs, dstreg) = (newv);
56319 }}}}}}}}m68k_incpc(4);
56320 fill_prefetch_0 ();
56321 endlabel3001: ;
56322 return 18;
56323 }
CPUFUNC(op_d0b9_5)56324 unsigned long CPUFUNC(op_d0b9_5)(uint32_t opcode) /* ADD */
56325 {
56326 	uint32_t dstreg = (opcode >> 9) & 7;
56327 	OpcodeFamily = 11; CurrentInstrCycles = 22;
56328 {{	uint32_t srca = get_ilong_prefetch(2);
56329 	if ((srca & 1) != 0) {
56330 		last_fault_for_exception_3 = srca;
56331 		last_op_for_exception_3 = opcode;
56332 		last_addr_for_exception_3 = m68k_getpc() + 6;
56333 		Exception(3, 0, M68000_EXC_SRC_CPU);
56334 		goto endlabel3002;
56335 	}
56336 {{	int32_t src = m68k_read_memory_32(srca);
56337 {	int32_t dst = m68k_dreg(regs, dstreg);
56338 {	refill_prefetch (m68k_getpc(), 2);
56339 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56340 {	int flgs = ((int32_t)(src)) < 0;
56341 	int flgo = ((int32_t)(dst)) < 0;
56342 	int flgn = ((int32_t)(newv)) < 0;
56343 	SET_ZFLG (((int32_t)(newv)) == 0);
56344 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56345 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56346 	COPY_CARRY;
56347 	SET_NFLG (flgn != 0);
56348 	m68k_dreg(regs, dstreg) = (newv);
56349 }}}}}}}}m68k_incpc(6);
56350 fill_prefetch_0 ();
56351 endlabel3002: ;
56352 return 22;
56353 }
CPUFUNC(op_d0ba_5)56354 unsigned long CPUFUNC(op_d0ba_5)(uint32_t opcode) /* ADD */
56355 {
56356 	uint32_t dstreg = (opcode >> 9) & 7;
56357 	OpcodeFamily = 11; CurrentInstrCycles = 18;
56358 {{	uint32_t srca = m68k_getpc () + 2;
56359 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
56360 	if ((srca & 1) != 0) {
56361 		last_fault_for_exception_3 = srca;
56362 		last_op_for_exception_3 = opcode;
56363 		last_addr_for_exception_3 = m68k_getpc() + 4;
56364 		Exception(3, 0, M68000_EXC_SRC_CPU);
56365 		goto endlabel3003;
56366 	}
56367 {{	int32_t src = m68k_read_memory_32(srca);
56368 {	int32_t dst = m68k_dreg(regs, dstreg);
56369 {	refill_prefetch (m68k_getpc(), 2);
56370 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56371 {	int flgs = ((int32_t)(src)) < 0;
56372 	int flgo = ((int32_t)(dst)) < 0;
56373 	int flgn = ((int32_t)(newv)) < 0;
56374 	SET_ZFLG (((int32_t)(newv)) == 0);
56375 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56376 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56377 	COPY_CARRY;
56378 	SET_NFLG (flgn != 0);
56379 	m68k_dreg(regs, dstreg) = (newv);
56380 }}}}}}}}m68k_incpc(4);
56381 fill_prefetch_0 ();
56382 endlabel3003: ;
56383 return 18;
56384 }
CPUFUNC(op_d0bb_5)56385 unsigned long CPUFUNC(op_d0bb_5)(uint32_t opcode) /* ADD */
56386 {
56387 	uint32_t dstreg = (opcode >> 9) & 7;
56388 	OpcodeFamily = 11; CurrentInstrCycles = 20;
56389 {{	uint32_t tmppc = m68k_getpc() + 2;
56390 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
56391 	BusCyclePenalty += 2;
56392 	if ((srca & 1) != 0) {
56393 		last_fault_for_exception_3 = srca;
56394 		last_op_for_exception_3 = opcode;
56395 		last_addr_for_exception_3 = m68k_getpc() + 4;
56396 		Exception(3, 0, M68000_EXC_SRC_CPU);
56397 		goto endlabel3004;
56398 	}
56399 {{	int32_t src = m68k_read_memory_32(srca);
56400 {	int32_t dst = m68k_dreg(regs, dstreg);
56401 {	refill_prefetch (m68k_getpc(), 2);
56402 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56403 {	int flgs = ((int32_t)(src)) < 0;
56404 	int flgo = ((int32_t)(dst)) < 0;
56405 	int flgn = ((int32_t)(newv)) < 0;
56406 	SET_ZFLG (((int32_t)(newv)) == 0);
56407 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56408 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56409 	COPY_CARRY;
56410 	SET_NFLG (flgn != 0);
56411 	m68k_dreg(regs, dstreg) = (newv);
56412 }}}}}}}}m68k_incpc(4);
56413 fill_prefetch_0 ();
56414 endlabel3004: ;
56415 return 20;
56416 }
CPUFUNC(op_d0bc_5)56417 unsigned long CPUFUNC(op_d0bc_5)(uint32_t opcode) /* ADD */
56418 {
56419 	uint32_t dstreg = (opcode >> 9) & 7;
56420 	OpcodeFamily = 11; CurrentInstrCycles = 16;
56421 {{	int32_t src = get_ilong_prefetch(2);
56422 {	int32_t dst = m68k_dreg(regs, dstreg);
56423 {	refill_prefetch (m68k_getpc(), 2);
56424 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
56425 {	int flgs = ((int32_t)(src)) < 0;
56426 	int flgo = ((int32_t)(dst)) < 0;
56427 	int flgn = ((int32_t)(newv)) < 0;
56428 	SET_ZFLG (((int32_t)(newv)) == 0);
56429 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56430 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
56431 	COPY_CARRY;
56432 	SET_NFLG (flgn != 0);
56433 	m68k_dreg(regs, dstreg) = (newv);
56434 }}}}}}m68k_incpc(6);
56435 fill_prefetch_0 ();
56436 return 16;
56437 }
CPUFUNC(op_d0c0_5)56438 unsigned long CPUFUNC(op_d0c0_5)(uint32_t opcode) /* ADDA */
56439 {
56440 	uint32_t srcreg = (opcode & 7);
56441 	uint32_t dstreg = (opcode >> 9) & 7;
56442 	OpcodeFamily = 12; CurrentInstrCycles = 8;
56443 {{	int16_t src = m68k_dreg(regs, srcreg);
56444 {	int32_t dst = m68k_areg(regs, dstreg);
56445 {	uint32_t newv = dst + src;
56446 	m68k_areg(regs, dstreg) = (newv);
56447 }}}}m68k_incpc(2);
56448 fill_prefetch_2 ();
56449 return 8;
56450 }
CPUFUNC(op_d0c8_5)56451 unsigned long CPUFUNC(op_d0c8_5)(uint32_t opcode) /* ADDA */
56452 {
56453 	uint32_t srcreg = (opcode & 7);
56454 	uint32_t dstreg = (opcode >> 9) & 7;
56455 	OpcodeFamily = 12; CurrentInstrCycles = 8;
56456 {{	int16_t src = m68k_areg(regs, srcreg);
56457 {	int32_t dst = m68k_areg(regs, dstreg);
56458 {	uint32_t newv = dst + src;
56459 	m68k_areg(regs, dstreg) = (newv);
56460 }}}}m68k_incpc(2);
56461 fill_prefetch_2 ();
56462 return 8;
56463 }
CPUFUNC(op_d0d0_5)56464 unsigned long CPUFUNC(op_d0d0_5)(uint32_t opcode) /* ADDA */
56465 {
56466 	uint32_t srcreg = (opcode & 7);
56467 	uint32_t dstreg = (opcode >> 9) & 7;
56468 	OpcodeFamily = 12; CurrentInstrCycles = 12;
56469 {{	uint32_t srca = m68k_areg(regs, srcreg);
56470 	if ((srca & 1) != 0) {
56471 		last_fault_for_exception_3 = srca;
56472 		last_op_for_exception_3 = opcode;
56473 		last_addr_for_exception_3 = m68k_getpc() + 2;
56474 		Exception(3, 0, M68000_EXC_SRC_CPU);
56475 		goto endlabel3008;
56476 	}
56477 {{	int16_t src = m68k_read_memory_16(srca);
56478 {	int32_t dst = m68k_areg(regs, dstreg);
56479 {	uint32_t newv = dst + src;
56480 	m68k_areg(regs, dstreg) = (newv);
56481 }}}}}}m68k_incpc(2);
56482 fill_prefetch_2 ();
56483 endlabel3008: ;
56484 return 12;
56485 }
CPUFUNC(op_d0d8_5)56486 unsigned long CPUFUNC(op_d0d8_5)(uint32_t opcode) /* ADDA */
56487 {
56488 	uint32_t srcreg = (opcode & 7);
56489 	uint32_t dstreg = (opcode >> 9) & 7;
56490 	OpcodeFamily = 12; CurrentInstrCycles = 12;
56491 {{	uint32_t srca = m68k_areg(regs, srcreg);
56492 	if ((srca & 1) != 0) {
56493 		last_fault_for_exception_3 = srca;
56494 		last_op_for_exception_3 = opcode;
56495 		last_addr_for_exception_3 = m68k_getpc() + 2;
56496 		Exception(3, 0, M68000_EXC_SRC_CPU);
56497 		goto endlabel3009;
56498 	}
56499 {{	int16_t src = m68k_read_memory_16(srca);
56500 	m68k_areg(regs, srcreg) += 2;
56501 {	int32_t dst = m68k_areg(regs, dstreg);
56502 {	uint32_t newv = dst + src;
56503 	m68k_areg(regs, dstreg) = (newv);
56504 }}}}}}m68k_incpc(2);
56505 fill_prefetch_2 ();
56506 endlabel3009: ;
56507 return 12;
56508 }
CPUFUNC(op_d0e0_5)56509 unsigned long CPUFUNC(op_d0e0_5)(uint32_t opcode) /* ADDA */
56510 {
56511 	uint32_t srcreg = (opcode & 7);
56512 	uint32_t dstreg = (opcode >> 9) & 7;
56513 	OpcodeFamily = 12; CurrentInstrCycles = 14;
56514 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
56515 	if ((srca & 1) != 0) {
56516 		last_fault_for_exception_3 = srca;
56517 		last_op_for_exception_3 = opcode;
56518 		last_addr_for_exception_3 = m68k_getpc() + 2;
56519 		Exception(3, 0, M68000_EXC_SRC_CPU);
56520 		goto endlabel3010;
56521 	}
56522 {{	int16_t src = m68k_read_memory_16(srca);
56523 	m68k_areg (regs, srcreg) = srca;
56524 {	int32_t dst = m68k_areg(regs, dstreg);
56525 {	uint32_t newv = dst + src;
56526 	m68k_areg(regs, dstreg) = (newv);
56527 }}}}}}m68k_incpc(2);
56528 fill_prefetch_2 ();
56529 endlabel3010: ;
56530 return 14;
56531 }
CPUFUNC(op_d0e8_5)56532 unsigned long CPUFUNC(op_d0e8_5)(uint32_t opcode) /* ADDA */
56533 {
56534 	uint32_t srcreg = (opcode & 7);
56535 	uint32_t dstreg = (opcode >> 9) & 7;
56536 	OpcodeFamily = 12; CurrentInstrCycles = 16;
56537 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
56538 	if ((srca & 1) != 0) {
56539 		last_fault_for_exception_3 = srca;
56540 		last_op_for_exception_3 = opcode;
56541 		last_addr_for_exception_3 = m68k_getpc() + 4;
56542 		Exception(3, 0, M68000_EXC_SRC_CPU);
56543 		goto endlabel3011;
56544 	}
56545 {{	int16_t src = m68k_read_memory_16(srca);
56546 {	int32_t dst = m68k_areg(regs, dstreg);
56547 {	uint32_t newv = dst + src;
56548 	m68k_areg(regs, dstreg) = (newv);
56549 }}}}}}m68k_incpc(4);
56550 fill_prefetch_0 ();
56551 endlabel3011: ;
56552 return 16;
56553 }
CPUFUNC(op_d0f0_5)56554 unsigned long CPUFUNC(op_d0f0_5)(uint32_t opcode) /* ADDA */
56555 {
56556 	uint32_t srcreg = (opcode & 7);
56557 	uint32_t dstreg = (opcode >> 9) & 7;
56558 	OpcodeFamily = 12; CurrentInstrCycles = 18;
56559 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
56560 	BusCyclePenalty += 2;
56561 	if ((srca & 1) != 0) {
56562 		last_fault_for_exception_3 = srca;
56563 		last_op_for_exception_3 = opcode;
56564 		last_addr_for_exception_3 = m68k_getpc() + 4;
56565 		Exception(3, 0, M68000_EXC_SRC_CPU);
56566 		goto endlabel3012;
56567 	}
56568 {{	int16_t src = m68k_read_memory_16(srca);
56569 {	int32_t dst = m68k_areg(regs, dstreg);
56570 {	uint32_t newv = dst + src;
56571 	m68k_areg(regs, dstreg) = (newv);
56572 }}}}}}m68k_incpc(4);
56573 fill_prefetch_0 ();
56574 endlabel3012: ;
56575 return 18;
56576 }
CPUFUNC(op_d0f8_5)56577 unsigned long CPUFUNC(op_d0f8_5)(uint32_t opcode) /* ADDA */
56578 {
56579 	uint32_t dstreg = (opcode >> 9) & 7;
56580 	OpcodeFamily = 12; CurrentInstrCycles = 16;
56581 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
56582 	if ((srca & 1) != 0) {
56583 		last_fault_for_exception_3 = srca;
56584 		last_op_for_exception_3 = opcode;
56585 		last_addr_for_exception_3 = m68k_getpc() + 4;
56586 		Exception(3, 0, M68000_EXC_SRC_CPU);
56587 		goto endlabel3013;
56588 	}
56589 {{	int16_t src = m68k_read_memory_16(srca);
56590 {	int32_t dst = m68k_areg(regs, dstreg);
56591 {	uint32_t newv = dst + src;
56592 	m68k_areg(regs, dstreg) = (newv);
56593 }}}}}}m68k_incpc(4);
56594 fill_prefetch_0 ();
56595 endlabel3013: ;
56596 return 16;
56597 }
CPUFUNC(op_d0f9_5)56598 unsigned long CPUFUNC(op_d0f9_5)(uint32_t opcode) /* ADDA */
56599 {
56600 	uint32_t dstreg = (opcode >> 9) & 7;
56601 	OpcodeFamily = 12; CurrentInstrCycles = 20;
56602 {{	uint32_t srca = get_ilong_prefetch(2);
56603 	if ((srca & 1) != 0) {
56604 		last_fault_for_exception_3 = srca;
56605 		last_op_for_exception_3 = opcode;
56606 		last_addr_for_exception_3 = m68k_getpc() + 6;
56607 		Exception(3, 0, M68000_EXC_SRC_CPU);
56608 		goto endlabel3014;
56609 	}
56610 {{	int16_t src = m68k_read_memory_16(srca);
56611 {	int32_t dst = m68k_areg(regs, dstreg);
56612 {	uint32_t newv = dst + src;
56613 	m68k_areg(regs, dstreg) = (newv);
56614 }}}}}}m68k_incpc(6);
56615 fill_prefetch_0 ();
56616 endlabel3014: ;
56617 return 20;
56618 }
CPUFUNC(op_d0fa_5)56619 unsigned long CPUFUNC(op_d0fa_5)(uint32_t opcode) /* ADDA */
56620 {
56621 	uint32_t dstreg = (opcode >> 9) & 7;
56622 	OpcodeFamily = 12; CurrentInstrCycles = 16;
56623 {{	uint32_t srca = m68k_getpc () + 2;
56624 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
56625 	if ((srca & 1) != 0) {
56626 		last_fault_for_exception_3 = srca;
56627 		last_op_for_exception_3 = opcode;
56628 		last_addr_for_exception_3 = m68k_getpc() + 4;
56629 		Exception(3, 0, M68000_EXC_SRC_CPU);
56630 		goto endlabel3015;
56631 	}
56632 {{	int16_t src = m68k_read_memory_16(srca);
56633 {	int32_t dst = m68k_areg(regs, dstreg);
56634 {	uint32_t newv = dst + src;
56635 	m68k_areg(regs, dstreg) = (newv);
56636 }}}}}}m68k_incpc(4);
56637 fill_prefetch_0 ();
56638 endlabel3015: ;
56639 return 16;
56640 }
CPUFUNC(op_d0fb_5)56641 unsigned long CPUFUNC(op_d0fb_5)(uint32_t opcode) /* ADDA */
56642 {
56643 	uint32_t dstreg = (opcode >> 9) & 7;
56644 	OpcodeFamily = 12; CurrentInstrCycles = 18;
56645 {{	uint32_t tmppc = m68k_getpc() + 2;
56646 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
56647 	BusCyclePenalty += 2;
56648 	if ((srca & 1) != 0) {
56649 		last_fault_for_exception_3 = srca;
56650 		last_op_for_exception_3 = opcode;
56651 		last_addr_for_exception_3 = m68k_getpc() + 4;
56652 		Exception(3, 0, M68000_EXC_SRC_CPU);
56653 		goto endlabel3016;
56654 	}
56655 {{	int16_t src = m68k_read_memory_16(srca);
56656 {	int32_t dst = m68k_areg(regs, dstreg);
56657 {	uint32_t newv = dst + src;
56658 	m68k_areg(regs, dstreg) = (newv);
56659 }}}}}}m68k_incpc(4);
56660 fill_prefetch_0 ();
56661 endlabel3016: ;
56662 return 18;
56663 }
CPUFUNC(op_d0fc_5)56664 unsigned long CPUFUNC(op_d0fc_5)(uint32_t opcode) /* ADDA */
56665 {
56666 	uint32_t dstreg = (opcode >> 9) & 7;
56667 	OpcodeFamily = 12; CurrentInstrCycles = 12;
56668 {{	int16_t src = get_iword_prefetch(2);
56669 {	int32_t dst = m68k_areg(regs, dstreg);
56670 {	uint32_t newv = dst + src;
56671 	m68k_areg(regs, dstreg) = (newv);
56672 }}}}m68k_incpc(4);
56673 fill_prefetch_0 ();
56674 return 12;
56675 }
CPUFUNC(op_d100_5)56676 unsigned long CPUFUNC(op_d100_5)(uint32_t opcode) /* ADDX */
56677 {
56678 	uint32_t srcreg = (opcode & 7);
56679 	uint32_t dstreg = (opcode >> 9) & 7;
56680 	OpcodeFamily = 13; CurrentInstrCycles = 4;
56681 {{	int8_t src = m68k_dreg(regs, srcreg);
56682 {	int8_t dst = m68k_dreg(regs, dstreg);
56683 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
56684 {	int flgs = ((int8_t)(src)) < 0;
56685 	int flgo = ((int8_t)(dst)) < 0;
56686 	int flgn = ((int8_t)(newv)) < 0;
56687 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56688 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
56689 	COPY_CARRY;
56690 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
56691 	SET_NFLG (((int8_t)(newv)) < 0);
56692 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((newv) & 0xff);
56693 }}}}}m68k_incpc(2);
56694 fill_prefetch_2 ();
56695 return 4;
56696 }
CPUFUNC(op_d108_5)56697 unsigned long CPUFUNC(op_d108_5)(uint32_t opcode) /* ADDX */
56698 {
56699 	uint32_t srcreg = (opcode & 7);
56700 	uint32_t dstreg = (opcode >> 9) & 7;
56701 	OpcodeFamily = 13; CurrentInstrCycles = 18;
56702 {{	uint32_t srca = m68k_areg(regs, srcreg) - areg_byteinc[srcreg];
56703 {	int8_t src = m68k_read_memory_8(srca);
56704 	m68k_areg (regs, srcreg) = srca;
56705 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
56706 {	int8_t dst = m68k_read_memory_8(dsta);
56707 	m68k_areg (regs, dstreg) = dsta;
56708 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
56709 {	int flgs = ((int8_t)(src)) < 0;
56710 	int flgo = ((int8_t)(dst)) < 0;
56711 	int flgn = ((int8_t)(newv)) < 0;
56712 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56713 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
56714 	COPY_CARRY;
56715 	SET_ZFLG (GET_ZFLG & (((int8_t)(newv)) == 0));
56716 	SET_NFLG (((int8_t)(newv)) < 0);
56717 m68k_incpc(2);
56718 fill_prefetch_2 ();
56719 	m68k_write_memory_8(dsta,newv);
56720 }}}}}}}return 18;
56721 }
CPUFUNC(op_d110_5)56722 unsigned long CPUFUNC(op_d110_5)(uint32_t opcode) /* ADD */
56723 {
56724 	uint32_t srcreg = ((opcode >> 9) & 7);
56725 	uint32_t dstreg = opcode & 7;
56726 	OpcodeFamily = 11; CurrentInstrCycles = 12;
56727 {{	int8_t src = m68k_dreg(regs, srcreg);
56728 {	uint32_t dsta = m68k_areg(regs, dstreg);
56729 {	int8_t dst = m68k_read_memory_8(dsta);
56730 {	refill_prefetch (m68k_getpc(), 2);
56731 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
56732 {	int flgs = ((int8_t)(src)) < 0;
56733 	int flgo = ((int8_t)(dst)) < 0;
56734 	int flgn = ((int8_t)(newv)) < 0;
56735 	SET_ZFLG (((int8_t)(newv)) == 0);
56736 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56737 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
56738 	COPY_CARRY;
56739 	SET_NFLG (flgn != 0);
56740 m68k_incpc(2);
56741 fill_prefetch_2 ();
56742 	m68k_write_memory_8(dsta,newv);
56743 }}}}}}}return 12;
56744 }
CPUFUNC(op_d118_5)56745 unsigned long CPUFUNC(op_d118_5)(uint32_t opcode) /* ADD */
56746 {
56747 	uint32_t srcreg = ((opcode >> 9) & 7);
56748 	uint32_t dstreg = opcode & 7;
56749 	OpcodeFamily = 11; CurrentInstrCycles = 12;
56750 {{	int8_t src = m68k_dreg(regs, srcreg);
56751 {	uint32_t dsta = m68k_areg(regs, dstreg);
56752 {	int8_t dst = m68k_read_memory_8(dsta);
56753 	m68k_areg(regs, dstreg) += areg_byteinc[dstreg];
56754 {	refill_prefetch (m68k_getpc(), 2);
56755 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
56756 {	int flgs = ((int8_t)(src)) < 0;
56757 	int flgo = ((int8_t)(dst)) < 0;
56758 	int flgn = ((int8_t)(newv)) < 0;
56759 	SET_ZFLG (((int8_t)(newv)) == 0);
56760 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56761 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
56762 	COPY_CARRY;
56763 	SET_NFLG (flgn != 0);
56764 m68k_incpc(2);
56765 fill_prefetch_2 ();
56766 	m68k_write_memory_8(dsta,newv);
56767 }}}}}}}return 12;
56768 }
CPUFUNC(op_d120_5)56769 unsigned long CPUFUNC(op_d120_5)(uint32_t opcode) /* ADD */
56770 {
56771 	uint32_t srcreg = ((opcode >> 9) & 7);
56772 	uint32_t dstreg = opcode & 7;
56773 	OpcodeFamily = 11; CurrentInstrCycles = 14;
56774 {{	int8_t src = m68k_dreg(regs, srcreg);
56775 {	uint32_t dsta = m68k_areg(regs, dstreg) - areg_byteinc[dstreg];
56776 {	int8_t dst = m68k_read_memory_8(dsta);
56777 	m68k_areg (regs, dstreg) = dsta;
56778 {	refill_prefetch (m68k_getpc(), 2);
56779 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
56780 {	int flgs = ((int8_t)(src)) < 0;
56781 	int flgo = ((int8_t)(dst)) < 0;
56782 	int flgn = ((int8_t)(newv)) < 0;
56783 	SET_ZFLG (((int8_t)(newv)) == 0);
56784 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56785 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
56786 	COPY_CARRY;
56787 	SET_NFLG (flgn != 0);
56788 m68k_incpc(2);
56789 fill_prefetch_2 ();
56790 	m68k_write_memory_8(dsta,newv);
56791 }}}}}}}return 14;
56792 }
CPUFUNC(op_d128_5)56793 unsigned long CPUFUNC(op_d128_5)(uint32_t opcode) /* ADD */
56794 {
56795 	uint32_t srcreg = ((opcode >> 9) & 7);
56796 	uint32_t dstreg = opcode & 7;
56797 	OpcodeFamily = 11; CurrentInstrCycles = 16;
56798 {{	int8_t src = m68k_dreg(regs, srcreg);
56799 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
56800 {	int8_t dst = m68k_read_memory_8(dsta);
56801 {	refill_prefetch (m68k_getpc(), 2);
56802 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
56803 {	int flgs = ((int8_t)(src)) < 0;
56804 	int flgo = ((int8_t)(dst)) < 0;
56805 	int flgn = ((int8_t)(newv)) < 0;
56806 	SET_ZFLG (((int8_t)(newv)) == 0);
56807 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56808 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
56809 	COPY_CARRY;
56810 	SET_NFLG (flgn != 0);
56811 m68k_incpc(4);
56812 fill_prefetch_0 ();
56813 	m68k_write_memory_8(dsta,newv);
56814 }}}}}}}return 16;
56815 }
CPUFUNC(op_d130_5)56816 unsigned long CPUFUNC(op_d130_5)(uint32_t opcode) /* ADD */
56817 {
56818 	uint32_t srcreg = ((opcode >> 9) & 7);
56819 	uint32_t dstreg = opcode & 7;
56820 	OpcodeFamily = 11; CurrentInstrCycles = 18;
56821 {{	int8_t src = m68k_dreg(regs, srcreg);
56822 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
56823 	BusCyclePenalty += 2;
56824 {	int8_t dst = m68k_read_memory_8(dsta);
56825 {	refill_prefetch (m68k_getpc(), 2);
56826 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
56827 {	int flgs = ((int8_t)(src)) < 0;
56828 	int flgo = ((int8_t)(dst)) < 0;
56829 	int flgn = ((int8_t)(newv)) < 0;
56830 	SET_ZFLG (((int8_t)(newv)) == 0);
56831 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56832 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
56833 	COPY_CARRY;
56834 	SET_NFLG (flgn != 0);
56835 m68k_incpc(4);
56836 fill_prefetch_0 ();
56837 	m68k_write_memory_8(dsta,newv);
56838 }}}}}}}return 18;
56839 }
CPUFUNC(op_d138_5)56840 unsigned long CPUFUNC(op_d138_5)(uint32_t opcode) /* ADD */
56841 {
56842 	uint32_t srcreg = ((opcode >> 9) & 7);
56843 	OpcodeFamily = 11; CurrentInstrCycles = 16;
56844 {{	int8_t src = m68k_dreg(regs, srcreg);
56845 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
56846 {	int8_t dst = m68k_read_memory_8(dsta);
56847 {	refill_prefetch (m68k_getpc(), 2);
56848 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
56849 {	int flgs = ((int8_t)(src)) < 0;
56850 	int flgo = ((int8_t)(dst)) < 0;
56851 	int flgn = ((int8_t)(newv)) < 0;
56852 	SET_ZFLG (((int8_t)(newv)) == 0);
56853 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56854 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
56855 	COPY_CARRY;
56856 	SET_NFLG (flgn != 0);
56857 m68k_incpc(4);
56858 fill_prefetch_0 ();
56859 	m68k_write_memory_8(dsta,newv);
56860 }}}}}}}return 16;
56861 }
CPUFUNC(op_d139_5)56862 unsigned long CPUFUNC(op_d139_5)(uint32_t opcode) /* ADD */
56863 {
56864 	uint32_t srcreg = ((opcode >> 9) & 7);
56865 	OpcodeFamily = 11; CurrentInstrCycles = 20;
56866 {{	int8_t src = m68k_dreg(regs, srcreg);
56867 {	uint32_t dsta = get_ilong_prefetch(2);
56868 {	int8_t dst = m68k_read_memory_8(dsta);
56869 {	refill_prefetch (m68k_getpc(), 2);
56870 {uint32_t newv = ((int8_t)(dst)) + ((int8_t)(src));
56871 {	int flgs = ((int8_t)(src)) < 0;
56872 	int flgo = ((int8_t)(dst)) < 0;
56873 	int flgn = ((int8_t)(newv)) < 0;
56874 	SET_ZFLG (((int8_t)(newv)) == 0);
56875 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56876 	SET_CFLG (((uint8_t)(~dst)) < ((uint8_t)(src)));
56877 	COPY_CARRY;
56878 	SET_NFLG (flgn != 0);
56879 m68k_incpc(6);
56880 fill_prefetch_0 ();
56881 	m68k_write_memory_8(dsta,newv);
56882 }}}}}}}return 20;
56883 }
CPUFUNC(op_d140_5)56884 unsigned long CPUFUNC(op_d140_5)(uint32_t opcode) /* ADDX */
56885 {
56886 	uint32_t srcreg = (opcode & 7);
56887 	uint32_t dstreg = (opcode >> 9) & 7;
56888 	OpcodeFamily = 13; CurrentInstrCycles = 4;
56889 {{	int16_t src = m68k_dreg(regs, srcreg);
56890 {	int16_t dst = m68k_dreg(regs, dstreg);
56891 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
56892 {	int flgs = ((int16_t)(src)) < 0;
56893 	int flgo = ((int16_t)(dst)) < 0;
56894 	int flgn = ((int16_t)(newv)) < 0;
56895 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56896 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
56897 	COPY_CARRY;
56898 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
56899 	SET_NFLG (((int16_t)(newv)) < 0);
56900 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((newv) & 0xffff);
56901 }}}}}m68k_incpc(2);
56902 fill_prefetch_2 ();
56903 return 4;
56904 }
CPUFUNC(op_d148_5)56905 unsigned long CPUFUNC(op_d148_5)(uint32_t opcode) /* ADDX */
56906 {
56907 	uint32_t srcreg = (opcode & 7);
56908 	uint32_t dstreg = (opcode >> 9) & 7;
56909 	OpcodeFamily = 13; CurrentInstrCycles = 18;
56910 {{	uint32_t srca = m68k_areg(regs, srcreg) - 2;
56911 	if ((srca & 1) != 0) {
56912 		last_fault_for_exception_3 = srca;
56913 		last_op_for_exception_3 = opcode;
56914 		last_addr_for_exception_3 = m68k_getpc() + 2;
56915 		Exception(3, 0, M68000_EXC_SRC_CPU);
56916 		goto endlabel3028;
56917 	}
56918 {{	int16_t src = m68k_read_memory_16(srca);
56919 	m68k_areg (regs, srcreg) = srca;
56920 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
56921 	if ((dsta & 1) != 0) {
56922 		last_fault_for_exception_3 = dsta;
56923 		last_op_for_exception_3 = opcode;
56924 		last_addr_for_exception_3 = m68k_getpc() + 2;
56925 		Exception(3, 0, M68000_EXC_SRC_CPU);
56926 		goto endlabel3028;
56927 	}
56928 {{	int16_t dst = m68k_read_memory_16(dsta);
56929 	m68k_areg (regs, dstreg) = dsta;
56930 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
56931 {	int flgs = ((int16_t)(src)) < 0;
56932 	int flgo = ((int16_t)(dst)) < 0;
56933 	int flgn = ((int16_t)(newv)) < 0;
56934 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56935 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
56936 	COPY_CARRY;
56937 	SET_ZFLG (GET_ZFLG & (((int16_t)(newv)) == 0));
56938 	SET_NFLG (((int16_t)(newv)) < 0);
56939 m68k_incpc(2);
56940 fill_prefetch_2 ();
56941 	m68k_write_memory_16(dsta,newv);
56942 }}}}}}}}}endlabel3028: ;
56943 return 18;
56944 }
CPUFUNC(op_d150_5)56945 unsigned long CPUFUNC(op_d150_5)(uint32_t opcode) /* ADD */
56946 {
56947 	uint32_t srcreg = ((opcode >> 9) & 7);
56948 	uint32_t dstreg = opcode & 7;
56949 	OpcodeFamily = 11; CurrentInstrCycles = 12;
56950 {{	int16_t src = m68k_dreg(regs, srcreg);
56951 {	uint32_t dsta = m68k_areg(regs, dstreg);
56952 	if ((dsta & 1) != 0) {
56953 		last_fault_for_exception_3 = dsta;
56954 		last_op_for_exception_3 = opcode;
56955 		last_addr_for_exception_3 = m68k_getpc() + 2;
56956 		Exception(3, 0, M68000_EXC_SRC_CPU);
56957 		goto endlabel3029;
56958 	}
56959 {{	int16_t dst = m68k_read_memory_16(dsta);
56960 {	refill_prefetch (m68k_getpc(), 2);
56961 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
56962 {	int flgs = ((int16_t)(src)) < 0;
56963 	int flgo = ((int16_t)(dst)) < 0;
56964 	int flgn = ((int16_t)(newv)) < 0;
56965 	SET_ZFLG (((int16_t)(newv)) == 0);
56966 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56967 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
56968 	COPY_CARRY;
56969 	SET_NFLG (flgn != 0);
56970 m68k_incpc(2);
56971 fill_prefetch_2 ();
56972 	m68k_write_memory_16(dsta,newv);
56973 }}}}}}}}endlabel3029: ;
56974 return 12;
56975 }
CPUFUNC(op_d158_5)56976 unsigned long CPUFUNC(op_d158_5)(uint32_t opcode) /* ADD */
56977 {
56978 	uint32_t srcreg = ((opcode >> 9) & 7);
56979 	uint32_t dstreg = opcode & 7;
56980 	OpcodeFamily = 11; CurrentInstrCycles = 12;
56981 {{	int16_t src = m68k_dreg(regs, srcreg);
56982 {	uint32_t dsta = m68k_areg(regs, dstreg);
56983 	if ((dsta & 1) != 0) {
56984 		last_fault_for_exception_3 = dsta;
56985 		last_op_for_exception_3 = opcode;
56986 		last_addr_for_exception_3 = m68k_getpc() + 2;
56987 		Exception(3, 0, M68000_EXC_SRC_CPU);
56988 		goto endlabel3030;
56989 	}
56990 {{	int16_t dst = m68k_read_memory_16(dsta);
56991 	m68k_areg(regs, dstreg) += 2;
56992 {	refill_prefetch (m68k_getpc(), 2);
56993 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
56994 {	int flgs = ((int16_t)(src)) < 0;
56995 	int flgo = ((int16_t)(dst)) < 0;
56996 	int flgn = ((int16_t)(newv)) < 0;
56997 	SET_ZFLG (((int16_t)(newv)) == 0);
56998 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
56999 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
57000 	COPY_CARRY;
57001 	SET_NFLG (flgn != 0);
57002 m68k_incpc(2);
57003 fill_prefetch_2 ();
57004 	m68k_write_memory_16(dsta,newv);
57005 }}}}}}}}endlabel3030: ;
57006 return 12;
57007 }
CPUFUNC(op_d160_5)57008 unsigned long CPUFUNC(op_d160_5)(uint32_t opcode) /* ADD */
57009 {
57010 	uint32_t srcreg = ((opcode >> 9) & 7);
57011 	uint32_t dstreg = opcode & 7;
57012 	OpcodeFamily = 11; CurrentInstrCycles = 14;
57013 {{	int16_t src = m68k_dreg(regs, srcreg);
57014 {	uint32_t dsta = m68k_areg(regs, dstreg) - 2;
57015 	if ((dsta & 1) != 0) {
57016 		last_fault_for_exception_3 = dsta;
57017 		last_op_for_exception_3 = opcode;
57018 		last_addr_for_exception_3 = m68k_getpc() + 2;
57019 		Exception(3, 0, M68000_EXC_SRC_CPU);
57020 		goto endlabel3031;
57021 	}
57022 {{	int16_t dst = m68k_read_memory_16(dsta);
57023 	m68k_areg (regs, dstreg) = dsta;
57024 {	refill_prefetch (m68k_getpc(), 2);
57025 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
57026 {	int flgs = ((int16_t)(src)) < 0;
57027 	int flgo = ((int16_t)(dst)) < 0;
57028 	int flgn = ((int16_t)(newv)) < 0;
57029 	SET_ZFLG (((int16_t)(newv)) == 0);
57030 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57031 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
57032 	COPY_CARRY;
57033 	SET_NFLG (flgn != 0);
57034 m68k_incpc(2);
57035 fill_prefetch_2 ();
57036 	m68k_write_memory_16(dsta,newv);
57037 }}}}}}}}endlabel3031: ;
57038 return 14;
57039 }
CPUFUNC(op_d168_5)57040 unsigned long CPUFUNC(op_d168_5)(uint32_t opcode) /* ADD */
57041 {
57042 	uint32_t srcreg = ((opcode >> 9) & 7);
57043 	uint32_t dstreg = opcode & 7;
57044 	OpcodeFamily = 11; CurrentInstrCycles = 16;
57045 {{	int16_t src = m68k_dreg(regs, srcreg);
57046 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
57047 	if ((dsta & 1) != 0) {
57048 		last_fault_for_exception_3 = dsta;
57049 		last_op_for_exception_3 = opcode;
57050 		last_addr_for_exception_3 = m68k_getpc() + 4;
57051 		Exception(3, 0, M68000_EXC_SRC_CPU);
57052 		goto endlabel3032;
57053 	}
57054 {{	int16_t dst = m68k_read_memory_16(dsta);
57055 {	refill_prefetch (m68k_getpc(), 2);
57056 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
57057 {	int flgs = ((int16_t)(src)) < 0;
57058 	int flgo = ((int16_t)(dst)) < 0;
57059 	int flgn = ((int16_t)(newv)) < 0;
57060 	SET_ZFLG (((int16_t)(newv)) == 0);
57061 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57062 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
57063 	COPY_CARRY;
57064 	SET_NFLG (flgn != 0);
57065 m68k_incpc(4);
57066 fill_prefetch_0 ();
57067 	m68k_write_memory_16(dsta,newv);
57068 }}}}}}}}endlabel3032: ;
57069 return 16;
57070 }
CPUFUNC(op_d170_5)57071 unsigned long CPUFUNC(op_d170_5)(uint32_t opcode) /* ADD */
57072 {
57073 	uint32_t srcreg = ((opcode >> 9) & 7);
57074 	uint32_t dstreg = opcode & 7;
57075 	OpcodeFamily = 11; CurrentInstrCycles = 18;
57076 {{	int16_t src = m68k_dreg(regs, srcreg);
57077 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
57078 	BusCyclePenalty += 2;
57079 	if ((dsta & 1) != 0) {
57080 		last_fault_for_exception_3 = dsta;
57081 		last_op_for_exception_3 = opcode;
57082 		last_addr_for_exception_3 = m68k_getpc() + 4;
57083 		Exception(3, 0, M68000_EXC_SRC_CPU);
57084 		goto endlabel3033;
57085 	}
57086 {{	int16_t dst = m68k_read_memory_16(dsta);
57087 {	refill_prefetch (m68k_getpc(), 2);
57088 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
57089 {	int flgs = ((int16_t)(src)) < 0;
57090 	int flgo = ((int16_t)(dst)) < 0;
57091 	int flgn = ((int16_t)(newv)) < 0;
57092 	SET_ZFLG (((int16_t)(newv)) == 0);
57093 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57094 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
57095 	COPY_CARRY;
57096 	SET_NFLG (flgn != 0);
57097 m68k_incpc(4);
57098 fill_prefetch_0 ();
57099 	m68k_write_memory_16(dsta,newv);
57100 }}}}}}}}endlabel3033: ;
57101 return 18;
57102 }
CPUFUNC(op_d178_5)57103 unsigned long CPUFUNC(op_d178_5)(uint32_t opcode) /* ADD */
57104 {
57105 	uint32_t srcreg = ((opcode >> 9) & 7);
57106 	OpcodeFamily = 11; CurrentInstrCycles = 16;
57107 {{	int16_t src = m68k_dreg(regs, srcreg);
57108 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
57109 	if ((dsta & 1) != 0) {
57110 		last_fault_for_exception_3 = dsta;
57111 		last_op_for_exception_3 = opcode;
57112 		last_addr_for_exception_3 = m68k_getpc() + 4;
57113 		Exception(3, 0, M68000_EXC_SRC_CPU);
57114 		goto endlabel3034;
57115 	}
57116 {{	int16_t dst = m68k_read_memory_16(dsta);
57117 {	refill_prefetch (m68k_getpc(), 2);
57118 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
57119 {	int flgs = ((int16_t)(src)) < 0;
57120 	int flgo = ((int16_t)(dst)) < 0;
57121 	int flgn = ((int16_t)(newv)) < 0;
57122 	SET_ZFLG (((int16_t)(newv)) == 0);
57123 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57124 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
57125 	COPY_CARRY;
57126 	SET_NFLG (flgn != 0);
57127 m68k_incpc(4);
57128 fill_prefetch_0 ();
57129 	m68k_write_memory_16(dsta,newv);
57130 }}}}}}}}endlabel3034: ;
57131 return 16;
57132 }
CPUFUNC(op_d179_5)57133 unsigned long CPUFUNC(op_d179_5)(uint32_t opcode) /* ADD */
57134 {
57135 	uint32_t srcreg = ((opcode >> 9) & 7);
57136 	OpcodeFamily = 11; CurrentInstrCycles = 20;
57137 {{	int16_t src = m68k_dreg(regs, srcreg);
57138 {	uint32_t dsta = get_ilong_prefetch(2);
57139 	if ((dsta & 1) != 0) {
57140 		last_fault_for_exception_3 = dsta;
57141 		last_op_for_exception_3 = opcode;
57142 		last_addr_for_exception_3 = m68k_getpc() + 6;
57143 		Exception(3, 0, M68000_EXC_SRC_CPU);
57144 		goto endlabel3035;
57145 	}
57146 {{	int16_t dst = m68k_read_memory_16(dsta);
57147 {	refill_prefetch (m68k_getpc(), 2);
57148 {uint32_t newv = ((int16_t)(dst)) + ((int16_t)(src));
57149 {	int flgs = ((int16_t)(src)) < 0;
57150 	int flgo = ((int16_t)(dst)) < 0;
57151 	int flgn = ((int16_t)(newv)) < 0;
57152 	SET_ZFLG (((int16_t)(newv)) == 0);
57153 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57154 	SET_CFLG (((uint16_t)(~dst)) < ((uint16_t)(src)));
57155 	COPY_CARRY;
57156 	SET_NFLG (flgn != 0);
57157 m68k_incpc(6);
57158 fill_prefetch_0 ();
57159 	m68k_write_memory_16(dsta,newv);
57160 }}}}}}}}endlabel3035: ;
57161 return 20;
57162 }
CPUFUNC(op_d180_5)57163 unsigned long CPUFUNC(op_d180_5)(uint32_t opcode) /* ADDX */
57164 {
57165 	uint32_t srcreg = (opcode & 7);
57166 	uint32_t dstreg = (opcode >> 9) & 7;
57167 	OpcodeFamily = 13; CurrentInstrCycles = 8;
57168 {{	int32_t src = m68k_dreg(regs, srcreg);
57169 {	int32_t dst = m68k_dreg(regs, dstreg);
57170 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
57171 {	int flgs = ((int32_t)(src)) < 0;
57172 	int flgo = ((int32_t)(dst)) < 0;
57173 	int flgn = ((int32_t)(newv)) < 0;
57174 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57175 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
57176 	COPY_CARRY;
57177 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
57178 	SET_NFLG (((int32_t)(newv)) < 0);
57179 	m68k_dreg(regs, dstreg) = (newv);
57180 }}}}}m68k_incpc(2);
57181 fill_prefetch_2 ();
57182 return 8;
57183 }
CPUFUNC(op_d188_5)57184 unsigned long CPUFUNC(op_d188_5)(uint32_t opcode) /* ADDX */
57185 {
57186 	uint32_t srcreg = (opcode & 7);
57187 	uint32_t dstreg = (opcode >> 9) & 7;
57188 	OpcodeFamily = 13; CurrentInstrCycles = 30;
57189 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
57190 	if ((srca & 1) != 0) {
57191 		last_fault_for_exception_3 = srca;
57192 		last_op_for_exception_3 = opcode;
57193 		last_addr_for_exception_3 = m68k_getpc() + 2;
57194 		Exception(3, 0, M68000_EXC_SRC_CPU);
57195 		goto endlabel3037;
57196 	}
57197 {{	int32_t src = m68k_read_memory_32(srca);
57198 	m68k_areg (regs, srcreg) = srca;
57199 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
57200 	if ((dsta & 1) != 0) {
57201 		last_fault_for_exception_3 = dsta;
57202 		last_op_for_exception_3 = opcode;
57203 		last_addr_for_exception_3 = m68k_getpc() + 2;
57204 		Exception(3, 0, M68000_EXC_SRC_CPU);
57205 		goto endlabel3037;
57206 	}
57207 {{	int32_t dst = m68k_read_memory_32(dsta);
57208 	m68k_areg (regs, dstreg) = dsta;
57209 {	uint32_t newv = dst + src + (GET_XFLG ? 1 : 0);
57210 {	int flgs = ((int32_t)(src)) < 0;
57211 	int flgo = ((int32_t)(dst)) < 0;
57212 	int flgn = ((int32_t)(newv)) < 0;
57213 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57214 	SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn)));
57215 	COPY_CARRY;
57216 	SET_ZFLG (GET_ZFLG & (((int32_t)(newv)) == 0));
57217 	SET_NFLG (((int32_t)(newv)) < 0);
57218 m68k_incpc(2);
57219 fill_prefetch_2 ();
57220 	m68k_write_memory_32(dsta,newv);
57221 }}}}}}}}}endlabel3037: ;
57222 return 30;
57223 }
CPUFUNC(op_d190_5)57224 unsigned long CPUFUNC(op_d190_5)(uint32_t opcode) /* ADD */
57225 {
57226 	uint32_t srcreg = ((opcode >> 9) & 7);
57227 	uint32_t dstreg = opcode & 7;
57228 	OpcodeFamily = 11; CurrentInstrCycles = 20;
57229 {{	int32_t src = m68k_dreg(regs, srcreg);
57230 {	uint32_t dsta = m68k_areg(regs, dstreg);
57231 	if ((dsta & 1) != 0) {
57232 		last_fault_for_exception_3 = dsta;
57233 		last_op_for_exception_3 = opcode;
57234 		last_addr_for_exception_3 = m68k_getpc() + 2;
57235 		Exception(3, 0, M68000_EXC_SRC_CPU);
57236 		goto endlabel3038;
57237 	}
57238 {{	int32_t dst = m68k_read_memory_32(dsta);
57239 {	refill_prefetch (m68k_getpc(), 2);
57240 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
57241 {	int flgs = ((int32_t)(src)) < 0;
57242 	int flgo = ((int32_t)(dst)) < 0;
57243 	int flgn = ((int32_t)(newv)) < 0;
57244 	SET_ZFLG (((int32_t)(newv)) == 0);
57245 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57246 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
57247 	COPY_CARRY;
57248 	SET_NFLG (flgn != 0);
57249 m68k_incpc(2);
57250 fill_prefetch_2 ();
57251 	m68k_write_memory_32(dsta,newv);
57252 }}}}}}}}endlabel3038: ;
57253 return 20;
57254 }
CPUFUNC(op_d198_5)57255 unsigned long CPUFUNC(op_d198_5)(uint32_t opcode) /* ADD */
57256 {
57257 	uint32_t srcreg = ((opcode >> 9) & 7);
57258 	uint32_t dstreg = opcode & 7;
57259 	OpcodeFamily = 11; CurrentInstrCycles = 20;
57260 {{	int32_t src = m68k_dreg(regs, srcreg);
57261 {	uint32_t dsta = m68k_areg(regs, dstreg);
57262 	if ((dsta & 1) != 0) {
57263 		last_fault_for_exception_3 = dsta;
57264 		last_op_for_exception_3 = opcode;
57265 		last_addr_for_exception_3 = m68k_getpc() + 2;
57266 		Exception(3, 0, M68000_EXC_SRC_CPU);
57267 		goto endlabel3039;
57268 	}
57269 {{	int32_t dst = m68k_read_memory_32(dsta);
57270 	m68k_areg(regs, dstreg) += 4;
57271 {	refill_prefetch (m68k_getpc(), 2);
57272 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
57273 {	int flgs = ((int32_t)(src)) < 0;
57274 	int flgo = ((int32_t)(dst)) < 0;
57275 	int flgn = ((int32_t)(newv)) < 0;
57276 	SET_ZFLG (((int32_t)(newv)) == 0);
57277 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57278 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
57279 	COPY_CARRY;
57280 	SET_NFLG (flgn != 0);
57281 m68k_incpc(2);
57282 fill_prefetch_2 ();
57283 	m68k_write_memory_32(dsta,newv);
57284 }}}}}}}}endlabel3039: ;
57285 return 20;
57286 }
CPUFUNC(op_d1a0_5)57287 unsigned long CPUFUNC(op_d1a0_5)(uint32_t opcode) /* ADD */
57288 {
57289 	uint32_t srcreg = ((opcode >> 9) & 7);
57290 	uint32_t dstreg = opcode & 7;
57291 	OpcodeFamily = 11; CurrentInstrCycles = 22;
57292 {{	int32_t src = m68k_dreg(regs, srcreg);
57293 {	uint32_t dsta = m68k_areg(regs, dstreg) - 4;
57294 	if ((dsta & 1) != 0) {
57295 		last_fault_for_exception_3 = dsta;
57296 		last_op_for_exception_3 = opcode;
57297 		last_addr_for_exception_3 = m68k_getpc() + 2;
57298 		Exception(3, 0, M68000_EXC_SRC_CPU);
57299 		goto endlabel3040;
57300 	}
57301 {{	int32_t dst = m68k_read_memory_32(dsta);
57302 	m68k_areg (regs, dstreg) = dsta;
57303 {	refill_prefetch (m68k_getpc(), 2);
57304 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
57305 {	int flgs = ((int32_t)(src)) < 0;
57306 	int flgo = ((int32_t)(dst)) < 0;
57307 	int flgn = ((int32_t)(newv)) < 0;
57308 	SET_ZFLG (((int32_t)(newv)) == 0);
57309 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57310 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
57311 	COPY_CARRY;
57312 	SET_NFLG (flgn != 0);
57313 m68k_incpc(2);
57314 fill_prefetch_2 ();
57315 	m68k_write_memory_32(dsta,newv);
57316 }}}}}}}}endlabel3040: ;
57317 return 22;
57318 }
CPUFUNC(op_d1a8_5)57319 unsigned long CPUFUNC(op_d1a8_5)(uint32_t opcode) /* ADD */
57320 {
57321 	uint32_t srcreg = ((opcode >> 9) & 7);
57322 	uint32_t dstreg = opcode & 7;
57323 	OpcodeFamily = 11; CurrentInstrCycles = 24;
57324 {{	int32_t src = m68k_dreg(regs, srcreg);
57325 {	uint32_t dsta = m68k_areg(regs, dstreg) + (int32_t)(int16_t)get_iword_prefetch(2);
57326 	if ((dsta & 1) != 0) {
57327 		last_fault_for_exception_3 = dsta;
57328 		last_op_for_exception_3 = opcode;
57329 		last_addr_for_exception_3 = m68k_getpc() + 4;
57330 		Exception(3, 0, M68000_EXC_SRC_CPU);
57331 		goto endlabel3041;
57332 	}
57333 {{	int32_t dst = m68k_read_memory_32(dsta);
57334 {	refill_prefetch (m68k_getpc(), 2);
57335 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
57336 {	int flgs = ((int32_t)(src)) < 0;
57337 	int flgo = ((int32_t)(dst)) < 0;
57338 	int flgn = ((int32_t)(newv)) < 0;
57339 	SET_ZFLG (((int32_t)(newv)) == 0);
57340 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57341 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
57342 	COPY_CARRY;
57343 	SET_NFLG (flgn != 0);
57344 m68k_incpc(4);
57345 fill_prefetch_0 ();
57346 	m68k_write_memory_32(dsta,newv);
57347 }}}}}}}}endlabel3041: ;
57348 return 24;
57349 }
CPUFUNC(op_d1b0_5)57350 unsigned long CPUFUNC(op_d1b0_5)(uint32_t opcode) /* ADD */
57351 {
57352 	uint32_t srcreg = ((opcode >> 9) & 7);
57353 	uint32_t dstreg = opcode & 7;
57354 	OpcodeFamily = 11; CurrentInstrCycles = 26;
57355 {{	int32_t src = m68k_dreg(regs, srcreg);
57356 {	uint32_t dsta = get_disp_ea_000(m68k_areg(regs, dstreg), get_iword_prefetch(2));
57357 	BusCyclePenalty += 2;
57358 	if ((dsta & 1) != 0) {
57359 		last_fault_for_exception_3 = dsta;
57360 		last_op_for_exception_3 = opcode;
57361 		last_addr_for_exception_3 = m68k_getpc() + 4;
57362 		Exception(3, 0, M68000_EXC_SRC_CPU);
57363 		goto endlabel3042;
57364 	}
57365 {{	int32_t dst = m68k_read_memory_32(dsta);
57366 {	refill_prefetch (m68k_getpc(), 2);
57367 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
57368 {	int flgs = ((int32_t)(src)) < 0;
57369 	int flgo = ((int32_t)(dst)) < 0;
57370 	int flgn = ((int32_t)(newv)) < 0;
57371 	SET_ZFLG (((int32_t)(newv)) == 0);
57372 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57373 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
57374 	COPY_CARRY;
57375 	SET_NFLG (flgn != 0);
57376 m68k_incpc(4);
57377 fill_prefetch_0 ();
57378 	m68k_write_memory_32(dsta,newv);
57379 }}}}}}}}endlabel3042: ;
57380 return 26;
57381 }
CPUFUNC(op_d1b8_5)57382 unsigned long CPUFUNC(op_d1b8_5)(uint32_t opcode) /* ADD */
57383 {
57384 	uint32_t srcreg = ((opcode >> 9) & 7);
57385 	OpcodeFamily = 11; CurrentInstrCycles = 24;
57386 {{	int32_t src = m68k_dreg(regs, srcreg);
57387 {	uint32_t dsta = (int32_t)(int16_t)get_iword_prefetch(2);
57388 	if ((dsta & 1) != 0) {
57389 		last_fault_for_exception_3 = dsta;
57390 		last_op_for_exception_3 = opcode;
57391 		last_addr_for_exception_3 = m68k_getpc() + 4;
57392 		Exception(3, 0, M68000_EXC_SRC_CPU);
57393 		goto endlabel3043;
57394 	}
57395 {{	int32_t dst = m68k_read_memory_32(dsta);
57396 {	refill_prefetch (m68k_getpc(), 2);
57397 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
57398 {	int flgs = ((int32_t)(src)) < 0;
57399 	int flgo = ((int32_t)(dst)) < 0;
57400 	int flgn = ((int32_t)(newv)) < 0;
57401 	SET_ZFLG (((int32_t)(newv)) == 0);
57402 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57403 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
57404 	COPY_CARRY;
57405 	SET_NFLG (flgn != 0);
57406 m68k_incpc(4);
57407 fill_prefetch_0 ();
57408 	m68k_write_memory_32(dsta,newv);
57409 }}}}}}}}endlabel3043: ;
57410 return 24;
57411 }
CPUFUNC(op_d1b9_5)57412 unsigned long CPUFUNC(op_d1b9_5)(uint32_t opcode) /* ADD */
57413 {
57414 	uint32_t srcreg = ((opcode >> 9) & 7);
57415 	OpcodeFamily = 11; CurrentInstrCycles = 28;
57416 {{	int32_t src = m68k_dreg(regs, srcreg);
57417 {	uint32_t dsta = get_ilong_prefetch(2);
57418 	if ((dsta & 1) != 0) {
57419 		last_fault_for_exception_3 = dsta;
57420 		last_op_for_exception_3 = opcode;
57421 		last_addr_for_exception_3 = m68k_getpc() + 6;
57422 		Exception(3, 0, M68000_EXC_SRC_CPU);
57423 		goto endlabel3044;
57424 	}
57425 {{	int32_t dst = m68k_read_memory_32(dsta);
57426 {	refill_prefetch (m68k_getpc(), 2);
57427 {uint32_t newv = ((int32_t)(dst)) + ((int32_t)(src));
57428 {	int flgs = ((int32_t)(src)) < 0;
57429 	int flgo = ((int32_t)(dst)) < 0;
57430 	int flgn = ((int32_t)(newv)) < 0;
57431 	SET_ZFLG (((int32_t)(newv)) == 0);
57432 	SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn));
57433 	SET_CFLG (((uint32_t)(~dst)) < ((uint32_t)(src)));
57434 	COPY_CARRY;
57435 	SET_NFLG (flgn != 0);
57436 m68k_incpc(6);
57437 fill_prefetch_0 ();
57438 	m68k_write_memory_32(dsta,newv);
57439 }}}}}}}}endlabel3044: ;
57440 return 28;
57441 }
CPUFUNC(op_d1c0_5)57442 unsigned long CPUFUNC(op_d1c0_5)(uint32_t opcode) /* ADDA */
57443 {
57444 	uint32_t srcreg = (opcode & 7);
57445 	uint32_t dstreg = (opcode >> 9) & 7;
57446 	OpcodeFamily = 12; CurrentInstrCycles = 8;
57447 {{	int32_t src = m68k_dreg(regs, srcreg);
57448 {	int32_t dst = m68k_areg(regs, dstreg);
57449 {	uint32_t newv = dst + src;
57450 	m68k_areg(regs, dstreg) = (newv);
57451 }}}}m68k_incpc(2);
57452 fill_prefetch_2 ();
57453 return 8;
57454 }
CPUFUNC(op_d1c8_5)57455 unsigned long CPUFUNC(op_d1c8_5)(uint32_t opcode) /* ADDA */
57456 {
57457 	uint32_t srcreg = (opcode & 7);
57458 	uint32_t dstreg = (opcode >> 9) & 7;
57459 	OpcodeFamily = 12; CurrentInstrCycles = 8;
57460 {{	int32_t src = m68k_areg(regs, srcreg);
57461 {	int32_t dst = m68k_areg(regs, dstreg);
57462 {	uint32_t newv = dst + src;
57463 	m68k_areg(regs, dstreg) = (newv);
57464 }}}}m68k_incpc(2);
57465 fill_prefetch_2 ();
57466 return 8;
57467 }
CPUFUNC(op_d1d0_5)57468 unsigned long CPUFUNC(op_d1d0_5)(uint32_t opcode) /* ADDA */
57469 {
57470 	uint32_t srcreg = (opcode & 7);
57471 	uint32_t dstreg = (opcode >> 9) & 7;
57472 	OpcodeFamily = 12; CurrentInstrCycles = 14;
57473 {{	uint32_t srca = m68k_areg(regs, srcreg);
57474 	if ((srca & 1) != 0) {
57475 		last_fault_for_exception_3 = srca;
57476 		last_op_for_exception_3 = opcode;
57477 		last_addr_for_exception_3 = m68k_getpc() + 2;
57478 		Exception(3, 0, M68000_EXC_SRC_CPU);
57479 		goto endlabel3047;
57480 	}
57481 {{	int32_t src = m68k_read_memory_32(srca);
57482 {	int32_t dst = m68k_areg(regs, dstreg);
57483 {	uint32_t newv = dst + src;
57484 	m68k_areg(regs, dstreg) = (newv);
57485 }}}}}}m68k_incpc(2);
57486 fill_prefetch_2 ();
57487 endlabel3047: ;
57488 return 14;
57489 }
57490 #endif
57491 
57492 #ifdef PART_8
CPUFUNC(op_d1d8_5)57493 unsigned long CPUFUNC(op_d1d8_5)(uint32_t opcode) /* ADDA */
57494 {
57495 	uint32_t srcreg = (opcode & 7);
57496 	uint32_t dstreg = (opcode >> 9) & 7;
57497 	OpcodeFamily = 12; CurrentInstrCycles = 14;
57498 {{	uint32_t srca = m68k_areg(regs, srcreg);
57499 	if ((srca & 1) != 0) {
57500 		last_fault_for_exception_3 = srca;
57501 		last_op_for_exception_3 = opcode;
57502 		last_addr_for_exception_3 = m68k_getpc() + 2;
57503 		Exception(3, 0, M68000_EXC_SRC_CPU);
57504 		goto endlabel3048;
57505 	}
57506 {{	int32_t src = m68k_read_memory_32(srca);
57507 	m68k_areg(regs, srcreg) += 4;
57508 {	int32_t dst = m68k_areg(regs, dstreg);
57509 {	uint32_t newv = dst + src;
57510 	m68k_areg(regs, dstreg) = (newv);
57511 }}}}}}m68k_incpc(2);
57512 fill_prefetch_2 ();
57513 endlabel3048: ;
57514 return 14;
57515 }
CPUFUNC(op_d1e0_5)57516 unsigned long CPUFUNC(op_d1e0_5)(uint32_t opcode) /* ADDA */
57517 {
57518 	uint32_t srcreg = (opcode & 7);
57519 	uint32_t dstreg = (opcode >> 9) & 7;
57520 	OpcodeFamily = 12; CurrentInstrCycles = 16;
57521 {{	uint32_t srca = m68k_areg(regs, srcreg) - 4;
57522 	if ((srca & 1) != 0) {
57523 		last_fault_for_exception_3 = srca;
57524 		last_op_for_exception_3 = opcode;
57525 		last_addr_for_exception_3 = m68k_getpc() + 2;
57526 		Exception(3, 0, M68000_EXC_SRC_CPU);
57527 		goto endlabel3049;
57528 	}
57529 {{	int32_t src = m68k_read_memory_32(srca);
57530 	m68k_areg (regs, srcreg) = srca;
57531 {	int32_t dst = m68k_areg(regs, dstreg);
57532 {	uint32_t newv = dst + src;
57533 	m68k_areg(regs, dstreg) = (newv);
57534 }}}}}}m68k_incpc(2);
57535 fill_prefetch_2 ();
57536 endlabel3049: ;
57537 return 16;
57538 }
CPUFUNC(op_d1e8_5)57539 unsigned long CPUFUNC(op_d1e8_5)(uint32_t opcode) /* ADDA */
57540 {
57541 	uint32_t srcreg = (opcode & 7);
57542 	uint32_t dstreg = (opcode >> 9) & 7;
57543 	OpcodeFamily = 12; CurrentInstrCycles = 18;
57544 {{	uint32_t srca = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
57545 	if ((srca & 1) != 0) {
57546 		last_fault_for_exception_3 = srca;
57547 		last_op_for_exception_3 = opcode;
57548 		last_addr_for_exception_3 = m68k_getpc() + 4;
57549 		Exception(3, 0, M68000_EXC_SRC_CPU);
57550 		goto endlabel3050;
57551 	}
57552 {{	int32_t src = m68k_read_memory_32(srca);
57553 {	int32_t dst = m68k_areg(regs, dstreg);
57554 {	uint32_t newv = dst + src;
57555 	m68k_areg(regs, dstreg) = (newv);
57556 }}}}}}m68k_incpc(4);
57557 fill_prefetch_0 ();
57558 endlabel3050: ;
57559 return 18;
57560 }
CPUFUNC(op_d1f0_5)57561 unsigned long CPUFUNC(op_d1f0_5)(uint32_t opcode) /* ADDA */
57562 {
57563 	uint32_t srcreg = (opcode & 7);
57564 	uint32_t dstreg = (opcode >> 9) & 7;
57565 	OpcodeFamily = 12; CurrentInstrCycles = 20;
57566 {{	uint32_t srca = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
57567 	BusCyclePenalty += 2;
57568 	if ((srca & 1) != 0) {
57569 		last_fault_for_exception_3 = srca;
57570 		last_op_for_exception_3 = opcode;
57571 		last_addr_for_exception_3 = m68k_getpc() + 4;
57572 		Exception(3, 0, M68000_EXC_SRC_CPU);
57573 		goto endlabel3051;
57574 	}
57575 {{	int32_t src = m68k_read_memory_32(srca);
57576 {	int32_t dst = m68k_areg(regs, dstreg);
57577 {	uint32_t newv = dst + src;
57578 	m68k_areg(regs, dstreg) = (newv);
57579 }}}}}}m68k_incpc(4);
57580 fill_prefetch_0 ();
57581 endlabel3051: ;
57582 return 20;
57583 }
CPUFUNC(op_d1f8_5)57584 unsigned long CPUFUNC(op_d1f8_5)(uint32_t opcode) /* ADDA */
57585 {
57586 	uint32_t dstreg = (opcode >> 9) & 7;
57587 	OpcodeFamily = 12; CurrentInstrCycles = 18;
57588 {{	uint32_t srca = (int32_t)(int16_t)get_iword_prefetch(2);
57589 	if ((srca & 1) != 0) {
57590 		last_fault_for_exception_3 = srca;
57591 		last_op_for_exception_3 = opcode;
57592 		last_addr_for_exception_3 = m68k_getpc() + 4;
57593 		Exception(3, 0, M68000_EXC_SRC_CPU);
57594 		goto endlabel3052;
57595 	}
57596 {{	int32_t src = m68k_read_memory_32(srca);
57597 {	int32_t dst = m68k_areg(regs, dstreg);
57598 {	uint32_t newv = dst + src;
57599 	m68k_areg(regs, dstreg) = (newv);
57600 }}}}}}m68k_incpc(4);
57601 fill_prefetch_0 ();
57602 endlabel3052: ;
57603 return 18;
57604 }
CPUFUNC(op_d1f9_5)57605 unsigned long CPUFUNC(op_d1f9_5)(uint32_t opcode) /* ADDA */
57606 {
57607 	uint32_t dstreg = (opcode >> 9) & 7;
57608 	OpcodeFamily = 12; CurrentInstrCycles = 22;
57609 {{	uint32_t srca = get_ilong_prefetch(2);
57610 	if ((srca & 1) != 0) {
57611 		last_fault_for_exception_3 = srca;
57612 		last_op_for_exception_3 = opcode;
57613 		last_addr_for_exception_3 = m68k_getpc() + 6;
57614 		Exception(3, 0, M68000_EXC_SRC_CPU);
57615 		goto endlabel3053;
57616 	}
57617 {{	int32_t src = m68k_read_memory_32(srca);
57618 {	int32_t dst = m68k_areg(regs, dstreg);
57619 {	uint32_t newv = dst + src;
57620 	m68k_areg(regs, dstreg) = (newv);
57621 }}}}}}m68k_incpc(6);
57622 fill_prefetch_0 ();
57623 endlabel3053: ;
57624 return 22;
57625 }
CPUFUNC(op_d1fa_5)57626 unsigned long CPUFUNC(op_d1fa_5)(uint32_t opcode) /* ADDA */
57627 {
57628 	uint32_t dstreg = (opcode >> 9) & 7;
57629 	OpcodeFamily = 12; CurrentInstrCycles = 18;
57630 {{	uint32_t srca = m68k_getpc () + 2;
57631 	srca += (int32_t)(int16_t)get_iword_prefetch(2);
57632 	if ((srca & 1) != 0) {
57633 		last_fault_for_exception_3 = srca;
57634 		last_op_for_exception_3 = opcode;
57635 		last_addr_for_exception_3 = m68k_getpc() + 4;
57636 		Exception(3, 0, M68000_EXC_SRC_CPU);
57637 		goto endlabel3054;
57638 	}
57639 {{	int32_t src = m68k_read_memory_32(srca);
57640 {	int32_t dst = m68k_areg(regs, dstreg);
57641 {	uint32_t newv = dst + src;
57642 	m68k_areg(regs, dstreg) = (newv);
57643 }}}}}}m68k_incpc(4);
57644 fill_prefetch_0 ();
57645 endlabel3054: ;
57646 return 18;
57647 }
CPUFUNC(op_d1fb_5)57648 unsigned long CPUFUNC(op_d1fb_5)(uint32_t opcode) /* ADDA */
57649 {
57650 	uint32_t dstreg = (opcode >> 9) & 7;
57651 	OpcodeFamily = 12; CurrentInstrCycles = 20;
57652 {{	uint32_t tmppc = m68k_getpc() + 2;
57653 	uint32_t srca = get_disp_ea_000(tmppc, get_iword_prefetch(2));
57654 	BusCyclePenalty += 2;
57655 	if ((srca & 1) != 0) {
57656 		last_fault_for_exception_3 = srca;
57657 		last_op_for_exception_3 = opcode;
57658 		last_addr_for_exception_3 = m68k_getpc() + 4;
57659 		Exception(3, 0, M68000_EXC_SRC_CPU);
57660 		goto endlabel3055;
57661 	}
57662 {{	int32_t src = m68k_read_memory_32(srca);
57663 {	int32_t dst = m68k_areg(regs, dstreg);
57664 {	uint32_t newv = dst + src;
57665 	m68k_areg(regs, dstreg) = (newv);
57666 }}}}}}m68k_incpc(4);
57667 fill_prefetch_0 ();
57668 endlabel3055: ;
57669 return 20;
57670 }
CPUFUNC(op_d1fc_5)57671 unsigned long CPUFUNC(op_d1fc_5)(uint32_t opcode) /* ADDA */
57672 {
57673 	uint32_t dstreg = (opcode >> 9) & 7;
57674 	OpcodeFamily = 12; CurrentInstrCycles = 16;
57675 {{	int32_t src = get_ilong_prefetch(2);
57676 {	int32_t dst = m68k_areg(regs, dstreg);
57677 {	uint32_t newv = dst + src;
57678 	m68k_areg(regs, dstreg) = (newv);
57679 }}}}m68k_incpc(6);
57680 fill_prefetch_0 ();
57681 return 16;
57682 }
CPUFUNC(op_e000_5)57683 unsigned long CPUFUNC(op_e000_5)(uint32_t opcode) /* ASR */
57684 {
57685 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
57686 	uint32_t dstreg = opcode & 7;
57687 	unsigned int retcycles = 0;
57688 	OpcodeFamily = 64; CurrentInstrCycles = 4;
57689 {{	uint32_t cnt = srcreg;
57690 {	int8_t data = m68k_dreg(regs, dstreg);
57691 {	uint32_t val = (uint8_t)data;
57692 	uint32_t sign = (0x80 & val) >> 7;
57693 	cnt &= 63;
57694 	retcycles = cnt;
57695 	CLEAR_CZNV;
57696 	if (cnt >= 8) {
57697 		val = 0xff & (uint32_t)-sign;
57698 		SET_CFLG (sign);
57699 	COPY_CARRY;
57700 	} else {
57701 		val >>= cnt - 1;
57702 		SET_CFLG (val & 1);
57703 	COPY_CARRY;
57704 		val >>= 1;
57705 		val |= (0xff << (8 - cnt)) & (uint32_t)-sign;
57706 		val &= 0xff;
57707 	}
57708 	SET_ZFLG (((int8_t)(val)) == 0);
57709 	SET_NFLG (((int8_t)(val)) < 0);
57710 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57711 }}}}m68k_incpc(2);
57712 fill_prefetch_2 ();
57713  return (6+retcycles*2);
57714 }
CPUFUNC(op_e008_5)57715 unsigned long CPUFUNC(op_e008_5)(uint32_t opcode) /* LSR */
57716 {
57717 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
57718 	uint32_t dstreg = opcode & 7;
57719 	unsigned int retcycles = 0;
57720 	OpcodeFamily = 66; CurrentInstrCycles = 4;
57721 {{	uint32_t cnt = srcreg;
57722 {	int8_t data = m68k_dreg(regs, dstreg);
57723 {	uint32_t val = (uint8_t)data;
57724 	cnt &= 63;
57725 	retcycles = cnt;
57726 	CLEAR_CZNV;
57727 	if (cnt >= 8) {
57728 		SET_CFLG ((cnt == 8) & (val >> 7));
57729 	COPY_CARRY;
57730 		val = 0;
57731 	} else {
57732 		val >>= cnt - 1;
57733 		SET_CFLG (val & 1);
57734 	COPY_CARRY;
57735 		val >>= 1;
57736 	}
57737 	SET_ZFLG (((int8_t)(val)) == 0);
57738 	SET_NFLG (((int8_t)(val)) < 0);
57739 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57740 }}}}m68k_incpc(2);
57741 fill_prefetch_2 ();
57742  return (6+retcycles*2);
57743 }
CPUFUNC(op_e010_5)57744 unsigned long CPUFUNC(op_e010_5)(uint32_t opcode) /* ROXR */
57745 {
57746 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
57747 	uint32_t dstreg = opcode & 7;
57748 	unsigned int retcycles = 0;
57749 	OpcodeFamily = 71; CurrentInstrCycles = 4;
57750 {{	uint32_t cnt = srcreg;
57751 {	int8_t data = m68k_dreg(regs, dstreg);
57752 {	uint32_t val = (uint8_t)data;
57753 	cnt &= 63;
57754 	retcycles = cnt;
57755 	CLEAR_CZNV;
57756 {	cnt--;
57757 	{
57758 	uint32_t carry;
57759 	uint32_t hival = (val << 1) | GET_XFLG;
57760 	hival <<= (7 - cnt);
57761 	val >>= cnt;
57762 	carry = val & 1;
57763 	val >>= 1;
57764 	val |= hival;
57765 	SET_XFLG (carry);
57766 	val &= 0xff;
57767 	} }
57768 	SET_CFLG (GET_XFLG);
57769 	SET_ZFLG (((int8_t)(val)) == 0);
57770 	SET_NFLG (((int8_t)(val)) < 0);
57771 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57772 }}}}m68k_incpc(2);
57773 fill_prefetch_2 ();
57774  return (6+retcycles*2);
57775 }
CPUFUNC(op_e018_5)57776 unsigned long CPUFUNC(op_e018_5)(uint32_t opcode) /* ROR */
57777 {
57778 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
57779 	uint32_t dstreg = opcode & 7;
57780 	unsigned int retcycles = 0;
57781 	OpcodeFamily = 69; CurrentInstrCycles = 4;
57782 {{	uint32_t cnt = srcreg;
57783 {	int8_t data = m68k_dreg(regs, dstreg);
57784 {	uint32_t val = (uint8_t)data;
57785 	cnt &= 63;
57786 	retcycles = cnt;
57787 	CLEAR_CZNV;
57788 {	uint32_t hival;
57789 	cnt &= 7;
57790 	hival = val << (8 - cnt);
57791 	val >>= cnt;
57792 	val |= hival;
57793 	val &= 0xff;
57794 	SET_CFLG ((val & 0x80) >> 7);
57795 	}
57796 	SET_ZFLG (((int8_t)(val)) == 0);
57797 	SET_NFLG (((int8_t)(val)) < 0);
57798 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57799 }}}}m68k_incpc(2);
57800 fill_prefetch_2 ();
57801  return (6+retcycles*2);
57802 }
CPUFUNC(op_e020_5)57803 unsigned long CPUFUNC(op_e020_5)(uint32_t opcode) /* ASR */
57804 {
57805 	uint32_t srcreg = ((opcode >> 9) & 7);
57806 	uint32_t dstreg = opcode & 7;
57807 	unsigned int retcycles = 0;
57808 	OpcodeFamily = 64; CurrentInstrCycles = 4;
57809 {{	int8_t cnt = m68k_dreg(regs, srcreg);
57810 {	int8_t data = m68k_dreg(regs, dstreg);
57811 {	uint32_t val = (uint8_t)data;
57812 	uint32_t sign = (0x80 & val) >> 7;
57813 	cnt &= 63;
57814 	retcycles = cnt;
57815 	CLEAR_CZNV;
57816 	if (cnt >= 8) {
57817 		val = 0xff & (uint32_t)-sign;
57818 		SET_CFLG (sign);
57819 	COPY_CARRY;
57820 	} else if (cnt > 0) {
57821 		val >>= cnt - 1;
57822 		SET_CFLG (val & 1);
57823 	COPY_CARRY;
57824 		val >>= 1;
57825 		val |= (0xff << (8 - cnt)) & (uint32_t)-sign;
57826 		val &= 0xff;
57827 	}
57828 	SET_ZFLG (((int8_t)(val)) == 0);
57829 	SET_NFLG (((int8_t)(val)) < 0);
57830 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57831 }}}}m68k_incpc(2);
57832 fill_prefetch_2 ();
57833  return (6+retcycles*2);
57834 }
CPUFUNC(op_e028_5)57835 unsigned long CPUFUNC(op_e028_5)(uint32_t opcode) /* LSR */
57836 {
57837 	uint32_t srcreg = ((opcode >> 9) & 7);
57838 	uint32_t dstreg = opcode & 7;
57839 	unsigned int retcycles = 0;
57840 	OpcodeFamily = 66; CurrentInstrCycles = 4;
57841 {{	int8_t cnt = m68k_dreg(regs, srcreg);
57842 {	int8_t data = m68k_dreg(regs, dstreg);
57843 {	uint32_t val = (uint8_t)data;
57844 	cnt &= 63;
57845 	retcycles = cnt;
57846 	CLEAR_CZNV;
57847 	if (cnt >= 8) {
57848 		SET_CFLG ((cnt == 8) & (val >> 7));
57849 	COPY_CARRY;
57850 		val = 0;
57851 	} else if (cnt > 0) {
57852 		val >>= cnt - 1;
57853 		SET_CFLG (val & 1);
57854 	COPY_CARRY;
57855 		val >>= 1;
57856 	}
57857 	SET_ZFLG (((int8_t)(val)) == 0);
57858 	SET_NFLG (((int8_t)(val)) < 0);
57859 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57860 }}}}m68k_incpc(2);
57861 fill_prefetch_2 ();
57862  return (6+retcycles*2);
57863 }
CPUFUNC(op_e030_5)57864 unsigned long CPUFUNC(op_e030_5)(uint32_t opcode) /* ROXR */
57865 {
57866 	uint32_t srcreg = ((opcode >> 9) & 7);
57867 	uint32_t dstreg = opcode & 7;
57868 	unsigned int retcycles = 0;
57869 	OpcodeFamily = 71; CurrentInstrCycles = 4;
57870 {{	int8_t cnt = m68k_dreg(regs, srcreg);
57871 {	int8_t data = m68k_dreg(regs, dstreg);
57872 {	uint32_t val = (uint8_t)data;
57873 	cnt &= 63;
57874 	retcycles = cnt;
57875 	CLEAR_CZNV;
57876 	if (cnt >= 36) cnt -= 36;
57877 	if (cnt >= 18) cnt -= 18;
57878 	if (cnt >= 9) cnt -= 9;
57879 	if (cnt > 0) {
57880 	cnt--;
57881 	{
57882 	uint32_t carry;
57883 	uint32_t hival = (val << 1) | GET_XFLG;
57884 	hival <<= (7 - cnt);
57885 	val >>= cnt;
57886 	carry = val & 1;
57887 	val >>= 1;
57888 	val |= hival;
57889 	SET_XFLG (carry);
57890 	val &= 0xff;
57891 	} }
57892 	SET_CFLG (GET_XFLG);
57893 	SET_ZFLG (((int8_t)(val)) == 0);
57894 	SET_NFLG (((int8_t)(val)) < 0);
57895 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57896 }}}}m68k_incpc(2);
57897 fill_prefetch_2 ();
57898  return (6+retcycles*2);
57899 }
CPUFUNC(op_e038_5)57900 unsigned long CPUFUNC(op_e038_5)(uint32_t opcode) /* ROR */
57901 {
57902 	uint32_t srcreg = ((opcode >> 9) & 7);
57903 	uint32_t dstreg = opcode & 7;
57904 	unsigned int retcycles = 0;
57905 	OpcodeFamily = 69; CurrentInstrCycles = 4;
57906 {{	int8_t cnt = m68k_dreg(regs, srcreg);
57907 {	int8_t data = m68k_dreg(regs, dstreg);
57908 {	uint32_t val = (uint8_t)data;
57909 	cnt &= 63;
57910 	retcycles = cnt;
57911 	CLEAR_CZNV;
57912 	if (cnt > 0) {	uint32_t hival;
57913 	cnt &= 7;
57914 	hival = val << (8 - cnt);
57915 	val >>= cnt;
57916 	val |= hival;
57917 	val &= 0xff;
57918 	SET_CFLG ((val & 0x80) >> 7);
57919 	}
57920 	SET_ZFLG (((int8_t)(val)) == 0);
57921 	SET_NFLG (((int8_t)(val)) < 0);
57922 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
57923 }}}}m68k_incpc(2);
57924 fill_prefetch_2 ();
57925  return (6+retcycles*2);
57926 }
CPUFUNC(op_e040_5)57927 unsigned long CPUFUNC(op_e040_5)(uint32_t opcode) /* ASR */
57928 {
57929 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
57930 	uint32_t dstreg = opcode & 7;
57931 	unsigned int retcycles = 0;
57932 	OpcodeFamily = 64; CurrentInstrCycles = 4;
57933 {{	uint32_t cnt = srcreg;
57934 {	int16_t data = m68k_dreg(regs, dstreg);
57935 {	uint32_t val = (uint16_t)data;
57936 	uint32_t sign = (0x8000 & val) >> 15;
57937 	cnt &= 63;
57938 	retcycles = cnt;
57939 	CLEAR_CZNV;
57940 	if (cnt >= 16) {
57941 		val = 0xffff & (uint32_t)-sign;
57942 		SET_CFLG (sign);
57943 	COPY_CARRY;
57944 	} else {
57945 		val >>= cnt - 1;
57946 		SET_CFLG (val & 1);
57947 	COPY_CARRY;
57948 		val >>= 1;
57949 		val |= (0xffff << (16 - cnt)) & (uint32_t)-sign;
57950 		val &= 0xffff;
57951 	}
57952 	SET_ZFLG (((int16_t)(val)) == 0);
57953 	SET_NFLG (((int16_t)(val)) < 0);
57954 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
57955 }}}}m68k_incpc(2);
57956 fill_prefetch_2 ();
57957  return (6+retcycles*2);
57958 }
CPUFUNC(op_e048_5)57959 unsigned long CPUFUNC(op_e048_5)(uint32_t opcode) /* LSR */
57960 {
57961 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
57962 	uint32_t dstreg = opcode & 7;
57963 	unsigned int retcycles = 0;
57964 	OpcodeFamily = 66; CurrentInstrCycles = 4;
57965 {{	uint32_t cnt = srcreg;
57966 {	int16_t data = m68k_dreg(regs, dstreg);
57967 {	uint32_t val = (uint16_t)data;
57968 	cnt &= 63;
57969 	retcycles = cnt;
57970 	CLEAR_CZNV;
57971 	if (cnt >= 16) {
57972 		SET_CFLG ((cnt == 16) & (val >> 15));
57973 	COPY_CARRY;
57974 		val = 0;
57975 	} else {
57976 		val >>= cnt - 1;
57977 		SET_CFLG (val & 1);
57978 	COPY_CARRY;
57979 		val >>= 1;
57980 	}
57981 	SET_ZFLG (((int16_t)(val)) == 0);
57982 	SET_NFLG (((int16_t)(val)) < 0);
57983 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
57984 }}}}m68k_incpc(2);
57985 fill_prefetch_2 ();
57986  return (6+retcycles*2);
57987 }
CPUFUNC(op_e050_5)57988 unsigned long CPUFUNC(op_e050_5)(uint32_t opcode) /* ROXR */
57989 {
57990 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
57991 	uint32_t dstreg = opcode & 7;
57992 	unsigned int retcycles = 0;
57993 	OpcodeFamily = 71; CurrentInstrCycles = 4;
57994 {{	uint32_t cnt = srcreg;
57995 {	int16_t data = m68k_dreg(regs, dstreg);
57996 {	uint32_t val = (uint16_t)data;
57997 	cnt &= 63;
57998 	retcycles = cnt;
57999 	CLEAR_CZNV;
58000 {	cnt--;
58001 	{
58002 	uint32_t carry;
58003 	uint32_t hival = (val << 1) | GET_XFLG;
58004 	hival <<= (15 - cnt);
58005 	val >>= cnt;
58006 	carry = val & 1;
58007 	val >>= 1;
58008 	val |= hival;
58009 	SET_XFLG (carry);
58010 	val &= 0xffff;
58011 	} }
58012 	SET_CFLG (GET_XFLG);
58013 	SET_ZFLG (((int16_t)(val)) == 0);
58014 	SET_NFLG (((int16_t)(val)) < 0);
58015 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58016 }}}}m68k_incpc(2);
58017 fill_prefetch_2 ();
58018  return (6+retcycles*2);
58019 }
CPUFUNC(op_e058_5)58020 unsigned long CPUFUNC(op_e058_5)(uint32_t opcode) /* ROR */
58021 {
58022 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58023 	uint32_t dstreg = opcode & 7;
58024 	unsigned int retcycles = 0;
58025 	OpcodeFamily = 69; CurrentInstrCycles = 4;
58026 {{	uint32_t cnt = srcreg;
58027 {	int16_t data = m68k_dreg(regs, dstreg);
58028 {	uint32_t val = (uint16_t)data;
58029 	cnt &= 63;
58030 	retcycles = cnt;
58031 	CLEAR_CZNV;
58032 {	uint32_t hival;
58033 	cnt &= 15;
58034 	hival = val << (16 - cnt);
58035 	val >>= cnt;
58036 	val |= hival;
58037 	val &= 0xffff;
58038 	SET_CFLG ((val & 0x8000) >> 15);
58039 	}
58040 	SET_ZFLG (((int16_t)(val)) == 0);
58041 	SET_NFLG (((int16_t)(val)) < 0);
58042 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58043 }}}}m68k_incpc(2);
58044 fill_prefetch_2 ();
58045  return (6+retcycles*2);
58046 }
CPUFUNC(op_e060_5)58047 unsigned long CPUFUNC(op_e060_5)(uint32_t opcode) /* ASR */
58048 {
58049 	uint32_t srcreg = ((opcode >> 9) & 7);
58050 	uint32_t dstreg = opcode & 7;
58051 	unsigned int retcycles = 0;
58052 	OpcodeFamily = 64; CurrentInstrCycles = 4;
58053 {{	int16_t cnt = m68k_dreg(regs, srcreg);
58054 {	int16_t data = m68k_dreg(regs, dstreg);
58055 {	uint32_t val = (uint16_t)data;
58056 	uint32_t sign = (0x8000 & val) >> 15;
58057 	cnt &= 63;
58058 	retcycles = cnt;
58059 	CLEAR_CZNV;
58060 	if (cnt >= 16) {
58061 		val = 0xffff & (uint32_t)-sign;
58062 		SET_CFLG (sign);
58063 	COPY_CARRY;
58064 	} else if (cnt > 0) {
58065 		val >>= cnt - 1;
58066 		SET_CFLG (val & 1);
58067 	COPY_CARRY;
58068 		val >>= 1;
58069 		val |= (0xffff << (16 - cnt)) & (uint32_t)-sign;
58070 		val &= 0xffff;
58071 	}
58072 	SET_ZFLG (((int16_t)(val)) == 0);
58073 	SET_NFLG (((int16_t)(val)) < 0);
58074 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58075 }}}}m68k_incpc(2);
58076 fill_prefetch_2 ();
58077  return (6+retcycles*2);
58078 }
CPUFUNC(op_e068_5)58079 unsigned long CPUFUNC(op_e068_5)(uint32_t opcode) /* LSR */
58080 {
58081 	uint32_t srcreg = ((opcode >> 9) & 7);
58082 	uint32_t dstreg = opcode & 7;
58083 	unsigned int retcycles = 0;
58084 	OpcodeFamily = 66; CurrentInstrCycles = 4;
58085 {{	int16_t cnt = m68k_dreg(regs, srcreg);
58086 {	int16_t data = m68k_dreg(regs, dstreg);
58087 {	uint32_t val = (uint16_t)data;
58088 	cnt &= 63;
58089 	retcycles = cnt;
58090 	CLEAR_CZNV;
58091 	if (cnt >= 16) {
58092 		SET_CFLG ((cnt == 16) & (val >> 15));
58093 	COPY_CARRY;
58094 		val = 0;
58095 	} else if (cnt > 0) {
58096 		val >>= cnt - 1;
58097 		SET_CFLG (val & 1);
58098 	COPY_CARRY;
58099 		val >>= 1;
58100 	}
58101 	SET_ZFLG (((int16_t)(val)) == 0);
58102 	SET_NFLG (((int16_t)(val)) < 0);
58103 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58104 }}}}m68k_incpc(2);
58105 fill_prefetch_2 ();
58106  return (6+retcycles*2);
58107 }
CPUFUNC(op_e070_5)58108 unsigned long CPUFUNC(op_e070_5)(uint32_t opcode) /* ROXR */
58109 {
58110 	uint32_t srcreg = ((opcode >> 9) & 7);
58111 	uint32_t dstreg = opcode & 7;
58112 	unsigned int retcycles = 0;
58113 	OpcodeFamily = 71; CurrentInstrCycles = 4;
58114 {{	int16_t cnt = m68k_dreg(regs, srcreg);
58115 {	int16_t data = m68k_dreg(regs, dstreg);
58116 {	uint32_t val = (uint16_t)data;
58117 	cnt &= 63;
58118 	retcycles = cnt;
58119 	CLEAR_CZNV;
58120 	if (cnt >= 34) cnt -= 34;
58121 	if (cnt >= 17) cnt -= 17;
58122 	if (cnt > 0) {
58123 	cnt--;
58124 	{
58125 	uint32_t carry;
58126 	uint32_t hival = (val << 1) | GET_XFLG;
58127 	hival <<= (15 - cnt);
58128 	val >>= cnt;
58129 	carry = val & 1;
58130 	val >>= 1;
58131 	val |= hival;
58132 	SET_XFLG (carry);
58133 	val &= 0xffff;
58134 	} }
58135 	SET_CFLG (GET_XFLG);
58136 	SET_ZFLG (((int16_t)(val)) == 0);
58137 	SET_NFLG (((int16_t)(val)) < 0);
58138 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58139 }}}}m68k_incpc(2);
58140 fill_prefetch_2 ();
58141  return (6+retcycles*2);
58142 }
CPUFUNC(op_e078_5)58143 unsigned long CPUFUNC(op_e078_5)(uint32_t opcode) /* ROR */
58144 {
58145 	uint32_t srcreg = ((opcode >> 9) & 7);
58146 	uint32_t dstreg = opcode & 7;
58147 	unsigned int retcycles = 0;
58148 	OpcodeFamily = 69; CurrentInstrCycles = 4;
58149 {{	int16_t cnt = m68k_dreg(regs, srcreg);
58150 {	int16_t data = m68k_dreg(regs, dstreg);
58151 {	uint32_t val = (uint16_t)data;
58152 	cnt &= 63;
58153 	retcycles = cnt;
58154 	CLEAR_CZNV;
58155 	if (cnt > 0) {	uint32_t hival;
58156 	cnt &= 15;
58157 	hival = val << (16 - cnt);
58158 	val >>= cnt;
58159 	val |= hival;
58160 	val &= 0xffff;
58161 	SET_CFLG ((val & 0x8000) >> 15);
58162 	}
58163 	SET_ZFLG (((int16_t)(val)) == 0);
58164 	SET_NFLG (((int16_t)(val)) < 0);
58165 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58166 }}}}m68k_incpc(2);
58167 fill_prefetch_2 ();
58168  return (6+retcycles*2);
58169 }
CPUFUNC(op_e080_5)58170 unsigned long CPUFUNC(op_e080_5)(uint32_t opcode) /* ASR */
58171 {
58172 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58173 	uint32_t dstreg = opcode & 7;
58174 	unsigned int retcycles = 0;
58175 	OpcodeFamily = 64; CurrentInstrCycles = 4;
58176 {{	uint32_t cnt = srcreg;
58177 {	int32_t data = m68k_dreg(regs, dstreg);
58178 {	uint32_t val = data;
58179 	uint32_t sign = (0x80000000 & val) >> 31;
58180 	cnt &= 63;
58181 	retcycles = cnt;
58182 	CLEAR_CZNV;
58183 	if (cnt >= 32) {
58184 		val = 0xffffffff & (uint32_t)-sign;
58185 		SET_CFLG (sign);
58186 	COPY_CARRY;
58187 	} else {
58188 		val >>= cnt - 1;
58189 		SET_CFLG (val & 1);
58190 	COPY_CARRY;
58191 		val >>= 1;
58192 		val |= (0xffffffff << (32 - cnt)) & (uint32_t)-sign;
58193 		val &= 0xffffffff;
58194 	}
58195 	SET_ZFLG (((int32_t)(val)) == 0);
58196 	SET_NFLG (((int32_t)(val)) < 0);
58197 	m68k_dreg(regs, dstreg) = (val);
58198 }}}}m68k_incpc(2);
58199 fill_prefetch_2 ();
58200  return (8+retcycles*2);
58201 }
CPUFUNC(op_e088_5)58202 unsigned long CPUFUNC(op_e088_5)(uint32_t opcode) /* LSR */
58203 {
58204 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58205 	uint32_t dstreg = opcode & 7;
58206 	unsigned int retcycles = 0;
58207 	OpcodeFamily = 66; CurrentInstrCycles = 4;
58208 {{	uint32_t cnt = srcreg;
58209 {	int32_t data = m68k_dreg(regs, dstreg);
58210 {	uint32_t val = data;
58211 	cnt &= 63;
58212 	retcycles = cnt;
58213 	CLEAR_CZNV;
58214 	if (cnt >= 32) {
58215 		SET_CFLG ((cnt == 32) & (val >> 31));
58216 	COPY_CARRY;
58217 		val = 0;
58218 	} else {
58219 		val >>= cnt - 1;
58220 		SET_CFLG (val & 1);
58221 	COPY_CARRY;
58222 		val >>= 1;
58223 	}
58224 	SET_ZFLG (((int32_t)(val)) == 0);
58225 	SET_NFLG (((int32_t)(val)) < 0);
58226 	m68k_dreg(regs, dstreg) = (val);
58227 }}}}m68k_incpc(2);
58228 fill_prefetch_2 ();
58229  return (8+retcycles*2);
58230 }
CPUFUNC(op_e090_5)58231 unsigned long CPUFUNC(op_e090_5)(uint32_t opcode) /* ROXR */
58232 {
58233 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58234 	uint32_t dstreg = opcode & 7;
58235 	unsigned int retcycles = 0;
58236 	OpcodeFamily = 71; CurrentInstrCycles = 4;
58237 {{	uint32_t cnt = srcreg;
58238 {	int32_t data = m68k_dreg(regs, dstreg);
58239 {	uint32_t val = data;
58240 	cnt &= 63;
58241 	retcycles = cnt;
58242 	CLEAR_CZNV;
58243 {	cnt--;
58244 	{
58245 	uint32_t carry;
58246 	uint32_t hival = (val << 1) | GET_XFLG;
58247 	hival <<= (31 - cnt);
58248 	val >>= cnt;
58249 	carry = val & 1;
58250 	val >>= 1;
58251 	val |= hival;
58252 	SET_XFLG (carry);
58253 	val &= 0xffffffff;
58254 	} }
58255 	SET_CFLG (GET_XFLG);
58256 	SET_ZFLG (((int32_t)(val)) == 0);
58257 	SET_NFLG (((int32_t)(val)) < 0);
58258 	m68k_dreg(regs, dstreg) = (val);
58259 }}}}m68k_incpc(2);
58260 fill_prefetch_2 ();
58261  return (8+retcycles*2);
58262 }
CPUFUNC(op_e098_5)58263 unsigned long CPUFUNC(op_e098_5)(uint32_t opcode) /* ROR */
58264 {
58265 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58266 	uint32_t dstreg = opcode & 7;
58267 	unsigned int retcycles = 0;
58268 	OpcodeFamily = 69; CurrentInstrCycles = 4;
58269 {{	uint32_t cnt = srcreg;
58270 {	int32_t data = m68k_dreg(regs, dstreg);
58271 {	uint32_t val = data;
58272 	cnt &= 63;
58273 	retcycles = cnt;
58274 	CLEAR_CZNV;
58275 {	uint32_t hival;
58276 	cnt &= 31;
58277 	hival = val << (32 - cnt);
58278 	val >>= cnt;
58279 	val |= hival;
58280 	val &= 0xffffffff;
58281 	SET_CFLG ((val & 0x80000000) >> 31);
58282 	}
58283 	SET_ZFLG (((int32_t)(val)) == 0);
58284 	SET_NFLG (((int32_t)(val)) < 0);
58285 	m68k_dreg(regs, dstreg) = (val);
58286 }}}}m68k_incpc(2);
58287 fill_prefetch_2 ();
58288  return (8+retcycles*2);
58289 }
CPUFUNC(op_e0a0_5)58290 unsigned long CPUFUNC(op_e0a0_5)(uint32_t opcode) /* ASR */
58291 {
58292 	uint32_t srcreg = ((opcode >> 9) & 7);
58293 	uint32_t dstreg = opcode & 7;
58294 	unsigned int retcycles = 0;
58295 	OpcodeFamily = 64; CurrentInstrCycles = 4;
58296 {{	int32_t cnt = m68k_dreg(regs, srcreg);
58297 {	int32_t data = m68k_dreg(regs, dstreg);
58298 {	uint32_t val = data;
58299 	uint32_t sign = (0x80000000 & val) >> 31;
58300 	cnt &= 63;
58301 	retcycles = cnt;
58302 	CLEAR_CZNV;
58303 	if (cnt >= 32) {
58304 		val = 0xffffffff & (uint32_t)-sign;
58305 		SET_CFLG (sign);
58306 	COPY_CARRY;
58307 	} else if (cnt > 0) {
58308 		val >>= cnt - 1;
58309 		SET_CFLG (val & 1);
58310 	COPY_CARRY;
58311 		val >>= 1;
58312 		val |= (0xffffffff << (32 - cnt)) & (uint32_t)-sign;
58313 		val &= 0xffffffff;
58314 	}
58315 	SET_ZFLG (((int32_t)(val)) == 0);
58316 	SET_NFLG (((int32_t)(val)) < 0);
58317 	m68k_dreg(regs, dstreg) = (val);
58318 }}}}m68k_incpc(2);
58319 fill_prefetch_2 ();
58320  return (8+retcycles*2);
58321 }
CPUFUNC(op_e0a8_5)58322 unsigned long CPUFUNC(op_e0a8_5)(uint32_t opcode) /* LSR */
58323 {
58324 	uint32_t srcreg = ((opcode >> 9) & 7);
58325 	uint32_t dstreg = opcode & 7;
58326 	unsigned int retcycles = 0;
58327 	OpcodeFamily = 66; CurrentInstrCycles = 4;
58328 {{	int32_t cnt = m68k_dreg(regs, srcreg);
58329 {	int32_t data = m68k_dreg(regs, dstreg);
58330 {	uint32_t val = data;
58331 	cnt &= 63;
58332 	retcycles = cnt;
58333 	CLEAR_CZNV;
58334 	if (cnt >= 32) {
58335 		SET_CFLG ((cnt == 32) & (val >> 31));
58336 	COPY_CARRY;
58337 		val = 0;
58338 	} else if (cnt > 0) {
58339 		val >>= cnt - 1;
58340 		SET_CFLG (val & 1);
58341 	COPY_CARRY;
58342 		val >>= 1;
58343 	}
58344 	SET_ZFLG (((int32_t)(val)) == 0);
58345 	SET_NFLG (((int32_t)(val)) < 0);
58346 	m68k_dreg(regs, dstreg) = (val);
58347 }}}}m68k_incpc(2);
58348 fill_prefetch_2 ();
58349  return (8+retcycles*2);
58350 }
CPUFUNC(op_e0b0_5)58351 unsigned long CPUFUNC(op_e0b0_5)(uint32_t opcode) /* ROXR */
58352 {
58353 	uint32_t srcreg = ((opcode >> 9) & 7);
58354 	uint32_t dstreg = opcode & 7;
58355 	unsigned int retcycles = 0;
58356 	OpcodeFamily = 71; CurrentInstrCycles = 4;
58357 {{	int32_t cnt = m68k_dreg(regs, srcreg);
58358 {	int32_t data = m68k_dreg(regs, dstreg);
58359 {	uint32_t val = data;
58360 	cnt &= 63;
58361 	retcycles = cnt;
58362 	CLEAR_CZNV;
58363 	if (cnt >= 33) cnt -= 33;
58364 	if (cnt > 0) {
58365 	cnt--;
58366 	{
58367 	uint32_t carry;
58368 	uint32_t hival = (val << 1) | GET_XFLG;
58369 	hival <<= (31 - cnt);
58370 	val >>= cnt;
58371 	carry = val & 1;
58372 	val >>= 1;
58373 	val |= hival;
58374 	SET_XFLG (carry);
58375 	val &= 0xffffffff;
58376 	} }
58377 	SET_CFLG (GET_XFLG);
58378 	SET_ZFLG (((int32_t)(val)) == 0);
58379 	SET_NFLG (((int32_t)(val)) < 0);
58380 	m68k_dreg(regs, dstreg) = (val);
58381 }}}}m68k_incpc(2);
58382 fill_prefetch_2 ();
58383  return (8+retcycles*2);
58384 }
CPUFUNC(op_e0b8_5)58385 unsigned long CPUFUNC(op_e0b8_5)(uint32_t opcode) /* ROR */
58386 {
58387 	uint32_t srcreg = ((opcode >> 9) & 7);
58388 	uint32_t dstreg = opcode & 7;
58389 	unsigned int retcycles = 0;
58390 	OpcodeFamily = 69; CurrentInstrCycles = 4;
58391 {{	int32_t cnt = m68k_dreg(regs, srcreg);
58392 {	int32_t data = m68k_dreg(regs, dstreg);
58393 {	uint32_t val = data;
58394 	cnt &= 63;
58395 	retcycles = cnt;
58396 	CLEAR_CZNV;
58397 	if (cnt > 0) {	uint32_t hival;
58398 	cnt &= 31;
58399 	hival = val << (32 - cnt);
58400 	val >>= cnt;
58401 	val |= hival;
58402 	val &= 0xffffffff;
58403 	SET_CFLG ((val & 0x80000000) >> 31);
58404 	}
58405 	SET_ZFLG (((int32_t)(val)) == 0);
58406 	SET_NFLG (((int32_t)(val)) < 0);
58407 	m68k_dreg(regs, dstreg) = (val);
58408 }}}}m68k_incpc(2);
58409 fill_prefetch_2 ();
58410  return (8+retcycles*2);
58411 }
CPUFUNC(op_e0d0_5)58412 unsigned long CPUFUNC(op_e0d0_5)(uint32_t opcode) /* ASRW */
58413 {
58414 	uint32_t srcreg = (opcode & 7);
58415 	OpcodeFamily = 72; CurrentInstrCycles = 12;
58416 {{	uint32_t dataa = m68k_areg(regs, srcreg);
58417 	if ((dataa & 1) != 0) {
58418 		last_fault_for_exception_3 = dataa;
58419 		last_op_for_exception_3 = opcode;
58420 		last_addr_for_exception_3 = m68k_getpc() + 2;
58421 		Exception(3, 0, M68000_EXC_SRC_CPU);
58422 		goto endlabel3081;
58423 	}
58424 {{	int16_t data = m68k_read_memory_16(dataa);
58425 {	uint32_t val = (uint16_t)data;
58426 	uint32_t sign = 0x8000 & val;
58427 	uint32_t cflg = val & 1;
58428 	val = (val >> 1) | sign;
58429 	CLEAR_CZNV;
58430 	SET_ZFLG (((int16_t)(val)) == 0);
58431 	SET_NFLG (((int16_t)(val)) < 0);
58432 	SET_CFLG (cflg);
58433 	COPY_CARRY;
58434 m68k_incpc(2);
58435 fill_prefetch_2 ();
58436 	m68k_write_memory_16(dataa,val);
58437 }}}}}endlabel3081: ;
58438 return 12;
58439 }
CPUFUNC(op_e0d8_5)58440 unsigned long CPUFUNC(op_e0d8_5)(uint32_t opcode) /* ASRW */
58441 {
58442 	uint32_t srcreg = (opcode & 7);
58443 	OpcodeFamily = 72; CurrentInstrCycles = 12;
58444 {{	uint32_t dataa = m68k_areg(regs, srcreg);
58445 	if ((dataa & 1) != 0) {
58446 		last_fault_for_exception_3 = dataa;
58447 		last_op_for_exception_3 = opcode;
58448 		last_addr_for_exception_3 = m68k_getpc() + 2;
58449 		Exception(3, 0, M68000_EXC_SRC_CPU);
58450 		goto endlabel3082;
58451 	}
58452 {{	int16_t data = m68k_read_memory_16(dataa);
58453 	m68k_areg(regs, srcreg) += 2;
58454 {	uint32_t val = (uint16_t)data;
58455 	uint32_t sign = 0x8000 & val;
58456 	uint32_t cflg = val & 1;
58457 	val = (val >> 1) | sign;
58458 	CLEAR_CZNV;
58459 	SET_ZFLG (((int16_t)(val)) == 0);
58460 	SET_NFLG (((int16_t)(val)) < 0);
58461 	SET_CFLG (cflg);
58462 	COPY_CARRY;
58463 m68k_incpc(2);
58464 fill_prefetch_2 ();
58465 	m68k_write_memory_16(dataa,val);
58466 }}}}}endlabel3082: ;
58467 return 12;
58468 }
CPUFUNC(op_e0e0_5)58469 unsigned long CPUFUNC(op_e0e0_5)(uint32_t opcode) /* ASRW */
58470 {
58471 	uint32_t srcreg = (opcode & 7);
58472 	OpcodeFamily = 72; CurrentInstrCycles = 14;
58473 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
58474 	if ((dataa & 1) != 0) {
58475 		last_fault_for_exception_3 = dataa;
58476 		last_op_for_exception_3 = opcode;
58477 		last_addr_for_exception_3 = m68k_getpc() + 2;
58478 		Exception(3, 0, M68000_EXC_SRC_CPU);
58479 		goto endlabel3083;
58480 	}
58481 {{	int16_t data = m68k_read_memory_16(dataa);
58482 	m68k_areg (regs, srcreg) = dataa;
58483 {	uint32_t val = (uint16_t)data;
58484 	uint32_t sign = 0x8000 & val;
58485 	uint32_t cflg = val & 1;
58486 	val = (val >> 1) | sign;
58487 	CLEAR_CZNV;
58488 	SET_ZFLG (((int16_t)(val)) == 0);
58489 	SET_NFLG (((int16_t)(val)) < 0);
58490 	SET_CFLG (cflg);
58491 	COPY_CARRY;
58492 m68k_incpc(2);
58493 fill_prefetch_2 ();
58494 	m68k_write_memory_16(dataa,val);
58495 }}}}}endlabel3083: ;
58496 return 14;
58497 }
CPUFUNC(op_e0e8_5)58498 unsigned long CPUFUNC(op_e0e8_5)(uint32_t opcode) /* ASRW */
58499 {
58500 	uint32_t srcreg = (opcode & 7);
58501 	OpcodeFamily = 72; CurrentInstrCycles = 16;
58502 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
58503 	if ((dataa & 1) != 0) {
58504 		last_fault_for_exception_3 = dataa;
58505 		last_op_for_exception_3 = opcode;
58506 		last_addr_for_exception_3 = m68k_getpc() + 4;
58507 		Exception(3, 0, M68000_EXC_SRC_CPU);
58508 		goto endlabel3084;
58509 	}
58510 {{	int16_t data = m68k_read_memory_16(dataa);
58511 {	uint32_t val = (uint16_t)data;
58512 	uint32_t sign = 0x8000 & val;
58513 	uint32_t cflg = val & 1;
58514 	val = (val >> 1) | sign;
58515 	CLEAR_CZNV;
58516 	SET_ZFLG (((int16_t)(val)) == 0);
58517 	SET_NFLG (((int16_t)(val)) < 0);
58518 	SET_CFLG (cflg);
58519 	COPY_CARRY;
58520 m68k_incpc(4);
58521 fill_prefetch_0 ();
58522 	m68k_write_memory_16(dataa,val);
58523 }}}}}endlabel3084: ;
58524 return 16;
58525 }
CPUFUNC(op_e0f0_5)58526 unsigned long CPUFUNC(op_e0f0_5)(uint32_t opcode) /* ASRW */
58527 {
58528 	uint32_t srcreg = (opcode & 7);
58529 	OpcodeFamily = 72; CurrentInstrCycles = 18;
58530 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
58531 	BusCyclePenalty += 2;
58532 	if ((dataa & 1) != 0) {
58533 		last_fault_for_exception_3 = dataa;
58534 		last_op_for_exception_3 = opcode;
58535 		last_addr_for_exception_3 = m68k_getpc() + 4;
58536 		Exception(3, 0, M68000_EXC_SRC_CPU);
58537 		goto endlabel3085;
58538 	}
58539 {{	int16_t data = m68k_read_memory_16(dataa);
58540 {	uint32_t val = (uint16_t)data;
58541 	uint32_t sign = 0x8000 & val;
58542 	uint32_t cflg = val & 1;
58543 	val = (val >> 1) | sign;
58544 	CLEAR_CZNV;
58545 	SET_ZFLG (((int16_t)(val)) == 0);
58546 	SET_NFLG (((int16_t)(val)) < 0);
58547 	SET_CFLG (cflg);
58548 	COPY_CARRY;
58549 m68k_incpc(4);
58550 fill_prefetch_0 ();
58551 	m68k_write_memory_16(dataa,val);
58552 }}}}}endlabel3085: ;
58553 return 18;
58554 }
CPUFUNC(op_e0f8_5)58555 unsigned long CPUFUNC(op_e0f8_5)(uint32_t opcode) /* ASRW */
58556 {
58557 	OpcodeFamily = 72; CurrentInstrCycles = 16;
58558 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
58559 	if ((dataa & 1) != 0) {
58560 		last_fault_for_exception_3 = dataa;
58561 		last_op_for_exception_3 = opcode;
58562 		last_addr_for_exception_3 = m68k_getpc() + 4;
58563 		Exception(3, 0, M68000_EXC_SRC_CPU);
58564 		goto endlabel3086;
58565 	}
58566 {{	int16_t data = m68k_read_memory_16(dataa);
58567 {	uint32_t val = (uint16_t)data;
58568 	uint32_t sign = 0x8000 & val;
58569 	uint32_t cflg = val & 1;
58570 	val = (val >> 1) | sign;
58571 	CLEAR_CZNV;
58572 	SET_ZFLG (((int16_t)(val)) == 0);
58573 	SET_NFLG (((int16_t)(val)) < 0);
58574 	SET_CFLG (cflg);
58575 	COPY_CARRY;
58576 m68k_incpc(4);
58577 fill_prefetch_0 ();
58578 	m68k_write_memory_16(dataa,val);
58579 }}}}}endlabel3086: ;
58580 return 16;
58581 }
CPUFUNC(op_e0f9_5)58582 unsigned long CPUFUNC(op_e0f9_5)(uint32_t opcode) /* ASRW */
58583 {
58584 	OpcodeFamily = 72; CurrentInstrCycles = 20;
58585 {{	uint32_t dataa = get_ilong_prefetch(2);
58586 	if ((dataa & 1) != 0) {
58587 		last_fault_for_exception_3 = dataa;
58588 		last_op_for_exception_3 = opcode;
58589 		last_addr_for_exception_3 = m68k_getpc() + 6;
58590 		Exception(3, 0, M68000_EXC_SRC_CPU);
58591 		goto endlabel3087;
58592 	}
58593 {{	int16_t data = m68k_read_memory_16(dataa);
58594 {	uint32_t val = (uint16_t)data;
58595 	uint32_t sign = 0x8000 & val;
58596 	uint32_t cflg = val & 1;
58597 	val = (val >> 1) | sign;
58598 	CLEAR_CZNV;
58599 	SET_ZFLG (((int16_t)(val)) == 0);
58600 	SET_NFLG (((int16_t)(val)) < 0);
58601 	SET_CFLG (cflg);
58602 	COPY_CARRY;
58603 m68k_incpc(6);
58604 fill_prefetch_0 ();
58605 	m68k_write_memory_16(dataa,val);
58606 }}}}}endlabel3087: ;
58607 return 20;
58608 }
CPUFUNC(op_e100_5)58609 unsigned long CPUFUNC(op_e100_5)(uint32_t opcode) /* ASL */
58610 {
58611 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58612 	uint32_t dstreg = opcode & 7;
58613 	unsigned int retcycles = 0;
58614 	OpcodeFamily = 65; CurrentInstrCycles = 4;
58615 {{	uint32_t cnt = srcreg;
58616 {	int8_t data = m68k_dreg(regs, dstreg);
58617 {	uint32_t val = (uint8_t)data;
58618 	cnt &= 63;
58619 	retcycles = cnt;
58620 	CLEAR_CZNV;
58621 	if (cnt >= 8) {
58622 		SET_VFLG (val != 0);
58623 		SET_CFLG (cnt == 8 ? val & 1 : 0);
58624 	COPY_CARRY;
58625 		val = 0;
58626 	} else {
58627 		uint32_t mask = (0xff << (7 - cnt)) & 0xff;
58628 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
58629 		val <<= cnt - 1;
58630 		SET_CFLG ((val & 0x80) >> 7);
58631 	COPY_CARRY;
58632 		val <<= 1;
58633 		val &= 0xff;
58634 	}
58635 	SET_ZFLG (((int8_t)(val)) == 0);
58636 	SET_NFLG (((int8_t)(val)) < 0);
58637 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58638 }}}}m68k_incpc(2);
58639 fill_prefetch_2 ();
58640  return (6+retcycles*2);
58641 }
CPUFUNC(op_e108_5)58642 unsigned long CPUFUNC(op_e108_5)(uint32_t opcode) /* LSL */
58643 {
58644 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58645 	uint32_t dstreg = opcode & 7;
58646 	unsigned int retcycles = 0;
58647 	OpcodeFamily = 67; CurrentInstrCycles = 4;
58648 {{	uint32_t cnt = srcreg;
58649 {	int8_t data = m68k_dreg(regs, dstreg);
58650 {	uint32_t val = (uint8_t)data;
58651 	cnt &= 63;
58652 	retcycles = cnt;
58653 	CLEAR_CZNV;
58654 	if (cnt >= 8) {
58655 		SET_CFLG (cnt == 8 ? val & 1 : 0);
58656 	COPY_CARRY;
58657 		val = 0;
58658 	} else {
58659 		val <<= (cnt - 1);
58660 		SET_CFLG ((val & 0x80) >> 7);
58661 	COPY_CARRY;
58662 		val <<= 1;
58663 	val &= 0xff;
58664 	}
58665 	SET_ZFLG (((int8_t)(val)) == 0);
58666 	SET_NFLG (((int8_t)(val)) < 0);
58667 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58668 }}}}m68k_incpc(2);
58669 fill_prefetch_2 ();
58670  return (6+retcycles*2);
58671 }
CPUFUNC(op_e110_5)58672 unsigned long CPUFUNC(op_e110_5)(uint32_t opcode) /* ROXL */
58673 {
58674 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58675 	uint32_t dstreg = opcode & 7;
58676 	unsigned int retcycles = 0;
58677 	OpcodeFamily = 70; CurrentInstrCycles = 4;
58678 {{	uint32_t cnt = srcreg;
58679 {	int8_t data = m68k_dreg(regs, dstreg);
58680 {	uint32_t val = (uint8_t)data;
58681 	cnt &= 63;
58682 	retcycles = cnt;
58683 	CLEAR_CZNV;
58684 {	cnt--;
58685 	{
58686 	uint32_t carry;
58687 	uint32_t loval = val >> (7 - cnt);
58688 	carry = loval & 1;
58689 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
58690 	SET_XFLG (carry);
58691 	val &= 0xff;
58692 	} }
58693 	SET_CFLG (GET_XFLG);
58694 	SET_ZFLG (((int8_t)(val)) == 0);
58695 	SET_NFLG (((int8_t)(val)) < 0);
58696 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58697 }}}}m68k_incpc(2);
58698 fill_prefetch_2 ();
58699  return (6+retcycles*2);
58700 }
CPUFUNC(op_e118_5)58701 unsigned long CPUFUNC(op_e118_5)(uint32_t opcode) /* ROL */
58702 {
58703 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58704 	uint32_t dstreg = opcode & 7;
58705 	unsigned int retcycles = 0;
58706 	OpcodeFamily = 68; CurrentInstrCycles = 4;
58707 {{	uint32_t cnt = srcreg;
58708 {	int8_t data = m68k_dreg(regs, dstreg);
58709 {	uint32_t val = (uint8_t)data;
58710 	cnt &= 63;
58711 	retcycles = cnt;
58712 	CLEAR_CZNV;
58713 {	uint32_t loval;
58714 	cnt &= 7;
58715 	loval = val >> (8 - cnt);
58716 	val <<= cnt;
58717 	val |= loval;
58718 	val &= 0xff;
58719 	SET_CFLG (val & 1);
58720 }
58721 	SET_ZFLG (((int8_t)(val)) == 0);
58722 	SET_NFLG (((int8_t)(val)) < 0);
58723 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58724 }}}}m68k_incpc(2);
58725 fill_prefetch_2 ();
58726  return (6+retcycles*2);
58727 }
CPUFUNC(op_e120_5)58728 unsigned long CPUFUNC(op_e120_5)(uint32_t opcode) /* ASL */
58729 {
58730 	uint32_t srcreg = ((opcode >> 9) & 7);
58731 	uint32_t dstreg = opcode & 7;
58732 	unsigned int retcycles = 0;
58733 	OpcodeFamily = 65; CurrentInstrCycles = 4;
58734 {{	int8_t cnt = m68k_dreg(regs, srcreg);
58735 {	int8_t data = m68k_dreg(regs, dstreg);
58736 {	uint32_t val = (uint8_t)data;
58737 	cnt &= 63;
58738 	retcycles = cnt;
58739 	CLEAR_CZNV;
58740 	if (cnt >= 8) {
58741 		SET_VFLG (val != 0);
58742 		SET_CFLG (cnt == 8 ? val & 1 : 0);
58743 	COPY_CARRY;
58744 		val = 0;
58745 	} else if (cnt > 0) {
58746 		uint32_t mask = (0xff << (7 - cnt)) & 0xff;
58747 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
58748 		val <<= cnt - 1;
58749 		SET_CFLG ((val & 0x80) >> 7);
58750 	COPY_CARRY;
58751 		val <<= 1;
58752 		val &= 0xff;
58753 	}
58754 	SET_ZFLG (((int8_t)(val)) == 0);
58755 	SET_NFLG (((int8_t)(val)) < 0);
58756 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58757 }}}}m68k_incpc(2);
58758 fill_prefetch_2 ();
58759  return (6+retcycles*2);
58760 }
CPUFUNC(op_e128_5)58761 unsigned long CPUFUNC(op_e128_5)(uint32_t opcode) /* LSL */
58762 {
58763 	uint32_t srcreg = ((opcode >> 9) & 7);
58764 	uint32_t dstreg = opcode & 7;
58765 	unsigned int retcycles = 0;
58766 	OpcodeFamily = 67; CurrentInstrCycles = 4;
58767 {{	int8_t cnt = m68k_dreg(regs, srcreg);
58768 {	int8_t data = m68k_dreg(regs, dstreg);
58769 {	uint32_t val = (uint8_t)data;
58770 	cnt &= 63;
58771 	retcycles = cnt;
58772 	CLEAR_CZNV;
58773 	if (cnt >= 8) {
58774 		SET_CFLG (cnt == 8 ? val & 1 : 0);
58775 	COPY_CARRY;
58776 		val = 0;
58777 	} else if (cnt > 0) {
58778 		val <<= (cnt - 1);
58779 		SET_CFLG ((val & 0x80) >> 7);
58780 	COPY_CARRY;
58781 		val <<= 1;
58782 	val &= 0xff;
58783 	}
58784 	SET_ZFLG (((int8_t)(val)) == 0);
58785 	SET_NFLG (((int8_t)(val)) < 0);
58786 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58787 }}}}m68k_incpc(2);
58788 fill_prefetch_2 ();
58789  return (6+retcycles*2);
58790 }
CPUFUNC(op_e130_5)58791 unsigned long CPUFUNC(op_e130_5)(uint32_t opcode) /* ROXL */
58792 {
58793 	uint32_t srcreg = ((opcode >> 9) & 7);
58794 	uint32_t dstreg = opcode & 7;
58795 	unsigned int retcycles = 0;
58796 	OpcodeFamily = 70; CurrentInstrCycles = 4;
58797 {{	int8_t cnt = m68k_dreg(regs, srcreg);
58798 {	int8_t data = m68k_dreg(regs, dstreg);
58799 {	uint32_t val = (uint8_t)data;
58800 	cnt &= 63;
58801 	retcycles = cnt;
58802 	CLEAR_CZNV;
58803 	if (cnt >= 36) cnt -= 36;
58804 	if (cnt >= 18) cnt -= 18;
58805 	if (cnt >= 9) cnt -= 9;
58806 	if (cnt > 0) {
58807 	cnt--;
58808 	{
58809 	uint32_t carry;
58810 	uint32_t loval = val >> (7 - cnt);
58811 	carry = loval & 1;
58812 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
58813 	SET_XFLG (carry);
58814 	val &= 0xff;
58815 	} }
58816 	SET_CFLG (GET_XFLG);
58817 	SET_ZFLG (((int8_t)(val)) == 0);
58818 	SET_NFLG (((int8_t)(val)) < 0);
58819 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58820 }}}}m68k_incpc(2);
58821 fill_prefetch_2 ();
58822  return (6+retcycles*2);
58823 }
CPUFUNC(op_e138_5)58824 unsigned long CPUFUNC(op_e138_5)(uint32_t opcode) /* ROL */
58825 {
58826 	uint32_t srcreg = ((opcode >> 9) & 7);
58827 	uint32_t dstreg = opcode & 7;
58828 	unsigned int retcycles = 0;
58829 	OpcodeFamily = 68; CurrentInstrCycles = 4;
58830 {{	int8_t cnt = m68k_dreg(regs, srcreg);
58831 {	int8_t data = m68k_dreg(regs, dstreg);
58832 {	uint32_t val = (uint8_t)data;
58833 	cnt &= 63;
58834 	retcycles = cnt;
58835 	CLEAR_CZNV;
58836 	if (cnt > 0) {
58837 	uint32_t loval;
58838 	cnt &= 7;
58839 	loval = val >> (8 - cnt);
58840 	val <<= cnt;
58841 	val |= loval;
58842 	val &= 0xff;
58843 	SET_CFLG (val & 1);
58844 }
58845 	SET_ZFLG (((int8_t)(val)) == 0);
58846 	SET_NFLG (((int8_t)(val)) < 0);
58847 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xff) | ((val) & 0xff);
58848 }}}}m68k_incpc(2);
58849 fill_prefetch_2 ();
58850  return (6+retcycles*2);
58851 }
CPUFUNC(op_e140_5)58852 unsigned long CPUFUNC(op_e140_5)(uint32_t opcode) /* ASL */
58853 {
58854 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58855 	uint32_t dstreg = opcode & 7;
58856 	unsigned int retcycles = 0;
58857 	OpcodeFamily = 65; CurrentInstrCycles = 4;
58858 {{	uint32_t cnt = srcreg;
58859 {	int16_t data = m68k_dreg(regs, dstreg);
58860 {	uint32_t val = (uint16_t)data;
58861 	cnt &= 63;
58862 	retcycles = cnt;
58863 	CLEAR_CZNV;
58864 	if (cnt >= 16) {
58865 		SET_VFLG (val != 0);
58866 		SET_CFLG (cnt == 16 ? val & 1 : 0);
58867 	COPY_CARRY;
58868 		val = 0;
58869 	} else {
58870 		uint32_t mask = (0xffff << (15 - cnt)) & 0xffff;
58871 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
58872 		val <<= cnt - 1;
58873 		SET_CFLG ((val & 0x8000) >> 15);
58874 	COPY_CARRY;
58875 		val <<= 1;
58876 		val &= 0xffff;
58877 	}
58878 	SET_ZFLG (((int16_t)(val)) == 0);
58879 	SET_NFLG (((int16_t)(val)) < 0);
58880 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58881 }}}}m68k_incpc(2);
58882 fill_prefetch_2 ();
58883  return (6+retcycles*2);
58884 }
CPUFUNC(op_e148_5)58885 unsigned long CPUFUNC(op_e148_5)(uint32_t opcode) /* LSL */
58886 {
58887 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58888 	uint32_t dstreg = opcode & 7;
58889 	unsigned int retcycles = 0;
58890 	OpcodeFamily = 67; CurrentInstrCycles = 4;
58891 {{	uint32_t cnt = srcreg;
58892 {	int16_t data = m68k_dreg(regs, dstreg);
58893 {	uint32_t val = (uint16_t)data;
58894 	cnt &= 63;
58895 	retcycles = cnt;
58896 	CLEAR_CZNV;
58897 	if (cnt >= 16) {
58898 		SET_CFLG (cnt == 16 ? val & 1 : 0);
58899 	COPY_CARRY;
58900 		val = 0;
58901 	} else {
58902 		val <<= (cnt - 1);
58903 		SET_CFLG ((val & 0x8000) >> 15);
58904 	COPY_CARRY;
58905 		val <<= 1;
58906 	val &= 0xffff;
58907 	}
58908 	SET_ZFLG (((int16_t)(val)) == 0);
58909 	SET_NFLG (((int16_t)(val)) < 0);
58910 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58911 }}}}m68k_incpc(2);
58912 fill_prefetch_2 ();
58913  return (6+retcycles*2);
58914 }
CPUFUNC(op_e150_5)58915 unsigned long CPUFUNC(op_e150_5)(uint32_t opcode) /* ROXL */
58916 {
58917 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58918 	uint32_t dstreg = opcode & 7;
58919 	unsigned int retcycles = 0;
58920 	OpcodeFamily = 70; CurrentInstrCycles = 4;
58921 {{	uint32_t cnt = srcreg;
58922 {	int16_t data = m68k_dreg(regs, dstreg);
58923 {	uint32_t val = (uint16_t)data;
58924 	cnt &= 63;
58925 	retcycles = cnt;
58926 	CLEAR_CZNV;
58927 {	cnt--;
58928 	{
58929 	uint32_t carry;
58930 	uint32_t loval = val >> (15 - cnt);
58931 	carry = loval & 1;
58932 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
58933 	SET_XFLG (carry);
58934 	val &= 0xffff;
58935 	} }
58936 	SET_CFLG (GET_XFLG);
58937 	SET_ZFLG (((int16_t)(val)) == 0);
58938 	SET_NFLG (((int16_t)(val)) < 0);
58939 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58940 }}}}m68k_incpc(2);
58941 fill_prefetch_2 ();
58942  return (6+retcycles*2);
58943 }
CPUFUNC(op_e158_5)58944 unsigned long CPUFUNC(op_e158_5)(uint32_t opcode) /* ROL */
58945 {
58946 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
58947 	uint32_t dstreg = opcode & 7;
58948 	unsigned int retcycles = 0;
58949 	OpcodeFamily = 68; CurrentInstrCycles = 4;
58950 {{	uint32_t cnt = srcreg;
58951 {	int16_t data = m68k_dreg(regs, dstreg);
58952 {	uint32_t val = (uint16_t)data;
58953 	cnt &= 63;
58954 	retcycles = cnt;
58955 	CLEAR_CZNV;
58956 {	uint32_t loval;
58957 	cnt &= 15;
58958 	loval = val >> (16 - cnt);
58959 	val <<= cnt;
58960 	val |= loval;
58961 	val &= 0xffff;
58962 	SET_CFLG (val & 1);
58963 }
58964 	SET_ZFLG (((int16_t)(val)) == 0);
58965 	SET_NFLG (((int16_t)(val)) < 0);
58966 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
58967 }}}}m68k_incpc(2);
58968 fill_prefetch_2 ();
58969  return (6+retcycles*2);
58970 }
CPUFUNC(op_e160_5)58971 unsigned long CPUFUNC(op_e160_5)(uint32_t opcode) /* ASL */
58972 {
58973 	uint32_t srcreg = ((opcode >> 9) & 7);
58974 	uint32_t dstreg = opcode & 7;
58975 	unsigned int retcycles = 0;
58976 	OpcodeFamily = 65; CurrentInstrCycles = 4;
58977 {{	int16_t cnt = m68k_dreg(regs, srcreg);
58978 {	int16_t data = m68k_dreg(regs, dstreg);
58979 {	uint32_t val = (uint16_t)data;
58980 	cnt &= 63;
58981 	retcycles = cnt;
58982 	CLEAR_CZNV;
58983 	if (cnt >= 16) {
58984 		SET_VFLG (val != 0);
58985 		SET_CFLG (cnt == 16 ? val & 1 : 0);
58986 	COPY_CARRY;
58987 		val = 0;
58988 	} else if (cnt > 0) {
58989 		uint32_t mask = (0xffff << (15 - cnt)) & 0xffff;
58990 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
58991 		val <<= cnt - 1;
58992 		SET_CFLG ((val & 0x8000) >> 15);
58993 	COPY_CARRY;
58994 		val <<= 1;
58995 		val &= 0xffff;
58996 	}
58997 	SET_ZFLG (((int16_t)(val)) == 0);
58998 	SET_NFLG (((int16_t)(val)) < 0);
58999 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
59000 }}}}m68k_incpc(2);
59001 fill_prefetch_2 ();
59002  return (6+retcycles*2);
59003 }
CPUFUNC(op_e168_5)59004 unsigned long CPUFUNC(op_e168_5)(uint32_t opcode) /* LSL */
59005 {
59006 	uint32_t srcreg = ((opcode >> 9) & 7);
59007 	uint32_t dstreg = opcode & 7;
59008 	unsigned int retcycles = 0;
59009 	OpcodeFamily = 67; CurrentInstrCycles = 4;
59010 {{	int16_t cnt = m68k_dreg(regs, srcreg);
59011 {	int16_t data = m68k_dreg(regs, dstreg);
59012 {	uint32_t val = (uint16_t)data;
59013 	cnt &= 63;
59014 	retcycles = cnt;
59015 	CLEAR_CZNV;
59016 	if (cnt >= 16) {
59017 		SET_CFLG (cnt == 16 ? val & 1 : 0);
59018 	COPY_CARRY;
59019 		val = 0;
59020 	} else if (cnt > 0) {
59021 		val <<= (cnt - 1);
59022 		SET_CFLG ((val & 0x8000) >> 15);
59023 	COPY_CARRY;
59024 		val <<= 1;
59025 	val &= 0xffff;
59026 	}
59027 	SET_ZFLG (((int16_t)(val)) == 0);
59028 	SET_NFLG (((int16_t)(val)) < 0);
59029 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
59030 }}}}m68k_incpc(2);
59031 fill_prefetch_2 ();
59032  return (6+retcycles*2);
59033 }
CPUFUNC(op_e170_5)59034 unsigned long CPUFUNC(op_e170_5)(uint32_t opcode) /* ROXL */
59035 {
59036 	uint32_t srcreg = ((opcode >> 9) & 7);
59037 	uint32_t dstreg = opcode & 7;
59038 	unsigned int retcycles = 0;
59039 	OpcodeFamily = 70; CurrentInstrCycles = 4;
59040 {{	int16_t cnt = m68k_dreg(regs, srcreg);
59041 {	int16_t data = m68k_dreg(regs, dstreg);
59042 {	uint32_t val = (uint16_t)data;
59043 	cnt &= 63;
59044 	retcycles = cnt;
59045 	CLEAR_CZNV;
59046 	if (cnt >= 34) cnt -= 34;
59047 	if (cnt >= 17) cnt -= 17;
59048 	if (cnt > 0) {
59049 	cnt--;
59050 	{
59051 	uint32_t carry;
59052 	uint32_t loval = val >> (15 - cnt);
59053 	carry = loval & 1;
59054 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
59055 	SET_XFLG (carry);
59056 	val &= 0xffff;
59057 	} }
59058 	SET_CFLG (GET_XFLG);
59059 	SET_ZFLG (((int16_t)(val)) == 0);
59060 	SET_NFLG (((int16_t)(val)) < 0);
59061 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
59062 }}}}m68k_incpc(2);
59063 fill_prefetch_2 ();
59064  return (6+retcycles*2);
59065 }
CPUFUNC(op_e178_5)59066 unsigned long CPUFUNC(op_e178_5)(uint32_t opcode) /* ROL */
59067 {
59068 	uint32_t srcreg = ((opcode >> 9) & 7);
59069 	uint32_t dstreg = opcode & 7;
59070 	unsigned int retcycles = 0;
59071 	OpcodeFamily = 68; CurrentInstrCycles = 4;
59072 {{	int16_t cnt = m68k_dreg(regs, srcreg);
59073 {	int16_t data = m68k_dreg(regs, dstreg);
59074 {	uint32_t val = (uint16_t)data;
59075 	cnt &= 63;
59076 	retcycles = cnt;
59077 	CLEAR_CZNV;
59078 	if (cnt > 0) {
59079 	uint32_t loval;
59080 	cnt &= 15;
59081 	loval = val >> (16 - cnt);
59082 	val <<= cnt;
59083 	val |= loval;
59084 	val &= 0xffff;
59085 	SET_CFLG (val & 1);
59086 }
59087 	SET_ZFLG (((int16_t)(val)) == 0);
59088 	SET_NFLG (((int16_t)(val)) < 0);
59089 	m68k_dreg(regs, dstreg) = (m68k_dreg(regs, dstreg) & ~0xffff) | ((val) & 0xffff);
59090 }}}}m68k_incpc(2);
59091 fill_prefetch_2 ();
59092  return (6+retcycles*2);
59093 }
CPUFUNC(op_e180_5)59094 unsigned long CPUFUNC(op_e180_5)(uint32_t opcode) /* ASL */
59095 {
59096 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
59097 	uint32_t dstreg = opcode & 7;
59098 	unsigned int retcycles = 0;
59099 	OpcodeFamily = 65; CurrentInstrCycles = 4;
59100 {{	uint32_t cnt = srcreg;
59101 {	int32_t data = m68k_dreg(regs, dstreg);
59102 {	uint32_t val = data;
59103 	cnt &= 63;
59104 	retcycles = cnt;
59105 	CLEAR_CZNV;
59106 	if (cnt >= 32) {
59107 		SET_VFLG (val != 0);
59108 		SET_CFLG (cnt == 32 ? val & 1 : 0);
59109 	COPY_CARRY;
59110 		val = 0;
59111 	} else {
59112 		uint32_t mask = (0xffffffff << (31 - cnt)) & 0xffffffff;
59113 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
59114 		val <<= cnt - 1;
59115 		SET_CFLG ((val & 0x80000000) >> 31);
59116 	COPY_CARRY;
59117 		val <<= 1;
59118 		val &= 0xffffffff;
59119 	}
59120 	SET_ZFLG (((int32_t)(val)) == 0);
59121 	SET_NFLG (((int32_t)(val)) < 0);
59122 	m68k_dreg(regs, dstreg) = (val);
59123 }}}}m68k_incpc(2);
59124 fill_prefetch_2 ();
59125  return (8+retcycles*2);
59126 }
CPUFUNC(op_e188_5)59127 unsigned long CPUFUNC(op_e188_5)(uint32_t opcode) /* LSL */
59128 {
59129 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
59130 	uint32_t dstreg = opcode & 7;
59131 	unsigned int retcycles = 0;
59132 	OpcodeFamily = 67; CurrentInstrCycles = 4;
59133 {{	uint32_t cnt = srcreg;
59134 {	int32_t data = m68k_dreg(regs, dstreg);
59135 {	uint32_t val = data;
59136 	cnt &= 63;
59137 	retcycles = cnt;
59138 	CLEAR_CZNV;
59139 	if (cnt >= 32) {
59140 		SET_CFLG (cnt == 32 ? val & 1 : 0);
59141 	COPY_CARRY;
59142 		val = 0;
59143 	} else {
59144 		val <<= (cnt - 1);
59145 		SET_CFLG ((val & 0x80000000) >> 31);
59146 	COPY_CARRY;
59147 		val <<= 1;
59148 	val &= 0xffffffff;
59149 	}
59150 	SET_ZFLG (((int32_t)(val)) == 0);
59151 	SET_NFLG (((int32_t)(val)) < 0);
59152 	m68k_dreg(regs, dstreg) = (val);
59153 }}}}m68k_incpc(2);
59154 fill_prefetch_2 ();
59155  return (8+retcycles*2);
59156 }
CPUFUNC(op_e190_5)59157 unsigned long CPUFUNC(op_e190_5)(uint32_t opcode) /* ROXL */
59158 {
59159 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
59160 	uint32_t dstreg = opcode & 7;
59161 	unsigned int retcycles = 0;
59162 	OpcodeFamily = 70; CurrentInstrCycles = 4;
59163 {{	uint32_t cnt = srcreg;
59164 {	int32_t data = m68k_dreg(regs, dstreg);
59165 {	uint32_t val = data;
59166 	cnt &= 63;
59167 	retcycles = cnt;
59168 	CLEAR_CZNV;
59169 {	cnt--;
59170 	{
59171 	uint32_t carry;
59172 	uint32_t loval = val >> (31 - cnt);
59173 	carry = loval & 1;
59174 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
59175 	SET_XFLG (carry);
59176 	val &= 0xffffffff;
59177 	} }
59178 	SET_CFLG (GET_XFLG);
59179 	SET_ZFLG (((int32_t)(val)) == 0);
59180 	SET_NFLG (((int32_t)(val)) < 0);
59181 	m68k_dreg(regs, dstreg) = (val);
59182 }}}}m68k_incpc(2);
59183 fill_prefetch_2 ();
59184  return (8+retcycles*2);
59185 }
CPUFUNC(op_e198_5)59186 unsigned long CPUFUNC(op_e198_5)(uint32_t opcode) /* ROL */
59187 {
59188 	uint32_t srcreg = imm8_table[((opcode >> 9) & 7)];
59189 	uint32_t dstreg = opcode & 7;
59190 	unsigned int retcycles = 0;
59191 	OpcodeFamily = 68; CurrentInstrCycles = 4;
59192 {{	uint32_t cnt = srcreg;
59193 {	int32_t data = m68k_dreg(regs, dstreg);
59194 {	uint32_t val = data;
59195 	cnt &= 63;
59196 	retcycles = cnt;
59197 	CLEAR_CZNV;
59198 {	uint32_t loval;
59199 	cnt &= 31;
59200 	loval = val >> (32 - cnt);
59201 	val <<= cnt;
59202 	val |= loval;
59203 	val &= 0xffffffff;
59204 	SET_CFLG (val & 1);
59205 }
59206 	SET_ZFLG (((int32_t)(val)) == 0);
59207 	SET_NFLG (((int32_t)(val)) < 0);
59208 	m68k_dreg(regs, dstreg) = (val);
59209 }}}}m68k_incpc(2);
59210 fill_prefetch_2 ();
59211  return (8+retcycles*2);
59212 }
CPUFUNC(op_e1a0_5)59213 unsigned long CPUFUNC(op_e1a0_5)(uint32_t opcode) /* ASL */
59214 {
59215 	uint32_t srcreg = ((opcode >> 9) & 7);
59216 	uint32_t dstreg = opcode & 7;
59217 	unsigned int retcycles = 0;
59218 	OpcodeFamily = 65; CurrentInstrCycles = 4;
59219 {{	int32_t cnt = m68k_dreg(regs, srcreg);
59220 {	int32_t data = m68k_dreg(regs, dstreg);
59221 {	uint32_t val = data;
59222 	cnt &= 63;
59223 	retcycles = cnt;
59224 	CLEAR_CZNV;
59225 	if (cnt >= 32) {
59226 		SET_VFLG (val != 0);
59227 		SET_CFLG (cnt == 32 ? val & 1 : 0);
59228 	COPY_CARRY;
59229 		val = 0;
59230 	} else if (cnt > 0) {
59231 		uint32_t mask = (0xffffffff << (31 - cnt)) & 0xffffffff;
59232 		SET_VFLG ((val & mask) != mask && (val & mask) != 0);
59233 		val <<= cnt - 1;
59234 		SET_CFLG ((val & 0x80000000) >> 31);
59235 	COPY_CARRY;
59236 		val <<= 1;
59237 		val &= 0xffffffff;
59238 	}
59239 	SET_ZFLG (((int32_t)(val)) == 0);
59240 	SET_NFLG (((int32_t)(val)) < 0);
59241 	m68k_dreg(regs, dstreg) = (val);
59242 }}}}m68k_incpc(2);
59243 fill_prefetch_2 ();
59244  return (8+retcycles*2);
59245 }
CPUFUNC(op_e1a8_5)59246 unsigned long CPUFUNC(op_e1a8_5)(uint32_t opcode) /* LSL */
59247 {
59248 	uint32_t srcreg = ((opcode >> 9) & 7);
59249 	uint32_t dstreg = opcode & 7;
59250 	unsigned int retcycles = 0;
59251 	OpcodeFamily = 67; CurrentInstrCycles = 4;
59252 {{	int32_t cnt = m68k_dreg(regs, srcreg);
59253 {	int32_t data = m68k_dreg(regs, dstreg);
59254 {	uint32_t val = data;
59255 	cnt &= 63;
59256 	retcycles = cnt;
59257 	CLEAR_CZNV;
59258 	if (cnt >= 32) {
59259 		SET_CFLG (cnt == 32 ? val & 1 : 0);
59260 	COPY_CARRY;
59261 		val = 0;
59262 	} else if (cnt > 0) {
59263 		val <<= (cnt - 1);
59264 		SET_CFLG ((val & 0x80000000) >> 31);
59265 	COPY_CARRY;
59266 		val <<= 1;
59267 	val &= 0xffffffff;
59268 	}
59269 	SET_ZFLG (((int32_t)(val)) == 0);
59270 	SET_NFLG (((int32_t)(val)) < 0);
59271 	m68k_dreg(regs, dstreg) = (val);
59272 }}}}m68k_incpc(2);
59273 fill_prefetch_2 ();
59274  return (8+retcycles*2);
59275 }
CPUFUNC(op_e1b0_5)59276 unsigned long CPUFUNC(op_e1b0_5)(uint32_t opcode) /* ROXL */
59277 {
59278 	uint32_t srcreg = ((opcode >> 9) & 7);
59279 	uint32_t dstreg = opcode & 7;
59280 	unsigned int retcycles = 0;
59281 	OpcodeFamily = 70; CurrentInstrCycles = 4;
59282 {{	int32_t cnt = m68k_dreg(regs, srcreg);
59283 {	int32_t data = m68k_dreg(regs, dstreg);
59284 {	uint32_t val = data;
59285 	cnt &= 63;
59286 	retcycles = cnt;
59287 	CLEAR_CZNV;
59288 	if (cnt >= 33) cnt -= 33;
59289 	if (cnt > 0) {
59290 	cnt--;
59291 	{
59292 	uint32_t carry;
59293 	uint32_t loval = val >> (31 - cnt);
59294 	carry = loval & 1;
59295 	val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1);
59296 	SET_XFLG (carry);
59297 	val &= 0xffffffff;
59298 	} }
59299 	SET_CFLG (GET_XFLG);
59300 	SET_ZFLG (((int32_t)(val)) == 0);
59301 	SET_NFLG (((int32_t)(val)) < 0);
59302 	m68k_dreg(regs, dstreg) = (val);
59303 }}}}m68k_incpc(2);
59304 fill_prefetch_2 ();
59305  return (8+retcycles*2);
59306 }
CPUFUNC(op_e1b8_5)59307 unsigned long CPUFUNC(op_e1b8_5)(uint32_t opcode) /* ROL */
59308 {
59309 	uint32_t srcreg = ((opcode >> 9) & 7);
59310 	uint32_t dstreg = opcode & 7;
59311 	unsigned int retcycles = 0;
59312 	OpcodeFamily = 68; CurrentInstrCycles = 4;
59313 {{	int32_t cnt = m68k_dreg(regs, srcreg);
59314 {	int32_t data = m68k_dreg(regs, dstreg);
59315 {	uint32_t val = data;
59316 	cnt &= 63;
59317 	retcycles = cnt;
59318 	CLEAR_CZNV;
59319 	if (cnt > 0) {
59320 	uint32_t loval;
59321 	cnt &= 31;
59322 	loval = val >> (32 - cnt);
59323 	val <<= cnt;
59324 	val |= loval;
59325 	val &= 0xffffffff;
59326 	SET_CFLG (val & 1);
59327 }
59328 	SET_ZFLG (((int32_t)(val)) == 0);
59329 	SET_NFLG (((int32_t)(val)) < 0);
59330 	m68k_dreg(regs, dstreg) = (val);
59331 }}}}m68k_incpc(2);
59332 fill_prefetch_2 ();
59333  return (8+retcycles*2);
59334 }
CPUFUNC(op_e1d0_5)59335 unsigned long CPUFUNC(op_e1d0_5)(uint32_t opcode) /* ASLW */
59336 {
59337 	uint32_t srcreg = (opcode & 7);
59338 	OpcodeFamily = 73; CurrentInstrCycles = 12;
59339 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59340 	if ((dataa & 1) != 0) {
59341 		last_fault_for_exception_3 = dataa;
59342 		last_op_for_exception_3 = opcode;
59343 		last_addr_for_exception_3 = m68k_getpc() + 2;
59344 		Exception(3, 0, M68000_EXC_SRC_CPU);
59345 		goto endlabel3112;
59346 	}
59347 {{	int16_t data = m68k_read_memory_16(dataa);
59348 {	uint32_t val = (uint16_t)data;
59349 	uint32_t sign = 0x8000 & val;
59350 	uint32_t sign2;
59351 	val <<= 1;
59352 	CLEAR_CZNV;
59353 	SET_ZFLG (((int16_t)(val)) == 0);
59354 	SET_NFLG (((int16_t)(val)) < 0);
59355 	sign2 = 0x8000 & val;
59356 	SET_CFLG (sign != 0);
59357 	COPY_CARRY;
59358 	SET_VFLG (GET_VFLG | (sign2 != sign));
59359 m68k_incpc(2);
59360 fill_prefetch_2 ();
59361 	m68k_write_memory_16(dataa,val);
59362 }}}}}endlabel3112: ;
59363 return 12;
59364 }
CPUFUNC(op_e1d8_5)59365 unsigned long CPUFUNC(op_e1d8_5)(uint32_t opcode) /* ASLW */
59366 {
59367 	uint32_t srcreg = (opcode & 7);
59368 	OpcodeFamily = 73; CurrentInstrCycles = 12;
59369 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59370 	if ((dataa & 1) != 0) {
59371 		last_fault_for_exception_3 = dataa;
59372 		last_op_for_exception_3 = opcode;
59373 		last_addr_for_exception_3 = m68k_getpc() + 2;
59374 		Exception(3, 0, M68000_EXC_SRC_CPU);
59375 		goto endlabel3113;
59376 	}
59377 {{	int16_t data = m68k_read_memory_16(dataa);
59378 	m68k_areg(regs, srcreg) += 2;
59379 {	uint32_t val = (uint16_t)data;
59380 	uint32_t sign = 0x8000 & val;
59381 	uint32_t sign2;
59382 	val <<= 1;
59383 	CLEAR_CZNV;
59384 	SET_ZFLG (((int16_t)(val)) == 0);
59385 	SET_NFLG (((int16_t)(val)) < 0);
59386 	sign2 = 0x8000 & val;
59387 	SET_CFLG (sign != 0);
59388 	COPY_CARRY;
59389 	SET_VFLG (GET_VFLG | (sign2 != sign));
59390 m68k_incpc(2);
59391 fill_prefetch_2 ();
59392 	m68k_write_memory_16(dataa,val);
59393 }}}}}endlabel3113: ;
59394 return 12;
59395 }
CPUFUNC(op_e1e0_5)59396 unsigned long CPUFUNC(op_e1e0_5)(uint32_t opcode) /* ASLW */
59397 {
59398 	uint32_t srcreg = (opcode & 7);
59399 	OpcodeFamily = 73; CurrentInstrCycles = 14;
59400 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
59401 	if ((dataa & 1) != 0) {
59402 		last_fault_for_exception_3 = dataa;
59403 		last_op_for_exception_3 = opcode;
59404 		last_addr_for_exception_3 = m68k_getpc() + 2;
59405 		Exception(3, 0, M68000_EXC_SRC_CPU);
59406 		goto endlabel3114;
59407 	}
59408 {{	int16_t data = m68k_read_memory_16(dataa);
59409 	m68k_areg (regs, srcreg) = dataa;
59410 {	uint32_t val = (uint16_t)data;
59411 	uint32_t sign = 0x8000 & val;
59412 	uint32_t sign2;
59413 	val <<= 1;
59414 	CLEAR_CZNV;
59415 	SET_ZFLG (((int16_t)(val)) == 0);
59416 	SET_NFLG (((int16_t)(val)) < 0);
59417 	sign2 = 0x8000 & val;
59418 	SET_CFLG (sign != 0);
59419 	COPY_CARRY;
59420 	SET_VFLG (GET_VFLG | (sign2 != sign));
59421 m68k_incpc(2);
59422 fill_prefetch_2 ();
59423 	m68k_write_memory_16(dataa,val);
59424 }}}}}endlabel3114: ;
59425 return 14;
59426 }
CPUFUNC(op_e1e8_5)59427 unsigned long CPUFUNC(op_e1e8_5)(uint32_t opcode) /* ASLW */
59428 {
59429 	uint32_t srcreg = (opcode & 7);
59430 	OpcodeFamily = 73; CurrentInstrCycles = 16;
59431 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
59432 	if ((dataa & 1) != 0) {
59433 		last_fault_for_exception_3 = dataa;
59434 		last_op_for_exception_3 = opcode;
59435 		last_addr_for_exception_3 = m68k_getpc() + 4;
59436 		Exception(3, 0, M68000_EXC_SRC_CPU);
59437 		goto endlabel3115;
59438 	}
59439 {{	int16_t data = m68k_read_memory_16(dataa);
59440 {	uint32_t val = (uint16_t)data;
59441 	uint32_t sign = 0x8000 & val;
59442 	uint32_t sign2;
59443 	val <<= 1;
59444 	CLEAR_CZNV;
59445 	SET_ZFLG (((int16_t)(val)) == 0);
59446 	SET_NFLG (((int16_t)(val)) < 0);
59447 	sign2 = 0x8000 & val;
59448 	SET_CFLG (sign != 0);
59449 	COPY_CARRY;
59450 	SET_VFLG (GET_VFLG | (sign2 != sign));
59451 m68k_incpc(4);
59452 fill_prefetch_0 ();
59453 	m68k_write_memory_16(dataa,val);
59454 }}}}}endlabel3115: ;
59455 return 16;
59456 }
CPUFUNC(op_e1f0_5)59457 unsigned long CPUFUNC(op_e1f0_5)(uint32_t opcode) /* ASLW */
59458 {
59459 	uint32_t srcreg = (opcode & 7);
59460 	OpcodeFamily = 73; CurrentInstrCycles = 18;
59461 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
59462 	BusCyclePenalty += 2;
59463 	if ((dataa & 1) != 0) {
59464 		last_fault_for_exception_3 = dataa;
59465 		last_op_for_exception_3 = opcode;
59466 		last_addr_for_exception_3 = m68k_getpc() + 4;
59467 		Exception(3, 0, M68000_EXC_SRC_CPU);
59468 		goto endlabel3116;
59469 	}
59470 {{	int16_t data = m68k_read_memory_16(dataa);
59471 {	uint32_t val = (uint16_t)data;
59472 	uint32_t sign = 0x8000 & val;
59473 	uint32_t sign2;
59474 	val <<= 1;
59475 	CLEAR_CZNV;
59476 	SET_ZFLG (((int16_t)(val)) == 0);
59477 	SET_NFLG (((int16_t)(val)) < 0);
59478 	sign2 = 0x8000 & val;
59479 	SET_CFLG (sign != 0);
59480 	COPY_CARRY;
59481 	SET_VFLG (GET_VFLG | (sign2 != sign));
59482 m68k_incpc(4);
59483 fill_prefetch_0 ();
59484 	m68k_write_memory_16(dataa,val);
59485 }}}}}endlabel3116: ;
59486 return 18;
59487 }
CPUFUNC(op_e1f8_5)59488 unsigned long CPUFUNC(op_e1f8_5)(uint32_t opcode) /* ASLW */
59489 {
59490 	OpcodeFamily = 73; CurrentInstrCycles = 16;
59491 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
59492 	if ((dataa & 1) != 0) {
59493 		last_fault_for_exception_3 = dataa;
59494 		last_op_for_exception_3 = opcode;
59495 		last_addr_for_exception_3 = m68k_getpc() + 4;
59496 		Exception(3, 0, M68000_EXC_SRC_CPU);
59497 		goto endlabel3117;
59498 	}
59499 {{	int16_t data = m68k_read_memory_16(dataa);
59500 {	uint32_t val = (uint16_t)data;
59501 	uint32_t sign = 0x8000 & val;
59502 	uint32_t sign2;
59503 	val <<= 1;
59504 	CLEAR_CZNV;
59505 	SET_ZFLG (((int16_t)(val)) == 0);
59506 	SET_NFLG (((int16_t)(val)) < 0);
59507 	sign2 = 0x8000 & val;
59508 	SET_CFLG (sign != 0);
59509 	COPY_CARRY;
59510 	SET_VFLG (GET_VFLG | (sign2 != sign));
59511 m68k_incpc(4);
59512 fill_prefetch_0 ();
59513 	m68k_write_memory_16(dataa,val);
59514 }}}}}endlabel3117: ;
59515 return 16;
59516 }
CPUFUNC(op_e1f9_5)59517 unsigned long CPUFUNC(op_e1f9_5)(uint32_t opcode) /* ASLW */
59518 {
59519 	OpcodeFamily = 73; CurrentInstrCycles = 20;
59520 {{	uint32_t dataa = get_ilong_prefetch(2);
59521 	if ((dataa & 1) != 0) {
59522 		last_fault_for_exception_3 = dataa;
59523 		last_op_for_exception_3 = opcode;
59524 		last_addr_for_exception_3 = m68k_getpc() + 6;
59525 		Exception(3, 0, M68000_EXC_SRC_CPU);
59526 		goto endlabel3118;
59527 	}
59528 {{	int16_t data = m68k_read_memory_16(dataa);
59529 {	uint32_t val = (uint16_t)data;
59530 	uint32_t sign = 0x8000 & val;
59531 	uint32_t sign2;
59532 	val <<= 1;
59533 	CLEAR_CZNV;
59534 	SET_ZFLG (((int16_t)(val)) == 0);
59535 	SET_NFLG (((int16_t)(val)) < 0);
59536 	sign2 = 0x8000 & val;
59537 	SET_CFLG (sign != 0);
59538 	COPY_CARRY;
59539 	SET_VFLG (GET_VFLG | (sign2 != sign));
59540 m68k_incpc(6);
59541 fill_prefetch_0 ();
59542 	m68k_write_memory_16(dataa,val);
59543 }}}}}endlabel3118: ;
59544 return 20;
59545 }
CPUFUNC(op_e2d0_5)59546 unsigned long CPUFUNC(op_e2d0_5)(uint32_t opcode) /* LSRW */
59547 {
59548 	uint32_t srcreg = (opcode & 7);
59549 	OpcodeFamily = 74; CurrentInstrCycles = 12;
59550 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59551 	if ((dataa & 1) != 0) {
59552 		last_fault_for_exception_3 = dataa;
59553 		last_op_for_exception_3 = opcode;
59554 		last_addr_for_exception_3 = m68k_getpc() + 2;
59555 		Exception(3, 0, M68000_EXC_SRC_CPU);
59556 		goto endlabel3119;
59557 	}
59558 {{	int16_t data = m68k_read_memory_16(dataa);
59559 {	uint32_t val = (uint16_t)data;
59560 	uint32_t carry = val & 1;
59561 	val >>= 1;
59562 	CLEAR_CZNV;
59563 	SET_ZFLG (((int16_t)(val)) == 0);
59564 	SET_NFLG (((int16_t)(val)) < 0);
59565 SET_CFLG (carry);
59566 	COPY_CARRY;
59567 m68k_incpc(2);
59568 fill_prefetch_2 ();
59569 	m68k_write_memory_16(dataa,val);
59570 }}}}}endlabel3119: ;
59571 return 12;
59572 }
CPUFUNC(op_e2d8_5)59573 unsigned long CPUFUNC(op_e2d8_5)(uint32_t opcode) /* LSRW */
59574 {
59575 	uint32_t srcreg = (opcode & 7);
59576 	OpcodeFamily = 74; CurrentInstrCycles = 12;
59577 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59578 	if ((dataa & 1) != 0) {
59579 		last_fault_for_exception_3 = dataa;
59580 		last_op_for_exception_3 = opcode;
59581 		last_addr_for_exception_3 = m68k_getpc() + 2;
59582 		Exception(3, 0, M68000_EXC_SRC_CPU);
59583 		goto endlabel3120;
59584 	}
59585 {{	int16_t data = m68k_read_memory_16(dataa);
59586 	m68k_areg(regs, srcreg) += 2;
59587 {	uint32_t val = (uint16_t)data;
59588 	uint32_t carry = val & 1;
59589 	val >>= 1;
59590 	CLEAR_CZNV;
59591 	SET_ZFLG (((int16_t)(val)) == 0);
59592 	SET_NFLG (((int16_t)(val)) < 0);
59593 SET_CFLG (carry);
59594 	COPY_CARRY;
59595 m68k_incpc(2);
59596 fill_prefetch_2 ();
59597 	m68k_write_memory_16(dataa,val);
59598 }}}}}endlabel3120: ;
59599 return 12;
59600 }
CPUFUNC(op_e2e0_5)59601 unsigned long CPUFUNC(op_e2e0_5)(uint32_t opcode) /* LSRW */
59602 {
59603 	uint32_t srcreg = (opcode & 7);
59604 	OpcodeFamily = 74; CurrentInstrCycles = 14;
59605 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
59606 	if ((dataa & 1) != 0) {
59607 		last_fault_for_exception_3 = dataa;
59608 		last_op_for_exception_3 = opcode;
59609 		last_addr_for_exception_3 = m68k_getpc() + 2;
59610 		Exception(3, 0, M68000_EXC_SRC_CPU);
59611 		goto endlabel3121;
59612 	}
59613 {{	int16_t data = m68k_read_memory_16(dataa);
59614 	m68k_areg (regs, srcreg) = dataa;
59615 {	uint32_t val = (uint16_t)data;
59616 	uint32_t carry = val & 1;
59617 	val >>= 1;
59618 	CLEAR_CZNV;
59619 	SET_ZFLG (((int16_t)(val)) == 0);
59620 	SET_NFLG (((int16_t)(val)) < 0);
59621 SET_CFLG (carry);
59622 	COPY_CARRY;
59623 m68k_incpc(2);
59624 fill_prefetch_2 ();
59625 	m68k_write_memory_16(dataa,val);
59626 }}}}}endlabel3121: ;
59627 return 14;
59628 }
CPUFUNC(op_e2e8_5)59629 unsigned long CPUFUNC(op_e2e8_5)(uint32_t opcode) /* LSRW */
59630 {
59631 	uint32_t srcreg = (opcode & 7);
59632 	OpcodeFamily = 74; CurrentInstrCycles = 16;
59633 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
59634 	if ((dataa & 1) != 0) {
59635 		last_fault_for_exception_3 = dataa;
59636 		last_op_for_exception_3 = opcode;
59637 		last_addr_for_exception_3 = m68k_getpc() + 4;
59638 		Exception(3, 0, M68000_EXC_SRC_CPU);
59639 		goto endlabel3122;
59640 	}
59641 {{	int16_t data = m68k_read_memory_16(dataa);
59642 {	uint32_t val = (uint16_t)data;
59643 	uint32_t carry = val & 1;
59644 	val >>= 1;
59645 	CLEAR_CZNV;
59646 	SET_ZFLG (((int16_t)(val)) == 0);
59647 	SET_NFLG (((int16_t)(val)) < 0);
59648 SET_CFLG (carry);
59649 	COPY_CARRY;
59650 m68k_incpc(4);
59651 fill_prefetch_0 ();
59652 	m68k_write_memory_16(dataa,val);
59653 }}}}}endlabel3122: ;
59654 return 16;
59655 }
CPUFUNC(op_e2f0_5)59656 unsigned long CPUFUNC(op_e2f0_5)(uint32_t opcode) /* LSRW */
59657 {
59658 	uint32_t srcreg = (opcode & 7);
59659 	OpcodeFamily = 74; CurrentInstrCycles = 18;
59660 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
59661 	BusCyclePenalty += 2;
59662 	if ((dataa & 1) != 0) {
59663 		last_fault_for_exception_3 = dataa;
59664 		last_op_for_exception_3 = opcode;
59665 		last_addr_for_exception_3 = m68k_getpc() + 4;
59666 		Exception(3, 0, M68000_EXC_SRC_CPU);
59667 		goto endlabel3123;
59668 	}
59669 {{	int16_t data = m68k_read_memory_16(dataa);
59670 {	uint32_t val = (uint16_t)data;
59671 	uint32_t carry = val & 1;
59672 	val >>= 1;
59673 	CLEAR_CZNV;
59674 	SET_ZFLG (((int16_t)(val)) == 0);
59675 	SET_NFLG (((int16_t)(val)) < 0);
59676 SET_CFLG (carry);
59677 	COPY_CARRY;
59678 m68k_incpc(4);
59679 fill_prefetch_0 ();
59680 	m68k_write_memory_16(dataa,val);
59681 }}}}}endlabel3123: ;
59682 return 18;
59683 }
CPUFUNC(op_e2f8_5)59684 unsigned long CPUFUNC(op_e2f8_5)(uint32_t opcode) /* LSRW */
59685 {
59686 	OpcodeFamily = 74; CurrentInstrCycles = 16;
59687 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
59688 	if ((dataa & 1) != 0) {
59689 		last_fault_for_exception_3 = dataa;
59690 		last_op_for_exception_3 = opcode;
59691 		last_addr_for_exception_3 = m68k_getpc() + 4;
59692 		Exception(3, 0, M68000_EXC_SRC_CPU);
59693 		goto endlabel3124;
59694 	}
59695 {{	int16_t data = m68k_read_memory_16(dataa);
59696 {	uint32_t val = (uint16_t)data;
59697 	uint32_t carry = val & 1;
59698 	val >>= 1;
59699 	CLEAR_CZNV;
59700 	SET_ZFLG (((int16_t)(val)) == 0);
59701 	SET_NFLG (((int16_t)(val)) < 0);
59702 SET_CFLG (carry);
59703 	COPY_CARRY;
59704 m68k_incpc(4);
59705 fill_prefetch_0 ();
59706 	m68k_write_memory_16(dataa,val);
59707 }}}}}endlabel3124: ;
59708 return 16;
59709 }
CPUFUNC(op_e2f9_5)59710 unsigned long CPUFUNC(op_e2f9_5)(uint32_t opcode) /* LSRW */
59711 {
59712 	OpcodeFamily = 74; CurrentInstrCycles = 20;
59713 {{	uint32_t dataa = get_ilong_prefetch(2);
59714 	if ((dataa & 1) != 0) {
59715 		last_fault_for_exception_3 = dataa;
59716 		last_op_for_exception_3 = opcode;
59717 		last_addr_for_exception_3 = m68k_getpc() + 6;
59718 		Exception(3, 0, M68000_EXC_SRC_CPU);
59719 		goto endlabel3125;
59720 	}
59721 {{	int16_t data = m68k_read_memory_16(dataa);
59722 {	uint32_t val = (uint16_t)data;
59723 	uint32_t carry = val & 1;
59724 	val >>= 1;
59725 	CLEAR_CZNV;
59726 	SET_ZFLG (((int16_t)(val)) == 0);
59727 	SET_NFLG (((int16_t)(val)) < 0);
59728 SET_CFLG (carry);
59729 	COPY_CARRY;
59730 m68k_incpc(6);
59731 fill_prefetch_0 ();
59732 	m68k_write_memory_16(dataa,val);
59733 }}}}}endlabel3125: ;
59734 return 20;
59735 }
CPUFUNC(op_e3d0_5)59736 unsigned long CPUFUNC(op_e3d0_5)(uint32_t opcode) /* LSLW */
59737 {
59738 	uint32_t srcreg = (opcode & 7);
59739 	OpcodeFamily = 75; CurrentInstrCycles = 12;
59740 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59741 	if ((dataa & 1) != 0) {
59742 		last_fault_for_exception_3 = dataa;
59743 		last_op_for_exception_3 = opcode;
59744 		last_addr_for_exception_3 = m68k_getpc() + 2;
59745 		Exception(3, 0, M68000_EXC_SRC_CPU);
59746 		goto endlabel3126;
59747 	}
59748 {{	int16_t data = m68k_read_memory_16(dataa);
59749 {	uint16_t val = data;
59750 	uint32_t carry = val & 0x8000;
59751 	val <<= 1;
59752 	CLEAR_CZNV;
59753 	SET_ZFLG (((int16_t)(val)) == 0);
59754 	SET_NFLG (((int16_t)(val)) < 0);
59755 SET_CFLG (carry >> 15);
59756 	COPY_CARRY;
59757 m68k_incpc(2);
59758 fill_prefetch_2 ();
59759 	m68k_write_memory_16(dataa,val);
59760 }}}}}endlabel3126: ;
59761 return 12;
59762 }
CPUFUNC(op_e3d8_5)59763 unsigned long CPUFUNC(op_e3d8_5)(uint32_t opcode) /* LSLW */
59764 {
59765 	uint32_t srcreg = (opcode & 7);
59766 	OpcodeFamily = 75; CurrentInstrCycles = 12;
59767 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59768 	if ((dataa & 1) != 0) {
59769 		last_fault_for_exception_3 = dataa;
59770 		last_op_for_exception_3 = opcode;
59771 		last_addr_for_exception_3 = m68k_getpc() + 2;
59772 		Exception(3, 0, M68000_EXC_SRC_CPU);
59773 		goto endlabel3127;
59774 	}
59775 {{	int16_t data = m68k_read_memory_16(dataa);
59776 	m68k_areg(regs, srcreg) += 2;
59777 {	uint16_t val = data;
59778 	uint32_t carry = val & 0x8000;
59779 	val <<= 1;
59780 	CLEAR_CZNV;
59781 	SET_ZFLG (((int16_t)(val)) == 0);
59782 	SET_NFLG (((int16_t)(val)) < 0);
59783 SET_CFLG (carry >> 15);
59784 	COPY_CARRY;
59785 m68k_incpc(2);
59786 fill_prefetch_2 ();
59787 	m68k_write_memory_16(dataa,val);
59788 }}}}}endlabel3127: ;
59789 return 12;
59790 }
CPUFUNC(op_e3e0_5)59791 unsigned long CPUFUNC(op_e3e0_5)(uint32_t opcode) /* LSLW */
59792 {
59793 	uint32_t srcreg = (opcode & 7);
59794 	OpcodeFamily = 75; CurrentInstrCycles = 14;
59795 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
59796 	if ((dataa & 1) != 0) {
59797 		last_fault_for_exception_3 = dataa;
59798 		last_op_for_exception_3 = opcode;
59799 		last_addr_for_exception_3 = m68k_getpc() + 2;
59800 		Exception(3, 0, M68000_EXC_SRC_CPU);
59801 		goto endlabel3128;
59802 	}
59803 {{	int16_t data = m68k_read_memory_16(dataa);
59804 	m68k_areg (regs, srcreg) = dataa;
59805 {	uint16_t val = data;
59806 	uint32_t carry = val & 0x8000;
59807 	val <<= 1;
59808 	CLEAR_CZNV;
59809 	SET_ZFLG (((int16_t)(val)) == 0);
59810 	SET_NFLG (((int16_t)(val)) < 0);
59811 SET_CFLG (carry >> 15);
59812 	COPY_CARRY;
59813 m68k_incpc(2);
59814 fill_prefetch_2 ();
59815 	m68k_write_memory_16(dataa,val);
59816 }}}}}endlabel3128: ;
59817 return 14;
59818 }
CPUFUNC(op_e3e8_5)59819 unsigned long CPUFUNC(op_e3e8_5)(uint32_t opcode) /* LSLW */
59820 {
59821 	uint32_t srcreg = (opcode & 7);
59822 	OpcodeFamily = 75; CurrentInstrCycles = 16;
59823 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
59824 	if ((dataa & 1) != 0) {
59825 		last_fault_for_exception_3 = dataa;
59826 		last_op_for_exception_3 = opcode;
59827 		last_addr_for_exception_3 = m68k_getpc() + 4;
59828 		Exception(3, 0, M68000_EXC_SRC_CPU);
59829 		goto endlabel3129;
59830 	}
59831 {{	int16_t data = m68k_read_memory_16(dataa);
59832 {	uint16_t val = data;
59833 	uint32_t carry = val & 0x8000;
59834 	val <<= 1;
59835 	CLEAR_CZNV;
59836 	SET_ZFLG (((int16_t)(val)) == 0);
59837 	SET_NFLG (((int16_t)(val)) < 0);
59838 SET_CFLG (carry >> 15);
59839 	COPY_CARRY;
59840 m68k_incpc(4);
59841 fill_prefetch_0 ();
59842 	m68k_write_memory_16(dataa,val);
59843 }}}}}endlabel3129: ;
59844 return 16;
59845 }
CPUFUNC(op_e3f0_5)59846 unsigned long CPUFUNC(op_e3f0_5)(uint32_t opcode) /* LSLW */
59847 {
59848 	uint32_t srcreg = (opcode & 7);
59849 	OpcodeFamily = 75; CurrentInstrCycles = 18;
59850 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
59851 	BusCyclePenalty += 2;
59852 	if ((dataa & 1) != 0) {
59853 		last_fault_for_exception_3 = dataa;
59854 		last_op_for_exception_3 = opcode;
59855 		last_addr_for_exception_3 = m68k_getpc() + 4;
59856 		Exception(3, 0, M68000_EXC_SRC_CPU);
59857 		goto endlabel3130;
59858 	}
59859 {{	int16_t data = m68k_read_memory_16(dataa);
59860 {	uint16_t val = data;
59861 	uint32_t carry = val & 0x8000;
59862 	val <<= 1;
59863 	CLEAR_CZNV;
59864 	SET_ZFLG (((int16_t)(val)) == 0);
59865 	SET_NFLG (((int16_t)(val)) < 0);
59866 SET_CFLG (carry >> 15);
59867 	COPY_CARRY;
59868 m68k_incpc(4);
59869 fill_prefetch_0 ();
59870 	m68k_write_memory_16(dataa,val);
59871 }}}}}endlabel3130: ;
59872 return 18;
59873 }
CPUFUNC(op_e3f8_5)59874 unsigned long CPUFUNC(op_e3f8_5)(uint32_t opcode) /* LSLW */
59875 {
59876 	OpcodeFamily = 75; CurrentInstrCycles = 16;
59877 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
59878 	if ((dataa & 1) != 0) {
59879 		last_fault_for_exception_3 = dataa;
59880 		last_op_for_exception_3 = opcode;
59881 		last_addr_for_exception_3 = m68k_getpc() + 4;
59882 		Exception(3, 0, M68000_EXC_SRC_CPU);
59883 		goto endlabel3131;
59884 	}
59885 {{	int16_t data = m68k_read_memory_16(dataa);
59886 {	uint16_t val = data;
59887 	uint32_t carry = val & 0x8000;
59888 	val <<= 1;
59889 	CLEAR_CZNV;
59890 	SET_ZFLG (((int16_t)(val)) == 0);
59891 	SET_NFLG (((int16_t)(val)) < 0);
59892 SET_CFLG (carry >> 15);
59893 	COPY_CARRY;
59894 m68k_incpc(4);
59895 fill_prefetch_0 ();
59896 	m68k_write_memory_16(dataa,val);
59897 }}}}}endlabel3131: ;
59898 return 16;
59899 }
CPUFUNC(op_e3f9_5)59900 unsigned long CPUFUNC(op_e3f9_5)(uint32_t opcode) /* LSLW */
59901 {
59902 	OpcodeFamily = 75; CurrentInstrCycles = 20;
59903 {{	uint32_t dataa = get_ilong_prefetch(2);
59904 	if ((dataa & 1) != 0) {
59905 		last_fault_for_exception_3 = dataa;
59906 		last_op_for_exception_3 = opcode;
59907 		last_addr_for_exception_3 = m68k_getpc() + 6;
59908 		Exception(3, 0, M68000_EXC_SRC_CPU);
59909 		goto endlabel3132;
59910 	}
59911 {{	int16_t data = m68k_read_memory_16(dataa);
59912 {	uint16_t val = data;
59913 	uint32_t carry = val & 0x8000;
59914 	val <<= 1;
59915 	CLEAR_CZNV;
59916 	SET_ZFLG (((int16_t)(val)) == 0);
59917 	SET_NFLG (((int16_t)(val)) < 0);
59918 SET_CFLG (carry >> 15);
59919 	COPY_CARRY;
59920 m68k_incpc(6);
59921 fill_prefetch_0 ();
59922 	m68k_write_memory_16(dataa,val);
59923 }}}}}endlabel3132: ;
59924 return 20;
59925 }
CPUFUNC(op_e4d0_5)59926 unsigned long CPUFUNC(op_e4d0_5)(uint32_t opcode) /* ROXRW */
59927 {
59928 	uint32_t srcreg = (opcode & 7);
59929 	OpcodeFamily = 79; CurrentInstrCycles = 12;
59930 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59931 	if ((dataa & 1) != 0) {
59932 		last_fault_for_exception_3 = dataa;
59933 		last_op_for_exception_3 = opcode;
59934 		last_addr_for_exception_3 = m68k_getpc() + 2;
59935 		Exception(3, 0, M68000_EXC_SRC_CPU);
59936 		goto endlabel3133;
59937 	}
59938 {{	int16_t data = m68k_read_memory_16(dataa);
59939 {	uint16_t val = data;
59940 	uint32_t carry = val & 1;
59941 	val >>= 1;
59942 	if (GET_XFLG) val |= 0x8000;
59943 	CLEAR_CZNV;
59944 	SET_ZFLG (((int16_t)(val)) == 0);
59945 	SET_NFLG (((int16_t)(val)) < 0);
59946 SET_CFLG (carry);
59947 	COPY_CARRY;
59948 m68k_incpc(2);
59949 fill_prefetch_2 ();
59950 	m68k_write_memory_16(dataa,val);
59951 }}}}}endlabel3133: ;
59952 return 12;
59953 }
CPUFUNC(op_e4d8_5)59954 unsigned long CPUFUNC(op_e4d8_5)(uint32_t opcode) /* ROXRW */
59955 {
59956 	uint32_t srcreg = (opcode & 7);
59957 	OpcodeFamily = 79; CurrentInstrCycles = 12;
59958 {{	uint32_t dataa = m68k_areg(regs, srcreg);
59959 	if ((dataa & 1) != 0) {
59960 		last_fault_for_exception_3 = dataa;
59961 		last_op_for_exception_3 = opcode;
59962 		last_addr_for_exception_3 = m68k_getpc() + 2;
59963 		Exception(3, 0, M68000_EXC_SRC_CPU);
59964 		goto endlabel3134;
59965 	}
59966 {{	int16_t data = m68k_read_memory_16(dataa);
59967 	m68k_areg(regs, srcreg) += 2;
59968 {	uint16_t val = data;
59969 	uint32_t carry = val & 1;
59970 	val >>= 1;
59971 	if (GET_XFLG) val |= 0x8000;
59972 	CLEAR_CZNV;
59973 	SET_ZFLG (((int16_t)(val)) == 0);
59974 	SET_NFLG (((int16_t)(val)) < 0);
59975 SET_CFLG (carry);
59976 	COPY_CARRY;
59977 m68k_incpc(2);
59978 fill_prefetch_2 ();
59979 	m68k_write_memory_16(dataa,val);
59980 }}}}}endlabel3134: ;
59981 return 12;
59982 }
CPUFUNC(op_e4e0_5)59983 unsigned long CPUFUNC(op_e4e0_5)(uint32_t opcode) /* ROXRW */
59984 {
59985 	uint32_t srcreg = (opcode & 7);
59986 	OpcodeFamily = 79; CurrentInstrCycles = 14;
59987 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
59988 	if ((dataa & 1) != 0) {
59989 		last_fault_for_exception_3 = dataa;
59990 		last_op_for_exception_3 = opcode;
59991 		last_addr_for_exception_3 = m68k_getpc() + 2;
59992 		Exception(3, 0, M68000_EXC_SRC_CPU);
59993 		goto endlabel3135;
59994 	}
59995 {{	int16_t data = m68k_read_memory_16(dataa);
59996 	m68k_areg (regs, srcreg) = dataa;
59997 {	uint16_t val = data;
59998 	uint32_t carry = val & 1;
59999 	val >>= 1;
60000 	if (GET_XFLG) val |= 0x8000;
60001 	CLEAR_CZNV;
60002 	SET_ZFLG (((int16_t)(val)) == 0);
60003 	SET_NFLG (((int16_t)(val)) < 0);
60004 SET_CFLG (carry);
60005 	COPY_CARRY;
60006 m68k_incpc(2);
60007 fill_prefetch_2 ();
60008 	m68k_write_memory_16(dataa,val);
60009 }}}}}endlabel3135: ;
60010 return 14;
60011 }
CPUFUNC(op_e4e8_5)60012 unsigned long CPUFUNC(op_e4e8_5)(uint32_t opcode) /* ROXRW */
60013 {
60014 	uint32_t srcreg = (opcode & 7);
60015 	OpcodeFamily = 79; CurrentInstrCycles = 16;
60016 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
60017 	if ((dataa & 1) != 0) {
60018 		last_fault_for_exception_3 = dataa;
60019 		last_op_for_exception_3 = opcode;
60020 		last_addr_for_exception_3 = m68k_getpc() + 4;
60021 		Exception(3, 0, M68000_EXC_SRC_CPU);
60022 		goto endlabel3136;
60023 	}
60024 {{	int16_t data = m68k_read_memory_16(dataa);
60025 {	uint16_t val = data;
60026 	uint32_t carry = val & 1;
60027 	val >>= 1;
60028 	if (GET_XFLG) val |= 0x8000;
60029 	CLEAR_CZNV;
60030 	SET_ZFLG (((int16_t)(val)) == 0);
60031 	SET_NFLG (((int16_t)(val)) < 0);
60032 SET_CFLG (carry);
60033 	COPY_CARRY;
60034 m68k_incpc(4);
60035 fill_prefetch_0 ();
60036 	m68k_write_memory_16(dataa,val);
60037 }}}}}endlabel3136: ;
60038 return 16;
60039 }
CPUFUNC(op_e4f0_5)60040 unsigned long CPUFUNC(op_e4f0_5)(uint32_t opcode) /* ROXRW */
60041 {
60042 	uint32_t srcreg = (opcode & 7);
60043 	OpcodeFamily = 79; CurrentInstrCycles = 18;
60044 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
60045 	BusCyclePenalty += 2;
60046 	if ((dataa & 1) != 0) {
60047 		last_fault_for_exception_3 = dataa;
60048 		last_op_for_exception_3 = opcode;
60049 		last_addr_for_exception_3 = m68k_getpc() + 4;
60050 		Exception(3, 0, M68000_EXC_SRC_CPU);
60051 		goto endlabel3137;
60052 	}
60053 {{	int16_t data = m68k_read_memory_16(dataa);
60054 {	uint16_t val = data;
60055 	uint32_t carry = val & 1;
60056 	val >>= 1;
60057 	if (GET_XFLG) val |= 0x8000;
60058 	CLEAR_CZNV;
60059 	SET_ZFLG (((int16_t)(val)) == 0);
60060 	SET_NFLG (((int16_t)(val)) < 0);
60061 SET_CFLG (carry);
60062 	COPY_CARRY;
60063 m68k_incpc(4);
60064 fill_prefetch_0 ();
60065 	m68k_write_memory_16(dataa,val);
60066 }}}}}endlabel3137: ;
60067 return 18;
60068 }
CPUFUNC(op_e4f8_5)60069 unsigned long CPUFUNC(op_e4f8_5)(uint32_t opcode) /* ROXRW */
60070 {
60071 	OpcodeFamily = 79; CurrentInstrCycles = 16;
60072 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
60073 	if ((dataa & 1) != 0) {
60074 		last_fault_for_exception_3 = dataa;
60075 		last_op_for_exception_3 = opcode;
60076 		last_addr_for_exception_3 = m68k_getpc() + 4;
60077 		Exception(3, 0, M68000_EXC_SRC_CPU);
60078 		goto endlabel3138;
60079 	}
60080 {{	int16_t data = m68k_read_memory_16(dataa);
60081 {	uint16_t val = data;
60082 	uint32_t carry = val & 1;
60083 	val >>= 1;
60084 	if (GET_XFLG) val |= 0x8000;
60085 	CLEAR_CZNV;
60086 	SET_ZFLG (((int16_t)(val)) == 0);
60087 	SET_NFLG (((int16_t)(val)) < 0);
60088 SET_CFLG (carry);
60089 	COPY_CARRY;
60090 m68k_incpc(4);
60091 fill_prefetch_0 ();
60092 	m68k_write_memory_16(dataa,val);
60093 }}}}}endlabel3138: ;
60094 return 16;
60095 }
CPUFUNC(op_e4f9_5)60096 unsigned long CPUFUNC(op_e4f9_5)(uint32_t opcode) /* ROXRW */
60097 {
60098 	OpcodeFamily = 79; CurrentInstrCycles = 20;
60099 {{	uint32_t dataa = get_ilong_prefetch(2);
60100 	if ((dataa & 1) != 0) {
60101 		last_fault_for_exception_3 = dataa;
60102 		last_op_for_exception_3 = opcode;
60103 		last_addr_for_exception_3 = m68k_getpc() + 6;
60104 		Exception(3, 0, M68000_EXC_SRC_CPU);
60105 		goto endlabel3139;
60106 	}
60107 {{	int16_t data = m68k_read_memory_16(dataa);
60108 {	uint16_t val = data;
60109 	uint32_t carry = val & 1;
60110 	val >>= 1;
60111 	if (GET_XFLG) val |= 0x8000;
60112 	CLEAR_CZNV;
60113 	SET_ZFLG (((int16_t)(val)) == 0);
60114 	SET_NFLG (((int16_t)(val)) < 0);
60115 SET_CFLG (carry);
60116 	COPY_CARRY;
60117 m68k_incpc(6);
60118 fill_prefetch_0 ();
60119 	m68k_write_memory_16(dataa,val);
60120 }}}}}endlabel3139: ;
60121 return 20;
60122 }
CPUFUNC(op_e5d0_5)60123 unsigned long CPUFUNC(op_e5d0_5)(uint32_t opcode) /* ROXLW */
60124 {
60125 	uint32_t srcreg = (opcode & 7);
60126 	OpcodeFamily = 78; CurrentInstrCycles = 12;
60127 {{	uint32_t dataa = m68k_areg(regs, srcreg);
60128 	if ((dataa & 1) != 0) {
60129 		last_fault_for_exception_3 = dataa;
60130 		last_op_for_exception_3 = opcode;
60131 		last_addr_for_exception_3 = m68k_getpc() + 2;
60132 		Exception(3, 0, M68000_EXC_SRC_CPU);
60133 		goto endlabel3140;
60134 	}
60135 {{	int16_t data = m68k_read_memory_16(dataa);
60136 {	uint16_t val = data;
60137 	uint32_t carry = val & 0x8000;
60138 	val <<= 1;
60139 	if (GET_XFLG) val |= 1;
60140 	CLEAR_CZNV;
60141 	SET_ZFLG (((int16_t)(val)) == 0);
60142 	SET_NFLG (((int16_t)(val)) < 0);
60143 SET_CFLG (carry >> 15);
60144 	COPY_CARRY;
60145 m68k_incpc(2);
60146 fill_prefetch_2 ();
60147 	m68k_write_memory_16(dataa,val);
60148 }}}}}endlabel3140: ;
60149 return 12;
60150 }
CPUFUNC(op_e5d8_5)60151 unsigned long CPUFUNC(op_e5d8_5)(uint32_t opcode) /* ROXLW */
60152 {
60153 	uint32_t srcreg = (opcode & 7);
60154 	OpcodeFamily = 78; CurrentInstrCycles = 12;
60155 {{	uint32_t dataa = m68k_areg(regs, srcreg);
60156 	if ((dataa & 1) != 0) {
60157 		last_fault_for_exception_3 = dataa;
60158 		last_op_for_exception_3 = opcode;
60159 		last_addr_for_exception_3 = m68k_getpc() + 2;
60160 		Exception(3, 0, M68000_EXC_SRC_CPU);
60161 		goto endlabel3141;
60162 	}
60163 {{	int16_t data = m68k_read_memory_16(dataa);
60164 	m68k_areg(regs, srcreg) += 2;
60165 {	uint16_t val = data;
60166 	uint32_t carry = val & 0x8000;
60167 	val <<= 1;
60168 	if (GET_XFLG) val |= 1;
60169 	CLEAR_CZNV;
60170 	SET_ZFLG (((int16_t)(val)) == 0);
60171 	SET_NFLG (((int16_t)(val)) < 0);
60172 SET_CFLG (carry >> 15);
60173 	COPY_CARRY;
60174 m68k_incpc(2);
60175 fill_prefetch_2 ();
60176 	m68k_write_memory_16(dataa,val);
60177 }}}}}endlabel3141: ;
60178 return 12;
60179 }
CPUFUNC(op_e5e0_5)60180 unsigned long CPUFUNC(op_e5e0_5)(uint32_t opcode) /* ROXLW */
60181 {
60182 	uint32_t srcreg = (opcode & 7);
60183 	OpcodeFamily = 78; CurrentInstrCycles = 14;
60184 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
60185 	if ((dataa & 1) != 0) {
60186 		last_fault_for_exception_3 = dataa;
60187 		last_op_for_exception_3 = opcode;
60188 		last_addr_for_exception_3 = m68k_getpc() + 2;
60189 		Exception(3, 0, M68000_EXC_SRC_CPU);
60190 		goto endlabel3142;
60191 	}
60192 {{	int16_t data = m68k_read_memory_16(dataa);
60193 	m68k_areg (regs, srcreg) = dataa;
60194 {	uint16_t val = data;
60195 	uint32_t carry = val & 0x8000;
60196 	val <<= 1;
60197 	if (GET_XFLG) val |= 1;
60198 	CLEAR_CZNV;
60199 	SET_ZFLG (((int16_t)(val)) == 0);
60200 	SET_NFLG (((int16_t)(val)) < 0);
60201 SET_CFLG (carry >> 15);
60202 	COPY_CARRY;
60203 m68k_incpc(2);
60204 fill_prefetch_2 ();
60205 	m68k_write_memory_16(dataa,val);
60206 }}}}}endlabel3142: ;
60207 return 14;
60208 }
CPUFUNC(op_e5e8_5)60209 unsigned long CPUFUNC(op_e5e8_5)(uint32_t opcode) /* ROXLW */
60210 {
60211 	uint32_t srcreg = (opcode & 7);
60212 	OpcodeFamily = 78; CurrentInstrCycles = 16;
60213 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
60214 	if ((dataa & 1) != 0) {
60215 		last_fault_for_exception_3 = dataa;
60216 		last_op_for_exception_3 = opcode;
60217 		last_addr_for_exception_3 = m68k_getpc() + 4;
60218 		Exception(3, 0, M68000_EXC_SRC_CPU);
60219 		goto endlabel3143;
60220 	}
60221 {{	int16_t data = m68k_read_memory_16(dataa);
60222 {	uint16_t val = data;
60223 	uint32_t carry = val & 0x8000;
60224 	val <<= 1;
60225 	if (GET_XFLG) val |= 1;
60226 	CLEAR_CZNV;
60227 	SET_ZFLG (((int16_t)(val)) == 0);
60228 	SET_NFLG (((int16_t)(val)) < 0);
60229 SET_CFLG (carry >> 15);
60230 	COPY_CARRY;
60231 m68k_incpc(4);
60232 fill_prefetch_0 ();
60233 	m68k_write_memory_16(dataa,val);
60234 }}}}}endlabel3143: ;
60235 return 16;
60236 }
CPUFUNC(op_e5f0_5)60237 unsigned long CPUFUNC(op_e5f0_5)(uint32_t opcode) /* ROXLW */
60238 {
60239 	uint32_t srcreg = (opcode & 7);
60240 	OpcodeFamily = 78; CurrentInstrCycles = 18;
60241 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
60242 	BusCyclePenalty += 2;
60243 	if ((dataa & 1) != 0) {
60244 		last_fault_for_exception_3 = dataa;
60245 		last_op_for_exception_3 = opcode;
60246 		last_addr_for_exception_3 = m68k_getpc() + 4;
60247 		Exception(3, 0, M68000_EXC_SRC_CPU);
60248 		goto endlabel3144;
60249 	}
60250 {{	int16_t data = m68k_read_memory_16(dataa);
60251 {	uint16_t val = data;
60252 	uint32_t carry = val & 0x8000;
60253 	val <<= 1;
60254 	if (GET_XFLG) val |= 1;
60255 	CLEAR_CZNV;
60256 	SET_ZFLG (((int16_t)(val)) == 0);
60257 	SET_NFLG (((int16_t)(val)) < 0);
60258 SET_CFLG (carry >> 15);
60259 	COPY_CARRY;
60260 m68k_incpc(4);
60261 fill_prefetch_0 ();
60262 	m68k_write_memory_16(dataa,val);
60263 }}}}}endlabel3144: ;
60264 return 18;
60265 }
CPUFUNC(op_e5f8_5)60266 unsigned long CPUFUNC(op_e5f8_5)(uint32_t opcode) /* ROXLW */
60267 {
60268 	OpcodeFamily = 78; CurrentInstrCycles = 16;
60269 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
60270 	if ((dataa & 1) != 0) {
60271 		last_fault_for_exception_3 = dataa;
60272 		last_op_for_exception_3 = opcode;
60273 		last_addr_for_exception_3 = m68k_getpc() + 4;
60274 		Exception(3, 0, M68000_EXC_SRC_CPU);
60275 		goto endlabel3145;
60276 	}
60277 {{	int16_t data = m68k_read_memory_16(dataa);
60278 {	uint16_t val = data;
60279 	uint32_t carry = val & 0x8000;
60280 	val <<= 1;
60281 	if (GET_XFLG) val |= 1;
60282 	CLEAR_CZNV;
60283 	SET_ZFLG (((int16_t)(val)) == 0);
60284 	SET_NFLG (((int16_t)(val)) < 0);
60285 SET_CFLG (carry >> 15);
60286 	COPY_CARRY;
60287 m68k_incpc(4);
60288 fill_prefetch_0 ();
60289 	m68k_write_memory_16(dataa,val);
60290 }}}}}endlabel3145: ;
60291 return 16;
60292 }
CPUFUNC(op_e5f9_5)60293 unsigned long CPUFUNC(op_e5f9_5)(uint32_t opcode) /* ROXLW */
60294 {
60295 	OpcodeFamily = 78; CurrentInstrCycles = 20;
60296 {{	uint32_t dataa = get_ilong_prefetch(2);
60297 	if ((dataa & 1) != 0) {
60298 		last_fault_for_exception_3 = dataa;
60299 		last_op_for_exception_3 = opcode;
60300 		last_addr_for_exception_3 = m68k_getpc() + 6;
60301 		Exception(3, 0, M68000_EXC_SRC_CPU);
60302 		goto endlabel3146;
60303 	}
60304 {{	int16_t data = m68k_read_memory_16(dataa);
60305 {	uint16_t val = data;
60306 	uint32_t carry = val & 0x8000;
60307 	val <<= 1;
60308 	if (GET_XFLG) val |= 1;
60309 	CLEAR_CZNV;
60310 	SET_ZFLG (((int16_t)(val)) == 0);
60311 	SET_NFLG (((int16_t)(val)) < 0);
60312 SET_CFLG (carry >> 15);
60313 	COPY_CARRY;
60314 m68k_incpc(6);
60315 fill_prefetch_0 ();
60316 	m68k_write_memory_16(dataa,val);
60317 }}}}}endlabel3146: ;
60318 return 20;
60319 }
CPUFUNC(op_e6d0_5)60320 unsigned long CPUFUNC(op_e6d0_5)(uint32_t opcode) /* RORW */
60321 {
60322 	uint32_t srcreg = (opcode & 7);
60323 	OpcodeFamily = 77; CurrentInstrCycles = 12;
60324 {{	uint32_t dataa = m68k_areg(regs, srcreg);
60325 	if ((dataa & 1) != 0) {
60326 		last_fault_for_exception_3 = dataa;
60327 		last_op_for_exception_3 = opcode;
60328 		last_addr_for_exception_3 = m68k_getpc() + 2;
60329 		Exception(3, 0, M68000_EXC_SRC_CPU);
60330 		goto endlabel3147;
60331 	}
60332 {{	int16_t data = m68k_read_memory_16(dataa);
60333 {	uint16_t val = data;
60334 	uint32_t carry = val & 1;
60335 	val >>= 1;
60336 	if (carry) val |= 0x8000;
60337 	CLEAR_CZNV;
60338 	SET_ZFLG (((int16_t)(val)) == 0);
60339 	SET_NFLG (((int16_t)(val)) < 0);
60340 SET_CFLG (carry);
60341 m68k_incpc(2);
60342 fill_prefetch_2 ();
60343 	m68k_write_memory_16(dataa,val);
60344 }}}}}endlabel3147: ;
60345 return 12;
60346 }
CPUFUNC(op_e6d8_5)60347 unsigned long CPUFUNC(op_e6d8_5)(uint32_t opcode) /* RORW */
60348 {
60349 	uint32_t srcreg = (opcode & 7);
60350 	OpcodeFamily = 77; CurrentInstrCycles = 12;
60351 {{	uint32_t dataa = m68k_areg(regs, srcreg);
60352 	if ((dataa & 1) != 0) {
60353 		last_fault_for_exception_3 = dataa;
60354 		last_op_for_exception_3 = opcode;
60355 		last_addr_for_exception_3 = m68k_getpc() + 2;
60356 		Exception(3, 0, M68000_EXC_SRC_CPU);
60357 		goto endlabel3148;
60358 	}
60359 {{	int16_t data = m68k_read_memory_16(dataa);
60360 	m68k_areg(regs, srcreg) += 2;
60361 {	uint16_t val = data;
60362 	uint32_t carry = val & 1;
60363 	val >>= 1;
60364 	if (carry) val |= 0x8000;
60365 	CLEAR_CZNV;
60366 	SET_ZFLG (((int16_t)(val)) == 0);
60367 	SET_NFLG (((int16_t)(val)) < 0);
60368 SET_CFLG (carry);
60369 m68k_incpc(2);
60370 fill_prefetch_2 ();
60371 	m68k_write_memory_16(dataa,val);
60372 }}}}}endlabel3148: ;
60373 return 12;
60374 }
CPUFUNC(op_e6e0_5)60375 unsigned long CPUFUNC(op_e6e0_5)(uint32_t opcode) /* RORW */
60376 {
60377 	uint32_t srcreg = (opcode & 7);
60378 	OpcodeFamily = 77; CurrentInstrCycles = 14;
60379 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
60380 	if ((dataa & 1) != 0) {
60381 		last_fault_for_exception_3 = dataa;
60382 		last_op_for_exception_3 = opcode;
60383 		last_addr_for_exception_3 = m68k_getpc() + 2;
60384 		Exception(3, 0, M68000_EXC_SRC_CPU);
60385 		goto endlabel3149;
60386 	}
60387 {{	int16_t data = m68k_read_memory_16(dataa);
60388 	m68k_areg (regs, srcreg) = dataa;
60389 {	uint16_t val = data;
60390 	uint32_t carry = val & 1;
60391 	val >>= 1;
60392 	if (carry) val |= 0x8000;
60393 	CLEAR_CZNV;
60394 	SET_ZFLG (((int16_t)(val)) == 0);
60395 	SET_NFLG (((int16_t)(val)) < 0);
60396 SET_CFLG (carry);
60397 m68k_incpc(2);
60398 fill_prefetch_2 ();
60399 	m68k_write_memory_16(dataa,val);
60400 }}}}}endlabel3149: ;
60401 return 14;
60402 }
CPUFUNC(op_e6e8_5)60403 unsigned long CPUFUNC(op_e6e8_5)(uint32_t opcode) /* RORW */
60404 {
60405 	uint32_t srcreg = (opcode & 7);
60406 	OpcodeFamily = 77; CurrentInstrCycles = 16;
60407 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
60408 	if ((dataa & 1) != 0) {
60409 		last_fault_for_exception_3 = dataa;
60410 		last_op_for_exception_3 = opcode;
60411 		last_addr_for_exception_3 = m68k_getpc() + 4;
60412 		Exception(3, 0, M68000_EXC_SRC_CPU);
60413 		goto endlabel3150;
60414 	}
60415 {{	int16_t data = m68k_read_memory_16(dataa);
60416 {	uint16_t val = data;
60417 	uint32_t carry = val & 1;
60418 	val >>= 1;
60419 	if (carry) val |= 0x8000;
60420 	CLEAR_CZNV;
60421 	SET_ZFLG (((int16_t)(val)) == 0);
60422 	SET_NFLG (((int16_t)(val)) < 0);
60423 SET_CFLG (carry);
60424 m68k_incpc(4);
60425 fill_prefetch_0 ();
60426 	m68k_write_memory_16(dataa,val);
60427 }}}}}endlabel3150: ;
60428 return 16;
60429 }
CPUFUNC(op_e6f0_5)60430 unsigned long CPUFUNC(op_e6f0_5)(uint32_t opcode) /* RORW */
60431 {
60432 	uint32_t srcreg = (opcode & 7);
60433 	OpcodeFamily = 77; CurrentInstrCycles = 18;
60434 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
60435 	BusCyclePenalty += 2;
60436 	if ((dataa & 1) != 0) {
60437 		last_fault_for_exception_3 = dataa;
60438 		last_op_for_exception_3 = opcode;
60439 		last_addr_for_exception_3 = m68k_getpc() + 4;
60440 		Exception(3, 0, M68000_EXC_SRC_CPU);
60441 		goto endlabel3151;
60442 	}
60443 {{	int16_t data = m68k_read_memory_16(dataa);
60444 {	uint16_t val = data;
60445 	uint32_t carry = val & 1;
60446 	val >>= 1;
60447 	if (carry) val |= 0x8000;
60448 	CLEAR_CZNV;
60449 	SET_ZFLG (((int16_t)(val)) == 0);
60450 	SET_NFLG (((int16_t)(val)) < 0);
60451 SET_CFLG (carry);
60452 m68k_incpc(4);
60453 fill_prefetch_0 ();
60454 	m68k_write_memory_16(dataa,val);
60455 }}}}}endlabel3151: ;
60456 return 18;
60457 }
CPUFUNC(op_e6f8_5)60458 unsigned long CPUFUNC(op_e6f8_5)(uint32_t opcode) /* RORW */
60459 {
60460 	OpcodeFamily = 77; CurrentInstrCycles = 16;
60461 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
60462 	if ((dataa & 1) != 0) {
60463 		last_fault_for_exception_3 = dataa;
60464 		last_op_for_exception_3 = opcode;
60465 		last_addr_for_exception_3 = m68k_getpc() + 4;
60466 		Exception(3, 0, M68000_EXC_SRC_CPU);
60467 		goto endlabel3152;
60468 	}
60469 {{	int16_t data = m68k_read_memory_16(dataa);
60470 {	uint16_t val = data;
60471 	uint32_t carry = val & 1;
60472 	val >>= 1;
60473 	if (carry) val |= 0x8000;
60474 	CLEAR_CZNV;
60475 	SET_ZFLG (((int16_t)(val)) == 0);
60476 	SET_NFLG (((int16_t)(val)) < 0);
60477 SET_CFLG (carry);
60478 m68k_incpc(4);
60479 fill_prefetch_0 ();
60480 	m68k_write_memory_16(dataa,val);
60481 }}}}}endlabel3152: ;
60482 return 16;
60483 }
CPUFUNC(op_e6f9_5)60484 unsigned long CPUFUNC(op_e6f9_5)(uint32_t opcode) /* RORW */
60485 {
60486 	OpcodeFamily = 77; CurrentInstrCycles = 20;
60487 {{	uint32_t dataa = get_ilong_prefetch(2);
60488 	if ((dataa & 1) != 0) {
60489 		last_fault_for_exception_3 = dataa;
60490 		last_op_for_exception_3 = opcode;
60491 		last_addr_for_exception_3 = m68k_getpc() + 6;
60492 		Exception(3, 0, M68000_EXC_SRC_CPU);
60493 		goto endlabel3153;
60494 	}
60495 {{	int16_t data = m68k_read_memory_16(dataa);
60496 {	uint16_t val = data;
60497 	uint32_t carry = val & 1;
60498 	val >>= 1;
60499 	if (carry) val |= 0x8000;
60500 	CLEAR_CZNV;
60501 	SET_ZFLG (((int16_t)(val)) == 0);
60502 	SET_NFLG (((int16_t)(val)) < 0);
60503 SET_CFLG (carry);
60504 m68k_incpc(6);
60505 fill_prefetch_0 ();
60506 	m68k_write_memory_16(dataa,val);
60507 }}}}}endlabel3153: ;
60508 return 20;
60509 }
CPUFUNC(op_e7d0_5)60510 unsigned long CPUFUNC(op_e7d0_5)(uint32_t opcode) /* ROLW */
60511 {
60512 	uint32_t srcreg = (opcode & 7);
60513 	OpcodeFamily = 76; CurrentInstrCycles = 12;
60514 {{	uint32_t dataa = m68k_areg(regs, srcreg);
60515 	if ((dataa & 1) != 0) {
60516 		last_fault_for_exception_3 = dataa;
60517 		last_op_for_exception_3 = opcode;
60518 		last_addr_for_exception_3 = m68k_getpc() + 2;
60519 		Exception(3, 0, M68000_EXC_SRC_CPU);
60520 		goto endlabel3154;
60521 	}
60522 {{	int16_t data = m68k_read_memory_16(dataa);
60523 {	uint16_t val = data;
60524 	uint32_t carry = val & 0x8000;
60525 	val <<= 1;
60526 	if (carry)  val |= 1;
60527 	CLEAR_CZNV;
60528 	SET_ZFLG (((int16_t)(val)) == 0);
60529 	SET_NFLG (((int16_t)(val)) < 0);
60530 SET_CFLG (carry >> 15);
60531 m68k_incpc(2);
60532 fill_prefetch_2 ();
60533 	m68k_write_memory_16(dataa,val);
60534 }}}}}endlabel3154: ;
60535 return 12;
60536 }
CPUFUNC(op_e7d8_5)60537 unsigned long CPUFUNC(op_e7d8_5)(uint32_t opcode) /* ROLW */
60538 {
60539 	uint32_t srcreg = (opcode & 7);
60540 	OpcodeFamily = 76; CurrentInstrCycles = 12;
60541 {{	uint32_t dataa = m68k_areg(regs, srcreg);
60542 	if ((dataa & 1) != 0) {
60543 		last_fault_for_exception_3 = dataa;
60544 		last_op_for_exception_3 = opcode;
60545 		last_addr_for_exception_3 = m68k_getpc() + 2;
60546 		Exception(3, 0, M68000_EXC_SRC_CPU);
60547 		goto endlabel3155;
60548 	}
60549 {{	int16_t data = m68k_read_memory_16(dataa);
60550 	m68k_areg(regs, srcreg) += 2;
60551 {	uint16_t val = data;
60552 	uint32_t carry = val & 0x8000;
60553 	val <<= 1;
60554 	if (carry)  val |= 1;
60555 	CLEAR_CZNV;
60556 	SET_ZFLG (((int16_t)(val)) == 0);
60557 	SET_NFLG (((int16_t)(val)) < 0);
60558 SET_CFLG (carry >> 15);
60559 m68k_incpc(2);
60560 fill_prefetch_2 ();
60561 	m68k_write_memory_16(dataa,val);
60562 }}}}}endlabel3155: ;
60563 return 12;
60564 }
CPUFUNC(op_e7e0_5)60565 unsigned long CPUFUNC(op_e7e0_5)(uint32_t opcode) /* ROLW */
60566 {
60567 	uint32_t srcreg = (opcode & 7);
60568 	OpcodeFamily = 76; CurrentInstrCycles = 14;
60569 {{	uint32_t dataa = m68k_areg(regs, srcreg) - 2;
60570 	if ((dataa & 1) != 0) {
60571 		last_fault_for_exception_3 = dataa;
60572 		last_op_for_exception_3 = opcode;
60573 		last_addr_for_exception_3 = m68k_getpc() + 2;
60574 		Exception(3, 0, M68000_EXC_SRC_CPU);
60575 		goto endlabel3156;
60576 	}
60577 {{	int16_t data = m68k_read_memory_16(dataa);
60578 	m68k_areg (regs, srcreg) = dataa;
60579 {	uint16_t val = data;
60580 	uint32_t carry = val & 0x8000;
60581 	val <<= 1;
60582 	if (carry)  val |= 1;
60583 	CLEAR_CZNV;
60584 	SET_ZFLG (((int16_t)(val)) == 0);
60585 	SET_NFLG (((int16_t)(val)) < 0);
60586 SET_CFLG (carry >> 15);
60587 m68k_incpc(2);
60588 fill_prefetch_2 ();
60589 	m68k_write_memory_16(dataa,val);
60590 }}}}}endlabel3156: ;
60591 return 14;
60592 }
CPUFUNC(op_e7e8_5)60593 unsigned long CPUFUNC(op_e7e8_5)(uint32_t opcode) /* ROLW */
60594 {
60595 	uint32_t srcreg = (opcode & 7);
60596 	OpcodeFamily = 76; CurrentInstrCycles = 16;
60597 {{	uint32_t dataa = m68k_areg(regs, srcreg) + (int32_t)(int16_t)get_iword_prefetch(2);
60598 	if ((dataa & 1) != 0) {
60599 		last_fault_for_exception_3 = dataa;
60600 		last_op_for_exception_3 = opcode;
60601 		last_addr_for_exception_3 = m68k_getpc() + 4;
60602 		Exception(3, 0, M68000_EXC_SRC_CPU);
60603 		goto endlabel3157;
60604 	}
60605 {{	int16_t data = m68k_read_memory_16(dataa);
60606 {	uint16_t val = data;
60607 	uint32_t carry = val & 0x8000;
60608 	val <<= 1;
60609 	if (carry)  val |= 1;
60610 	CLEAR_CZNV;
60611 	SET_ZFLG (((int16_t)(val)) == 0);
60612 	SET_NFLG (((int16_t)(val)) < 0);
60613 SET_CFLG (carry >> 15);
60614 m68k_incpc(4);
60615 fill_prefetch_0 ();
60616 	m68k_write_memory_16(dataa,val);
60617 }}}}}endlabel3157: ;
60618 return 16;
60619 }
CPUFUNC(op_e7f0_5)60620 unsigned long CPUFUNC(op_e7f0_5)(uint32_t opcode) /* ROLW */
60621 {
60622 	uint32_t srcreg = (opcode & 7);
60623 	OpcodeFamily = 76; CurrentInstrCycles = 18;
60624 {{	uint32_t dataa = get_disp_ea_000(m68k_areg(regs, srcreg), get_iword_prefetch(2));
60625 	BusCyclePenalty += 2;
60626 	if ((dataa & 1) != 0) {
60627 		last_fault_for_exception_3 = dataa;
60628 		last_op_for_exception_3 = opcode;
60629 		last_addr_for_exception_3 = m68k_getpc() + 4;
60630 		Exception(3, 0, M68000_EXC_SRC_CPU);
60631 		goto endlabel3158;
60632 	}
60633 {{	int16_t data = m68k_read_memory_16(dataa);
60634 {	uint16_t val = data;
60635 	uint32_t carry = val & 0x8000;
60636 	val <<= 1;
60637 	if (carry)  val |= 1;
60638 	CLEAR_CZNV;
60639 	SET_ZFLG (((int16_t)(val)) == 0);
60640 	SET_NFLG (((int16_t)(val)) < 0);
60641 SET_CFLG (carry >> 15);
60642 m68k_incpc(4);
60643 fill_prefetch_0 ();
60644 	m68k_write_memory_16(dataa,val);
60645 }}}}}endlabel3158: ;
60646 return 18;
60647 }
CPUFUNC(op_e7f8_5)60648 unsigned long CPUFUNC(op_e7f8_5)(uint32_t opcode) /* ROLW */
60649 {
60650 	OpcodeFamily = 76; CurrentInstrCycles = 16;
60651 {{	uint32_t dataa = (int32_t)(int16_t)get_iword_prefetch(2);
60652 	if ((dataa & 1) != 0) {
60653 		last_fault_for_exception_3 = dataa;
60654 		last_op_for_exception_3 = opcode;
60655 		last_addr_for_exception_3 = m68k_getpc() + 4;
60656 		Exception(3, 0, M68000_EXC_SRC_CPU);
60657 		goto endlabel3159;
60658 	}
60659 {{	int16_t data = m68k_read_memory_16(dataa);
60660 {	uint16_t val = data;
60661 	uint32_t carry = val & 0x8000;
60662 	val <<= 1;
60663 	if (carry)  val |= 1;
60664 	CLEAR_CZNV;
60665 	SET_ZFLG (((int16_t)(val)) == 0);
60666 	SET_NFLG (((int16_t)(val)) < 0);
60667 SET_CFLG (carry >> 15);
60668 m68k_incpc(4);
60669 fill_prefetch_0 ();
60670 	m68k_write_memory_16(dataa,val);
60671 }}}}}endlabel3159: ;
60672 return 16;
60673 }
CPUFUNC(op_e7f9_5)60674 unsigned long CPUFUNC(op_e7f9_5)(uint32_t opcode) /* ROLW */
60675 {
60676 	OpcodeFamily = 76; CurrentInstrCycles = 20;
60677 {{	uint32_t dataa = get_ilong_prefetch(2);
60678 	if ((dataa & 1) != 0) {
60679 		last_fault_for_exception_3 = dataa;
60680 		last_op_for_exception_3 = opcode;
60681 		last_addr_for_exception_3 = m68k_getpc() + 6;
60682 		Exception(3, 0, M68000_EXC_SRC_CPU);
60683 		goto endlabel3160;
60684 	}
60685 {{	int16_t data = m68k_read_memory_16(dataa);
60686 {	uint16_t val = data;
60687 	uint32_t carry = val & 0x8000;
60688 	val <<= 1;
60689 	if (carry)  val |= 1;
60690 	CLEAR_CZNV;
60691 	SET_ZFLG (((int16_t)(val)) == 0);
60692 	SET_NFLG (((int16_t)(val)) < 0);
60693 SET_CFLG (carry >> 15);
60694 m68k_incpc(6);
60695 fill_prefetch_0 ();
60696 	m68k_write_memory_16(dataa,val);
60697 }}}}}endlabel3160: ;
60698 return 20;
60699 }
60700 #endif
60701 
60702