User`s manual

OpenTracker USB User’s Manual 38
Use this command carefully - the tracker's flash memory has a write endurance
of about 100,000 cycles, and any command that changes a value in the tracker's
configuration will require a flash write. At 8 script executions per second, an
errant script could wear out the flash memory in a few hours. Flash writes also
cause the received packet buffer to be discarded. Use flags or ‘Do Once’ to avoid
executing the same command repeatedly.
Quick
Causes the script engine to start again in 1/1200 second instead of 1/8 second.
This can be useful when higher timing resolution is required.
Peek C&X=Y?
Reads the contents of memory location C, performs a logical AND with X, and
compares the result to Y. Use of this command requires knowledge of the
tracker's memory map.
Poke C,X&Y
Sets the contents of memory location C with the value in X, using Y as a bit mask.
Set Flags / Toggle Flags / Clear Flags
Sets, toggles, or clears the selected flags.
If Flags
Executes the following code block if the flags match the specified pattern. A
grayed-out checkbox indicates a "don't care" condition. This is shown in the code
listing with an 'x'.
14.3. Counters
Three general-purpose counter variables are reserved for scripting use, and other
system values are also accessible. All counters are unsigned 16-bit integers, and
will wrap from 65535 back to 0.
Counter 1 - Counter 3