Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!rpi!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.arch Subject: Re: Self-modifying code Summary: Oh lord, I am a sinner! Message-ID: <1318@crdos1.crd.ge.COM> Date: 23 Oct 89 12:56:44 GMT References: <480@gp.govt.nz> <6481@pt.cs.cmu.edu> <9175@etana.tut.fi> <12288@cit-vax.Caltech.Edu> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: GE Corp R&D Center Lines: 20 I was feeling smug about not having written any self modifying code in years when I remembered that I HAD written a program which modifies the o/s in memory. It seems that people were posting patches for every version of DOS known to allow ^W and ^U to work as they do in UNIX. I wrote a small program to search the core image, find the location for the patch and the patch area, and apply the fix. This avoids having a hacked version of the the o/s on a disk, which always worries people in these virus ridden days. It was called CTLENABL, and works on DOS 2.0-4.0. DOS users run it in their autoexec, usually. Now if DOS only included the source... -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon