NYYRIKKI wrote:

> I know, that I have only questions, that nobody can answer, but I'm trying
> my luck once again...
 
Yes, I found a bug on this code.
The PUSH/POP instructions  save/restore  the  register  A 
on RAM. Using D/E registers for save PPI Slot status, the
problem is solved.

>       IN A,(#A8)
>       PUSH AF            ; use LD D,A
>       LD A,(#FFFF)
>       CPL
>       PUSH AF            ; use LD E,A
>       LD A,XXX
>       OUT (#A8),A
>       LD A,YYY
>       LD (#FFFF),A
>       .
>       .
>       .
>       POP AF             ; use LD A,E
>       LD (#FFFF),A
>       POP AF             ; use LD A,D
>       OUT (#A8),A

If your program crashed with these corrections, or your
MSX is turbo, use delays instructions before  OUTS  and
LDs on address #FFFF , like NOPs.

Regards from Brazil,

MARUJO.
 _______________ _   _ _______________ _______________________
|               | |_| |_ __  _  __    | WALTER BERNARDO NUNES |
|             /|| |_   _|  \| |/ /    | [EMAIL PROTECTED]    |
 \          /  || | | |    _|  /     / Graduacao Fisica-UFRGS |
   \      /    || |_| |_  |_| |    /__________________________|
     \__/______||___|___|___|_|_ /     MSX: ainda estou nessa.

****
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/)
****

Reply via email to