Closed jepler closed 3 months ago
Before this, the exception would be 'IndexError: list index out of range'. Now it is 'Unknown instruction: side' or similar.
Based on a report on discord from @AcThPaU that I have interpreted as actually being due to poor reporting of this error condition:
the pioasm sideset instruction check pops the instruction empty, causes the next nop check to out of index
side-set and delay need an instruction, even if it's nop. E.g., nop side 1 instead of side 1. Such as this example from pico-examples:
nop
nop side 1
side 1
out pins, 1 side 0 ; Stall here when no data (still asserts clock low) nop side 1
Please feel free to expand on what you meant @AcThPaU if this doesn't address your concern.
Before this, the exception would be 'IndexError: list index out of range'. Now it is 'Unknown instruction: side' or similar.
Based on a report on discord from @AcThPaU that I have interpreted as actually being due to poor reporting of this error condition:
side-set and delay need an instruction, even if it's
nop
. E.g.,nop side 1
instead ofside 1
. Such as this example from pico-examples:Please feel free to expand on what you meant @AcThPaU if this doesn't address your concern.