Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assembly? LD & MOV

Tags:

assembly

arm

What's the difference between that instructions? By example in the ARM9 processor, it shouldn't be:

ASM: mov r0, 0
C: r0 = 0;

ASM: ld r0, 0
C: r0 = 0;

?

I don't know why to use one or other :S

like image 974
Puyover Avatar asked Dec 06 '22 02:12

Puyover


1 Answers

It must be:

ASM: mov r0, 0
C:   r0 = 0;

ASM: ld r0, 0
C:   r0 = *(pc + 0);

Check out this reference card, must have if you're developing for ARM on ASM.

like image 95
Andrejs Cainikovs Avatar answered Dec 31 '22 10:12

Andrejs Cainikovs