New Functions Compared To Yabasic; Restrictions Compared To Yabasic - CAB A+ Series Programming Manual

Hide thumbs Also See for A+ Series:
Table of Contents

Advertisement

a-Series basic compiler
400

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:
-
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:
CLEAR RECT:
FILL RECT:
CLEAR FILL RECT:
cab Produkttechnik GmbH & Co KG
- grayscale 1 to 8 bits per pixel
- paletted images 8 bits per pixel
frame in foreground color
frame in background color
filled area in foreground color
filled area in background color
400
400

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mach 4PxXd4

Table of Contents