Question: 4. Write ARM assembly code which performs an addition ; of two 64-bit numbers. C = A + B. The inputs are located ; in
4. Write ARM assembly code which performs an addition ; of two 64-bit numbers. C = A + B. The inputs are located ; in RAM, and the output should be written to RAM as well. ; (Hint: You will assembling the 64-bit addition from ; 32-bit addition instructions. Be careful about Carry bits.) ; ; R4 = The address of A (64 bits) to read. ; R5 = The address of B (64 bits) to read ; R6 = The address of C to write. C=A+B. LDR R4, =0x10000 ; addr of A LDR R5, =0x10010 ; addr of B LDR R6, =0x10020 ; addr of C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
