I want to know about call instruction what actually they do in program or why we use call instruction in program
example:-
turn on LED
wait
turn off led
assembly program for 8051
SETB P0.1 ; turn on LED
ACALL DELAY ; wait (here why we use call instruction )
CLR P0.1 ; turn of led
another example
SETB P0.1 ; motor on
CALL FORWARD
ACALL DELAY ; wait
CALL REVERSE
CLR P0.1 ; motor off
why we use ACALL DELAY, ACALL FORWARD, ACALL REVERSE in above program
example:-
turn on LED
wait
turn off led
assembly program for 8051
SETB P0.1 ; turn on LED
ACALL DELAY ; wait (here why we use call instruction )
CLR P0.1 ; turn of led
another example
SETB P0.1 ; motor on
CALL FORWARD
ACALL DELAY ; wait
CALL REVERSE
CLR P0.1 ; motor off
why we use ACALL DELAY, ACALL FORWARD, ACALL REVERSE in above program