totalspectrum/spin2cpp

Malformed assembly creates annoying error messages for every subsequent label, only when listing is enabled

Wuerfel21 opened this issue · 2 comments

DAT
              org
              mov pa,pb,#0

.a
.b
.c
.d
.e
.f
.g

when building with listing enabled, generates the following errors:

flexspin_bug.spin2:3: error: Expected 2 operands for mov, found 3
flexspin_bug.spin2:5: error: HUB PC mismatch for :a: at $0 but label value is $4
flexspin_bug.spin2:6: error: HUB PC mismatch for :b: at $0 but label value is $4
flexspin_bug.spin2:7: error: HUB PC mismatch for :c: at $0 but label value is $4
flexspin_bug.spin2:8: error: HUB PC mismatch for :d: at $0 but label value is $4
flexspin_bug.spin2:9: error: HUB PC mismatch for :e: at $0 but label value is $4
flexspin_bug.spin2:10: error: HUB PC mismatch for :f: at $0 but label value is $4
flexspin_bug.spin2:11: error: HUB PC mismatch for :g: at $0 but label value is $4

when --compress is given, the following is added (though that is my fault I guess):

warning: I/O error while compressing
Executable compressed from 0 to 169 bytes (inf%, 168 stub bytes)
warning: Compressed executable larger than original, falling back

Wow, yes, that is annoying. Thanks for the bug report, it should be fixed in github now.

thank you!