Question: 2 . ( 5 0 points ) Write an assembly code for the following C code. ` ` ` int a , b , c
points Write an assembly code for the following C code.
int a b c d;
while a b && a b
for c ;c You can use the following instructions only for this homework.
Instructions
ADD R$ R R& ADD R$ R#imm
SUB R$ R R& SUB R$ R#imm
AND R$ R R& AND R$ R#imm
ORR R$ R R& ORR R$ R#imm
EOR R$ R R& EOR R$ R#imm
CMP R$ R CMP R$#imm
BGE, BLT BGT BLE, BEQ, BNE, B
MOV R$ R R$ R MOV R$#imm
MOR R$ R LSL #imm or LSR #imm
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
