Search found 4 matches

by SirDudeofWI
05 Feb 2021 19:30
Forum: mikroBasic PRO for AVR General
Topic: array bit access compiler bug
Replies: 6
Views: 1984

Re: array bit access compiler bug

Thank you Filip!

Glad to have you take the time to work with me on it. Looking forward to the update.
by SirDudeofWI
02 Feb 2021 00:58
Forum: mikroBasic PRO for AVR General
Topic: array bit access compiler bug
Replies: 6
Views: 1984

Re: array bit access compiler bug

Found it. Had to go to the compiler listing to see it. The BTS (bit store) is accessing the low byte of adc_result instead of the high byte. It's not the shift left. It's the bit access to the matrixed word. ;testproject.mbas,43 :: heartb_ledport = adc_result[bb].15 'set output pin to highest bit 0x...
by SirDudeofWI
28 Jan 2021 20:57
Forum: mikroBasic PRO for AVR General
Topic: array bit access compiler bug
Replies: 6
Views: 1984

Re: array bit access compiler bug

Hi, Thank you for the response. I worked a bit harder to define the problem. The bug is in the shift left library function. I'm posting the test code and will give the exact variant that causes the bug after it. This is the test code: program testproject ' Declarations section 'leds dim heartb_ledpo...
by SirDudeofWI
18 Jan 2021 19:38
Forum: mikroBasic PRO for AVR General
Topic: array bit access compiler bug
Replies: 6
Views: 1984

array bit access compiler bug

I have had this bug several times and want to call attention to it: adc2543_sdiport=adc_result[bb].15 'output the address The intent above is to simply sets an output pin to the highest bit of an array variable. fyi: adc_result[] is dim as a word. ads2543_sdiport is a valid sbit The concept is a sim...

Go to advanced search