You are on page 1of 1

(16 points) A 16 bit hypothetical machine has the following 4 bit instructions:

1= 0001= Load AC from Memory


2= 0010= Store AC to Memory
5= 0101= Add to AC from memory ; (AC)  (MEM) + (AC)
4= 0100= multiply AC by Memory content ; (AC)  (MEM) * (AC)
3= 0011= Load AC from I/O
7= 0111= Store AC to I/O
AC- Accumulator
PC- Program Counter
IR- Instruction Register
The 12-bit address identifies a particular Memory location or I/O device. Show the program execution
for the following program.

1. Multiply the content of the device no. 6 by the device No. 5


2. store the result in mem location 944
Simply write your codes

Memory CPU Registers


200 200 PC
201
AC
202 IR
203
204

942
943
944

Device no. 5 0003


Device no. 6
0004

You might also like