🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #2573

Re: Self-modifying code

#2573
From: Ron Casselman
Date: Thu, 12 Oct 1989 17:47
9 lines
1000 bytes
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.
 
Technical Details
Message-ID: <672@sce.carleton.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mitel!sce!cassel
References: <6481@pt.cs.cmu.edu> <9175@etana.tut.fi> <1619@atanasoff.cs.iastate.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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