Question: Write an assembly function to compare the content of two registers R1 and R2. Assume the values are signed In the main part of your

 Write an assembly function to compare the content of two registers

Write an assembly function to compare the content of two registers R1 and R2. Assume the values are signed In the main part of your code, initialize the R1, and R2 with two values and call this function. Condition codes: EQ: Equal, NE: Not equal, LT: Signed less than, GT: Signed Greater than, Hl: unsigned higher, LS: Unsigned lower or same CMP: compare instruction Type your answer in the given box. - If they are equal, write 0 to R3 - if R1> R2, write 1 to register R3 - If R1 R2, write 1 to register R3 - If R1

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!