Shop OBEX P1 Docs P2 Docs Learn Events
Question re: BS2SX Program files — Parallax Forums

Question re: BS2SX Program files

ArchiverArchiver Posts: 46,084
edited 2003-11-18 23:58 in General Discussion
Hi,
This might be a question for Jon (by the way, I grew up in Dallas)
The documentation for the SX talks about it's ability to store and run
up to 8 2K programs. However, you can't use the same variables,
constants or labels unless they imply the exact same variable,
constants or labels throughout each of the 8 programs. In which case,
I can't see much point in having this distinction. It seems like
having the ability for 8 glorified sub-routines. Am I missing
something? Is there some huge advantage to this system that in my
limited capacities I'm missing? Just asking because I don't want to be
left out of the next step of evolution like my ancestors.


Thanks


Steve

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-18 23:46
    Hi Steve,
    Nar... its an absolute pain for any large projects
    regards Gary

    Original Message
    From: catgirldo [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1ylZJt6Fx31z4lhGfZuHbh6dFyg-5Y-PsXYMv5jduiaQLNSRPUzq2OqBLXN4KE7q6IwG4MxRSHdzI36lhw]catgirldo@y...[/url
    Sent: Wednesday, 19 November 2003 7:39 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Question re: BS2SX Program files


    Hi,
    This might be a question for Jon (by the way, I grew up in Dallas)
    The documentation for the SX talks about it's ability to store and run
    up to 8 2K programs. However, you can't use the same variables,
    constants or labels unless they imply the exact same variable,
    constants or labels throughout each of the 8 programs. In which case,
    I can't see much point in having this distinction. It seems like
    having the ability for 8 glorified sub-routines. Am I missing
    something? Is there some huge advantage to this system that in my
    limited capacities I'm missing? Just asking because I don't want to be
    left out of the next step of evolution like my ancestors.


    Thanks


    Steve



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-18 23:58
    The strategy used by the BS2sx to bank program slots isn't new ... many
    of us did this with DOS BASICA programs way back when (I think the
    command was called CHAIN).

    In my own projects, I've not bothered sharing variables across slots,
    though it can be done with some planning. Rather, I use extra slots for
    specialized routines that might change from one program to another,
    leaving the main program [noparse][[/noparse]slot 0] intact. I wrote in my Nuts & Volts
    column about this strategy. Here's a link to the PDF reprint:

    http://www.parallax.com/dl/docs/cols/nv/vol3/col/87.pdf

    Another way that banks get used is to create a menu system in slot 0,
    jumping to code within one of the other slots as required.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office

    PS: I grew up in southern California but live in Dallas now. For those
    of you who watch the Discovery Channel, you can see me tomorrow night
    (Nov 19) on the program "Unsolved History" as a JFK sort-of-look-alike
    (my other job is acting).


    Original Message
    From: catgirldo [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=JWr9An3fr4BDjRu_b3O8-qKUL_HhbzelxKzIiE48ki6hhGgjIdBfI8Nha5PxcsyJnC4_qVPHoMSY0nw]catgirldo@y...[/url
    Sent: Tuesday, November 18, 2003 5:39 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Question re: BS2SX Program files


    Hi,
    This might be a question for Jon (by the way, I grew up in Dallas)
    The documentation for the SX talks about it's ability to store and run
    up to 8 2K programs. However, you can't use the same variables,
    constants or labels unless they imply the exact same variable, constants
    or labels throughout each of the 8 programs. In which case, I can't see
    much point in having this distinction. It seems like having the ability
    for 8 glorified sub-routines. Am I missing something? Is there some huge
    advantage to this system that in my limited capacities I'm missing? Just
    asking because I don't want to be left out of the next step of evolution
    like my ancestors.


    Thanks


    Steve



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.