A disassembler for the RP2040 Programmable I/O State-machine!
Just run piodisasm.py
on a file that contains the PIO code as hex! (Such as generated by pioasm -o hex
).
piodisasm.py --sideset 1 --sideset-optional 1 --sideset-enable 1 examples/differential_manchester_1.hex
Reassembling the generated code should yield a 100% identical hex image!
If the code uses sideset, a couple of options need to be supplied:
--sideset
- Identical to the value in.side_set
--sideset-optional
- Identical to theopt
flag for.side_set
--sideset-pindirs
- Identical to thepindirs
flag for.side_set
--sideset-enable
- Value of EXECCTRL_SIDE_EN