Shop OBEX P1 Docs P2 Docs Learn Events
Local Variable Stack — Parallax Forums

Local Variable Stack

SamTheManSamTheMan Posts: 43
edited 2009-06-17 16:52 in General Discussion
Sometimes I have to·call a sub form another sub

1- Is there is any limitations?
2- will this miss up the local var stack?

for example:

Sub Get_Requests

·req_type ·var byte
·chk_sum··var byte

·req_type=__PARAM1

·TX_byte req_type··· ·'Calling·another sub

.
.
.
end sub

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Comments

  • BeanBean Posts: 8,129
    edited 2009-06-17 16:52
    As long as the stack is large enough to hold the local variables in both SUBs at the same time...You'll be just fine.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
Sign In or Register to comment.