Alex Wulms wrote:
[((X & 2) << 15) + ((Y & 511) << 7) + ((X & 511) >> 2)]
> According to Hans Guijt, it is a one-bit rotation to the right. Or to the
> left. I do not remember exactly but the whole address is rotated with one bit
> in both screen 8 and screen 7. He implemented it this way in fMSX-Amiga and
> games that did not work because of remapping now work fine.
It's a rotation to the right, indeed:
X = x8..x0, Y = y8..y0 --> result = x1y8...y0x8...x2
(Note: X, Y = 9-bit, result = 17-bit and bit x0 is lost)
HTH,
Eric
--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html