Shop OBEX P1 Docs P2 Docs Learn Events
bit''s from slot to slot — Parallax Forums

bit''s from slot to slot

ArchiverArchiver Posts: 46,084
edited 2002-02-08 13:46 in General Discussion
You need to copy the contents of your variables into scratchpad RAM, and
then run the other slot....

'program in slot 0
variable1 = 104
put 1, variable1
run 1

'program in slot 1
get 1, variable1
debug dec variable1

Regards,
Chris


Original Message
From: "Heinz Schwenk" <hschwenk@y...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, February 08, 2002 9:40 PM
Subject: [noparse][[/noparse]basicstamps] bit's from slot to slot


> Hi all,
> > I use Stamp2P 40
> > My programs did not work together in the different
> program slots.......
> > reducing the code step by step to:
> > In slot 0:
> > ************************************
> > '{$STAMP BS2p,test1}
> > 'flagxy var bit
> > flag var bit
> > testloop var byte
> > flag=1
> > testloop=testloop+1
> > Debug "test= ",dec testloop," flag= ",dec flag,cr
> > pause 2000
> > run 1
> > ***************************************
> > In slot 1:
> > '{$STAMP BS2p}
> > flag var bit
> > testloop var byte
> > Debug "TEST1= ",dec testloop," flag= ",dec flag,cr
> > pause 2000
> > run 0
> > ******************************************
> > if the "flagxy var bit " is deactivated,
> > in my debug "TEST1" the flag=1 like I expected
> > But now:
> > if I activate flacxy var bit
> > in my debug "TEST1" the flag=0 I DID NOT ASPECT
> THIS
> > the "counting" of the "testloop" is always to see
> right
> >
> > Do I do or understand something wrong ?
> > Or is it not allowed to "transfer" Information from
> slot0 to the
> > slot1 via bit's?
> > Is there any documentation (which I did not see)?
> > Or is it a bug?
> >
> > some ideas or information's would be helpful
> > Thanks Heinz
>
>
>
> __________________________________________________________________
>
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
> Ihre E-Mail noch individueller? - http://domains.yahoo.de
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sign In or Register to comment.