Question: Given the following C-Code. (Note input(?) means the input register is set to 1.) i = input(?); ifi== 2 i 2i else i = i/2;

Given the following C-Code. (Note input(?) means the input register is set to 1.) i = input(?); ifi== 2 i 2i else i = i/2; Write an assembly program using the VBC1 Assembly commands given below that performs the same task. Enter your program in the space provided. IN DR OUT DR MOV DR, SR LOADI DR, Data ADDI DR, Data ADD DR, SR SRO DR, SR JNZ DR, Address
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
