The routines in this section are specific to the DOS (MSDOS, PCDOS, DRDOS) version of ScriptEase. They are included internally to the ScriptEase program. All of these routines are available to any ScriptEase program executed by ScriptEase under DOS (or Windows).
Most of these routines allow the programmer to have more power than is generally acknowledged as safe under ScriptEase' guidelines. Be cautious when you use these commands, they provide plenty of rope with which to hang yourself.
Windows is built on top of DOS, so the functions in this library are also available in the Windows version of ScriptEase.
inport |
|
---|---|
DESCRIPTION |
Read byte from a hardware port. |
SYNTAX |
byte inport(int portid) |
COMMENTS |
Read a byte from hardware port: portid. |
inportw |
|
---|---|
DESCRIPTION |
Read word from a hardware port. |
SYNTAX |
int inportw(int portid) |
COMMENTS |
Read a word (16 bit) from hardware port: portid. Value read is unsigned (not negative). |
offset, segment |
|
---|---|
DESCRIPTION |
Break far pointer into segment:offset components. |
COMMENTS |
See "segment, offset". |
SEE ALSO |
Address(), pointer() |
outport |
|
---|---|
DESCRIPTION |
Write byte to a hardware port. |
SYNTAX |
void outport(int portid, byte value) |
COMMENTS |
Write byte value to hardware port portid. |
outportw |
|
---|---|
DESCRIPTION |
Write word to a hardware port. |
SYNTAX |
void outportw(int portid, int value) |
COMMENTS |
Write word (16 bit) value to hardware port portid. |