Actions
Bug #72
closedAnd
Start date:
01/22/2020
Due date:
% Done:
0%
Estimated time:
Affected version:
Description
"And" doesn't work any longer in this situation:
FLAGS=195
Print "flag1:"+Str$(FLAGS and 128)
Print "flag2:"+Str$(FLAGS and 64)
Print "flag3:"+Str$(FLAGS and 32)
Print "flag4(512chars):"+Str$(FLAGS and 16)
Print "flag5(nonblink):"+Str$(FLAGS and 8)
Print "flag6(compress):"+Str$(FLAGS and 4)
Print "flag7(a font):"+Str$(FLAGS and 2)
Print "flag8(a palette):"+Str$(FLAGS and 1)
Updated by Anonymous almost 5 years ago
doh think i made a mistake something else is wrong, please delete :/
Updated by Baptiste Pillot almost 5 years ago
- Assignee set to Francois Lionet
Not sure :
- source : https://www.amos2.fr/ide/Amos2/Ide/Program/430
- run : https://www.amos2.fr/run/tickleman/72/
In 0.9.2.6, result was right :
flag1: 128
flag2: 64
flag3: 0
flag4(512chars): 0
flag5(nonblink): 0
flag6(compress): 0
flag7(a font): 2
flag8(a palette): 1
But in 0.9.3.1, it's always 195 !
flag1: 195
flag2: 195
flag3: 195
flag4(512chars): 195
flag5(nonblink): 195
flag6(compress): 195
flag7(a font): 195
flag8(a palette): 195
Not good for a binary and.
TODO :)
Updated by Francois Lionet almost 5 years ago
- Status changed from New to Resolved
- Target version set to 0.9.3.2
Fixed: the first parameter was duplicated in the code...
Actions