cancel
Showing results for 
Search instead for 
Did you mean: 

cosmic or st visual develop problem?

wuyue0510
Associate
Posted on April 16, 2014 at 05:20

to be migrated, sourceId: 2819:B33A1EDD-DCC4-4087-BEFC-454F45B13F1B

3 REPLIES 3
chen
Associate II
Posted on April 16, 2014 at 17:16

Hi

You are doing a bit wise compare on a 32bit number on a 8 bit processor!

Examine what the compiler has generated.

Off the top of my head - it would have to do bit wise compares on 4 bytes.

jdf25252
Associate II
Posted on April 16, 2014 at 17:46

There's nothing wrong with the compiler or IDE here. 0x141A0714  & 0x141A0200 really does equal 0x141A0200 check it out with calc.exe.

You need to reevaluate what it is you're trying to do.  If you're trying to look at a part of the command_code you should use the same mask for ALL the compares.

jdf

wuyue0510
Associate
Posted on April 17, 2014 at 04:11