1. The following program is stored in the memory unit of the basic computer. Sho
ID: 3692931 • Letter: 1
Question
1. The following program is stored in the memory unit of the basic computer.
Show the contents of the AC, PC, and lR (in hexadecimal), at the end, after each instruction is executed. All numbers listed below are in hexadecimal.
Location Instruction
010 CLA
011 ADD 016
Oil BUN 014
013 HLT
014 AND 017
Ol5 BUN 013
016 C1A5
017 93C6
2. An instruction at address 021 in the basic computer has I = 0, an operation code of the AND instruction, and an address part equal to 083 (all numbers are in hexadecimal). The memory word at address 083 contains the operand B8F2 and the content of AC is A937. Go over the instruction cycle and determine the contents of the following registers at the end of the execute phase: PC, AR, DR, AC, and lR. Repeat the problem six more times starting with an operation code of another memory-reference instruction.
Explanation / Answer
2.
Instruction PC AR DR AC IR
Initial 021 - - A937 -
AND 022 083 B8F2 A832 0083
ADD 022 083 B8F2 6229 1083
LDA 022 083 B8F2 B8F2 2083
STA 022 083 - A937 3083
BUN 083 083 - A937 4083
BSA 084 084 - A937 5083
ISZ 022 083 B8F3 A937 6083
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.