v5.20: problem with comparing a bit in a bte wth const [OK]

Beta Testing discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

v5.20: problem with comparing a bit in a bte wth const [OK]

#1 Post by Dany » 23 Nov 2011 18:46

Hi, this problem popped up in the 5.20 version, it was not there in v5.00:

Code: Select all

procedure Byte2Bin(Value: byte; var S: string[8]);
var I: byte;
begin
  I := 0;
  while I < 8 do
  begin
    if Value.I = 0                      // <------------- here error: "=" is not a valid identifier.
    then S[7 - I] := '0'
    else S[7 - I] := '1';
    Inc(I);
  end;
  S[8] := 0; // terminator
end;
p.s.

Code: Select all

I.J := not (TestBit(I, J));
gives: ")" is not a valid identifier

Thanks in advance!
Last edited by Dany on 30 Dec 2011 19:28, edited 1 time in total.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: v5.20: problem with comparing a bit in a byte with const

#2 Post by JimKueneman » 24 Nov 2011 00:18

Hi Dany,

There are other problems like this. I entered a ticket for this:

Code: Select all

  ABuffer^.TX_Flags.TRANSMITTING_FLAG_CURRENT_BIT := ABuffer^.TX_TransmittingMessage.MessageBytes[ByteIndex].Offset; <<<<<<
1354 301 ";"is not valid identifier NMRA_DCC.mpas
Back to 5.0 for me... yup still compiles on 5.0

Jim

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: v5.20: problem with comparing a bit in a byte with const

#3 Post by filip » 24 Nov 2011 10:36

Hi,

I have reported this to our developers and I apologize for the inconvenience caused by this.

Regards,
Filip.

kjm
Posts: 70
Joined: 06 Jul 2006 22:17

Re: v5.20: problem with comparing a bit in a byte with const

#4 Post by kjm » 24 Nov 2011 10:44

Hi,

same probleme with V5.20


procedure write24c32(adr : word ; da : byte);
var h, l, val8, i : byte;
begin
INTCON1.15 := 1;
h := da;
TRISE.6 := 0;
TRISE.7 := 0;
PORTE.7 := 1;
pause1;
PORTE.6 := 1;
pause1;
PORTE.7 := 0;
pause1;
PORTE.6 := 0;
pause1;
val8 := $A2;
for i:= 7 downto 0 do begin
if val8.i = 1 then PORTE.7 := 1 else PORTE.7 := 0; <------- 696 301 "="is not valid identifier util.mpas

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: v5.20: problem with comparing a bit in a byte with const

#5 Post by Dany » 02 Dec 2011 20:14

Any news mE?
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: v5.20: problem with comparing a bit in a byte with const

#6 Post by JimKueneman » 04 Dec 2011 05:06

No word on my ticket yet either.

jim

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: v5.20: problem with comparing a bit in a byte with const

#7 Post by filip » 05 Dec 2011 10:52

Hi,

These problems are reported and will be fixed in the following version of the compiler.

Regards,
Filip.

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: v5.20: problem with comparing a bit in a byte with const

#8 Post by Dany » 22 Dec 2011 16:00

filip wrote:Hi,

These problems are reported and will be fixed in the following version of the compiler.

Regards,
Filip.
No new version yet? I can not use v5.20, I also had to go back to v5.00. :?
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: v5.20: problem with comparing a bit in a byte with const

#9 Post by filip » 23 Dec 2011 09:20

Hi,

We expect a new release by the end of the year, so you shouldn't wait too long. :)

Regards,
Filip.

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: v5.20: problem with comparing a bit in a byte with const

#10 Post by JimKueneman » 29 Dec 2011 17:48

Fix confirmed. Thanks for the holiday present!

Jim

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: v5.20: problem with comparing a bit in a bte with const

#11 Post by Dany » 30 Dec 2011 19:30

JimKueneman wrote:Fix confirmed. Thanks for the holiday present!
Jim
Indeed Jim, Thanks, solved in mP PRO for dsPIC v5.40.

Also thanks to the mE people, and happy hollidays! :D :D :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 Beta Testing”