How do I implement a FOR loop in TMCL?

This program demonstrates how to implement a for loop

For more details look at  TMCL_reference.pdf

Before use: Restore Factory Defaults

SGP 0, 2, 0 //set user variable #0
//for Loop
// add your code here //
GGP 0, 2 	//get user variable #0 to accu
CALC ADD, 1	//add 1 to accu
AGP 0, 2 //accu to user variable #0
COMP 5 //amount of loops
JC LE, forLoop //jump to label forLoop


Still need help? Contact Us Contact Us