Question: P1. Consider the following WIMP51 ASM program. ASM Machine code (Bin Machine code (Hex MOV A, #10 MOV RO, A MOVA, #5 CLR C ADDC

P1. Consider the following WIMP51 ASM program. ASM Machine code (Bin Machine code (Hex MOV A, #10 MOV RO, A MOVA, #5 CLR C ADDC A, RO MOVR1, A MOV A, #6 ADDC A, R1 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. All registers that are used by the program are shown below. Show contents of these registers for each inst (after execution). Assume that the first inst is located at 0000h and PC has initial value of 00h as well PC 00h 02h 03h RO R1 ACC X BEFORE MOV A,#10 EXECUTES) 0Ah X (AFTER MOV A,#10 EXECUTES) P1. Consider the following WIMP51 ASM program. ASM Machine code (Bin Machine code (Hex MOV A, #10 MOV RO, A MOVA, #5 CLR C ADDC A, RO MOVR1, A MOV A, #6 ADDC A, R1 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. All registers that are used by the program are shown below. Show contents of these registers for each inst (after execution). Assume that the first inst is located at 0000h and PC has initial value of 00h as well PC 00h 02h 03h RO R1 ACC X BEFORE MOV A,#10 EXECUTES) 0Ah X (AFTER MOV A,#10 EXECUTES)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
