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 f70126c commit 61c8964Copy full SHA for 61c8964
adafruit_pioasm.py
@@ -53,15 +53,13 @@ def assemble(text_program):
53
sideset_count = int(line.split()[1])
54
elif line.endswith(":"):
55
labels[line[:-1]] = len(instructions)
56
- else:
+ elif line: # Only add as an instruction if the line isn't empty
57
instructions.append(line)
58
59
max_delay = 2 ** (5 - sideset_count) - 1
60
assembled = []
61
for instruction in instructions:
62
print(instruction)
63
- if len(instruction) == 0:
64
- continue
65
instruction = instruction.split()
66
delay = 0
67
if instruction[-1].endswith("]"): # Delay
0 commit comments