GetTick100 [D>=12]
Reads and decrements the global 100mS time tick counter. The counter value is pushed into X.
The 100mS time tick counter is an 8-bit counter that counts up every 100mS 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 10 seconds, when it gets back to testing for ticks there will be 10 seconds’ worth of ticks (about 100) accumulated, so the next 100 GetTick100 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 100mS tick for every 2000 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.
Dialect exclusions: Not available in dialects before 12.