25. CONT: MOV DX,5004h ;PC Address
IN AL,DX
TEST AL,20h
JE IBF
TEST AL,80h
JNE OBE
JMP CONT
OBE: MOV DX,5000h ;PA Address
MOV AL,DATA
OUT DX,AL
JMP CONT
IBF: MOV DX,5000h ;PA Address
IN AL,DX
JMP CONT
26.
27.
28. 1. Draw the address decoder for an 8086
Microprocessor system with a single PPI putting
the control word address = 3FD6h using discrete
components.
2. Draw the address decoder for an 8086
Microprocessor system with a single PPI putting
port B address = 6FD2h using 74LS138 decoder.
29. 1. Write a program to read data from portA,
complement it then send it to portB using mode1.
Let the control word address = 0306h.
2. Write a program to read data from portA, add the
contents of AH to it then send it again to portA
using mode2.
Let the portA Address = 0306h.