On Mon, Sep 27, 2004 at 07:32:06PM -0600, 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.
Self-modifying code was somewhat common in the 6502 world. I have seen
(and written) several examples for the PET, VIC-20, C-64, and Apple II.
It's of limited use in cached architectures like the 68030, but it would
work fine with, say, the 68000, 68008, or 68010; but by that time, self-
modifying code was "out of fashion" (plus the 680x0 instruction set is
so much richer than the 6502 that there's much less need to try it).
-ethan
--
Ethan Dicks, A-130-S Current South Pole Weather at 28-Sep-2004 04:20 Z
South Pole Station
PSC 468 Box 400 Temp -48.7 F (-44.9 C) Windchill -90.5 F (-68.09 C)
APO AP 96598 Wind 23.5 kts Grid 344 Barometer 683.5 mb (10496. ft)
Ethan.Dicks(a)amanda.spole.gov
http://penguincentral.com/penguincentral.html