Code: Select all
const
MASK = $0001;
type
TMyRec = record
Bob: Word
end;
var
MyRec: TMyRec;
begin
MyRec.Bob := $FF01;
MyRec.Bob := MyRec.Bob and not MASK
end;
To fix do this:
Code: Select all
const
MASK = Word($0001);
Jim
#1 Post by JimKueneman » 07 Feb 2011 04:57
Code: Select all
const
MASK = $0001;
type
TMyRec = record
Bob: Word
end;
var
MyRec: TMyRec;
begin
MyRec.Bob := $FF01;
MyRec.Bob := MyRec.Bob and not MASK
end;
Code: Select all
const
MASK = Word($0001);
#2 Post by zristic » 07 Feb 2011 09:34
Return to “mikroPascal PRO for dsPIC30/33 and PIC24 General”