View previous topic :: View next topic |
Author |
Message |
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Mon Nov 24, 2014 7:24 pm Post subject: "IF-THEN" problem |
|
|
This string is works wrong:
Code: | If A <> B Or C = 1 Then |
If A>0 and B>0 all works correctly, but if A=0 and B=0, the part "C=1" is ignoring.
(BASCOM-AVR version : 2.0.7.7 ) |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Mon Nov 24, 2014 10:03 pm Post subject: |
|
|
It's testing well, you're wrong. |
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Tue Nov 25, 2014 12:34 am Post subject: |
|
|
On chip with RAM <64k it works well, but I use AT90USB1286. |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Tue Nov 25, 2014 12:57 am Post subject: |
|
|
Mrshilov wrote: | On chip with RAM <64k it works well, but I use AT90USB1286. |
Ah, informations slowly dripping in...
When does it show these behavior, as flash is empty, or filled above 64k? |
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Tue Nov 25, 2014 3:53 am Post subject: |
|
|
Yes, above 64k. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Nov 25, 2014 9:44 am Post subject: |
|
|
I do not see what it could have to do with 64K (rampz). But if it is reproducible, i suggest to send the code to support (zipped) so we can have a look at it. _________________ Mark |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Tue Nov 25, 2014 2:52 pm Post subject: |
|
|
Mrshilov wrote: | On chip with RAM <64k it works well, but I use AT90USB1286. |
Tested with $Regfile = "usb1286.dat", then the first test-code, then a 70kByte data block, then the second test-code.
This has the effect, that Bascom-internal code is placed into second page, first test-code runs on first page, second test-code on second page.
All tests well, no problems. |
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Mon Dec 01, 2014 4:06 am Post subject: |
|
|
I found mistake in my code. Now all works fine.
Topic may be deleted. |
|
Back to top |
|
|
|