Question: 2 . a ) Contrast the architectures CISC and RISC. ( 2 M ) b ) Explicate the values of R 0 , R 1

2. a) Contrast the architectures CISC and RISC. (2M)
b) Explicate the values of R0, R1, after the following instruction is executed. (3M)
R0=0x00000000, R1=0x00000088
RSB R0, R1, #0
c) What do the following instructions mean and what is accomplished (mention all the
constraints and also the status of CPSR)? Before the instruction execution CPSR contains
0x50000010. Assume appropriate values for all registers. (5M)
R0=0x00000001; R1=0x00000001; R2=0x00000002; R3=0x00000003; R4=0x00000004;
R5=0x00000005; R6=0x00000006; R7=0x00000007;
i. ANDLT R1, R4, R3
ii. ADDEQ R2, R4, R2
iii. MOVGT R7, R5
iv. SUBAL R1, R2, R7
v. ADDS R5, R7, R7
vi. SUBAL R0, R0, R1, LSL #2
vii. RSBEQ R3, R3, R2, LSL #4
Using Binary encoding convert any two of the above instructions into machine code equivalents.

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