Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The following program is a list of instructions for the Basic Computer in hexade

ID: 3631659 • Letter: T

Question

The following program is a list of instructions for the Basic Computer in hexadecimal code. The computer executes the instructions starting from address 100.
What are the contents of AC and the memory at address 104 when the computer halts? Show the instructions in the sequence that they are executed.

See Mano’s problem 6-2 and the answer in the Week 3 conference.


Location Instruction
100 7800
101 1107
102 5104
103 7001
104 0000
105 7200
106 C104
107 6789


Location Instruction
(Symbolic Op codes) comment AC








The accumulator (AC) has the value ____;
memory location 104 has the value ____

Explanation / Answer

//2107 it represents the mov the data 07 to HD register //ie. 07 2107 LX1 H,D 07 //72 it moves the data from accumulator to B-register .i.e 07 7200 MOV B,A 00 //51 opcode which moves the data 04 to D-register 5104 MOV D,C 04 //70 opcode moves the B-register data to MOV M,B 01 //00 opcode represents halt the program NOP The location 104 has value 0. Th accumulator has 07 value