thanks Andy - this is getting to be fun! cheers nishant ---- Andy Kunz wrote: > > At 07:57 PM 3/2/97 +0000, you wrote: > > ORG 20h > > CTR DS 1 > > ORG 21h > > CTR2 DS 1 > > Nishant, > > You don't need to put all those ORGs there, as the assembler tracks what > you've used. > > Simply do this: > > org 20h > CTR ds 1 > CTR2 ds 1 > > Then you can insert CTR1 between them: > > org 20h > CTR ds 1 > CTR1 ds 3 > CTR2 ds 1 > > and it will know that CTR1 is 3 bytes long, moving CTR2 down. > > To access the three bytes of CTR1, you can do the following > > bcf C > rlf CTR1,F > rlf CTR1+1,F > rlf CTR1+2,F > > Which is the same as multiplying CTR1 = CTR1 * 2. > > To access it using FSR is correct, as detailed in another reply. > > Andy > ================================================================== > Andy Kunz - Montana Design - 409 S 6th St - Phillipsburg, NJ 08865 > Hardware & Software for Industry & R/C Hobbies > "Go fast, turn right, and keep the wet side down!" > ==================================================================