Stkptr


Closed Thread
Results 1 to 2 of 2

Thread: Stkptr

Hybrid View

  1. #1

    Default Stkptr

    Just curious as to why you can't killing a gosub by killing the stack associated to it. Why could you not just use a goto in the subroutine and kill the stack pointer? This obviously would not work if you have nested gosubs though. However with just one stack could you not just use something like this?

    STKPTR.0 = 0
    STKPTR.1 = 0
    STKPTR.2 = 0
    STKPTR.3 = 0
    STKPTR.4 = 0

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    On 18F parts you can. POP, DECF STKPTR, etc allow you to manipulate the stack pointer.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Help With stack (STKPTR)
    By rickypatel in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th February 2008, 02:18

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