Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

implementing exit in subroutine

25 views
Skip to first unread message

Wei Sun

unread,
May 6, 2012, 12:04:40 AM5/6/12
to
Does anyone know how to implement a way to exit the entire program in
the middle of a subroutine? So far, I figured that to do that involves
jumping into the assembly and setting the program counter to the top
level return address, but I haven't figured out how to find that
address

I mean, I could pass a "exit program flag" all the way up to the top
level function, but that's just unpleasant.

Wei Sun

unread,
May 6, 2012, 12:37:09 AM5/6/12
to
this appears to be the wrong newsgroup

Tian Lan

unread,
May 10, 2012, 3:08:24 PM5/10/12
to
we are now using Piazza instead of Newsgroup......

"Wei Sun" wrote in message
news:97490f3e-f9db-41a9...@y11g2000vbn.googlegroups.com...
0 new messages