> > I was making some proggies for MSXDOS and tried using the MSX2
> > SUBROM under DOS2. Simple like this:
> >
> > LD IY,(FAF7h)
> > LD IX,subrom_routine_i_want_to_call
> > CALL 001Ch
>
> > Anybody knows what I'm doing wrong?
Slotswitching routines (like #001C) in MSXDOS1 destroy the IY register.
That explains everything.
possible solution: page the subrom in with #0024 en call the routine
directly.
> > Or I can't access some SUBROM routines due to system vars, DOS
> > environment, etc, etc, etc?
>
>
> Hello,
>
> Hm, it's time for me to dig up some information I haven't used for a
> long time.
> If I'm right you can also use RST $30.
>
>
> DB $80 + SLOT ; 0 - 16 (= slot 0-0 to 3-3)
> DW Routine ; The routine you want.
> RST $30
RST $30
DB slotcode
DW address
The routine at #0030 in MSXDOS1 environment will probably also destroy the
IY register. So this can't be used.
C-ya,
jon
>
> (correct me if I'm wrong... I haven't used my MSX in 1.5 years, so
> the knowledge I had is somewhere deep in my mind....)
>
>
> GreeTz,
> Roberto
> aka. MTC-Software (the nightmare of Stichting Sunrise :-) )
>
> ****
> MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
> in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
> quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
> ****
>
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****