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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/29/06 19:59
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#121323 - problem solved
Responding to: ???'s previous message
Talk about shooting down two birds with a single shot, thank you Russell. The new code not only occupies 150plus bytes lesser but the problem of repeated feedback too is solved.
The alteration:

disp_device_on:  DB ".Device  ON",0ah,0dh,00h
disp_device_off: DB ".Device  OFF",0ah,0dh,00h
;-------------------------------------
kcd_check1:mov SL_BUFF,#'1'   ;send device number
	   acall tx_main

           rrc a	     ;LSB is pushed to carry flag for comparision
	   jc device1_off    ;'0'=>ON; '1'=>OFF

	   mov dptr,#disp_device_on ;send device ON status
	   acall disp_message
			
	   sjmp kcd_check2	  ;check next

device1_off:mov dptr,#disp_device_off	  ;send device OFF status
	    acall disp_message



List of 33 messages in thread
TopicAuthorDate
code optimisation            01/01/70 00:00      
   Optimisations            01/01/70 00:00      
   problem solved            01/01/70 00:00      
      good closure!            01/01/70 00:00      
         and the very best ...            01/01/70 00:00      
            Isn't that why we have "tools"?            01/01/70 00:00      
               not quite and a good read            01/01/70 00:00      
               A Posidriv driver and a Phillips screw            01/01/70 00:00      
                  I have done this too, I think you are wrong            01/01/70 00:00      
                     Best Ways?            01/01/70 00:00      
                        what is best?            01/01/70 00:00      
                           Guide lines and trade-off\'s            01/01/70 00:00      
                              what about 'and'            01/01/70 00:00      
                                 Dangerous Information            01/01/70 00:00      
                                    depends on what you define as overhead            01/01/70 00:00      
                                       Overhead            01/01/70 00:00      
                                          the whole truth, please            01/01/70 00:00      
                                             one good thing...            01/01/70 00:00      
                                             CPU Overhead            01/01/70 00:00      
                                                there is an article 'somewhere' that cover C for            01/01/70 00:00      
                                                   the real optimum            01/01/70 00:00      
                                                      Your time is appreciated            01/01/70 00:00      
                                                   how about these?            01/01/70 00:00      
                                                      a required capability for optimum code            01/01/70 00:00      
                        small and readable            01/01/70 00:00      
                           my sentiment            01/01/70 00:00      
                              In that spirit ... where's the user guide?            01/01/70 00:00      
                                 Did you download the documentation            01/01/70 00:00      
                                    have a look            01/01/70 00:00      
                                       Non-GPL            01/01/70 00:00      
                                       I'll have a look!            01/01/70 00:00      
                                    It's not quite as the page suggests            01/01/70 00:00      
                        Lint            01/01/70 00:00      

Back to Subject List