ZBasic Language Reference
71
ZBasic Microcontrollers
Register.IOScaling
This read/write Boolean value controls (for native mode ZBasic devices only) whether the results of
certain ZBasic System Library routines are scaled to match the units of NetMedias BasicX devices (which
run at 7.3728 MHz) for code compatibility. The initial value is True for all mega-based ZX running at
14.7456 MHz and false for all other ZX devices and all generic target devices. Generally, it is inadvisable
to change the value for devices having a default initial value of False.
Register.TaskStackMain
Register.TaskStackCurrent
These UnsignedInteger values represent the address of the task stack for the Main() task and the
current task, respectively. The value, which is read-only, can be passed to the various task management
functions by using the System Library function CByteArray(). See Section 3.30 for more details on
Task Management.
Register.TaskMain
Register.TaskCurrent
These UnsignedInteger values represent the address of the task control block for the Main() task
and the current task, respectively. The values, which are read-only, are the same as the respective task
stack addresses (see above) for VM mode devices but not so for native mode devices. See Section 3.30
for more details on the task control block structure.
This Byte value specifies how close to the end of the stack the stack pointer for a task may approach
before triggering a stack fault. The default value is 6. See Section 3.33 for more information on Run
Time Stack Checking. This built-in is useful only for VM code devices such as the ZX-24.
Register.FaultType
Register.FaultData
Register.FaultData2
These values give information about the last detected system fault. Register.FaultType is a Byte
value that indicates the fault type. Register.FaultData and Register.FaultData2 are
UnsignedInteger values that provide additional data about the fault. See Section 3.33 for more
information on Run Time Stack Checking.
Register.RxQueue
Register.TxQueue
These UnsignedInteger registers contain the address of the queues currently associated with Com1.
These queues used for Console.Read(), Console.Write() and related routines. The values, which
are read-only, can be passed to the various queue functions by using the System Library function
CByteArray(). See Section 3.4.1 for more information on the system queues.
Register.Console.EOL
This Byte value represents the character that the system will recognize as the end-of-line character. It is
initially set to the value of a line feed character (&H0a). See the discussion of Console.ReadLine() in
the ZBasic System Library Reference for more information on how it is used.
|