Skip to content

Commit

Permalink
repair inscorect directive .offset to .origin
Browse files Browse the repository at this point in the history
.offset directive do not exist in pioasm
  • Loading branch information
Gebhartj authored Jan 24, 2024
1 parent 2bc0deb commit 6ac60b4
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 @@ -63,7 +63,7 @@ def __init__(self, text_program: str, *, build_debuginfo=False) -> None:
if program_name:
raise RuntimeError("Multiple programs not supported")
program_name = line.split()[1]
elif line.startswith(".offset"):
elif line.startswith(".origin"):
offset = int(line.split()[1], 0)
elif line.startswith(".wrap_target"):
wrap_target = len(instructions)
Expand Down

0 comments on commit 6ac60b4

Please sign in to comment.