On Tue, May 20, 2014 10:01, nitinjain wrote:
Hi Nitin, > Could any one help on replacing or rewriting below MEM and MEMW function > for > 32 bit OS. . . > MEM[$B800:offset]:=top_left_corner[style]; . . Have you already tried the recommendations discussed in a recent thread here (including my e-mail sent on the 12th of May)? If yes, have you faced any issues which you need to resolve (which ones)? If not, is there something unclear in the previous e-mails which prevents you from using those recommendations and which you would need to clarify first? I'd be happy to help you, but I don't think that there's much on top of the rather straightforward translation of the Mem and MemW references to accesses of the VideoBuf pointer provided by unit Video which I already tried to describe. As you probably understand, the only difference between Mem and MemW in this context is the fact that in case of MemW you address the whole TVideoCell word element whereas in case of Mem you only change the upper or lower byte of that word. However, your code usually updates the two bytes one after the other anyway, so you can combine the two following Mem[] references to one assignment to VideoBuf^[]. If you need more, you'd need to be clearer in your needs. Regards Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal