Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Oliver Schmidt
Newsgroups: comp.sys.apple2.programmer
Subject: Re: Typo in ProDOS refTechMan
Date: Wed, 23 Aug 2023 07:38:54 -0000 (UTC)
Message-ID:
References: <20230822221945.4eb8a091@laptop-sigfox> <20230823082311.3dc76fb1@laptop-sigfox>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 23 Aug 2023 07:38:54 -0000 (UTC)
Injection-Info: solani.org; logging-data="156147"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:bx6rpjy9oGwvf5sz6eju4cg8aV8= sha1:ooxs29nmsb1s45h9JJbcgxYizGo=
X-User-ID: eJwFwYEBwDAEBMCVCF6NI+T3H6F3YVBMOgIeDM7e7pdjdED1xNESlFzxL7ObW29kjaUDp/4iyBEq
Xref: csiph.com comp.sys.apple2.programmer:6080
Colin Leroy-Mira wrote:
> Hi,
>
>> I think you're right. What ProDOS does is add 3 bytes to the return
>> address to pass over the command-number and command-list-address, but
>> the effect is that execution continues 6 bytes after the start of the
>> JSR instruction. I have read that page many times and never noticed
>> that, probably because I understood what was going on with the
>> return-address.
>
> I only noticed it because I couldn't see it returning by looking for
> its return point when adding 3 to the address where it was called :)
I - pretty strongly - disagree. What JSR does is an implementation detail.
What the documentation wants to express is that MLI returns 3 bytes
"behind" what a "bare" JSR returns to. Putting a 6 there instead of a 3 is
plainly wrong.