Codice: Seleziona tutto
loadrt hal_parport cfg="0 out"
Codice: Seleziona tutto
loadrt hal_parport cfg="0x378 out"
Ross
Codice: Seleziona tutto
loadrt hal_parport cfg="0 out"
Codice: Seleziona tutto
loadrt hal_parport cfg="0x378 out"
Giusto per completezza.There are 3 locations in the I/O port address space at which printer cards can be configured: 278, 378, and 3BC. (The 3BC address was previously used with now obsolete combination monochrome display/printer cards.) Often the 278 and 378 ports are marked LPT1 and LPT2, which turns out not to be completely accurate in all cases. Typical BASE ADDRESSES are:
LPT1 0x378 (378h)
LPT2 0x278 (278h)
When configuring your system during a startup routine, DOS scans downward through the 3 locations, starting at 3BC, to determine if those addresses are occupied in your system. The first occupied port is then named LPT1, and so on. Each time it makes an assignment, it stores the I/O port address in a table which starts at memory address 408 (hex), occupying 2 bytes per LPT number and ordered by LPT number. When the operating system writes to a particular printer, the data is indexed into the table, the correct I/O port address is determined, and the data is passed to that port.