Howard Simpson wrote: > > Hi all > This should work, shouldn't it? > > 1 cblock 0x50 ;(or wherever) > 2 addr ;one variable name only > 3 endc ; > ; > ; > ; > 4 movlw 0xfa ;copy sample data to w > 5 movwf addr ;copy to the variable named in cblock > > 6 incf fsr,f ;inc fsr to the next address > 7 movlw 0xfb ;and copy different data to w > 8 movwf 0x00 ;and to the address in fsr > > 9 incf fsr,f ;inc fsr again to the next address > 10 movlw 0xfc ;and copy different data to w > 11 movwf 0x00 ;and to the address in fsr > ;and so on, as far as required > 12 end Hmmmmm! Pity! I was hoping fsr would be, by default, loaded with the address of the last accessed variable, but I'm obviously off the track. Ah well. My reason for this attempt was that I could, in development, name the first address of the set of addresses, and access them as shown, sometimes in several places in the program. Then, if I needed to change the location of the set of addresses for some reason (conflict with another set), all I had to do was change the address assigned to the variable in the cblock command. Thanks all for replying Howard. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics