Question: Use Keil uVision to test your assembly program. You can use the following pseudo instruction to load values to any register: LDR Rd , =

Use Keil uVision to test your assembly program.

You can use the following pseudo instruction to load values to any register: LDRRd, =value

Often, we deal with numbers that are greater than the available registers can represent. A register is 32-bits. A 64-bit integer needs two registers.

1) For addition of two 64-bit numbers, we can split 64-bit addition into two 32-bit additions. Write an assembly program to do 64-bit addition.

Hint:Consider using the ADC instruction.

NOTE: Your solution needs to work for all 64-bit numbers. Make syre try your solution for different 64-bit numbers and confirm that they work.

2) Implement 64-bit Logic Shift Right. Your solution should be generic and needs to work for all 64-bit numbers. Your solution also should work for any shift value. Store the shift value in a register and shift by the amount in the register so that the shift value can be any value as well.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!