ben franchuk wrote:
> I have yet to see a good use for self-modifying code. Other than
> subroutines and interupts placing data into a code segement the only
> self modifying code I have seen was for the 8088.
I saw it actually pretty often, in computer graphics/imaging.
A lot of times you got very fast blitter routines by writing a
small function (at runtime) which performs what you like to do,
and branch to it. Or just changing the actual pixel-op at runtime,
or design the filter the "right" way (meaning that the routine knows
already that it starts on odd byte adressess, but can transfer
longwords, deals with overlaps, etc)
cheers
Received on Tue Sep 28 2004 - 08:58:04 BST
This archive was generated by hypermail 2.3.0
: Fri Oct 10 2014 - 23:37:32 BST