The little man computer Mailbox Contents 00 505 01 106 02 507 03 902 04 000 05 1
ID: 3798609 • Letter: T
Question
The little man computer
Mailbox Contents
00 505
01 106
02 507
03 902
04 000
05 1 DAT
06 3 DAT
07 6 DAT
1.What is the value in the calculator after the first instruction (505) is completed?
2.What is the value in the program counter (instruction location counter) after the first instruction (505) is completed?
3.What is the value in the calculator after the fetch but before the execute portion of second instruction (106)?
4.What is the value in the calculator after the third instruction (507) is completed?
Explanation / Answer
1. LDA(load) the contents of 05 address into accumulator.
2. Value of PC increases by 1 after each instruction. So the value will be 1.
3. ADD(106) add the contents of adress 06 to the accumulator. Value of calculator will the contents of 05 address.
4. LDA(load) the contents of 07 address into accumulator.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.