Ok, this has become the biggest issue so far for me 2 over come. The way the currect PBASIC 'if... then' connad works is:
IF "expression" THEN "stage1"
ELSE
"stage2"
Now, I need some way of being able 2 set a variable if the IF statment is true. That isn't hard, however with about 60 IF statements all with different required outputs, it is not easy to make another section for each stage.
I need some way of making a IF statement the wroks like this:
IF pin0 = 1 then { b1 = 1 }
I no i can jsut make a new "stage" for the setting however, as i said, with 60 or so of them i have little room left for my other programs. I am running short of room on a 600 line pic as it is, and i cant connect an EPROM. I could, if worst comes 2 worst, have 2 pics yet this comes out of the scope of my project.
Any ideas?
Joe Valentine, aka, Solitaire
IF "expression" THEN "stage1"
ELSE
"stage2"
Now, I need some way of being able 2 set a variable if the IF statment is true. That isn't hard, however with about 60 IF statements all with different required outputs, it is not easy to make another section for each stage.
I need some way of making a IF statement the wroks like this:
IF pin0 = 1 then { b1 = 1 }
I no i can jsut make a new "stage" for the setting however, as i said, with 60 or so of them i have little room left for my other programs. I am running short of room on a 600 line pic as it is, and i cant connect an EPROM. I could, if worst comes 2 worst, have 2 pics yet this comes out of the scope of my project.
Any ideas?
Joe Valentine, aka, Solitaire