14 of 286
5 Task-related Routines CallTask prepare a task to begin execution DisableInt() disable interrupts Delay() pause a task DelayUntilClockTick() pause a task EnableInt() conditionally re-enable interrupts ExitTask() cause a task to terminate LockTask() suspend normal task switching Pause() pause a task without relinquishing control ResumeTask() cause a waiting task to resume execution RunTask() cause a specific task to run Semaphore() coordinate the use of a resource SetInterval() set the interval timer period Sleep() pause a task StackCheck() enable or disable stack checking StatusTask() determine the status of a task System.TaskHeadRoom() determine the unused space in a task’s stack TaskIsLocked() determine if a task is locked TaskIsValid() determine if a task stack is in the task list UnlockTask() resume normal task switching UpdateRTC() update RTC registers to account for missed ticks WaitForInterrupt() pause a task until an external event occurs WaitForInterval() pause a task until an interval timer expires Yield() allow another task to run Miscellaneous Routines CloseWatchDog() deactivate the watchdog timer CPUSleep() cause the CPU to go into sleep mode CRC16() compute a 16-bit CRC value CRC32() compute a 32-bit CRC value FirstTime() determine if this is the first the program has been run since downloading IIf() select the value of one of two expressions LBound() determine the lower bound of an array LongJmp() perform a non-local goto (e.g. for exception handling) NoOp() execute a “nop” instruction OpenWatchDog() activate the watchdog timer ParityCheck() check the parity of a data byte Randomize() initialize the random number generator ResetProcessor() reset the CPU Rnd() retrieve the next random number SerialNumber() retrieve the system software serial number SetJmp() prepare for a non-local Goto (e.g. exception handling) SizeOf() determine the size of a data item SizeOfU() determine the size of a data item System.DeviceID() retrieve the identification characters for the device UBound() determine the upper bound of an array WatchDog() reset the watchdog timer ZXCmdMode() activate the “command mode” (for downloading)