I think I found a bug with SXkey3.2
Basic Jim
Posts: 106
I think I stumbled onto a small bug in SX Key 3.2. I have a program that has been compiling fine with 3.1 however, when I try to load it with 3.2 I get numerous compile errors from the .SCR file. What seems to be happening is that as my if-then routines are interpreted as assembly language all of the _else_XX conditions are not incremented. They all come out as 0’s when I think they should probably increment. If I manually increment them the errors go away but when I recompile the program all the errors return. I have attached my program for download. If you load it and compile it with 3.1 it compiles fine but if the try it with 3.2 you will get a slew of errors. All these errors are related to the If then conditions.
Best,
Jim W.
Best,
Jim W.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
stand back! I have a slide rule and I know how to use it!
That did fix it! Apparently 3.2 doesn't like lower case with IF-Then and Endif
Best,
Jim W.
3.2R2 had that problem. The wrong version accidentally got into the IDE.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I'm a man, but I can change, if I have to, I guess" The Red Green Show
·
I downloaded the R3 version and it works now. This project uses one of your hc4led's It works great for the price.
Jim W.
Excellent work otherwise! I like then INTERRUPT {rate} addition. Saves a lot of calulations!
Paul
Thanks for the tip. I'll check into it.
[noparse][[/noparse]edit] Paul, you were correct. It will be corrected in the next release. Thanks.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I'm a man, but I can change, if I have to, I guess" The Red Green Show
Post Edited (Bean (Hitt Consulting)) : 7/17/2006 6:08:56 PM GMT
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I'm a man, but I can change, if I have to, I guess" The Red Green Show
·
There is a different bug in "ON x GOSUB" too.
When you use a defined SUB in the list, it tried to jump directly to the subroutine name (as if it was not defined).
This causes assembler errors that the address is not in the first half of a page.
For now the fix is to prefix any DEFINED subroutine names with two underscores.
MySub SUB 0
ON a GOSUB __MySub
This will also be fixed in the next release.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"Remember, you are unique, just like everyone else." Unknown.
·
This will not compile. It gives me an Else or Endif without If "ENDIF" error. However if I capitalize the second if so it reads "IF value = 2 Then" then it works.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
There are only two guaranteed ways to become weathy.
Spend less than you make.
Make more than you spend.
·
-Amit
That's what the forums are all about. People helping people. It's my pleasure.
In fact there is one small bug in 1.51.01 that I found. The virtual word port RDE doesn't work properly. I will post a version 1.51.02 in a week or two with that fixed. (Waiting to see if anything else shows up).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
There are only two guaranteed ways to become weathy.
Spend less than you make.
Make more than you spend.
·