Skip to main content
Visitor II
April 16, 2014
Question

cosmic or st visual develop problem?

  • April 16, 2014
  • 3 replies
  • 608 views
Posted on April 16, 2014 at 05:20

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

    This topic has been closed for replies.

    3 replies

    Visitor II
    April 16, 2014
    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.

    Visitor II
    April 16, 2014
    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

    wuyue0510Author
    Visitor II
    April 17, 2014
    Posted on April 17, 2014 at 04:11