Olin Lathrop wrote: > Ed Sutton wrote: >> What does the MPASM syntax look like for data only? I want to do >> something like the following: >> >> Pseudo Code >> ----------- >> ORG = 0x0800 >> CONTROL_TYPE = 0x01 // 0x800: 1-byte >> CONTROL_INTERVAL = 0x00000a // 0x801: 3-byte >> STR_PRODUCT_ID = "My Controller" // 0x804: 32-byte >> STR_MODEL_NUM = "Model 1" // 0x836: 32-byte > > Check out the DATA directive. Another thing I should mention is that the 14 bit words of the PIC 16 family do not map directly to HEX file bytes. If you want to use MPASM to assemble text data into an arbitrary HEX file, tell it you are assembling for something in the PIC 18 family. The 18 family has byte addressed program memory, so program memory addresses will map directly to HEX file addresses. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics