Re: A86: Exiting a Program


[Prev][Next][Index][Thread]

Re: A86: Exiting a Program




> Okay. Another simple question.  I'm having problems getting my program to
> cleanly exit.  If I use "ret", it locks up the calc.  If I use
> _jforcecmdnochar, it puts a line of garbage on the top text line (It does
> exit, though, without freezing).  Anyone know what could be wrong?

Sounds like your stack is messed up.  Check to make sure there
aren't any extra pushes or pops and that all of the call and jp and
jr statements are used correctly and that no extra subprograms
are running and then use ret.