>Register IY is a 16-bit register. A slot ID is only 8 bits wide. The
>highest 8 bits of IY are the ones where the slot ID should be stored. Let's
>call the high byte of IY "IYh" and the low byte "IYl".
>
>In memory, the Z80 always stores 16-bit values "low byte first".
>What "ld IY,(0faf7h)" does is this:
>ld IYl,(0faf7h)
>ld IYh,(0faf8h)
>
>So, the slot ID is read from 0faf8h to IYh, everything works fine.
>
>Bye,
> Maarten
Thanks!
+------------------------------------------------+
| Toni Burguera Burguera |
+------------------------------------------------+
| E-mail : [EMAIL PROTECTED] |
+------------------------------------------------+
| 9D - La Novena Dimensio |
| http://www.geocities.com/Area51/Dimension/9812 |
+------------------------------------------------+
****
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/)
****