The zip file seems to be missing the top object, or did you incorporate it into one of the drivers?
The file you should be looking for is FloatBasicTV. I should have renamed it when I sent it out, but for easier testing I wrote the original using PST as the display and so I named the other one FloatBasicTV.
The file you should be looking for is FloatBasicTV. I should have renamed it when I sent it out, but for easier testing I wrote the original using PST as the display and so I named the other one FloatBasicTV.
Ok, I'm sorry about the problem. For whatever reason whenever I try to open the folder I store programs in with propeller tool, it's hidden. When I selected everything the program didn't show up and I didn't notice. I switched out the attachment so it should work this time.
In the future, it's better to use the File>Archive>Project in the Propeller tool. If you run that from the Top Object, that will include everything in one Zip file.
The print takes the longest here, can you run the loop from 0 to 1,000,000 just incrementing?
And in this case is x a floating point or integer by default?
You certainly could run the program without the print function. Also, my interpreter treats all numbers in the program as floating points (excluding line numbers) even if it has to round them for things like the OUT command.
Just wondering how do you handle "X = INA" ? since the float cannot hold all 32 bits ?
Bean
I have a function "in()" where you put the value between the parentheses of the pin you want to input and it will return a 1 or a 0. So if you wanted the input for pin 23 stored in x, you would do:
x = in(23)
Comments
Do you mind if I include it in the next official release of FemtoBASIC color? I'm getting ready to release a maintance release.
Jeff
The file you should be looking for is FloatBasicTV. I should have renamed it when I sent it out, but for easier testing I wrote the original using PST as the display and so I named the other one FloatBasicTV.
FloatBasicTV is missing from the Zip file.
In the future, it's better to use the File>Archive>Project in the Propeller tool. If you run that from the Top Object, that will include everything in one Zip file.
Wow! Thanks. I can't believe I never noticed that.
And in this case is x a floating point or integer by default?
You certainly could run the program without the print function. Also, my interpreter treats all numbers in the program as floating points (excluding line numbers) even if it has to round them for things like the OUT command.
Bean
I have a function "in()" where you put the value between the parentheses of the pin you want to input and it will return a 1 or a 0. So if you wanted the input for pin 23 stored in x, you would do:
x = in(23)