What is subroutine in 8085 microprocessor?
Answers
Answered by
5
subroutine is a separate set of commands written on the same memory but different location. When subroutine is called due to some logical command like JMP (****H) or JNC (****H), the execution of program is shift to the memory location (****H).
At the end of subroutine, RET function is written which returns the control back to the point where it was before sub routine was called
At the end of subroutine, RET function is written which returns the control back to the point where it was before sub routine was called
Similar questions