Basic Stamp 2pe program slots
How many program slots does the BS2pe allow? Because on the stamp comparison sheet it says that the BS2pe allows 16x2K Bytes.
But when i try to add more than 8 programs it says that it cannot add more than 7 additional project files.
Can anyone help?
But when i try to add more than 8 programs it says that it cannot add more than 7 additional project files.
Can anyone help?
Comments
There are some ways around this, but they're not simple and there's no way around the limitation as far as the Stamp Editor is concerned.
Regards
Shaun
This is awkward at best and would make debugging difficult. It would be a very unusual situation where this would be necessary, particularly since most programs that don't fit into one or a few slots have a lot of waste in them and can be trimmed down quite a bit. Often switching to a table-driven structure for your program will markedly reduce its complexity and size (moving the complexity into the table(s)).
I didn't say that those slots could be used to run programs. As you correctly pointed out, slots 8 to 15 can only hold DATA, and it is not possible to execute code in those banks. However, at times it is convenient to create slots in the editor that contain predefined DATA to load into slots 8 to 15, but the IDE does not allow that either. The only access provided to those slots is at run time, via the STORE, READ and WRITE commands. The workaround I came up (using the Stache as an intermediary) invokes a "loophole" the native BS2pe programming algorithm to redirect DATA to the higher slots.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
E.g. --- pseudo code
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Post Edited (Zoot) : 12/15/2008 6:47:25 PM GMT
Somebody *has* to have done something like this already
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
The alternative I was referring to does not involve a PBASIC program running on the Stamp and can work on a totally uninitialized Stamp. It simply relies on the same algorithm that the IDE uses to program the Stamp. The loophole is that the BS2pe internal programming algorithm recognizes all slot addresses from 0 to 15 and can happily load in data directed any of those. I mentioned that I use a special version of the Stache for this, but it can also be DIY Stamp to Stamp using www.emesys.com/BS2clone.htm. Just go in and edit the target slot address. Say you have data in slot 1 on the master Stamp and you want it to go to slot 12 on the clone. Then just change the one byte in the image that selects the slot you want.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com