You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classProgram:
def__init__(self, text_program):
"""Converts pioasm text to encoded instruction bytes"""
... # all of old 'assemble()' is hereself.assembled=array.array("H", assembled)
self.sideset_count=sideset_countself.sideset_enable=sideset_enable# automatic loop target values, etcdefmake_state_machine(self, ...):
importrp2pio# defer import so module can be used on std pythonreturnrp2pio.StateMachine(..., sideset_enable=self.sideset_enable, ...)
defassemble(text_program):
returnProgram(text_program).assembled
The text was updated successfully, but these errors were encountered:
This could also help when adding support for wrap / wrap_target, the values would be members of Program and passed to StateMachine via Program.make_state_machine.
Sketch:
The text was updated successfully, but these errors were encountered: