From 6ac60b4554d841d550fc1617ccd8039ef509c1f1 Mon Sep 17 00:00:00 2001 From: Gebhartj <34003931+Gebhartj@users.noreply.github.com> Date: Wed, 24 Jan 2024 08:09:03 +0100 Subject: [PATCH 1/2] repair inscorect directive .offset to .origin .offset directive do not exist in pioasm --- adafruit_pioasm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 05e0ae9acd5848ea0dc1aeb9a86edea7c12b6a44 Mon Sep 17 00:00:00 2001 From: Gebhartj <34003931+Gebhartj@users.noreply.github.com> Date: Wed, 24 Jan 2024 08:19:53 +0100 Subject: [PATCH 2/2] Update test_pseudo.py --- tests/test_pseudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)