KB Module, Display Module, 8086 trainer Kit
Theory: A Simple approach
We cn make use of the 8086 IN and OUT instruction to read the data from the device attached to a port and send the data to another port.
We can access the ports using direct addressing or indirect addressing
Direct address can be provided in the instruction
Indirect address is loaded in DX register.
here is simple progrm statements for the reding from a port and writing to another port.
MOV DX, 0125h ; Load DX wity the input port address
IN AL, DX ; Read the data in reguiter AL from the specified port
MOV DX, 0135h ; Load the output port address in DX register
OUT DX, AL ; Transfer the data in AL at the specified port