Annotation of uae/src/include/readcpu.h, revision 1.1.1.5

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.