Skip to content

Commit e0c625c

Browse files
authored
Merge pull request #6 from LuminousOwl/fix-mov-op
Shift mov operator
2 parents be730f2 + c4fbe18 commit e0c625c

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
@@ -134,7 +134,7 @@ def assemble(text_program):
134134
assembled[-1] |= MOV_DESTINATIONS.index(instruction[1]) << 5
135135
assembled[-1] |= MOV_SOURCES.index(instruction[-1])
136136
if len(instruction) > 3:
137-
assembled[-1] |= MOV_OPS.index(instruction[-2])
137+
assembled[-1] |= MOV_OPS.index(instruction[-2]) << 3
138138
elif instruction[0] == "irq":
139139
# instr delay z c w index
140140
assembled.append(0b110_00000_0_0_0_00000)

0 commit comments

Comments
 (0)