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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/13/10 10:56
Read: times


 
#174107 - Yes, That's it.
Responding to: ???'s previous message
making use of the directive "using X" reduces PUSHes & POPs in final SRC to :
RSEG  ?PR?ext_int_0?PS2_INTERR_C_ASM
    USING	1
ext_int_0:
    PUSH 	ACC
    PUSH 	B
    PUSH 	DPH
    PUSH 	DPL
    PUSH 	PSW
    USING	1
    MOV  	PSW,#08H
    .
    .
    .
 

It is used in C as:
void ext_int_0(void) interrupt 0 using 1 //external interrupt 0, reg. bank 1
{
    .
    .
    .
}
 


Thanks everyone.

List of 12 messages in thread
TopicAuthorDate
How to control PUSHes & POPs in interrupt?            01/01/70 00:00      
   Don't know in Keil but            01/01/70 00:00      
   What is the Code in the interupt?            01/01/70 00:00      
      Code in Interrupt            01/01/70 00:00      
         Once you use ASM, the optimiser gives up            01/01/70 00:00      
            OR            01/01/70 00:00      
         Questions            01/01/70 00:00      
   Use alternate register set...            01/01/70 00:00      
      Yes, That's it.            01/01/70 00:00      
         Using X            01/01/70 00:00      
            Just Remember            01/01/70 00:00      
               The cost...            01/01/70 00:00      

Back to Subject List