diff --git a/adafruit_pioasm.py b/adafruit_pioasm.py index 81ce799..6471db7 100644 --- a/adafruit_pioasm.py +++ b/adafruit_pioasm.py @@ -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) diff --git a/tests/test_pseudo.py b/tests/test_pseudo.py index 261f03a..72e817c 100644 --- a/tests/test_pseudo.py +++ b/tests/test_pseudo.py @@ -10,4 +10,4 @@ def test_offset(): - assert_pio_kwargs(".offset 7", offset=7, sideset_enable=False) + assert_pio_kwargs(".origin 7", offset=7, sideset_enable=False)