Question: P2. Consider the following WIMP51 ASM program which calculates 3 x 5. ASM program MOV A, #0 MOV RO, A MOV A, #3 MOV

P2. Consider the following WIMP51 ASM program which calculates 3 x 5. ASM program MOV A, #0 MOV RO, A MOV A, #3 MOV R1, A Loop: MOV A, #5 CLR C ADDC A, RO MOV RO, A MOV A, R1 CLR C ADDC A, #0FFh Machine code (Binary) Machine code (Hex) MOV R1, A JZ Stop SJMP Loop Stop: SJMP Stop a. Write down the machine code in both binary format and hex format for each line of ASM code. Use the space provided above. b. How many clock cycles does it take to execute the program? c. Modify this program to calculate 4 x 6.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
