NathanY3G / rp2040-pio-emulator

RP2040 emulator for the testing and debugging of PIO programs
Apache License 2.0
43 stars 7 forks source link

Pull and Push thresholds, auto-pull and auto-push #134

Open kamocat opened 10 months ago

kamocat commented 10 months ago

There's currently no configuration for pull or push thresholds, or to enable auto-pull and auto-push. This means instructions like jump !osre will count to 32 rather than my desired word size.

These options could be added to the emulate function.

At some point it might make sense to refactor into a class, with the configuration done during initialization and a step method which accepted inputs and returned outputs. This would break existing code and require a major version, but it would create explicit state storage and allow multiple state machines to cooperate.

NathanY3G commented 10 months ago

Thanks for bring this deficiency to my attention @kamocat. I've added it to my to-do list.