What are the values for z and n flag after executing cmp r1


Q1. Assume r1 = 11110000111000101010000011111101, and r0 = 000000001111111100001111000011 11, answer the following questions.

(1) What is the value  of r2 after executing BIC r2,r0,r1?

(2) What are the values in r0 and r1 after running the following program? What does this program do? 

EOR r0,r0,r1  EOR r1,r0,r1  EOR r0,r0,r1   

(3) What are the values for Z and N flag after executing CMP r1, r0 

(4) What are the values for Z and N flag after executing TEQ r1, r0 

(5) What are the values for Z and N flag after executing CMN r1, r0  

Q2. If r1 = 00FF16, and r2 = 5, what is the value of r0 after each of the following instructions has been executed  (assume that each instruction uses the same data)?    

 ADD r0,r1,r1, LSL R2

Q3. Assume r0 = 11110000111000101010000011111101, What is the value in r0 after executing the instruction MOV r0,r0, ASR #31?

Q4. If r1 = 0FFF16, and r2 = 4, what is the value of r3 after each of the following instructions has been ex ecuted (assume that each instruction uses the same data).      

1) MOV r3,r1, LSL r2    

2) MVN r3,r1, LSL r2   

3) MVN r3,r1, LSR r2

Request for Solution File

Ask an Expert for Answer!!
Other Engineering: What are the values for z and n flag after executing cmp r1
Reference No:- TGS02421444

Expected delivery within 24 Hours