GetTick10 [D>=12]
Read and decrements the 10mS time tick counter. The counter value is pushed into X.
The 10mS time tick counter is an 8-bit counter that counts up every 10mS, but will not count past 255. Each time it is read out with this instruction it is decremented by 1 but not past 0. This allows you to devise a variety of timing schemes. If your program is busy with something else for say 1second, when it gets back to testing for ticks there will be 1 second's worth of ticks (about 100) accumulated, so the next 100 GetTick10 instructions will return true. This allows you to create timing schemes that can "make up for lost time".
In SPLat/PC the simulator will simulate one 10mS tick for every 200 instructions simulated. This is a rough approximation to an average instruction execution time of 50uS. It is impossible to accurately simulate real-time.
This instruction is deprecated. Do not use in new programs.
See also STScale
Dialect exclusions: Not available in dialects before 12.
