On the 17Cxxx and 18Cxxx PICs, you can access program memory via the 'table read' instructions. On the 16Fxxx PICs, you can access program memory via a set of SFR (special function registers). On all other PICs, you'll have to use a 'computed GOTO/RETW-style' table. Douglas Wood Software Engineer dbwood@kc.rr.com Home of EIS (Enhanced Instruction Set) for the PIC ----- Original Message ----- From: "Olin Lathrop" To: Sent: Wednesday, January 24, 2001 4:15 PM Subject: Re: [PIC]: Assembler 101 question... > > org 0x000A > > data 0x01, 0x02, 0x03, 0x04 > > > > When you assemble it, starting at 000A, in code space, you get: > > > > 000A 0001 > > 000B 0002 > > 000C 0003 > > 000D 0004 > > > > > > How does one access this data? In other words how does one load the value > > from code space address 000A into the w register? -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.