Skip to content

Commit

Permalink
Merge pull request #6 from LuminousOwl/fix-mov-op
Browse files Browse the repository at this point in the history
Shift mov operator
  • Loading branch information
tannewt authored Feb 2, 2021
2 parents be730f2 + c4fbe18 commit e0c625c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_pioasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def assemble(text_program):
assembled[-1] |= MOV_DESTINATIONS.index(instruction[1]) << 5
assembled[-1] |= MOV_SOURCES.index(instruction[-1])
if len(instruction) > 3:
assembled[-1] |= MOV_OPS.index(instruction[-2])
assembled[-1] |= MOV_OPS.index(instruction[-2]) << 3
elif instruction[0] == "irq":
# instr delay z c w index
assembled.append(0b110_00000_0_0_0_00000)
Expand Down

0 comments on commit e0c625c

Please sign in to comment.