Annotation of hatari/src/uae-cpu/readcpu.h, revision 1.1.1.2

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

unix.superglobalmegacorp.com

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