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

Conditional jumps Assembly Vs C part01

Hello friends, In Assembly editor in KEIL (for 89LPC9xx series), things go easy. You make a jump point AT ANY LINE of main code(like point0:) and then you can conditionally jump back there to do something or reloop, according to program needs. Is there any chance you can do it with C ( ? ? ). Ofc there are (as i, a newbie knows) some looping statements like while() or for () - but in a specific application i am working these arent enough :(

I have the full flowing diagram of the code i need and i can email it to you just to see. If it was assembly it should be done by me and ready to release the project it in production line, but for C.... I am stuck for now...

Best regards all :)
Timothy Kondos

Parents
  • "The example above is a good example of where goto should _not_ be used, since it represents a standard do { ... } while() block."

    For a moment, I though I hit the wasp nest of a purist!

    Per is right, I might not have given the best of examples, but I think I showed the mechanism accurately.

    What the OP needs to do is find himself a good book on C programming - Hopefully one that explains a pragmatic 'real life' approach.

Reply
  • "The example above is a good example of where goto should _not_ be used, since it represents a standard do { ... } while() block."

    For a moment, I though I hit the wasp nest of a purist!

    Per is right, I might not have given the best of examples, but I think I showed the mechanism accurately.

    What the OP needs to do is find himself a good book on C programming - Hopefully one that explains a pragmatic 'real life' approach.

Children
No data