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