-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathportio.d
46 lines (30 loc) · 1014 Bytes
/
portio.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Name{number}
portio - AdvanceCAB Hardware Port Input/Output For DOS
Synopsis
:portio lpt?
:portio ADDRESS_HEX
:portio lpt? VALUE_HEX
:portio ADDRESS_HEX VALUE_HEX
Description
The `portio' utility can be used to drive the parallel port
or any other hardware device which use the PC ports.
If a lpt ports (lpt1,lpt2,lpt3) or an hexadecimal address is
specified the port is read and the read value is printed on
the screen.
If also a value is specified the port is written with the
specified value.
All the address and all the values are in the hexadecimal
format.
The address of the lpt ports are detected using the BIOS
informations at the memory address 408h.
Examples
Set all the parallel port data bits:
:portio lpt1 ff
Clear all the parallel port data bits:
:portio lpt1 0
Set all bit on the port 80h
:portio 80 ff
Set all the parallel port data bits in the config.sys:
:device=c:\mame\portio.exe lpt1 ff
Copyright
This file is Copyright (C) 2003 Andrea Mazzoleni.