git @ Cat's Eye Technologies SixtyPical / 0ef0dc1
dcc6502-adapter fixes. Chris Pressey 3 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 #!/usr/bin/env python
0 #!/usr/bin/env python2
11
22 # script that allows the binary output of sixtypical --output-format=c64-basic-prg --compile to be
33 # disassembled by https://github.com/tcarmelveilleux/dcc6502
1818
1919 lines = [line for line in check_output("dcc6502 -o 2061 {}".format(filename), shell=True).split('\n') if line and not line.startswith(';')]
2020 lines = [re.sub(r'\s*\;.*$', '', line) for line in lines]
21 lines.pop()
2221 sys.stdout.write('\n'.join(lines))