> > 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 > > >You don't, on most PICs at least. On the 16Fxxx and 18xxx series you can >do >"table read" to directly read program memory locations. For most other >PICs >you can only store data in program memory by encoding it into the immediate >field of some instructions. RETLW is usually used for tables on these >PICs. More specifically, typically you access data tables through a call and modification of a program counter. For Microchip's MPLAB or MPASM, the instruction for "data" that is used is "dt" followed by your data, which will automatically be assembled into a data table, one line for each byte of data. ;;Call with byte to retrieve in W (in this case, W in range of 0-3) SimpleTable addwf PCL dt 0x01, 0x02, 0x03, 0x04 --Andrew _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.