)
)
else:
- instr = line.lower().split()
+ instr = line.split()
if len(instr) == 0:
instr = ['ill']
elif len(instr) >= 2:
instr[1:] = [l for k in instr[1:] for l in k.split(',')]
- if len(instr) >= 4: # the undocumented DDCB and FDCB variants
- assert instr[0] == 'ld'
- instr = instr[2:] + instr[1:2] # "ld a,op (ix+n)" to "op (ix+n),a"
#print('xxx', instr)
suffix = ''
if instr[0] not in byte_opcodes and instr[0] not in word_opcodes:
--- /dev/null
+y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
+s/ld \([abcdehl]\),\(\(res\|rl\|rr\|set\|sl\|sr\).*\)/\2,\1/