Navigation bar
  Start Previous page
 69 of 156 
Next page End 64 65 66 67 68 69 70 71 72 73 74  

63
Register.SeedPRNG
This register, having type Long, represents the “seed” value used by the built-in pseudo-random number
generator.  With a given seed value, the random number generator will always return the same sequence
of values.  Usually, you wouldn’t want this type of repeatability but for some purposes it is useful.  See the
descriptions for the System Library routines Rnd() and Randomize() for more details.
Register.Timer0Busy
Register.Timer1Busy
Register.Timer2Busy
Register.Timer3Busy
Register.Timer4Busy
Register.Timer5Busy
These Boolean values indicate when the processor’s built-in timers are being used.  For example,
depending on the model, either Timer0 or Timer2 is used by the Real Time Clock.  Your code can pass
one of these register values as the parameter to the Semaphore() function in order to get exclusive
access to the corresponding timer.  See Section 3.7 for more information on Timer use.
Register.TimerSpeed1
Register.TimerSpeed2
These two registers, both Byte values, represent the Timer pre-scaler value used by several System
Library routines.  Setting the value of these registers other than by direct assignment will produce
undefined results.  See Section 3.7 for more information on Timer use.
Register.TaskMain
Register.TaskCurrent
These UnsignedInteger registers contain the address of the task control block for the Main() task
and the current task respectively.  The values, which are read-only, can be passed to the various task
management functions by using the System Library function CByteArray().  See Section 3.27 for more
details on Task Management.
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.11 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.11 for more
information on Run Time Stack Checking.
Previous page Top Next page