Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mitel!sce!cassel From: cassel@sce.carleton.ca (Ron Casselman) Newsgroups: comp.arch Subject: Re: Self-modifying code Message-ID: <672@sce.carleton.ca> Date: 12 Oct 89 17:47:45 GMT References: <6481@pt.cs.cmu.edu> <9175@etana.tut.fi> <1619@atanasoff.cs.iastate.edu> Reply-To: cassel@sce.UUCP (Ron Casselman) Organization: Systems Eng., Carleton Univ., Ottawa, Canada Lines: 9 I seem to remember a piece of self-modifying code that used to run on CP/M. I remember it because I had to disassemble it as an assignment for a course in systems software. The program would copy itself to a different part of memory and change all address references as it did so. It would then load a second program into the original location. (all programs under CP/M started at a fixed location). The second program would then begin to run. Sorry I cannot remember any more details as to the purpose of this self-modifying code.