Skip to content

Commit be730f2

Browse files
authored
Merge pull request #3 from LuminousOwl/fix-pull-parsing
Fix pull instruction parsing
2 parents 9fa2cc9 + e089e82 commit be730f2

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)