|
|
1.1 ! root 1: ! 2: #ifndef UAE_READCPU_H ! 3: #define UAE_READCPU_H ! 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_CINVL, i_CINVP, i_CINVA, i_CPUSHL, i_CPUSHP, i_CPUSHA, i_MOVE16, ! 35: i_MMUOP030, i_PFLUSHN, i_PFLUSH, i_PFLUSHAN, i_PFLUSHA, ! 36: i_PLPAR, i_PLPAW, i_PTESTR, i_PTESTW, ! 37: i_LPSTOP, ! 38: MAX_OPCODE_FAMILY /* should always be last of the list */ ! 39: } ENUMNAME (instrmnem); ! 40: ! 41: struct mnemolookup { ! 42: instrmnem mnemo; ! 43: const TCHAR *name; ! 44: const TCHAR *friendlyname; ! 45: }; ! 46: ! 47: extern struct mnemolookup lookuptab[]; ! 48: ! 49: ENUMDECL { ! 50: sz_byte, sz_word, sz_long ! 51: } ENUMNAME (wordsizes); ! 52: ! 53: ENUMDECL { ! 54: fa_set, fa_unset, fa_zero, fa_one, fa_dontcare, fa_unknown, fa_isjmp, ! 55: fa_isbranch ! 56: } ENUMNAME (flagaffect); ! 57: ! 58: ENUMDECL { ! 59: fu_used, fu_unused, fu_maybecc, fu_unknown, fu_isjmp ! 60: } ENUMNAME (flaguse); ! 61: ! 62: ENUMDECL { ! 63: bit0, bit1, bitc, bitC, bitf, biti, bitI, bitj, bitJ, bitk, bitK, ! 64: bits, bitS, bitd, bitD, bitr, bitR, bitz, bitp, lastbit ! 65: } ENUMNAME (bitvals); ! 66: ! 67: struct instr_def { ! 68: unsigned int bits; ! 69: int n_variable; ! 70: uae_u8 bitpos[16]; ! 71: unsigned int mask; ! 72: int cpulevel; ! 73: int plevel; ! 74: struct { ! 75: unsigned int flaguse:3; ! 76: unsigned int flagset:3; ! 77: } flaginfo[5]; ! 78: uae_u8 sduse; ! 79: const TCHAR *opcstr; ! 80: }; ! 81: ! 82: extern struct instr_def defs68k[]; ! 83: extern int n_defs68k; ! 84: ! 85: extern struct instr { ! 86: long int handler; ! 87: unsigned char dreg; ! 88: unsigned char sreg; ! 89: signed char dpos; ! 90: signed char spos; ! 91: unsigned char sduse; ! 92: int flagdead:8, flaglive:8; ! 93: unsigned int mnemo:8; ! 94: unsigned int cc:4; ! 95: unsigned int plev:2; ! 96: unsigned int size:2; ! 97: unsigned int smode:5; ! 98: unsigned int stype:3; ! 99: unsigned int dmode:5; ! 100: unsigned int suse:1; ! 101: unsigned int duse:1; ! 102: unsigned int unused1:1; ! 103: unsigned int clev:3; ! 104: unsigned int isjmp:1; ! 105: unsigned int unused2:4; ! 106: } *table68k; ! 107: ! 108: extern void read_table68k (void); ! 109: extern void do_merges (void); ! 110: extern int get_no_mismatches (void); ! 111: extern int nr_cpuop_funcs; ! 112: ! 113: #endif ! 114:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.