|
|
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, 30: i_MMUOP 1.1.1.2 ! root 31: } ENUMNAME (instrmnem); 1.1 root 32: 33: extern struct mnemolookup { 34: instrmnem mnemo; 35: const char *name; 36: } lookuptab[]; 37: 1.1.1.2 ! root 38: ENUMDECL { 1.1 root 39: sz_byte, sz_word, sz_long 1.1.1.2 ! root 40: } ENUMNAME (wordsizes); 1.1 root 41: 1.1.1.2 ! root 42: ENUMDECL { 1.1 root 43: fa_set, fa_unset, fa_zero, fa_one, fa_dontcare, fa_unknown, fa_isjmp 1.1.1.2 ! root 44: } ENUMNAME (flagaffect); 1.1 root 45: 1.1.1.2 ! root 46: ENUMDECL { 1.1 root 47: fu_used, fu_unused, fu_maybecc, fu_unknown, fu_isjmp 1.1.1.2 ! root 48: } ENUMNAME (flaguse); 1.1 root 49: 1.1.1.2 ! root 50: ENUMDECL { 1.1 root 51: bit0, bit1, bitc, bitC, bitf, biti, bitI, bitj, bitJ, bitk, bitK, 52: bits, bitS, bitd, bitD, bitr, bitR, bitz, lastbit 1.1.1.2 ! root 53: } ENUMNAME (bitvals); 1.1 root 54: 55: struct instr_def { 1.1.1.2 ! root 56: unsigned int bits; 1.1 root 57: int n_variable; 58: char bitpos[16]; 1.1.1.2 ! root 59: unsigned int mask; ! 60: int cpulevel; 1.1 root 61: int plevel; 62: struct { 63: unsigned int flaguse:3; 64: unsigned int flagset:3; 65: } flaginfo[5]; 1.1.1.2 ! root 66: unsigned char sduse; ! 67: const char *opcstr; 1.1 root 68: }; 69: 70: extern struct instr_def defs68k[]; 71: extern int n_defs68k; 72: 73: extern struct instr { 1.1.1.2 ! root 74: long int handler; ! 75: unsigned char dreg; ! 76: unsigned char sreg; ! 77: signed char dpos; ! 78: signed char spos; ! 79: unsigned char sduse; ! 80: int flagdead:8, flaglive:8; 1.1 root 81: unsigned int mnemo:8; 82: unsigned int cc:4; 83: unsigned int plev:2; 84: unsigned int size:2; 85: unsigned int smode:5; 86: unsigned int stype:3; 87: unsigned int dmode:5; 88: unsigned int suse:1; 89: unsigned int duse:1; 1.1.1.2 ! root 90: unsigned int unused1:1; ! 91: unsigned int clev:3; ! 92: unsigned int unused2:5; 1.1 root 93: } *table68k; 94: 95: extern void read_table68k (void); 96: extern void do_merges (void); 97: extern int get_no_mismatches (void); 1.1.1.2 ! root 98: extern int nr_cpuop_funcs; ! 99:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.