ARM Register Operationen
-
Hi,
habe eine Aufgabe mit ein paar Zeilen Assembler Code, bei denen ich immer sagen muss was in r0 steht. Bin mir da bei dem Store Befehl nicht wirklich sicher.
Stimmt das soweit, wenn nicht warum?mov r0,#0 @ in r0 steht 0x0 ldr r1,[r0],#4 @ in r0 steht 0x0 eor r0,r0,r0 @ in r0 steht 0x0 str r1,[r0,#4] @ da bin ich mir nicht sicher würde sagen 0x0
-
Ich mach zwar kein ARM Assembler aber sich das dass hier richtig ist?
ldr r1,[r0],#4 @ in r0 steht 0x0
http://www.heyrick.co.uk/assembler/str.html Single Data Transfer The single data transfer instructions (STR and LDR) are used to load and store single bytes or words of data from/to main memory. The addressing is very flexible. First, we'll look at the instruction: LDR R0, address STR R0, address LDRB R0, address STRB R0, address These instructions load and store the value of R0 to the specified address.