Merge pull request #61 from Gebhartj/Gebhartj-patch-1

repair inscorect directive .offset to .origin
This commit is contained in:
Jeff Epler 2024-01-25 20:58:18 -06:00 committed by GitHub
commit fcc52f3a92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ class Program: # pylint: disable=too-few-public-methods
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)

View file

@ -10,4 +10,4 @@ from pytest_helpers import assert_pio_kwargs
def test_offset():
assert_pio_kwargs(".offset 7", offset=7, sideset_enable=False)
assert_pio_kwargs(".origin 7", offset=7, sideset_enable=False)