annotate lwasm/cycle.c @ 384:6ee9c67a0f8d

Add conditional for testing if a pragma is in effect An obvious addition that took someone else to notice... Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 21:20:30 -0600
parents b0ec15f95563
children 4fd16faa4d93
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
378
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
1 /*
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
2 cycle.c
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
3
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
4 Copyright (c) 2015 Erik Gavriluk
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
5 Dual-licensed BSD 3-CLAUSE and GPL as per below.
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
6 Thanks to John Kowalksi for cycle count verification.
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
7
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
8 This file is part of LWTOOLS.
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
9
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
10 LWTOOLS is free software: you can redistribute it and/or modify it under the
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
11 terms of the GNU General Public License as published by the Free Software
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
12 Foundation, either version 3 of the License, or (at your option) any later
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
13 version.
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
14
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
15 This program is distributed in the hope that it will be useful, but WITHOUT
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
18 more details.
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
19
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
20 You should have received a copy of the GNU General Public License along with
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
21 this program. If not, see <http://www.gnu.org/licenses/>.
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
22 */
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
23
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
24 #include "lwasm.h"
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
25
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
26 typedef struct
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
27 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
28 int opc;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
29 int cycles_6809;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
30 int cycles_6309;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
31 cycle_flags flags;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
32 } cycletable_t;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
33
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
34 static cycletable_t cycletable[] =
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
35 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
36 { 0x3a, 3, 1, 0 }, // ABX
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
37
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
38 { 0x89, 2, 2, 0 }, // ADCA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
39 { 0x99, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
40 { 0xa9, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
41 { 0xb9, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
42
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
43 { 0xc9, 2, 2, 0 }, // ADCB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
44 { 0xd9, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
45 { 0xe9, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
46 { 0xf9, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
47
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
48 { 0x1089, 5, 4, 0 }, // ADCD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
49 { 0x1099, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
50 { 0x10a9, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
51 { 0x10b9, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
52
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
53 { 0x8b, 2, 2, 0 }, // ADDA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
54 { 0x9b, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
55 { 0xab, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
56 { 0xbb, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
57
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
58 { 0xcb, 2, 2, 0 }, // ADDB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
59 { 0xdb, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
60 { 0xeb, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
61 { 0xfb, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
62
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
63 { 0xc3, 4, 3, 0 }, // ADDD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
64 { 0xd3, 6, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
65 { 0xe3, 6, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
66 { 0xf3, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
67
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
68 { 0x118b, 3, 3, 0 }, // ADDE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
69 { 0x119b, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
70 { 0x11ab, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
71 { 0x11bb, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
72
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
73 { 0x11cb, 3, 3, 0 }, // ADDF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
74 { 0x11db, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
75 { 0x11eb, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
76 { 0x11fb, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
77
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
78 { 0x1031, 4, 4, 0 }, // ADCR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
79 { 0x1030, 4, 4, 0 }, // ADDR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
80 { 0x1034, 4, 4, 0 }, // ANDR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
81 { 0x1037, 4, 4, 0 }, // CMPR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
82 { 0x1036, 4, 4, 0 }, // EORR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
83 { 0x1035, 4, 4, 0 }, // ORR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
84 { 0x1033, 4, 4, 0 }, // SBCR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
85 { 0x1032, 4, 4, 0 }, // SUBR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
86
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
87 { 0x108b, 5, 4, 0 }, // ADDW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
88 { 0x109b, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
89 { 0x10ab, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
90 { 0x10bb, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
91
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
92 { 0x02, 6, 6, 0 }, // AIM
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
93 { 0x62, 7, 7, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
94 { 0x72, 7, 7, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
95
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
96 { 0x84, 2, 2, 0 }, // ANDA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
97 { 0x94, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
98 { 0xa4, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
99 { 0xb4, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
100
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
101 { 0xc4, 2, 2, 0 }, // ANDB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
102 { 0xd4, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
103 { 0xe4, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
104 { 0xf4, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
105
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
106 { 0x1c, 3, 2, 0 }, // ANDCC
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
107
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
108 { 0x1084, 5, 4, 0 }, // ANDD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
109 { 0x1094, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
110 { 0x10a4, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
111 { 0x10b4, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
112
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
113 { 0x48, 2, 1, 0 }, // ASL
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
114 { 0x58, 2, 1, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
115 { 0x1048, 3, 2, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
116 { 0x08, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
117 { 0x68, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
118 { 0x78, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
119
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
120 { 0x47, 2, 1, 0 }, // ASR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
121 { 0x57, 2, 1, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
122 { 0x1047, 3, 2, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
123 { 0x07, 6, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
124 { 0x67, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
125 { 0x77, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
126
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
127 { 0x1130, 7, 6, 0 }, // BAND
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
128 { 0x1131, 7, 6, 0 }, // BIAND
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
129 { 0x1132, 7, 6, 0 }, // BOR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
130 { 0x1133, 7, 6, 0 }, // BIOR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
131 { 0x1134, 7, 6, 0 }, // BEOR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
132 { 0x1135, 7, 6, 0 }, // BIEOR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
133
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
134 { 0x85, 2, 2, 0 }, // BITA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
135 { 0x95, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
136 { 0xa5, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
137 { 0xb5, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
138
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
139 { 0xc5, 2, 2, 0 }, // BITB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
140 { 0xd5, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
141 { 0xe5, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
142 { 0xf5, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
143
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
144 { 0x1085, 5, 4, 0 }, // BITD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
145 { 0x1095, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
146 { 0x10a5, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
147 { 0x10b5, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
148
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
149 { 0x113c, 4, 4, 0 }, // BITMD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
150
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
151 { 0x20, 3, 3, 0 }, // BRA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
152 { 0x21, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
153 { 0x22, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
154 { 0x23, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
155 { 0x24, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
156 { 0x25, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
157 { 0x26, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
158 { 0x27, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
159 { 0x28, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
160 { 0x29, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
161 { 0x2a, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
162 { 0x2b, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
163 { 0x2c, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
164 { 0x2d, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
165 { 0x2e, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
166 { 0x2f, 3, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
167
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
168 { 0x8d, 7, 6, 0 }, // BSR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
169
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
170 { 0x4f, 2, 1, 0 }, // CLR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
171 { 0x5f, 2, 1, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
172 { 0x104f, 3, 2, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
173 { 0x114f, 3, 2, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
174 { 0x115f, 3, 2, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
175 { 0x105f, 3, 2, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
176 { 0x0f, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
177 { 0x6f, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
178 { 0x7f, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
179
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
180 { 0x81, 2, 2, 0 }, // CMPA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
181 { 0x91, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
182 { 0xa1, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
183 { 0xb1, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
184
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
185 { 0xc1, 2, 2, 0 }, // CMPB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
186 { 0xd1, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
187 { 0xe1, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
188 { 0xf1, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
189
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
190 { 0x1083, 5, 4, 0 }, // CMPD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
191 { 0x1093, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
192 { 0x10a3, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
193 { 0x10b3, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
194
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
195 { 0x1081, 3, 3, 0 }, // CMPE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
196 { 0x1091, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
197 { 0x10a1, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
198 { 0x10b1, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
199
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
200 { 0x10c1, 3, 3, 0 }, // CMPF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
201 { 0x10d1, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
202 { 0x10e1, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
203 { 0x10f1, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
204
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
205 { 0x118c, 5, 4, 0 }, // CMPS
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
206 { 0x119c, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
207 { 0x11ac, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
208 { 0x11bc, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
209
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
210 { 0x1183, 5, 4, 0 }, // CMPU
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
211 { 0x1193, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
212 { 0x11a3, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
213 { 0x11b3, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
214
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
215 { 0x1181, 5, 4, 0 }, // CMPW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
216 { 0x1191, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
217 { 0x11a1, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
218 { 0x11b1, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
219
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
220 { 0x8c, 4, 3, 0 }, // CMPX
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
221 { 0x9c, 6, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
222 { 0xac, 6, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
223 { 0xbc, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
224
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
225 { 0x108c, 5, 4, 0 }, // CMPY
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
226 { 0x109c, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
227 { 0x10ac, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
228 { 0x10bc, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
229
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
230 { 0x43, 2, 1, 0 }, // COMA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
231 { 0x53, 2, 1, 0 }, // COMB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
232 { 0x1043, 3, 2, 0 }, // COMD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
233 { 0x1143, 3, 2, 0 }, // COME
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
234 { 0x1153, 3, 2, 0 }, // COMF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
235 { 0x1053, 3, 2, 0 }, // COMW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
236
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
237 { 0x03, 6, 5, 0 }, // COM
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
238 { 0x63, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
239 { 0x73, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
240
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
241 { 0x3c, 22, 20, 0 }, // CWAI
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
242
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
243 { 0x19, 2, 1, 0 }, // DAA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
244
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
245 { 0x4a, 2, 1, 0 }, // DECA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
246 { 0x5a, 2, 1, 0 }, // DECB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
247 { 0x104a, 3, 2, 0 }, // DECD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
248 { 0x114a, 3, 2, 0 }, // DECE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
249 { 0x115a, 3, 2, 0 }, // DECF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
250 { 0x105a, 3, 2, 0 }, // DECW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
251
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
252 { 0x0a, 6, 5, 0 }, // DEC
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
253 { 0x6a, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
254 { 0x7a, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
255
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
256 { 0x118d, 25, 25, 0 }, // DIVD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
257 { 0x119d, 27, 26, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
258 { 0x11ad, 27, 27, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
259 { 0x11bd, 28, 27, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
260
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
261 { 0x118e, 34, 34, 0 }, // DIVQ
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
262 { 0x119e, 36, 35, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
263 { 0x11ae, 36, 36, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
264 { 0x11be, 37, 36, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
265
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
266 { 0x05, 6, 6, 0 }, // EIM
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
267 { 0x65, 7, 7, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
268 { 0x75, 7, 7, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
269
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
270 { 0x88, 2, 2, 0 }, // EORA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
271 { 0x98, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
272 { 0xa8, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
273 { 0xb8, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
274
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
275 { 0xc8, 2, 2, 0 }, // EORB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
276 { 0xd8, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
277 { 0xe8, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
278 { 0xf8, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
279
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
280 { 0x1088, 5, 4, 0 }, // EORD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
281 { 0x1098, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
282 { 0x10a8, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
283 { 0x10b8, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
284
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
285 { 0x1e, 8, 5, 0 }, // EXG
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
286
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
287 { 0x4c, 2, 1, 0 }, // INCA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
288 { 0x5c, 2, 1, 0 }, // INCB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
289 { 0x104c, 3, 2, 0 }, // INCD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
290 { 0x114c, 3, 2, 0 }, // INCE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
291 { 0x115c, 3, 2, 0 }, // INCF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
292 { 0x105c, 3, 2, 0 }, // INCW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
293
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
294 { 0x0c, 6, 5, 0 }, // INC
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
295 { 0x6c, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
296 { 0x7c, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
297
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
298 { 0x0e, 3, 2, 0 }, // JMP
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
299 { 0x6e, 3, 3, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
300 { 0x7e, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
301
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
302 { 0x9d, 7, 6, 0 }, // JSR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
303 { 0xad, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
304 { 0xbd, 8, 7, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
305
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
306 { 0x16, 5, 4, 0 }, // LBRA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
307 { 0x17, 9, 7, 0 }, // LBSR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
308 { 0x1022, 5, 5, 0 }, // LBRN
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
309 { 0x1023, 5, 6, 0 }, // remaining long branches are estimated on 6809 only:
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
310 { 0x1024, 5, 6, 0 }, // 6809: 5 cycles, +1 cycle if the branch is taken
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
311 { 0x1025, 5, 6, 0 }, // 6309 native: always 5 cycles
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
312 { 0x1026, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
313 { 0x1027, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
314 { 0x1028, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
315 { 0x1029, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
316 { 0x102a, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
317 { 0x102b, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
318 { 0x102c, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
319 { 0x102d, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
320 { 0x102e, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
321 { 0x102f, 5, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
322
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
323 { 0x86, 2, 2, 0 }, // LDA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
324 { 0x96, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
325 { 0xa6, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
326 { 0xb6, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
327
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
328 { 0xc6, 2, 2, 0 }, // LDB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
329 { 0xd6, 4, 3 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
330 { 0xe6, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
331 { 0xf6, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
332
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
333 { 0x1136, 7, 6, 0 }, // LDBT
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
334
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
335 { 0xcc, 3, 3, 0 }, // LDD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
336 { 0xdc, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
337 { 0xec, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
338 { 0xfc, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
339
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
340 { 0x1186, 3, 3, 0 }, // LDE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
341 { 0x1196, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
342 { 0x11a6, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
343 { 0x11b6, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
344
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
345 { 0x11c6, 3, 3, 0 }, // LDF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
346 { 0x11d6, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
347 { 0x11e6, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
348 { 0x11f6, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
349
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
350 { 0xcd, 5, 5, 0 }, // LDQ
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
351 { 0x10dc, 8, 7, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
352 { 0x10ec, 8, 8, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
353 { 0x10fc, 9, 8, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
354
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
355 { 0x10ce, 4, 4, 0 }, // LDS
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
356 { 0x10de, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
357 { 0x10ee, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
358 { 0x10fe, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
359
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
360 { 0xce, 3, 3, 0 }, // LDU
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
361 { 0xde, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
362 { 0xee, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
363 { 0xfe, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
364
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
365 { 0x1086, 4, 4, 0 }, // LDW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
366 { 0x1096, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
367 { 0x10a6, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
368 { 0x10b6, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
369
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
370 { 0x8e, 3, 3, 0 }, // LDX
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
371 { 0x9e, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
372 { 0xae, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
373 { 0xbe, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
374
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
375 { 0x108e, 4, 4, 0 }, // LDY
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
376 { 0x109e, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
377 { 0x10ae, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
378 { 0x10be, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
379
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
380 { 0x113d, 5, 5, 0 }, // LDMD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
381
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
382 { 0x30, 4, 4, CYCLE_ADJ }, // LEA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
383 { 0x31, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
384 { 0x32, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
385 { 0x33, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
386
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
387 { 0x44, 2, 1, 0 }, // LSRA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
388 { 0x54, 2, 1, 0 }, // LSRB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
389 { 0x1044, 3, 2, 0 }, // LSRD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
390 { 0x1054, 3, 2, 0 }, // LSRW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
391
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
392 { 0x04, 6, 5, 0 }, // LSR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
393 { 0x64, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
394 { 0x74, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
395
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
396 { 0x3d, 11, 10, 0 }, // MUL
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
397
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
398 { 0x118f, 28, 28, 0 }, // MULD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
399 { 0x119f, 30, 29, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
400 { 0x11af, 30, 30, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
401 { 0x11bf, 31, 30, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
402
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
403 { 0x40, 2, 1, 0 }, // NEGA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
404 { 0x50, 2, 1, 0 }, // NEGB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
405 { 0x1040, 3, 2, 0 }, // NEGD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
406
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
407 { 0x00, 6, 5, 0 }, // NEG
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
408 { 0x60, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
409 { 0x70, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
410
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
411 { 0x12, 2, 1, 0 }, // NOP
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
412
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
413 { 0x01, 6, 6, 0 }, // OIM
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
414 { 0x61, 7, 7, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
415 { 0x71, 7, 7, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
416
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
417 { 0x8a, 2, 2, 0 }, // ORA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
418 { 0x9a, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
419 { 0xaa, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
420 { 0xba, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
421
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
422 { 0xca, 2, 2, 0 }, // ORB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
423 { 0xda, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
424 { 0xea, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
425 { 0xfa, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
426
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
427 { 0x1a, 3, 2, 0 }, // ORCC
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
428
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
429 { 0x108a, 5, 4, 0 }, // ORD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
430 { 0x109a, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
431 { 0x10aa, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
432 { 0x10ba, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
433
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
434 { 0x34, 5, 4, CYCLE_ADJ }, // PSHS
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
435 { 0x36, 5, 4, CYCLE_ADJ }, // PSHU
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
436 { 0x35, 5, 4, CYCLE_ADJ }, // PULS
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
437 { 0x37, 5, 4, CYCLE_ADJ }, // PULU
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
438 { 0x1038, 6, 6, 0 }, // PSHSW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
439 { 0x103a, 6, 6, 0 }, // PSHUW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
440 { 0x1039, 6, 6, 0 }, // PULSW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
441 { 0x103b, 6, 6, 0 }, // PULUW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
442
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
443 { 0x49, 2, 1, 0 }, // ROLA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
444 { 0x59, 2, 1, 0 }, // ROLB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
445 { 0x1049, 3, 2, 0 }, // ROLD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
446 { 0x1059, 3, 2, 0 }, // ROLW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
447
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
448 { 0x09, 6, 5, 0 }, // ROL
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
449 { 0x69, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
450 { 0x79, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
451
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
452 { 0x46, 2, 1, 0 }, // RORA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
453 { 0x56, 2, 1, 0 }, // RORB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
454 { 0x1046, 3, 2, 0 }, // RORD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
455 { 0x1056, 3, 2, 0 }, // RORW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
456
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
457 { 0x06, 6, 5, 0 }, // ROR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
458 { 0x66, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
459 { 0x76, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
460
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
461 { 0x3b, 6, 17, CYCLE_ESTIMATED }, // RTI
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
462
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
463 { 0x39, 5, 4, 0 }, // RTS
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
464
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
465 { 0x82, 2, 2, 0 }, // SBCA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
466 { 0x92, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
467 { 0xa2, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
468 { 0xb2, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
469
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
470 { 0xc2, 2, 2, 0 }, // SBCB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
471 { 0xd2, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
472 { 0xe2, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
473 { 0xf2, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
474
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
475 { 0x1082, 5, 4, 0 }, // SBCD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
476 { 0x1092, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
477 { 0x10a2, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
478 { 0x10b2, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
479
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
480 { 0x1d, 2, 1, 0 }, // SEX
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
481 { 0x14, 4, 4, 0 }, // SEXW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
482
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
483 { 0x97, 4, 3, 0 }, // STA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
484 { 0xa7, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
485 { 0xb7, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
486
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
487 { 0xd7, 4, 3, 0 }, // STB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
488 { 0xe7, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
489 { 0xf7, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
490
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
491 { 0x1137, 8, 7, 0 }, // STBT
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
492
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
493 { 0xdd, 5, 4, 0 }, // STD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
494 { 0xed, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
495 { 0xfd, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
496
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
497 { 0x1197, 5, 4, 0 }, // STE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
498 { 0x11a7, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
499 { 0x11b7, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
500
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
501 { 0x11d7, 5, 4, 0 }, // STF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
502 { 0x11e7, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
503 { 0x11f7, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
504
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
505 { 0x10dd, 8, 7, 0 }, // STQ
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
506 { 0x10ed, 8, 8, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
507 { 0x10fd, 9, 8, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
508
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
509 { 0x10df, 6, 5, 0 }, // STS
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
510 { 0x10ef, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
511 { 0x10ff, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
512
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
513 { 0xdf, 5, 4, 0 }, // STU
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
514 { 0xef, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
515 { 0xff, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
516
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
517 { 0x1097, 6, 5, 0 }, // STW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
518 { 0x10a7, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
519 { 0x10b7, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
520
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
521 { 0x9f, 5, 4, 0 }, // STX
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
522 { 0xaf, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
523 { 0xbf, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
524
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
525 { 0x109f, 6, 5, 0 }, // STY
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
526 { 0x10af, 6, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
527 { 0x10bf, 7, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
528
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
529 { 0x80, 2, 2, 0 }, // SUBA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
530 { 0x90, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
531 { 0xa0, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
532 { 0xb0, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
533
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
534 { 0xc0, 2, 2, 0 }, // SUBB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
535 { 0xd0, 4, 3, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
536 { 0xe0, 4, 4, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
537 { 0xf0, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
538
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
539 { 0x83, 4, 3, 0 }, // SUBD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
540 { 0x93, 6, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
541 { 0xa3, 6, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
542 { 0xb3, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
543
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
544 { 0x1180, 3, 3, 0 }, // SUBE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
545 { 0x1190, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
546 { 0x11a0, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
547 { 0x11b0, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
548
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
549 { 0x11c0, 3, 3, 0 }, // SUBF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
550 { 0x11d0, 5, 4, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
551 { 0x11e0, 5, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
552 { 0x11f0, 6, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
553
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
554 { 0x1080, 5, 4, 0 }, // SUBW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
555 { 0x1090, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
556 { 0x10a0, 7, 6, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
557 { 0x10b0, 8, 6, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
558
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
559 { 0x3f, 19, 21, 0 }, // SWI
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
560 { 0x103f, 20, 22, 0 }, // SWI2
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
561 { 0x113f, 20, 22, 0 }, // SWI3
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
562
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
563 { 0x13, 2, 1, CYCLE_ESTIMATED }, // SYNC
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
564
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
565 { 0x1f, 6, 4, 0 }, // TFR
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
566
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
567 { 0x0b, 6, 6, CYCLE_ESTIMATED }, // TIM
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
568 { 0x6b, 7, 7, CYCLE_ADJ | CYCLE_ESTIMATED },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
569 { 0x7b, 5, 5, CYCLE_ESTIMATED },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
570
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
571 { 0x1138, 6, 6, CYCLE_ESTIMATED }, // TFM
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
572 { 0x1139, 6, 6, CYCLE_ESTIMATED },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
573 { 0x113a, 6, 6, CYCLE_ESTIMATED },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
574 { 0x113b, 6, 6, CYCLE_ESTIMATED },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
575
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
576 { 0x4d, 2, 1, 0 }, // TSTA
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
577 { 0x5d, 2, 1, 0 }, // TSTB
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
578 { 0x104d, 3, 2, 0 }, // TSTD
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
579 { 0x114d, 3, 2, 0 }, // TSTE
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
580 { 0x115d, 3, 2, 0 }, // TSTF
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
581 { 0x105d, 3, 2, 0 }, // TSTW
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
582
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
583 { 0x0d, 6, 4, 0 }, // TST
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
584 { 0x6d, 6, 5, CYCLE_ADJ },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
585 { 0x7d, 7, 5, 0 },
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
586
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
587 { -1, -1 }
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
588 };
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
589
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
590 typedef struct
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
591 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
592 int cycles_6809_indexed;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
593 int cycles_6309_indexed;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
594 int cycles_6809_indirect;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
595 int cycles_6309_indirect;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
596 } indtab_t;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
597
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
598 static indtab_t indtab[] =
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
599 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
600 { 2, 1, -1, -1, }, // 0000 ,R+
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
601 { 3, 2, 6, 6, }, // 0001 ,R++ [,R++]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
602 { 2, 1, -1, -1, }, // 0010 ,-R
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
603 { 3, 2, 6, 6, }, // 0011 ,--R [,--R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
604 { 0, 0, 3, 3, }, // 0100 ,R [,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
605 { 1, 1, 4, 4, }, // 0101 B,R [B,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
606 { 1, 1, 4, 4, }, // 0110 A,R [A,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
607 { 1, 1, 1, 1, }, // 0111 E,R [E,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
608 { 1, 1, 4, 4, }, // 1000 n,R [n,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
609 { 4, 3, 7, 7, }, // 1001 n,R [n,R] (16 bit)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
610 { 1, 1, 1, 1, }, // 1010 F,R [F,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
611 { 4, 2, 4, 4, }, // 1011 D,R [D,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
612 { 1, 1, 4, 4, }, // 1100 n,PC [n,PC]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
613 { 5, 3, 8, 8, }, // 1101 n,PC [n,PC] (16 bit)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
614 { 4, 1, 4, 4, }, // 1110 W,R [W,R]
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
615 { -1, -1, 5, 5, }, // 1111 [n] (16 bit)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
616 };
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
617
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
618 /* calculates additional ticks from post byte in both indexed and indirect modes */
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
619 int lwasm_cycle_calc_ind(line_t *cl)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
620 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
621 int pb = cl->pb;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
622
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
623 if ((pb & 0x80) == 0) /* 5 bit offset */
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
624 return 1;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
625
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
626 if (pb & 0x10) /* indirect */
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
627 return CURPRAGMA(cl, PRAGMA_6809) ? indtab[pb & 0xf].cycles_6809_indirect : indtab[pb & 0xf].cycles_6309_indirect;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
628 else
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
629 return CURPRAGMA(cl, PRAGMA_6809) ? indtab[pb & 0xf].cycles_6809_indexed : indtab[pb & 0xf].cycles_6309_indexed;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
630 }
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
631
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
632 /* calculate additional ticks from post byte in rlist (PSHS A,B,X...) */
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
633 int lwasm_cycle_calc_rlist(line_t *cl)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
634 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
635 int i, cycles = 0;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
636
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
637 for (i = 0; i < 8; i++)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
638 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
639 // 1 cycle for 8 bit regs CC-DP (bits 0-3)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
640 // otherwise 2
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
641 if (cl->pb & 1 << i)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
642 cycles += (i <= 3) ? 1 : 2;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
643 }
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
644
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
645 return cycles;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
646 }
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
647
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
648 void lwasm_cycle_update_count(line_t *cl, int opc)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
649 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
650 int i;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
651 for (i = 0; 1; i++)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
652 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
653 if (cycletable[i].opc == -1) return;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
654
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
655 if (cycletable[i].opc == opc)
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
656 {
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
657 cl->cycle_base = CURPRAGMA(cl, PRAGMA_6809) ? cycletable[i].cycles_6809 : cycletable[i].cycles_6309;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
658 cl->cycle_flags = cycletable[i].flags;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
659 cl->cycle_adj = 0;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
660
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
661 // long branches are estimated on 6809
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
662 if (CURPRAGMA(cl, PRAGMA_6809) && (opc >= 0x1023 && opc <= 0x102f))
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
663 cl->cycle_flags |= CYCLE_ESTIMATED;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
664
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
665 return;
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
666 }
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
667 }
b0ec15f95563 Add missed file in 35d4213e6657
William Astle <lost@l-w.ca>
parents:
diff changeset
668 }