You are on page 1of 3

Erfan zamanian

84104085
Assignment 4
Problem 1:
Address Bus:

Address Bus microprocessor


memory input/output .
bus microprocessor memory
I/O .
) (interface I/O
Bus .
.
Data Bus:

) (Data microprocessor , memory I/O.


.
interface
.

Problem 2:
Register Addressing:
Opcode 2 ) 3 Processor
(Mips Constant.
Example:
;Add R1,R2
R1,R2 R2

.
Immediate addressing:
Opcode 1 2 , constant
memory . register
Example:
;Add R1,#18

R1+18 R1 .

Problem 3:
Memory Mapped I/O:
I/O
I/O memory

.

Isolated I/O:


memory .

:
: Memory Mapped I/O , internal
Logic .
,port CPU

Mapped I/O

.
: Isolated mapped I/O CPU .

.

SUI .
constant
n

Register
A

Problem 4:

Opcode
SUI

n A Accumulator
.

Problem 5:


.
1) Opcode Fetch
2) Opcode Decode
3) Operand Fetch
4)Execute
5) Store Result
6) Next Instruction

Problem 6:



.
Addressing mode operand
Effective address.
ADD B:
B load
. Accumulator .
ADI n:

n load .
accumulator .

You might also like