Skip to content

Commit e089e82

Browse files
committed
Fix pull instruction parsing
1 parent 9fa2cc9 commit e089e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pioasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def assemble(text_program):
126126
assembled[-1] |= 0x80
127127
if instruction[-1] == "block" or not instruction[-1].endswith("block"):
128128
assembled[-1] |= 0x20
129-
if instruction[1] in ("ifempty", "iffull"):
129+
if len(instruction) > 1 and instruction[1] in ("ifempty", "iffull"):
130130
assembled[-1] |= 0x40
131131
elif instruction[0] == "mov":
132132
# instr delay dst op src

0 commit comments

Comments
 (0)