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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/25/02 11:30
Read: times


 
#22139 - RE: Assembly on C programm
Hi Jorge,

for small delay I use:

unsigned char i;
while( --i );

It was compiled as DJNZ and consume i * 2 cycle.
For larger delay it can be cascaded:

unsigned char i, j;
do
while( --i );
while( --j );


Look on the list file. Then you can see, that DJNZ was used.


Peter

List of 26 messages in thread
TopicAuthorDate
Assembly on C programm            01/01/70 00:00      
   Delay routine for 30 seconds.            01/01/70 00:00      
      RE: Delay routine for 30 seconds.            01/01/70 00:00      
         RE: Delay routine for 30 seconds.            01/01/70 00:00      
            RE: Delay routine for 30 seconds.            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm -Bryan            01/01/70 00:00      
RE: Assembly on C programm - Erik            01/01/70 00:00      
RE: Assembly on C programm - Andy            01/01/70 00:00      
RE: Delays in C            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm, Erik            01/01/70 00:00      
C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output Andy            01/01/70 00:00      

Back to Subject List