repair inscorect directive .offset to .origin

.offset directive do not exist in pioasm
This commit is contained in:
Gebhartj 2024-01-24 08:09:03 +01:00 committed by GitHub
parent 2bc0deb3ab
commit 6ac60b4554
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)