This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Assembly IF statement simple question

If I say,

if a == 10 b = b * 4 + 2

if it does then do 'b = b * 4 + 2' or skip doing it? Would it be BNE or BEQ?

Something tells me it's DON'T DO...

Thanks

Parents
  • Something tells me you should learn how to use a debugger.

    And maybe look at the assembler output of a C compiler.

    Consider the difference between jumping to code or jumping around code - that represents a negation of the conditional test.

Reply
  • Something tells me you should learn how to use a debugger.

    And maybe look at the assembler output of a C compiler.

    Consider the difference between jumping to code or jumping around code - that represents a negation of the conditional test.

Children