
Originally Posted by
earltyso
Anyone,
Can you create a decimal step for the FOR....NEXT LOOP?
How about a Variable step?
Ex:
D VAR BYTE
D = VALUE/10
FOR value = 0 to 12 STEP + D
or....
For value = 0 to 12 step + .1
I realize I am dealing with decimal values....can I use DEC3 command or somthing else to make this work?
thanks
Variable step . . .
Code:
myVar Var byte ' up to 255 counts stored here
If PortA.0 = 1 then myVar=12
FOR value = 0 to myVar STEP + D
or something to that effect . . .
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks