80 of 208
ZBasic Language Reference 72 ZX Microcontroller Family 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.28 for more details on the task control block structure. Register.StackMargin 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.31 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.31 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. Register.Console.Echo This Boolean value, initially set to True, controls whether characters received by Console.Read() and Console.ReadLine() are echoed back to the sending device. See the descriptions of these two functions in the ZBasic System Library Reference for more information. Register.Console.Speed Deprecated – use Option.Com1Speed instead. This read-only UnsignedInteger value gives the default console speed, the baud rate for which Com1 is configured when the system begins running. Register.SignOn This Boolean register contains the flag that controls whether or not the ZX issues a sign-on message when it starts up after reset. It is a Persistent Memory value that may also be set or cleared by using the Option SignOn directive. See Section 2.3.1 for more information.