I guess I should have said Bank, not GPR? >From your answer I take it that I have to address each byte (of 8 bits) and write just as I write to a variable. that leaves me to find out how to address it. thanks Lembit ----- Original Message ----- From: "Jan-Erik Soderholm" To: Sent: Tuesday, September 05, 2006 3:47 PM Subject: RE: [PIC] MPASM - table write problem 18F4520 > Lembit Soobik wrote : > >> Lets say I have 8 variables, each one Byte, named >> B1, B2, ... B8 >> and I want to write them into the first GPR > > Why do you want to write them into the *same* > (what you call the "first") GPR ? > > And where are B1-B8 stored if not in a 8 GPR's ? > > What is it that you call "variables" ?? > >> howdo I address the GPR and >> which instruction do I use to write (or read) > > As I said, any (almost) instruction can address the > GPR's. Some (like movf) reads and some (like movwf) > writes... > > You absolutely *HAVE* to study the data sheet again! > > In particular the part with the instruction set... > > Regards, > Jan-Erik. > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: 04.09.2006 > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist