472 views
0 votes
0 votes

I know function call is like subroutine call. But why it is differentiate from function call?

 

and if a processor calls a subroutine is any interrupt is possible?means what is the relationship of subroutine call and interrupt?

1 Answer

Best answer
1 votes
1 votes
A related instruction is the subroutine call, which transfers execution to a
subprogram and then, after the subprogram finishes, returns to the main program where it left off relatively independent of the remaining code.

The interrupt service routine is just like a subroutine. The difference is that when you call a
subroutine, you call it when you decide, and you understand completely what will be changed by the subroutine,

Interrupt Service Routines (ISRs) are to handle hardware interrupts.

Related questions

0 votes
0 votes
0 answers
1
Na462 asked Sep 24, 2018
509 views
0 votes
0 votes
0 answers
2
prajabobde asked Aug 20, 2018
121 views
Subroutine for adding column x to column y element by element , leaving the sum element in column y
0 votes
0 votes
0 answers
3
0 votes
0 votes
1 answer
4
its_vv asked Jul 1, 2022
960 views
Both internal and software caused by executing the program instructions . So both are same ?