Question: write the program using assembly language Write a single program to perform the following operations on the given 32-bit data (OSTUVWXYX) a Load the given

 write the program using assembly language Write a single program to

write the program using assembly language

Write a single program to perform the following operations on the given 32-bit data (OSTUVWXYX) a Load the given data into register RO. (2 Points) b. Replace the 3 most significant hexadecimal digits (STU) of the given data with BA8 (without changing the other digits VWXYZ) and store the results in register R1 and in memory starting from address from 0x20000000. (3 points) c. Add the 4 bytes of the 32-bit data in R1 Gje, BA+8V+WX+YX) and store the result in register R2 and also in memory stating from 0x20000004. (3 points) d. Check the number in register R1 (result of step b) is positive or negative. If it is positive store 0x00, otherwise store 0xFF in memory location 0x20000008. (2 points) (Hint: A number is positive, if its MSB is 0 and negative otherwise) Given Data 1 Remove the left most digit1'' from your ID number and use the remaining digits as your data in hexadecimal (Example if your ID is 100044556, use 0x00044556 as your data) Write a single program to perform the following operations on the given 32-bit data (OSTUVWXYX) a Load the given data into register RO. (2 Points) b. Replace the 3 most significant hexadecimal digits (STU) of the given data with BA8 (without changing the other digits VWXYZ) and store the results in register R1 and in memory starting from address from 0x20000000. (3 points) c. Add the 4 bytes of the 32-bit data in R1 Gje, BA+8V+WX+YX) and store the result in register R2 and also in memory stating from 0x20000004. (3 points) d. Check the number in register R1 (result of step b) is positive or negative. If it is positive store 0x00, otherwise store 0xFF in memory location 0x20000008. (2 points) (Hint: A number is positive, if its MSB is 0 and negative otherwise) Given Data 1 Remove the left most digit1'' from your ID number and use the remaining digits as your data in hexadecimal (Example if your ID is 100044556, use 0x00044556 as your data)

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 Databases Questions!