Pio ASM cycle counter? #12607
Unanswered
Manjo80
asked this question in
RP2040 / Pico
Replies: 1 comment
-
The easy way to do this is to use which subtracts one from x. You can always complement x before returning it, which makes the subtract look like an add. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hallo, I trying to understand Pio Asm and writing a code to use the hdq protocol on my pi pico.
I can't find a way how to use the regs as counter, to add 2 everytime to the reg X.
this tis the code I'm trying to write using https://wokwi.com/tools/pioasm
`.program hdq
.wrap_target
pull block
mov x, osr
Greeds
Beta Was this translation helpful? Give feedback.
All reactions