adafruit / Adafruit_CircuitPython_PIOASM

Simple assembler to convert pioasm to bytes
MIT License
27 stars 17 forks source link

Fail on line containing no instruction but only a comment. ( starting with ; ) #4

Closed dglaude closed 3 years ago

dglaude commented 3 years ago

; just comment produce "IndexError: list index out of range"

shade = """
.program shade
  ; just a comment
    set pins 1 [1]  ; Drive pin high and then delay for [x] cycle
    set pins 0 [31] ; Drive pin low and then delay for [x] cycle
"""