BS2P Crossbank Calls
msh5686
Posts: 70
I have been using Tracy Allen's method of doing crossbank calls and am wondering if anyone has experience expanding the calls to further branches. Specifically, in the attached program I am trying to use the calling methods Tracy describes, but I need the program to do something a little different. I want to start by going to V00 then V01 to V10 to V02 to V11 and finally back to V00. On all subsequent loops I want to be able to run from V00 to V02 to V11 and back to V00. If anyone has a method of doing this or any insight as to how I can do this, it would be greatly appreciated!
Mike
Branch_1.bsp
2Banks_5Branches_0.bsp
Mike
Branch_1.bsp
2Banks_5Branches_0.bsp
Comments
MotionScriptMain.bse
MotorsAndSensors.BSE
Accordingly, the code that decides whether or not to execute the initialization...
Bank 0:
Bank 1:
My question is, is this the correct way to skip the initialization with the branch command?
Stupid question, but why does the bit need to be put in the SPRAM? Maybe I'm misunderstanding things, but I thought as long as the variables were defined in exactly the same order in each bank the values would carry over.
Mike
This does not use the "first" flag, but it it did, it would be necessary to lower the flag at the end of the first cycle.