Question 1:
A typical machine has a 32-bit IR and a total of 128 different instructions. Show the instruction format for such a machine if it has one memory address. How many memory locations can this machine access?
Question 2:
Assume a machine that has instructions of length 16 bits. An instruction has a 6-bit operation code and a 10-bit memory address. Assume that the machine has the following instructions: Load AC from memory, Store AC to memory, Add contents of memory to AC, and save it into AC. Assuming a memory that has 16-bit locations,
A. Assign an operation code for each instruction.
B. Write a program (sequence of instructions) that adds the contents of Memory location 151h to the contents of Memory location 150h and stores the result in location 152h. If the program starts at location 100h, show the contents of the locations that carry the program.
C. Show the contents of IR, PC, AC, and Memory locations 150h, 151h, and 152h during execution (after each fetch cycle and each execute cycle). Initially, Location 150h has the value 2Bh and Location 151h has the value A1h.
Question 3:
For the machine described in question 2, assume a memory that has 8-bit locations and a data bus of 16 bits (two locations can be transferred to the CPU at a time).
a) How many memory locations could the memory have?
b) Repeat part (c) in question 2.