dreamtoneamps
Newbie level 1
what is "0x378","!kbhit"
a quote from: logix4u.net
"Where these registers are ?
In an IBM PC, these registers are IO mapped and will have unique address. We have to find these addresses to work with parallel port. For a typical PC , the base address of LPT1 is 0x378 and of LPT2 is 0x278. The data register resides at this base address , status register at baseaddress + 1 and the control register is at baseaddress + 2. So once we have the base address , we can calculate the address of each registers in this manner. The table below shows the register addresses of LPT1 and LPT2. Click here for tutorial on how to find base address of Parallel/Serial ports with sample source code."