1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

"Goto" code

Discussion in 'Microcontrollers' started by swapan, Dec 26, 2009.

  1. Wond3rboy

    Wond3rboy Member

    Joined:
    Jun 25, 2008
    Messages:
    762
    Likes:
    7
    Location:
    Sindh,Pakistan
    A GOTO can be used to go at an address(be it a subroutine or anything) but it can not 'call' a subroutine.Besides a lot of people i know prefer not to use GOTO(dont know why..dont see anything wrong with it).Never needed to use it yet. BRA does the trick.
     
  2. Wond3rboy

    Wond3rboy Member

    Joined:
    Jun 25, 2008
    Messages:
    762
    Likes:
    7
    Location:
    Sindh,Pakistan
    A generic processor means for processors in general.Like commonly.
     
    Last edited: Dec 31, 2009
  3. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    thanks for clear my dout.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,228
    Likes:
    641
    Location:
    Derbyshire, UK

    Goto is only 'hated' in high level languages, in assembler it's perfectly fine - and in PIC assembler it's absolutely essential, you can't do anything without using it lots.

    As a PASCAL programmer I'm particularly 'anti-goto', as it's really discouraged in PASCAL - in fact the only time I ever used it was in converting a Visual Basic program to Delphi, and I had to look up the syntax of how to use it, as I'd never previously done so.
     
  6. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    Hi every body
    ..........happy new year..........
    ..........happy new year 2010..........
     

Share This Page