RETLW 0 is the same (almost) as RETURN, this ca be remove if you're not using a GOSUB to call it. A return without a previous Gosub call, will indeed "underflow" the stack.
If you sit this routine in a interrupt service routine, check the PBP manual somewhere at the end about INterrupts.




Bookmarks