adafruit / Adafruit_CircuitPython_PIOASM

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

jpm !OSRE not assembling #60

Closed kamocat closed 9 months ago

kamocat commented 9 months ago

I have a simple variable-length UART transmitter which fails to assemble with adafruit-circuitpython-pioasm v0.8.2

from adafruit_pioasm import assemble

assemble('''
    set pins, 1
    set pindirs, 1
    pull
    set pins, 0 [1]
txloop:
    out pins, 1
    jmp !OSRE txloop
''')

produces the exception

ValueError: Invalid jmp condition '!OSRE'=

although this is a jump condition shown on pg 321 of the datasheet.

kamocat commented 9 months ago

Oh. It doesn't like the capitalization. Interesting. I suppose it's sloppy of me to mix caps and lowercase.