1 /* 2 Tables used by dZ80 3 */ 4 5 #include <stdio.h> 6 #include <stdlib.h> 7 8 #include "dissz80p.h" 9 10 char *VersionString = "2.0"; /* Disassembler version */ 11 12 char *IMModes[4] = {"0", "0", "1", "2"}; 13 14 char *Conditions[8]= 15 { 16 "nz", 17 "z", 18 "nc", 19 "c", 20 "po", 21 "pe", 22 "p", 23 "m" 24 }; 25 26 char *AccRotType[8]= 27 { 28 "rlca", 29 "rrca", 30 "rla", 31 "rra", 32 "daa", 33 "cpl", 34 "scf", 35 "ccf" 36 }; 37 38 char *CBRotType[8] = 39 { 40 "rlc", 41 "rrc", 42 "rl", 43 "rr", 44 "sla", 45 "sra", 46 "sll", 47 "srl" 48 }; 49 50 char *Reg8Idx[8] = 51 { 52 "b", 53 "c", 54 "d", 55 "e", 56 "h", 57 "l", 58 "(hl)", 59 "a" 60 }; 61 62 char *Reg8AFIdx[8] = 63 { 64 "b", 65 "c", 66 "d", 67 "e", 68 "h", 69 "l", 70 "f", 71 "a" 72 }; 73 74 75 char *Reg16Idx[5] = 76 { 77 "bc", 78 "de", 79 "hl", 80 "sp", 81 "af" 82 }; 83 84 char *BasicOps[8] = 85 { 86 "add", 87 "adc", 88 "sub", 89 "sbc", 90 "and", 91 "xor", 92 "or", 93 "cp" 94 }; 95 96 char *RepeatOps[16] = 97 { 98 "ldi", 99 "cpi", 100 "ini", 101 "outi", 102 103 "ldd", 104 "cpd", 105 "ind", 106 "outd", 107 108 "ldir", 109 "cpir", 110 "inir", 111 "otir", 112 113 "lddr", 114 "cpdr", 115 "indr", 116 "otdr" 117 }; 118 119 120 char *Z180RepeatOps[4] = 121 { 122 "otim", 123 "otdm", 124 "otimr", 125 "otdmr" 126 }; 127 128 129 char *dZ80CpuTypeNames[DCPU_TOTAL] = 130 { 131 "Z80GB", 132 "Z80", 133 "Z180" 134 }; 135 136 char *dZ80ErrorMsgs[DERR_TOTAL] = 137 { 138 "No Error", 139 "Out of Memory", 140 "Couldn't create file", 141 "Couldn't write to file", 142 "Bad opcode length", 143 "Invalid parameters", 144 "Script error", 145 "Wrong argument type", 146 "File not found", 147 "Scripting not available" 148 }; 149 150