[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vm02: calling all IIcs - Take 2
On Sep 1, 8:13 pm, mdj <mdj....@gmail.com> wrote:
> On Sep 2, 1:08 pm, aiiad...@gmail.com wrote:
>
> > On Sep 1, 7:48 pm, mdj <mdj....@gmail.com> 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