Shop OBEX P1 Docs P2 Docs Learn Events
multi bank programing. — Parallax Forums

multi bank programing.

stamp_demonstamp_demon Posts: 69
edited 2005-05-31 11:26 in BASIC Stamp
I'm starting to run into problems with programe and varible space. So I was thinking about reading up on multibank programing on the bs2px. I know this would give me more programe space, but how about varible space? Do you need to write varible declarations in each programe bank for that programe? Or are all varibles specifyed in the main programe bank, and used threwout?? Thanx Duane

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-31 11:26
    If you declare the same set of variables -- in the same order (use copy-and-paste) -- in multiple program banks then you can move between the banks (with RUN) while keeping your variables intact.

    Another strategy is to use the Scratchpad RAM to pass information between the banks.· This article will help in that regard: http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv87.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.