I made a blinking led; OK02 from "baking pi". I modified the program for blinking GPIO0. In the code there is something like str r1,[r0, #0x28]. It works fine. Then I replaced this line by two others:
ldr r3,[r0, #0x28]
str r1, [r3]
The second code snippet did not work.
in both snippets ro is loaded with the GPIO_BASE 2020 0000 (for rpi zero)
r1 is loaded with 1 to blink the GPIO0
Please can You tell me what I did wrong.
The reason why I want to change the code is looking why my program (without) the delay loops runs so slowly. (circa 2.5 MHz)
The second code snippet is taken from the assy listing of a C program that toggles much faster ( > 20 MHz)
Have a nice day,