How sure are you about that ? ORG is not used with relocatable mode. Jan-Erik. Jorge Valerio skrev: >> 1. Processor 16F84 >> 2. include >> 3. __config _HS_OSC & _WDT_OFF & _PWRTE_ON >> 4. spot1 equ H'30' > org 0000H ;you always have to indicate where is the origin of your > code in the program memory >> 5. movlw D'5' >> 6. movwf spot1 >> 7. clrw >> 8. clrf spot1 >> 9. nop >> 10. end > > good luck!! > > Jorge. > > ----- Original Message ----- > From: "Dr. Ed Edmondson, PhD" > To: > Sent: Monday, November 13, 2006 2:51 PM > Subject: Re:[PIC]: Very New User Problem > > >> I am attempting to use the "PIC Elmer 160 Course" as referenced on the new >> user FAQ. My problem is every time I try to build the code I get an Error >> 152 on lines 5 thru 9. Error 152 tells me: "Executable code and data must >> be defined in an appropriate section" >> >> I looked the error up in Chapter 8 of the Assembler,Linker/Librarian User >> Guide and it tells me that "When generating an object file, all executable >> code and data declarations must be placed within appopriate sections". I >> am using MPLAB 7.43 (what I downloaded from the Microchip web site) an >> installed it on my computer which runs Windows XP. I am using the >> Microchip 16F84.lnk . >> >> The code is as follows: >> >> 1. Processor 16F84 >> 2. include >> 3. __config _HS_OSC & _WDT_OFF & _PWRTE_ON >> 4. spot1 equ H'30' >> 5. movlw D'5' >> 6. movwf spot1 >> 7. clrw >> 8. clrf spot1 >> 9. nop >> 10. end >> >> Please tell me what I am missing? I have been working on this problem for >> several days now. >> >> Thanks, Ed >> >> >> --------------------------------- >> Want to start your own business? Learn how on Yahoo! Small Business. >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist