Address Contents
0040:0008h Base Address of LPT1
0040:000Ah Base Address of LPT2
0040:000Ch Base Address of LPT3
0040:000Eh Base Address of LPT4
顺便关于硬件的书看看 <<PC INTERN>>很不错!
0040:0008h Base Address of LPT1
0040:000Ah Base Address of LPT2
0040:000Ch Base Address of LPT3
0040:000Eh Base Address of LPT4
顺便关于硬件的书看看 <<PC INTERN>>很不错!
在WINDOWS下就很复杂了。你可以使用DPMI的功能0002H把段地址转化为一个描述符,再通过行到的描述符去读08H处的值。具体你可参见DPMI参考手册。
但我觉得一般没有必要去读并口的地址呀?如果是发送数据你可以直接调用WIN32API不是更好吗?如果是实现更复杂的功能,必须要写一个你自己的驱动程序才行。