File tree Expand file tree Collapse file tree 2 files changed +72
-4
lines changed Expand file tree Collapse file tree 2 files changed +72
-4
lines changed Original file line number Diff line number Diff line change 2
2
# vim: set fileencoding=utf-8 :
3
3
""" zeus2txt.py tests """
4
4
5
- import os
6
5
import io
7
- import unittest
6
+ import os
8
7
import tempfile
8
+ import unittest
9
9
from collections import namedtuple
10
+
10
11
from zxtools import zeus2txt
11
12
12
13
@@ -23,7 +24,7 @@ def test_convert(self):
23
24
# temp_output_file = open(temp_output_path, "rb")
24
25
temp_output_file .seek (0 , os .SEEK_END )
25
26
try :
26
- self .assertEqual (temp_output_file .tell (), 3301 )
27
+ self .assertEqual (temp_output_file .tell (), 3302 )
27
28
finally :
28
29
temp_output_file .close ()
29
30
os .remove (temp_output_path )
Original file line number Diff line number Diff line change @@ -26,37 +26,104 @@ def read_file(src_file):
26
26
27
27
ASM_META = {
28
28
128 : "A" ,
29
+ 129 : "ADC " ,
29
30
130 : "ADD " ,
31
+ 131 : "AF'" ,
32
+ 132 : "AF" ,
33
+ 133 : "AND " ,
30
34
134 : "B" ,
31
35
135 : "BC" ,
36
+ 136 : "BIT " ,
37
+ 137 : "C" ,
32
38
138 : "CALL " ,
39
+ 139 : "CCF" ,
33
40
140 : "CP " ,
41
+ 141 : "CPD" ,
42
+ 142 : "CPDR" ,
43
+ 143 : "CPI" ,
44
+ 144 : "CPIR" ,
45
+ 145 : "CPL" ,
34
46
146 : "D" ,
47
+ 147 : "DAA" ,
35
48
148 : "DE" ,
36
49
149 : "DEC " ,
37
50
150 : "DEFB " ,
38
51
151 : "DEFM " ,
52
+ 152 : "DEFS " ,
39
53
153 : "DEFW " ,
54
+ 154 : "DI" ,
55
+ 155 : "DISP " ,
40
56
156 : "DJNZ " ,
41
57
157 : "E" ,
58
+ 158 : "EI" ,
59
+ 159 : "ENT" ,
42
60
160 : "EQU " ,
43
61
161 : "EX " ,
62
+ 162 : "EXX" ,
44
63
163 : "H" ,
64
+ 164 : "HALT" ,
45
65
165 : "HL" ,
66
+ 166 : "I" ,
67
+ 167 : "IM " ,
68
+ 168 : "IN " ,
46
69
169 : "INC " ,
70
+ 170 : "IND" ,
71
+ 171 : "INDR" ,
72
+ 172 : "INI" ,
73
+ 173 : "INIR" ,
74
+ 174 : "IX" ,
75
+ 175 : "IY" ,
47
76
176 : "JP " ,
48
77
177 : "JR " ,
78
+ 178 : "L" ,
49
79
179 : "LD " ,
80
+ 180 : "LDD" ,
81
+ 181 : "LDDR" ,
82
+ 182 : "LDI" ,
50
83
183 : "LDIR" ,
84
+ 184 : "M" ,
85
+ 185 : "NC" ,
86
+ 186 : "NEG" ,
51
87
187 : "NOP" ,
88
+ 188 : "NV" ,
52
89
189 : "NZ" ,
53
90
190 : "OR " ,
54
91
191 : "ORG " ,
55
- 194 : "OUT" ,
92
+ 192 : "OTDR" ,
93
+ 193 : "OTIR" ,
94
+ 194 : "OUT " ,
95
+ 195 : "OUTD" ,
96
+ 196 : "OUTI" ,
97
+ 197 : "P" ,
98
+ 198 : "PE" ,
99
+ 199 : "PO" ,
56
100
200 : "POP " ,
57
101
201 : "PUSH " ,
102
+ 202 : "R" ,
103
+ 203 : "RES " ,
58
104
204 : "RET" ,
105
+ 205 : "RETI" ,
106
+ 206 : "RETN" ,
107
+ 207 : "RL " ,
108
+ 208 : "RLA" ,
109
+ 209 : "RLC " ,
59
110
210 : "RLCA" ,
111
+ 211 : "RLD" ,
112
+ 212 : "RR " ,
113
+ 213 : "RRA" ,
114
+ 214 : "RRC " ,
115
+ 215 : "RRCA" ,
116
+ 216 : "RRD" ,
117
+ 217 : "RST " ,
118
+ 218 : "SBC " ,
119
+ 219 : "SCF" ,
120
+ 220 : "SET " ,
121
+ 221 : "SLA " ,
122
+ 222 : "SP" ,
123
+ 223 : "SRA " ,
124
+ 224 : "SRL " ,
125
+ 225 : "SUB " ,
126
+ 226 : "V" ,
60
127
227 : "XOR " ,
61
128
228 : "Z"
62
129
}
You can’t perform that action at this time.
0 commit comments