>The OS was XP SP1 and parallel port base address was 378h . I had used
>import() and outport() macros and no problem .
Proper way of doing things like this these in proper OSes (like Windows or Linux or FreeBSD or MacOS):
a) look at the API to the OS-provided parallel port driver
b) if this API is enough for you - use it
c) otherwise, develop a _full replacement_ of the OS-provided driver. To install such full replacement to Windows, patch the ImagePath registry value, this will get rid of PnP (but not KMCS!) signature checks.
inport() and outport() can only be used reliably for your purpose in MS-DOS or the standalone bare-metal OS-less boot environment (but modern days people usually avoid them in favour of WinPE - better but requires the royalty - or specially tailored Linux - worse but free).
--
Maxim S. Shatskih
Windows DDK MVP
http://www.storagecraft.com