Quantcast
Channel: Understanding ARM Assembly Code - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Understanding ARM Assembly Code

$
0
0

Can anyone explain to me what this short program does?

ORIGIN 0x1000one DEFW 13two DEFW 29three DEFW 0ORIGIN 0x1010ENTRYADR R0, oneLDR R1, [R0]LDR R2, [R0, #4]ADD R1, R2, R1STR R1, [R0, #8]SWI 2

If I'm thinking correctly, it adds 'one' to 'two' and places the result in 'three'. Am I correct?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images