Lecture 08
I/O
0000h
COA by Athar Mohsin
Memory mapped I/O
• When a decoder is used which
translates memory addresses to FFFFFh
chip select signals for port
devices then it is called memory
mapped I/O
• The advantage of memory
mapped I/O is that any
instruction which references I/O
memory can be used to input
data from or output data to port
• The disadvantage is that some
of the system memory space is
used for port and it is not
available for memory
oooooh
Memory + I/O
Address Memory 5
4
3
00725h 0101 0101 =55h
0000 0010 =02h 2
00724h
1
Collectively represents the word =5502h or 0
Address Memory
misaligned Dword
COA by Athar Mohsin
Aligned and misaligned word
• The storage of pointer in memory Addres memory
Memory in hex