400
400
400cab Produkttechnik GmbH & Co KG
New functions compared to Yabasic:
- POKE „color#“,rgb, #=1 to 254, 0 stays always black, 255 stays always white,
e.g. POKE „color#15“,dec(„ff0000“) sets color no. 15 to red.
- WINDOW TRANSFER TO „name“ transfers the window content to a JScript image „name“
which can be used e.g. with the I command.
- WINDOW TRANSFER FROM „name“ loads the window with a JScript image. If the windows
and image size are not identical the result is clipped.
- WINDOW WRITE TO „name“ saves the actual window as PNG on the memory card.
- WINDOW READ FROM „name“ load a PNG into the actual window. Path names are allowed
here.
The window has to be big enough to hold the image, else loading will fail! Supported formats
are:
- grayscale 1 to 8 bits per pixel
- paletted images 8 bits per pixel
- JGET$ and JPUT are used to exchange data between JScript and abc. The exchange is
synchronized, so you can use abc as JScript function. Use always as a pair, else execution of
JScript and / or abc can be blocked !
- abc has a command check for the existence of files or devices:
EXISTS ("filename" or EXISTS("/dev/rawip")
Restrictions compared to Yabasic:
- No CIRCLE command.
- No BITBLT, GETBIT$ and so on.
- WINDOW ORIGIN is not supported, i.e. the origin 0,0 is always in the upper left corner.
The modifiers CLEAR and FILL have the following results (shown for the RECT command):
RECT: frame in foreground color
CLEAR RECT: frame in background color
FILL RECT: filled area in foreground color
CLEAR FILL RECT: filled area in background color
a-Series basic compiler