🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #2563

Re: Self-modifying code

#2563
From: Sandy Mustard
Date: Fri, 13 Oct 1989 00:24
24 lines
1448 bytes
In article <1619@atanasoff.cs.iastate.edu>, hascall@atanasoff.cs.iastate.edu (John Hascall) writes:
> In article <9175@etana.tut.fi> pl@etana.tut.fi (Lehtinen Pertti) writes:
> 	    Well, how about the IBM 370 series.  (not exactly modern, I know)
> 	    If I recall correctly:
> 		       EX    mask,location
> 		       <next instruction>
>             location:  <target instruction>
> 	    Fetches the target instruction at "location" and ORs "mask" with
> 	    (some of) the target instruction and then executes the resulting
> 	    instruction.  Control resumes at "next instruction".
> John Hascall
> ISU Comp Center


To quote the 370/XA Principles of Operations manual,

"When the target instruction is a successful branching instruction, the
instruction address of the current PSW is replaced by the branch address
specified in the target instruction." 

thus control may resume at the target address of the branch instruction.

Sandy Mustard
mustard@sdrc.UU.NET
Technical Details
Message-ID: <855@sdrc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!usc!ginosko!uunet!sdrc!mustard
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!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!usc!ginosko!uunet!sdrc!mustard
From: mustard@sdrc.UUCP (Sandy Mustard)
Newsgroups: comp.arch
Subject: Re: Self-modifying code
Message-ID: <855@sdrc.UUCP>
Date: 13 Oct 89 00:24:10 GMT
References: <6481@pt.cs.cmu.edu> <9175@etana.tut.fi> <1619@atanasoff.cs.iastate.edu>
Organization: Structural Dynamics Research Corp., Cincinnati
Lines: 24