Use Keil uVision to test your assembly program. You can use the following pseudo instruction to load
Question:
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.