> I have no real problem, I only wanted to test IF..ELSE..ENDIF condition, but I > think I mixed everything together.(It looks like I have a little big problems > with assembling :-) ). > I need to initialise tmp, You say ,that if I will do this with EQU, then the > value will be 21h, but I thought that 21h is its adress. > I need to give some adress where to put tmp, not value. You are confusing assembler variables and constants, and the runtime value located at addresses that are referenced by those assemlber variables and constants. First, assembler symbols never stand for the contents of a RAM location, because that can't be determined at assembly time. These symbols can stand for arbitrary number or memory addresses (which are also just numbers). When you say: TMP EQU h'21' you assign the value 21h to the assembler symbol TMP. Nothing more. TMP is NOT a memory location, and TMP absolutely does not refer to the contents of any memory location. However TMP, like any other symbol, can be used as the address of a memory location. For example: MOVWF TMP, W ;fetch the value at TMP But the assembler only knows that TMP = 21h. It doesn't know that you think of that as representing the address of a memory location. You could just as well use it as a normal numeric constant: MOVLW TMP ;init the loop counter MOVWF LOOPCNT > I am going to study MPASM-HELP. A very good idea. However, you might start with a book or something that introduces assembly language programming in general. The Microchip documentation pretty much assumes you already know how assemblers work and teaches you the specifics of MPASM. You are having problems with general concepts that may not be well addressed in the MPASM manual. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body