Hi,
>I make program like :
> IN A,(#A8)
> PUSH AF
> LD A,(#FFFF)
> CPL
> PUSH AF
> LD A,XXX
> OUT (#A8),A
> LD A,YYY
> LD (#FFFF),A
> .
> .
> .
> POP AF
> LD (#FFFF),A
> POP AF
> OUT (#A8),A
> C R A S H ! ! ! Why ????????? (Do I have to wait or something ???)
1. Be sure to DI when switching slots
2. Don't mess with page 3 (which will now definitely happen, when you set
XXX to an arbitrary value.)
3. When you switch page 0, be sure that there's at least an interrupt routine
at #38 in the newly selected slot
4. Check that your stack is not switched away, otherwise the PUSH/POP combi's
will not work
5. If you don't want to switch away the BIOS, use the BIOS routine for swapping
slots.
6. Need I say more? ;-)
Eric <[EMAIL PROTECTED], [EMAIL PROTECTED]>
****
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/)
****