dcc6502-adapter fixes.
Chris Pressey
3 years ago
0 | #!/usr/bin/env python | |
0 | #!/usr/bin/env python2 | |
1 | 1 | |
2 | 2 | # script that allows the binary output of sixtypical --output-format=c64-basic-prg --compile to be |
3 | 3 | # disassembled by https://github.com/tcarmelveilleux/dcc6502 |
18 | 18 | |
19 | 19 | lines = [line for line in check_output("dcc6502 -o 2061 {}".format(filename), shell=True).split('\n') if line and not line.startswith(';')] |
20 | 20 | lines = [re.sub(r'\s*\;.*$', '', line) for line in lines] |
21 | lines.pop() | |
22 | 21 | sys.stdout.write('\n'.join(lines)) |