there is a missandestanding. my fault because i consfused you by using the same name for the variable SBUF and RBUF in the previous posts.

vars.....

SBUF var byte
RBUF var word

Program in the main loop includes the command:

Code:
arraywrite SBUF, [dec speed1, dec2 speed2,0] ;
then there is a checkSpeed LABEL

checkSpeed:

Code:
RBUF = (speed1*100) + speed2
if RBUF > 5687 then; just an example
gosub limit
endif
return
And that is what it works for me. It is under testing for a day now, and havent seen any strange behaviour.

thanks.