Hi I'm beginer assembly, with my pi pico2 and visual studio I would like driver GPIO .
but i did not how I do it? I must practice exercice simple
I found this little script for risc assembly to init stdio:
if i compile visual studio I have not error.
in found this link is example for write example:
https://github.com/raspberrypi/pico-exa ... .c#L19-L62
but this example is language C, I would like translate in assembly:
for example I would like write in register scratch 0 this binary word : 0xdeadbeef (hex) - 11011110101011011011111011101111 (binary)
and after I read this register scatch 0 and show in monitor serial with instruction:
is possible this simple exercice ? I dont know if perturbate use scratch 0, if have a perturbate Where I can write ?
thank's for help
but i did not how I do it? I must practice exercice simple
I found this little script for risc assembly to init stdio:
Code:
.global main # Provide program starting address to linkermain: jal stdio_init_all mv s0, x0
in found this link is example for write example:
https://github.com/raspberrypi/pico-exa ... .c#L19-L62
but this example is language C, I would like translate in assembly:
for example I would like write in register scratch 0 this binary word : 0xdeadbeef (hex) - 11011110101011011011111011101111 (binary)
and after I read this register scatch 0 and show in monitor serial with instruction:
Code:
jal printf
thank's for help
Statistics: Posted by keokod — Tue Nov 12, 2024 4:02 pm