MDE Assembly Readme File The MDELIB9X.LIB file contains the neccesary interface for the MDE8255LPT-1 Board. The MDELIB9X.LIB file should be located in the working directory for your program. Commands in the Library file ---------------------------- MDEConfigPort MDEOutPA MDEOutPB MDEOutPC MDEInPA MDEInPB MDEInPC Assembly Include Statements Required for use -------------------------------------------- INCLUDELIB MDELIB9X EXTERN MDEConfigPort : FAR EXTERN MDEOutPA : FAR EXTERN MDEOutPB : FAR EXTERN MDEOutPC : FAR EXTERN MDEInPA : FAR EXTERN MDEInPB : FAR EXTERN MDEInPC : FAR Usage Examples: --------------- ******************************************************************** * MDEConfigPort * ******************************************************************** Usage example: MOV AL, 80H ; Configuration Word MOV DX, 0378H ; Parallel Port Base Address CALL MDEConfigPort ; Command to send the value Description: This command sends the configuration value to the 8255. ******************************************************************** * MDEOutPA * ******************************************************************** Usage example: MOV AL, 55H ; Value to be written to the port MOV DX, 0378H ; Parallel Port Base Address CALL MDEOutPA ; Command to send the value Description: This command sends the value located in the AL register to the 8255 which will send it to the Port. ******************************************************************** * MDEOutPB * ******************************************************************** Usage example: MOV AL, 55H ; Value to be written to the port MOV DX, 0378H ; Parallel Port Base Address CALL MDEOutPB ; Command to send the value Description: This command sends the value located in the AL register to the 8255 which will send it to the Port. ******************************************************************** * MDEOutPC * ******************************************************************** Usage example: MOV AL, 55H ; Value to be written to the port MOV DX, 0378H ; Parallel Port Base Address CALL MDEOutPC ; Command to send the value Description: This command sends the value located in the AL register to the 8255 which will send it to the Port. ******************************************************************** * MDEInPA * ******************************************************************** Usage example: MOV DX, 0378H ; Parallel Port Base Address CALL MDEInPA ; Command to get the value Description: This command gets the value from the Port on the 8255 and places in Register AL ******************************************************************** * MDEInPB * ******************************************************************** Usage example: MOV DX, 0378H ; Parallel Port Base Address CALL MDEInPB ; Command to get the value Description: This command gets the value from the Port on the 8255 and places in Register AL ******************************************************************** * MDEInPC * ******************************************************************** Usage example: MOV DX, 0378H ; Parallel Port Base Address CALL MDEInPC ; Command to get the value Description: This command gets the value from the Port on the 8255 and places in Register AL EOF 08/18/2003 www.MicroDigitalEd.com rmckinlay@microdigitaled.com