Adriano Camargo Rodrigues da Cunha wrote:
>
> Hi, folks.
>
> 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
>
> Well, what is the result?
> For some routines, a great CRASH.
> For setting palette, NOTHING.
I've checked it in my sources; the problem was that IY is corrupted by
DOS_CALSLT (#001C) in MSXDOS1 and I needed IY for a second subromcall.
In MSXDOS2 IY is preserved after DOS_CALSLT.
Anyway, I used the method described above for setting/retrieving the
palette and that goes fine. (btw. what do you mean with 'NOTHING' in the
above text?)
I don't think it has something to do with the slotswitching, otherwise
the paletteroutines wouldn't work either.
Note that most subrom routines enable the interrupt. So make sure an
interrupt routine is available and that all slotswitching was done in a
legal way. (adaptation of EXPTBL (#FCC5...), mapper, ...)
cu
> For reading VDP registers, in some MSX, CRASH.
> For saving a screen area (copy(x,y) to "file.pic"), CRASH.
>
> Anybody knows what I'm doing wrong?
> Or I can't access some SUBROM routines due to system vars, DOS
> environment, etc, etc, etc?
>
> Thanks,
>
> Adriano Camargo Rodrigues da Cunha ([EMAIL PROTECTED])
> Engenharia de Computacao - UNICAMP
> http://www.adrpage.cjb.net MSX-TR:I have one.And you?
>
> * The Artificial Inteligence doesn't work due to the Natural Stupidity. *
>
> ****
> 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/)
****