#
inner
_Debug(str)
Internal debug which does not redirect to IPX if enabled.
Parameters:
Name |
Type |
Description |
str |
string
|
the message to print. |
View Source
jsboot/func.js, line 60
#
inner
CharCode(s)
get char code.
Parameters:
Name |
Type |
Description |
s |
string
|
a string |
View Source
jsboot/func.js, line 176
the ASCII-code of the first character.
#
inner
CompareKey(k, s)
compare a keycode with a character.
Parameters:
Name |
Type |
Description |
k |
number
|
keycode from an Event |
s |
string
|
a string with one char |
View Source
jsboot/func.js, line 186
#
inner
Debug(str)
print javascript debug output if DEBUG is true.
Parameters:
Name |
Type |
Description |
str |
string
|
the message to print. |
View Source
jsboot/func.js, line 48
#
inner
Gc(info)
Run garbage collector, print statistics to logfile if 'info==true'.
Parameters:
Name |
Type |
Description |
info |
boolean
|
true to print collection stats to logfile. |
View Source
doc/internal.js, line 536
#
inner
GetParallelPorts() → {Array.<number>}
get available parallel ports.
View Source
doc/internal.js, line 616
list of available parallel ports and their addresses.
Array.<number>
#
inner
GetSerialPorts() → {Array.<number>}
get available serial ports.
View Source
doc/internal.js, line 622
list of available serial ports and their addresses.
Array.<number>
#
inner
Include(name)
include a module. The exported functions are copied into global scope.
Parameters:
Name |
Type |
Description |
name |
string
|
module file name. |
View Source
jsboot/func.js, line 116
#
inner
InPortByte(port) → {number}
read a byte value from a hardware io-port.
Parameters:
Name |
Type |
Description |
port |
number
|
port address to read from. |
View Source
doc/internal.js, line 596
8-bit value read from port.
number
#
inner
InPortLong(port) → {number}
read a long value from a hardware io-port.
Parameters:
Name |
Type |
Description |
port |
number
|
port address to read from. |
View Source
doc/internal.js, line 610
32-bit value read from port.
number
#
inner
InPortWord(port) → {number}
read a word value from a hardware io-port.
Parameters:
Name |
Type |
Description |
port |
number
|
port address to read from. |
View Source
doc/internal.js, line 603
16-bit value read from port.
number
#
inner
List(dname) → {Array.<string>}
Get directory listing.
Parameters:
Name |
Type |
Description |
dname |
string
|
name of directory to list. |
View Source
doc/internal.js, line 522
Throws an error if listing fails.
array of entry names.
Array.<string>
#
inner
LPTRawControl(port, bits)
write bits to LPT control register.
Parameters:
Name |
Type |
Description |
port |
number
|
port number (0-3). |
bits |
number
|
data to write |
- See:
-
View Source
jsboot/func.js, line 296
#
inner
LPTRawData(port, data) → {number}
read/write data to LPT data register.
Parameters:
Name |
Type |
Description |
port |
number
|
port number (0-3). |
data |
number
|
data to write, null to read |
- See:
-
View Source
jsboot/func.js, line 254
current LPT value if data was null.
number
#
inner
LPTSend(port, data)
send data to parallel port.
Parameters:
Name |
Type |
Description |
port |
number
|
port number (0-3). |
data |
string
|
data to transfer. |
- See:
-
View Source
jsboot/func.js, line 325
#
inner
MouseSetLimits(x1, y1, x2, y2)
Limit mouse movement.
Parameters:
Name |
Type |
Description |
x1 |
number
|
start x coordinate. |
y1 |
number
|
start y coordinate. |
x2 |
number
|
end x coordinate. |
y2 |
number
|
end y coordinate. |
View Source
doc/internal.js, line 459
#
inner
OutPortByte(port, value)
write a byte value to a hardware io-port.
Parameters:
Name |
Type |
Description |
port |
number
|
port address to write to. |
value |
number
|
8-bit value to write to port. |
View Source
doc/internal.js, line 575
#
inner
OutPortLong(port, value)
write a long value to a hardware io-port.
Parameters:
Name |
Type |
Description |
port |
number
|
port address to write to. |
value |
number
|
32-bit value to write to port. |
View Source
doc/internal.js, line 589
#
inner
OutPortWord(port, value)
write a word value to a hardware io-port.
Parameters:
Name |
Type |
Description |
port |
number
|
port address to write to. |
value |
number
|
16-bit value to write to port. |
View Source
doc/internal.js, line 582
#
inner
POST(val)
Write the given value to io-port 80h to be displayed by a POST card.
Parameters:
Name |
Type |
Description |
val |
number
|
value to write to 0x80. |
View Source
jsboot/func.js, line 230
#
inner
RandomInt(min, max) → {number}
get random integer between min and max (or between 0 and min if max is not provided).
Parameters:
Name |
Type |
Description |
min |
number
|
min |
max |
number
|
max |
View Source
jsboot/func.js, line 198
an integer between min and max.
number
#
inner
Read(filename) → {string}
Load the contents of a file into a string. Throws exception if loading fails.
Parameters:
Name |
Type |
Description |
filename |
string
|
name of file to read. |
View Source
doc/internal.js, line 514
Throws an error if reading fails.
the contents of the file.
string
#
inner
SetFramerate(rate)
Set maximum frame rate. If
Loop takes longer than '1/rate' seconds then the framerate will not be reached.
Parameters:
Name |
Type |
Description |
rate |
number
|
max frame rate wanted. |
View Source
doc/internal.js, line 548
#
inner
Stat(name) → {StatInfo}
Get information about a file / directory.
Parameters:
Name |
Type |
Description |
name |
string
|
name of the file to get info for. |
View Source
doc/internal.js, line 530
Throws an error if stat fails.
#
inner
System(cmd, flags) → {number}
Run a DOS command.
Parameters:
Name |
Type |
Description |
cmd |
string
|
the command to execute with its parameters. |
flags |
SYSTEM
|
flags indicating which subsystems to shutdown (if any) during execution of cmd. |
View Source
doc/internal.js, line 568
the return code of the command.
number