|
Function jump, as in jumping to a function.
For example... (ignore the mix of c++ and the bad syntax, haven't used c-based programming in a bit)
void my_fuction();
void my_fuction()
{
cout << "Doggies run at midnight" << endl;
}
int main()
{
cout << "Jumping" << endl;
my_function();
return 1;
}
When the program calls my_function it would make a function jump and go to another place in the code, I believe... exactly as you described.
This can be hacked in PBASIC with GOTOs but isn't elegant in the least. So interrupts allow you to employ properly coded functions then... am I correct?
__________________
"I have more friends than enemies, I'm working to resolve the issue."
|