You are on page 1of 2

Computer Architecture

Assignment#1
Due Date: ________ Max Marks: 100

Objective: To design an 8-bit microprocessor and verify its operations. Although the concept of this
microprocessor is very simple, the knowledge gained while designing it can be extended to design of
more complex microprocessors.

Plagiarism policy: Do not try to copy. Students involved will be given zero straight away.

Q 1: Consider the instruction set given below for an 8-bit microprocessor having 16 bytes of memory.
Microprocessor also supports memory direct and indirect mode.

Mnemonic Operation OPCODE

LDA Load addressed memory 000


contents into accumulator
STA Store value of Accumulator so 001
specified memory address.
ADD ADD addressed memory 010
contents to accumulator
XOR XOR addressed memory 011
operand with Accumulator
COM Complement value of 100
Accumulator
OUT Transfer value of accumulator 101
into output register
INC Increment the value of 110
Accumulator
ADD ADD addressed memory 111
contents to accumulator

For the specified microprocessor, what will be the instruction format? (5)

Q 2: The initial contents of AC and E for all the instructions in basic computer are hexadecimal A937 and
1 respectively. The initial value of PC is hexadecimal 021. The size of memory is 4096×16. Determine the
value of AC, E, PC, AR and IR in hexadecimal when the following register reference instructions are
executed: (60)

a) CLA (7800)
b) CLE (7400)
c) CMA (7200)
d) CME (7100)
e) CIR (7080)
f) CIL (7040)
g) INC (7020)
h) SPA (7010)
i) SNA (7008)
j) SZA (7004)
k) SZE (7002)
l) HLT (7001)
Q 3: All numbers in this problem are hexadecimals. The instruction at address 021 in the basic computer
has I=0 and an address part 083. The memory word at 083 contains operand B8F2 and the contents of
AC is A937. You only need to write the final values after the complete execution of instruction. Show
the contents of PC, AR, DR, AC and IR in hexadecimal after the execution of the following memory
reference instructions: (you only need to find the final value after the execution of each instruction).
(35)

a) AND (0083)
b) ADD (1083)
c) LDA (2083)
d) STA (3083)
e) BUN (4083)
f) BSA (5083)
g) ISZ (6083)

You might also like