Got it from the newsgroup, might be interesting for some of you
Emulator-developers...
READ BELOW!
--
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
email me: [EMAIL PROTECTED] or ICQ: 10196372
visit the Datax homepage at http://datax.cjb.net/
MSX fair Bussum / MSX Marathon homepage: http://msxfair.cjb.net/
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
> Laurens Holst ([EMAIL PROTECTED]) wrote:
> >Is this the code you use in your emulator???
>
> Yes.
>
> >If so, I really think you should submit this to the MSX Mailinglist too,
and
> >put it online on some homepage or so...
>
> I'm not on the MSX mailinglist... And anyone who wants to use it would at
> least have to translate the 68K routines for reading/writing pixels/bytes
to C.
>
> However, people who want to use it should feel free to do so. I'd
appreciate
> creditting in the manual.
>
> >Some emulators can really be enhanced by using this I think...
>
> Yes, funny how many share the bugs found in fMSX UNIX ;-)
>
> Seriously, Marats code does not do any clipping which is of course a bit
of a
> problem since it might overwrite any memory it wants at any time it feels
> like. One thing that greatly improved stability on fMSX Amiga back when I
was
> still using Marats code was simply allocating 256K for VRAM, that way it
was
> less likely to hit something important...
>
> Secondly, it will do the wrong thing in many of the special cases (such as
> when NX or NY is zero). Actually my own code is not perfect in that regard
> either, but then there are so many strange cases in the VDP...
>
> Thirdly, Marats attempts to inline the reading and writing of pixels and
bytes
> results in some of the most mis-guided C I've ever seen (sorry Marat, but
> that's true). Some functions would have made it a lot clearer, and given
the
> fact that those functions eliminate all those array accesses it speeds
> everything up a great deal as well.
>
>
> Hans Guijt
>
****
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/)
****