EvilGenius
Member
Hi Everyone
I am writing a PIC (16F628A) program and like to shrink the code by using nested loops with use of variables (number of iterations).
I am not sure if it is possible to do this in assembly. Any heads up is very much appreciated. Regards, Rom
Here is what I am trying to accomplish in BASIC language:
For I = 1 to 50 step 1
For J= 1 to I step 1
.
.
For K= 51-I to 1 step 1
.
.
Next K
Next J
Next I
I am writing a PIC (16F628A) program and like to shrink the code by using nested loops with use of variables (number of iterations).
I am not sure if it is possible to do this in assembly. Any heads up is very much appreciated. Regards, Rom
Here is what I am trying to accomplish in BASIC language:
For I = 1 to 50 step 1
For J= 1 to I step 1
.
.
For K= 51-I to 1 step 1
.
.
Next K
Next J
Next I