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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/23/04 04:18
Read: times


 
#77972 - why my ACALL do not work??
what is wrong ?
;code 01-do not work
;if two subroutines are called (time1 and time2),the
;code do not work.


; EXAMPLE - 01
led equ p2.0


org 0000h
ljmp 0050h
org 0050h


start:
clr led
acall time1
setb led
acall time2
sjmp start

time1:
djnz 30h,time1
djnz 31h,time1
ret


time2:
djnz 30h,time2
djnz 31h,time2
djnz 32h,time2
ret

*******************************************************
this work well
;code 2 this work.
;in this code only one subroutine is called.

; EXAMPLE - 02

led equ p2.0


org 0000h
ljmp 0050h
org 0050h


start:
clr led
acall time1
setb led
acall time1
sjmp start

time1:
djnz 30h,time1
djnz 31h,time1
ret

*******************************************************


; WHAT IS WRONG IN THE CODE (EXEMPLE - 01)

;THANK YOU FOR HELP ME.


List of 30 messages in thread
TopicAuthorDate
why my ACALL do not work??            01/01/70 00:00      
   RE: why my ACALL do not work??            01/01/70 00:00      
      RE: why my ACALL do not work??            01/01/70 00:00      
      RE: why my ACALL do not work??            01/01/70 00:00      
         RE: why my ACALL do not work??            01/01/70 00:00      
   Maybe this will work....            01/01/70 00:00      
      RE: now my ACALL is working.why?            01/01/70 00:00      
         It works fine            01/01/70 00:00      
            RE: It works fine            01/01/70 00:00      
         RE: now my ACALL is working.why?            01/01/70 00:00      
            RE: now my ACALL is working.why?            01/01/70 00:00      
               RE: now my ACALL is working.why?            01/01/70 00:00      
               RE: now my ACALL is working.why?            01/01/70 00:00      
                  RE: now my ACALL is working.why?            01/01/70 00:00      
                     RE: now my ACALL is working.why?            01/01/70 00:00      
                  RE: now my ACALL is working.why?            01/01/70 00:00      
                     RE: now my ACALL is working.why?            01/01/70 00:00      
                        RE: now my ACALL is working.why?            01/01/70 00:00      
                           RE: now my ACALL is working.why?            01/01/70 00:00      
                     RE: now my ACALL is working.why?            01/01/70 00:00      
               RE: now my ACALL is working.why?            01/01/70 00:00      
            RE: now my ACALL is working.why?            01/01/70 00:00      
   RE: why my ACALL do not work??            01/01/70 00:00      
      RE: why my ACALL do not work??            01/01/70 00:00      
   RE: why my ACALL do not work??            01/01/70 00:00      
   RE: why my ACALL do not work??            01/01/70 00:00      
   Paging Mr Afranio...            01/01/70 00:00      
      RE: Paging Mr Afranio...            01/01/70 00:00      
         Does your code work with LCALLs?            01/01/70 00:00      
            RE: Does your code work with LCALLs?            01/01/70 00:00      

Back to Subject List