ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/readcpu.h
Revision: 1.1.1.1 (vendor branch)
Committed: 1999-10-03T14:16:26Z (25 years, 1 month ago) by cebix
Content type: text/plain
Branch: cebix
CVS Tags: release-0_7-2, snapshot-21101999, start
Changes since 1.1: +0 -0 lines
Log Message:
Imported sources

File Contents

# Content
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4
5 ENUMDECL {
6 Dreg, Areg, Aind, Aipi, Apdi, Ad16, Ad8r,
7 absw, absl, PC16, PC8r, imm, imm0, imm1, imm2, immi, am_unknown, am_illg
8 } ENUMNAME (amodes);
9
10 ENUMDECL {
11 i_ILLG,
12
13 i_OR, i_AND, i_EOR, i_ORSR, i_ANDSR, i_EORSR,
14 i_SUB, i_SUBA, i_SUBX, i_SBCD,
15 i_ADD, i_ADDA, i_ADDX, i_ABCD,
16 i_NEG, i_NEGX, i_NBCD, i_CLR, i_NOT, i_TST,
17 i_BTST, i_BCHG, i_BCLR, i_BSET,
18 i_CMP, i_CMPM, i_CMPA,
19 i_MVPRM, i_MVPMR, i_MOVE, i_MOVEA, i_MVSR2, i_MV2SR,
20 i_SWAP, i_EXG, i_EXT, i_MVMEL, i_MVMLE,
21 i_TRAP, i_MVR2USP, i_MVUSP2R, i_RESET, i_NOP, i_STOP, i_RTE, i_RTD,
22 i_LINK, i_UNLK,
23 i_RTS, i_TRAPV, i_RTR,
24 i_JSR, i_JMP, i_BSR, i_Bcc,
25 i_LEA, i_PEA, i_DBcc, i_Scc,
26 i_DIVU, i_DIVS, i_MULU, i_MULS,
27 i_ASR, i_ASL, i_LSR, i_LSL, i_ROL, i_ROR, i_ROXL, i_ROXR,
28 i_ASRW, i_ASLW, i_LSRW, i_LSLW, i_ROLW, i_RORW, i_ROXLW, i_ROXRW,
29 i_CHK,i_CHK2,
30 i_MOVEC2, i_MOVE2C, i_CAS, i_CAS2, i_DIVL, i_MULL,
31 i_BFTST,i_BFEXTU,i_BFCHG,i_BFEXTS,i_BFCLR,i_BFFFO,i_BFSET,i_BFINS,
32 i_PACK, i_UNPK, i_TAS, i_BKPT, i_CALLM, i_RTM, i_TRAPcc, i_MOVES,
33 i_FPP, i_FDBcc, i_FScc, i_FTRAPcc, i_FBcc, i_FSAVE, i_FRESTORE,
34 i_MMUOP
35 } ENUMNAME (instrmnem);
36
37 extern struct mnemolookup {
38 instrmnem mnemo;
39 const char *name;
40 } lookuptab[];
41
42 ENUMDECL {
43 sz_byte, sz_word, sz_long
44 } ENUMNAME (wordsizes);
45
46 ENUMDECL {
47 fa_set, fa_unset, fa_zero, fa_one, fa_dontcare, fa_unknown, fa_isjmp
48 } ENUMNAME (flagaffect);
49
50 ENUMDECL {
51 fu_used, fu_unused, fu_maybecc, fu_unknown, fu_isjmp
52 } ENUMNAME (flaguse);
53
54 ENUMDECL {
55 bit0, bit1, bitc, bitC, bitf, biti, bitI, bitj, bitJ, bitk, bitK,
56 bits, bitS, bitd, bitD, bitr, bitR, bitz, lastbit
57 } ENUMNAME (bitvals);
58
59 struct instr_def {
60 unsigned int bits;
61 int n_variable;
62 char bitpos[16];
63 unsigned int mask;
64 int cpulevel;
65 int plevel;
66 struct {
67 unsigned int flaguse:3;
68 unsigned int flagset:3;
69 } flaginfo[5];
70 unsigned char sduse;
71 const char *opcstr;
72 };
73
74 extern struct instr_def defs68k[];
75 extern int n_defs68k;
76
77 extern struct instr {
78 long int handler;
79 unsigned char dreg;
80 unsigned char sreg;
81 signed char dpos;
82 signed char spos;
83 unsigned char sduse;
84 int flagdead:8, flaglive:8;
85 unsigned int mnemo:8;
86 unsigned int cc:4;
87 unsigned int plev:2;
88 #ifdef sgi
89 wordsizes size:2;
90 amodes smode:5;
91 unsigned int stype:3;
92 amodes dmode:5;
93 #else
94 unsigned int size:2;
95 unsigned int smode:5;
96 unsigned int stype:3;
97 unsigned int dmode:5;
98 #endif
99 unsigned int suse:1;
100 unsigned int duse:1;
101 unsigned int unused1:1;
102 unsigned int clev:3;
103 unsigned int unused2:5;
104 } *table68k;
105
106 extern void read_table68k (void);
107 extern void do_merges (void);
108 extern int get_no_mismatches (void);
109 extern int nr_cpuop_funcs;
110
111 #ifdef __cplusplus
112 }
113 #endif