Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/22/05 21:09
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#95650 - first you must spell it macro :)
Responding to: ???'s previous message
first you must spell it macro :), the rest can be found here
http://www.keil.com/support/m...define.asp

so your case would be
M_DELAY MACRO
        mov r0,#00h			;
	mov r1,#00h			;
	djnz r1,$			;
	djnz r0,$-4			;


Main:	setb P1.0			; Led on
	M_DELAY		                ; 
	clr P1.0			; Led off
	M_DELAY		                ; 
	jmp Main			;


	end
Erik

List of 13 messages in thread
TopicAuthorDate
How to use marco in assembly?            01/01/70 00:00      
   first you must spell it macro :)            01/01/70 00:00      
      first you must spell it macro :)            01/01/70 00:00      
      Not So Fast!            01/01/70 00:00      
      Macro Correction            01/01/70 00:00      
      improvement            01/01/70 00:00      
         to be more precise            01/01/70 00:00      
            Delay            01/01/70 00:00      
               I did not say...            01/01/70 00:00      
   Macros Defined            01/01/70 00:00      
      Macro vs Call            01/01/70 00:00      
         Macro Correction            01/01/70 00:00      
   Polo!            01/01/70 00:00      

Back to Subject List