??? 09/24/04 00:00 Read: times |
#78043 - RE: now my ACALL is working.why? Responding to: ???'s previous message |
$mod51
led equ p2.0 org 000h ljmp 0050h org 0050h loop: setb led ;the two acall in the loop acall delay1 ; why do not work with RET in the clr led ;end of delay1 and delay2? acall delay2 sjmp loop delay1: mov 30h,#255 mov 31h,#255 time1: djnz 30h,time1 djnz 31h,time1 sjmp commom_return ; RET here do not work! why not?? see the loop above. delay2: mov 30h,#255 mov 31h,#255 time2: djnz 30h,time2 djnz 31h,time2 sjmp commom_return ; RET here do not work! why not ?? see the loop above commom_return: ret ; commom RET for delay1 and delay2. ; now de code is working ok. end |