[Gambas-user] Gambas stable bugs in BSet and BChg?
Benoît Minisini
gambas at ...1...
Wed Mar 16 18:38:18 CET 2011
> When you run this:
>
> PUBLIC SUB Main()
>
> DIM bByte AS Byte
>
> PRINT Bin(bByte, 8)
>
> BSet(bByte, 0)
> PRINT Bin(bByte, 8)
>
> BChg(bByte, 0)
> PRINT Bin(bByte, 8)
>
> bByte = bByte OR &H1
> PRINT Bin(bByte, 8)
>
> PRINT BTst(bByte, 0)
>
> END
>
> You get this:
>
> 00000000
> 00000000
> 00000000
> 00000001
> True
>
> BSet and BChg seem to do nothing...
> BTst works
>
> Gambas 2.22
>
> Regards,
> Ron_2nd.
>
These are functions, not instructions !
--
Benoît Minisini
More information about the User
mailing list