??? 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. |