How to call another slot from the not zero slot?
Julien Hordies
Posts: 6
Hello,
I'm doing a program using differents slots and I'd like to call data from the·slot 4 in the slot 3? Is that possible and if yes how do have I to do this?
I'm trying to use the function Store but it does't works. The slots are defined in the principal program running in slot 0 but I can't use the slot 4 from the program running on the slot 3.
Thank you.
Julien Hordies
P.S:Still sorry for my english but I'm still Belgian...
I'm doing a program using differents slots and I'd like to call data from the·slot 4 in the slot 3? Is that possible and if yes how do have I to do this?
I'm trying to use the function Store but it does't works. The slots are defined in the principal program running in slot 0 but I can't use the slot 4 from the program running on the slot 3.
Thank you.
Julien Hordies
P.S:Still sorry for my english but I'm still Belgian...
Comments
RUN 4
Now then, if you want to go to a special routine in slot 4, for example,
"dotask4", then in slot 3 you would write
com = 1 (or whatever number)
RUN 4
Then at the very beginning of the slot 4 you would write
if com = 1 then dotask4
When you have finished dotask4, then you can write RUN 0, RUN 1, or wherever you want to go.· If you want to go to a special spot then used the same technique.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·
Thanks.
julien Hordies
Sid
Compare_Values:
· STORE 4
· READ Slot4Addr, slot4Value
· STORE 0
· READ Slot0Addr, slot0Value
· IF (slot4Value > slot0Value) THEN
···
· ENDIF
· ...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
slot 0
put 0, data
slot 3
get 0, data
Thank you again.
julien Hordies