bs2/bs2e read/write
Tobias
Posts: 95
···· I finally figured out how to create·a multi slot program, I had a program in bs2 with four settings and when it went to setting two I had it write 1, 2 and at setting three write 1, 3 and so on, then when·I started the program I made it to read 1, set and had it go to the set number setting. Because when I would turn off the power to the bs2 at setting 3 then restart it later it would automatically goto setting 3. Now I'm still working with four settings but with the bs2e and a slot for each setting, is it possible for me to somehow create the same process? I tried the read and write but it seems like it reads and writes in its own slot not on the entire four slots.
Thank-You
Toby
Thank-You
Toby
Comments
If you want your data stored in slot·0 then :
STORE 0
WRITE 0,x,y
to read from any other slot
STORE 0
READ 0,x,y
Jeff T.
EDIT just realized STORE is not valid for the BS2e but there is an example in the STORE help file of·pointing the read/writes to the same memory location.
Post Edited (Unsoundcode) : 8/4/2007 6:55:37 AM GMT
Toby
·<---SLOT 0
>
·GET 62,x
·IF x<>0 THEN
·WRITE 0,x
·RUN x
·ELSE
·READ 0,x
·IF x=0 THEN
·RUN 1
·ELSE
·RUN x
·ENDIF
·ENDIF
Each slot would have the following code as the first few lines
GET 62,x
·IF x<> current_slot_number THEN
·PUT 62,current_slot_number
·RUN 0
·ENDIF
Jeff T.
·Edit: forgot to include the read statement first go round
Post Edited (Unsoundcode) : 8/5/2007 6:29:55 AM GMT
The last slot in the chain would be the default, and would run by default if none are marked with a 1.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com