i've tried the following but didnt work.

Code:
rbuf  var byte
wbuf var word

Code:
checkt: 
arraywrite RBUF,[DEC2 speed1/100,DEC2 speed2//100,0] ; for example speed1 = 56 and speed2 is 85
LCDSTR 0,2, RBUF ; ----------> this gives 0085
wbuf = rbuf                                 
if wBUF > 5685 then 
gosub limit
return
then i tried:

Code:
checkt: 
arraywrite RBUF,[DEC speed1,DEC2 speed2//100,0] ; for example speed1 = 56 and speed2 is 85
LCDSTR 0,2, RBUF ; ----------> this gives 5685 which is what i want....BUT!!!! when i try to check if wbuf > than 5685, it doesnt work
wbuf = rbuf                                 
if wBUF > 5685 then   ' IF THE TEMPC IS GREATER THAN 37 C THEN LIGHT UP THE BLUE LED
high lata.0
ELSE
low lata.0
endif
return
how is it possible to combine those two speed1 and speed2 vars in one var? and check then the result as an integer number?