TIP: Click on subject to list as thread! ANSI
echo: apple
to: comp.sys.apple2,comp.sys.apple2.pro
from: aiiadict
date: 2008-09-01 20:15:40
subject: Re: vm02: calling all IIcs - Take 2

On Sep 1, 8:13=A0pm, mdj  wrote:
> On Sep 2, 1:08=A0pm, aiiad...{at}gmail.com wrote:
>
> > On Sep 1, 7:48=A0pm, mdj  wrote:
>
> > > Oh, and never make a ProDOS MLI call from auxiliary memory.
>
> > I have a program that will allow ProDOS MLI calls from AUX RAM
> > (any bank in a RWIII card)
>
> Oh, nice! How did you manage that?

JSR MLI is
JSR BF00

so at BF00 I put a JMP to my code

it saves return address and current active bank.  it then transfers
the MLI code to MAIN RAM, including all parameters.

MAIN RAM is switched in.  the prodos call is made.  the data is
transferred to the appropriate bank.

the calling AUX bank is restored, along with the RTS address, and
there you go... you just called the MLI from AUX RAM.

I have it working for READ/WRITE/OPEN/CLOSE.  I couldn't find a reason
to get any others to work yet.

Rich
--- SBBSecho 2.12-Win32
* Origin: Derby City Gateway (1:2320/100.2008)
SEEN-BY: 10/1 3 34/999 106/1 120/228 123/500 140/1 222/2 226/0 236/150 249/303
SEEN-BY: 250/306 261/20 38 100 1404 1406 1410 1418 266/1413 280/1027 320/119
SEEN-BY: 393/11 396/45 633/260 267 712/848 800/432 801/161 189 2222/700
SEEN-BY: 2320/100 105 200 2905/0
@PATH: 2320/100 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.