We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fa2cc9 commit e089e82Copy full SHA for e089e82
adafruit_pioasm.py
@@ -126,7 +126,7 @@ def assemble(text_program):
126
assembled[-1] |= 0x80
127
if instruction[-1] == "block" or not instruction[-1].endswith("block"):
128
assembled[-1] |= 0x20
129
- if instruction[1] in ("ifempty", "iffull"):
+ if len(instruction) > 1 and instruction[1] in ("ifempty", "iffull"):
130
assembled[-1] |= 0x40
131
elif instruction[0] == "mov":
132
# instr delay dst op src
0 commit comments