totalspectrum / spin2cpp

Tool to convert Parallax Propeller Spin code to PASM, C++ or C
Other
46 stars 17 forks source link

-gbrk and --compress print spurious "I/O error" message when assembling erroneous file #439

Closed Wuerfel21 closed 7 months ago

Wuerfel21 commented 7 months ago

I know I wrote both of these, but idk why the post-processes are being called in the first place when no binary file has been produced. Not familiar with that part of the code.

totalspectrum commented 7 months ago

Doesn't seem to happen for me with a really simple bad .spin2 file. Can you share an example of an erroneous file that triggers this?

Wuerfel21 commented 7 months ago
DAT

mov pa,#1234
totalspectrum commented 7 months ago

Interesting, other bad things I did (like illegal instructions or duplicate labels) didn't trigger the bug, but this one did. Anyway, I think we just want to skip DoPropellerPostprocess when there are errors. I've checked that in. Thanks for the bug report.