Well roger, the Assembler Directives tend to change from assembler to assembler, what worked on TASM probably won't quite work on MPASM. The reason for this, is simple, TASM works for processors that have both code, and data memory on the same bus. The PIC has different busses for these two memory accesses, because it uses a sort of integrated command/data unit to access commands. Without going into the theory of why this is necessary in a RISK architecture.... The reason that the directives are different, is simply that they do a completely different task. Unlike TASM, they do not store the literal information in RAM/ROM and access it using the same pointer for both ram or rom, they can't. Instead they allow access only as part of a command, which integrates the data into the command word. The result is that your data will be stored as a "retlw byte" command if you attempt to store it as a single byte, and as a series of retlw byte commands if you store it as a table. So get the manual and read up on the Compiler directives, they don't work the same as you are used to them working, and as a result you might not recognize them. GREY GRAEME SMITH email: grysmith@freenet.edmonton.ab.ca YMCA Edmonton Address has changed with little warning! (I moved across the hall! :) ) Email will remain constant... at least for now. On Sun, 2 May 1999, Roger Melton wrote: > Hi all, > I am a fairly new MPLAB v4 user and am having trouble declaring bytes, > tables, etc. I can use the cblock for defining constants but cannot seem to > work out how to define bytes and tables. I get illegal label (error 121) all > the time. > I am experienced with hc11 and TASM and have never had problems defining > bytes or words. > I think i am missing something somewhere. (Proc=16F84) > Any ideas? > > By the way If anyone wants a binary to dec convert code and some interface > code to 4094 8bit shift/store register(serial to parallel) > > Thanks in advance, > > Roger > Perth WA > > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com >