Today I am finally (having been in cardboard boxes for almost 3 weeks) moving into my new office and re-installing my PC as its OS had chosen to enter a state of permanent sleep in the new location. Hooray for backups!!
Will be good to get back to some PropBasic tinkering over the next week - which might give me a good reason to bump this thread so I can easily access the latest PropBasic downloads [noparse]:)[/noparse]
I use the video driver of the demo files, which have been actual with 00.00.97a.
None of the demo files·work any more compiled with 00.1.00. There are no reported errors but there is no picture generated or visible. (I use the demo board.)
I have not discovered differences in MoniVid.spin.
Hi Bean, is there an issue where a third task ( second, if you don't include the main one ) doesn't set DIRA correctly? as in the spin file, they're coming out as 0.
The PIN modifiers (OUTPUT, LOW, HIGH) are only for the COG they are used in. Otherwise a PIN defined as HIGH would be pulled high by all cogs and would not be able to be controlled by any cog.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life: · 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
EDIT: Fixed with version 00.01.01 See fixes posted above
Bean,
The code file below is one that you wrote to help me get my Stingray going some time ago (page 14 on this form) and it worked great. I tried working with it last night and it compiled and downloaded fine, but no wheel movement. I tested the code on my RPM board this morning which has LEDs for pins 16-25 (had changed the pins to 22-25) nothing happen and then all of a sudden all the LEDs lit up from 16-25 for about a second and went off.
Knowing it had worked fine in earlier versions of PropBasic I compiled it under version .89 and it works fine. Since I hadn't worked with it for the last few updates I did some testing and found it to work up through version .99, but not version 1.00
When you have time could you please look into this.
Is IF statement with AND!OR condition working or is this a future feature? or perhaps I am not using it correctly.
I tried to use IF X>0 OR X<1 THEN etc but compiler(v1.01) reports wrong no. of paramaters used.
regards
Gerry
PS Thank you for PropBasic its a great painless way of using PASM.
Gerry, · You need to put each condition on a seperate line.
IF X > 0 OR X < 1 THEN
ENDIF
Conditions are evaluated top down, so as soon as a OR statement is true, the code is executed, as soon as a AND statement is false, the code is not executed.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life: · 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Fixed: test $,#1 WC ' Set Carry (doesn't work in LMM) I2CWrite
Fixed: COGINIT if taskname doesn't exist crashes
Fixed: Glitch on PinGroup = PinGroup
Fixed: IF pinName THEN
Changed: In LMM use "LONG label * 4" instead of "LONG @label - @__Init"
Changed: Use relative jumps for LMM · SUB __PC,#(($-label)*4)+4 ' Jump backward · ADD __PC,#((label-$)*4)-4 ' Jump forward
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
NEW PropBasic Blog: http://propbasic.blogspot.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life: · 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Comments
· Fixed: Compiler crash on COGSTART if task name has not been defined
· Fixed: Calculated constant using a long (>511) constant
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Post Edited (Bean) : 5/29/2010 1:30:17 AM GMT
It is normal that I cannot see lib-file on BST-window?
Now I see lib.file by using word pad.
There's really nothing to it: set the file filter to *.*, find your file, and double-click.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
I see. Thanks.
caskaz
Very cool.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
I can see many great things on the horizon. Keep up those caffine laden soft drinks!
Jim
Will be good to get back to some PropBasic tinkering over the next week - which might give me a good reason to bump this thread so I can easily access the latest PropBasic downloads [noparse]:)[/noparse]
my new version of Mandelbrot does work (the video generator) with version 0.0.97a-64 but does not work any more with 0.1.00.
Can you give me a hint, please?
Christof
The major change was GETADDR was changed from a command to a function.
You'll change "GETADDR hubVar, longVar" to "longVar = GETADDR hubVar"
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
There is compile-error "ERROR:UNKNOWN COMMAND "GETADDR".
GETADDR form changed?
So with 00.0097a-64 Getaddr was already changed.
Other possibilities?
Christof
Post Edited (Christof Eb.) : 6/15/2010 10:50:43 AM GMT
PASM·Code produced
With version 1.00· the use of "AnyOldVariable" is not reported as an error.
regards
Gerry
Yes, I think 0.0.97a was the change.
What error(s) are you getting ?
Can you post the file your trying to compile ?
Gerry,
Thanks. This will be fixed in the next release.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
I use the video driver of the demo files, which have been actual with 00.00.97a.
None of the demo files·work any more compiled with 00.1.00. There are no reported errors but there is no picture generated or visible. (I use the demo board.)
I have not discovered differences in MoniVid.spin.
Best regards,
Christof
··········
Yeah there seems to be a problem with COGSTART I'll have to investigate it.
If you make the TASK AUTO and remove the COGSTART it will work.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Cheers,
Baggers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
Can you post an example ?
The PIN modifiers (OUTPUT, LOW, HIGH) are only for the COG they are used in. Otherwise a PIN defined as HIGH would be pulled high by all cogs and would not be able to be controlled by any cog.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Fixed: COGSTART doesn't add "par" to __temp1
Fixed: / doesn't error if first parameter is invalid
Fixed: minWaitCnt in tasks was 128 instead of 80
Fixed: str = str + longvar
Fixed: str = "" ' comment
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
I'll have a look at it now, only just got back in, and see if I've done something silly, and get back to you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
You can define the pin in the TASK code (you can't use the same name though), or you can just use the HIGH, LOW, etc commands.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Baggers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
Bean,
The code file below is one that you wrote to help me get my Stingray going some time ago (page 14 on this form) and it worked great. I tried working with it last night and it compiled and downloaded fine, but no wheel movement. I tested the code on my RPM board this morning which has LEDs for pins 16-25 (had changed the pins to 22-25) nothing happen and then all of a sudden all the LEDs lit up from 16-25 for about a second and went off.
Knowing it had worked fine in earlier versions of PropBasic I compiled it under version .89 and it works fine. Since I hadn't worked with it for the last few updates I did some testing and found it to work up through version .99, but not version 1.00
When you have time could you please look into this.
My setup is XP, BST 19.3 PB 1.00
Thanks,
Tony
Post Edited (Tony B.) : 6/16/2010 4:47:17 PM GMT
It's probably the COGSTART issue that has just been fixed.
Give version 00.01.01 a try and see if that fixes it.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
You posted so fast you beat me coming back to say version 00.01.01 fixed it.
Thanks,
Tony
Christof
Is IF statement with AND!OR condition working or is this a future feature? or perhaps I am not using it correctly.
I tried to use IF X>0 OR X<1 THEN etc but compiler(v1.01) reports wrong no. of paramaters used.
regards
Gerry
PS Thank you for PropBasic its a great painless way of using PASM.
· You need to put each condition on a seperate line.
Conditions are evaluated top down, so as soon as a OR statement is true, the code is executed, as soon as a AND statement is false, the code is not executed.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Post Edited (Bean) : 6/23/2010 12:14:06 PM GMT
http://propbasic.blogspot.com
I've never "blogged" before, so I kind of excited about it.
All new PropBasic development will be posted in the blog. I will update this thread too, but not as much.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
NEW PropBasic Blog: http://propbasic.blogspot.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
NEW PropBasic Blog: http://propbasic.blogspot.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Here are the changes:
Fixed: test $,#1 WC ' Set Carry (doesn't work in LMM) I2CWrite
Fixed: COGINIT if taskname doesn't exist crashes
Fixed: Glitch on PinGroup = PinGroup
Fixed: IF pinName THEN
Changed: In LMM use "LONG label * 4" instead of "LONG @label - @__Init"
Changed: Use relative jumps for LMM
· SUB __PC,#(($-label)*4)+4 ' Jump backward
· ADD __PC,#((label-$)*4)-4 ' Jump forward
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
NEW PropBasic Blog: http://propbasic.blogspot.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]