Complete the address steps from the following hypothetical machine code. 1001 -
ID: 3777713 • Letter: C
Question
Complete the address steps from the following hypothetical machine code.
1001 - Subtract AC from Device
0101 - Subtract AC from Memory
0001- Load AC memory
1010- Halt Program
0110- store AC to I/O
0011- Load AC from I/o
0100- Add to AC from Memory
0010- Store AC to memory
0111- add to AC from Device
1000- Subtract Device from AC
Being memory at location 500 and Program Counter at 500
Memory location 870 has 12 stored
Device 4 has 3 stored
Hypothetical machine should do the following Code:
1. Load AC from memory 870
2. Subtract device 4 from AC
3. Store from AC to device 2
4. Add to AC from memory 870
5. Store AC to memory 871
6. Add to AC from device 4
7. Subtract device 2 from AC
8. Store from AC to memory 870
9.Add to AC from memory 871
10. Halt Program
Explanation / Answer
.model small
.stack
.code
mov dl,'*'
mov cx,5
print_loop:
mov ah,02h
int 21h
loop print_loop
mov ah,4ch
int 21h
end;
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.