variables and gosubs???


Results 1 to 39 of 39

Threaded View

  1. #13
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sayzer
    I thought that once the program jumps, then it will forget where it was and will return to an unknown place. So that it will never be 100% precise.
    To be even more specific, the GOSUB will put a return address on the top of the "Stack" It will remain there forever (as long as the PIC is not reset) until a RETURN is executed. So, Steve's 2.7894235e+128 GOTOs do nothing to modify the address on the top of the stack. And, no matter when the RETURN is executed, the program will return to that address.

    HTH,
    Steve B
    Last edited by SteveB; - 18th November 2006 at 20:17.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts