Question: 1 point When the comparison instruction CMP compares two operands, the processor knows whether two signed numbers are compared or two unsigned numbers are compared.

 1 point When the comparison instruction CMP compares two operands, theprocessor knows whether two signed numbers are compared or two unsigned numbersare compared. * True False 1 point What should BXX1 and BXX2

1 point When the comparison instruction CMP compares two operands, the processor knows whether two signed numbers are compared or two unsigned numbers are compared. * True False 1 point What should BXX1 and BXX2 be to make the assembly code equivalent to the C code? (MODIFY THE ANSWER KEY NEXT SEMESTER. Currently it makes all answers as correct because my question has mistakes.) * int x; ; Assume x is stored in RO if((x = 10)) X -= 10; CMPRO, #20 BXX1 endir CMP RO, #10 BXX2 endif then SUB RO, RO, #10 endir BXX1 = BHI, BXX2 = BLO BXX1 = BGT, BXX2 = BLT BXX1 = BLS, BXX2 = BHS BXX1 = BLE, BXX2 = BGE What branch instruction should be used to replace BXX in the assembly? 1 point MOV ro, #0 MOV ri, #0 ; i ; sum C Program unsigned int i; unsigned int sum = 0; for(i = 0; i = y){ CMP ro, r1 BXX else then } else { B endif else } endif BGE BHS BLT BLO BLE BLS BGT BHI

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!