mirror of
https://github.com/hsoft/collapseos.git
synced 2025-02-20 14:16:01 +11:00
tests: remove instr blacklist
Because scas isn't used as a reference anymore, no need to blacklist its bugs anymore.
This commit is contained in:
parent
39f3637c60
commit
1ae51bea3a
@ -65,6 +65,7 @@ ADD IY, DE
|
|||||||
ADD IY, IY
|
ADD IY, IY
|
||||||
ADD IY, SP
|
ADD IY, SP
|
||||||
AND (HL)
|
AND (HL)
|
||||||
|
AND (IX)
|
||||||
AND (IX+1)
|
AND (IX+1)
|
||||||
AND (IX-1)
|
AND (IX-1)
|
||||||
AND (IX+10)
|
AND (IX+10)
|
||||||
@ -73,6 +74,7 @@ AND (IX+100)
|
|||||||
AND (IX-100)
|
AND (IX-100)
|
||||||
AND (IX+127)
|
AND (IX+127)
|
||||||
AND (IX-127)
|
AND (IX-127)
|
||||||
|
AND (IY)
|
||||||
AND (IY+1)
|
AND (IY+1)
|
||||||
AND (IY-1)
|
AND (IY-1)
|
||||||
AND (IY+10)
|
AND (IY+10)
|
||||||
|
Binary file not shown.
@ -6,12 +6,6 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Those lines below are improperly assembled by scas and are skipped by tests.
|
|
||||||
BLACKLIST = {
|
|
||||||
"AND (IX)",
|
|
||||||
"AND (IY)",
|
|
||||||
}
|
|
||||||
|
|
||||||
argspecTbl = {
|
argspecTbl = {
|
||||||
'A': "A",
|
'A': "A",
|
||||||
'B': "B",
|
'B': "B",
|
||||||
@ -124,11 +118,6 @@ def eargs(args):
|
|||||||
newargs = ['$+'+s for s in args[:-1]]
|
newargs = ['$+'+s for s in args[:-1]]
|
||||||
return newargs + ['$-'+s for s in args[:-1]]
|
return newargs + ['$-'+s for s in args[:-1]]
|
||||||
|
|
||||||
def p(line):
|
|
||||||
if line not in BLACKLIST:
|
|
||||||
print(line)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
asmfile = sys.argv[1]
|
asmfile = sys.argv[1]
|
||||||
with open(asmfile, 'rt') as fp:
|
with open(asmfile, 'rt') as fp:
|
||||||
@ -164,11 +153,11 @@ def main():
|
|||||||
if n in {'JR', 'DJNZ'} and a2 == 'n':
|
if n in {'JR', 'DJNZ'} and a2 == 'n':
|
||||||
args2 = eargs(args2)
|
args2 = eargs(args2)
|
||||||
for arg2 in args2:
|
for arg2 in args2:
|
||||||
p(f"{n} {arg1}, {arg2}")
|
print(f"{n} {arg1}, {arg2}")
|
||||||
else:
|
else:
|
||||||
p(f"{n} {arg1}")
|
print(f"{n} {arg1}")
|
||||||
else:
|
else:
|
||||||
p(n)
|
print(n)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user