i'm currently doing a project on 8051
the project has 6 different states and conditions so i have to use the RET function after call and excuting Delay, how can i do it?
Example:
Start:
(code)
jmp State1
State1:
(all the code needed)
jmp DELAY1
jmp State2
(codes)
DELAY:
(time delay code)
RET( after here it auto jump back to start of program thus state1 did no go to state2 i know i have to use push and pop instruction but i have no idea how to can any1 show it to me?
the project has 6 different states and conditions so i have to use the RET function after call and excuting Delay, how can i do it?
Example:
Start:
(code)
jmp State1
State1:
(all the code needed)
jmp DELAY1
jmp State2
(codes)
DELAY:
(time delay code)
RET( after here it auto jump back to start of program thus state1 did no go to state2 i know i have to use push and pop instruction but i have no idea how to can any1 show it to me?