Beruflich Dokumente
Kultur Dokumente
Statement
Above diagram shows a microprocessor (MP) and its connection to the RAM via Bus of 16 lines. The
following table A shows a piece of assembly language code for the MP microprocessor and table B shows
data values at some memory locations (all numbers are Hex):
TABLE A - INSTRCUTIONS
No. Memory Address Instruction Machine Code Comments
1 F1FD LOAD B12D 10 B12D Move the contents of address
location B12D into AC
2 F1FE SUB B12E 11 B12E AC AC - Contents of
address location B12E
3 F1FF ADD B12F 01 B12F AC AC + Contents of
address location B12F
4 F200 SUB B130 11 B130 AC AC - Contents of
address location B130
5 F201 STORE B12D 00 B12D Store value of AC at location
B12D
TABLE B – DATA
ADDRESS CONTENTS
B12D 05
B12E 02
B12F 07
B130 04
4. Does the bus has enough lines for address and data, please explain in one line? (2 Point)
Yes. May be more than one fetches needed
Section: Roll #
5. As each instruction of table A is fetched and executed by the processor MP, please show the values
of PC, AC, IR registers, memory location values and name the bus signals that are used: (25 Points)