hi,

i would store information in different DATA files i.e. label1 DATA $01, , 10,...
and label2 DATA $21, $45

here is the program but it gave error message

CMCON = 1
TRISA = 0
TRISB = 0

I VAR BYTE
TEMP VAR WORD ; temporary storage out put


LOOP:
.....
.....

for i = 0 to 5
read display + i , temp ;increase the index to read data from

"display". display is @ first data l location and store it in the "temp"

portb = temp ; out put to hardware
next i

GOSUB LOOP

ENd

display DATA $00,$40,$40,$7F,$40,$40 ;data storage here

thanks for your help