Date : Sat, 16 Oct 2004 19:55:48 +0100 (BST)
From : Andrew W <a.weston2@...>
Subject: Re: RTS
In <URL:news:local.misc> on Sat 16 Oct, Angus Duggan wrote:
>
> RTS returns to the location set up by JSR on the stack. You have branched to
> it, not called it as a subroutine. The entry point from BASIC to machine code
> (CALL) is implemented as a JSR to the address given by the argument, so RTS
> will return to BASIC if no other sub-routines have been called.
>
That's done it thanks. I was getting confused with the
instruction from another assembler I've tinkered with - branch with
link ;-)
A.Weston
--