Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!ginosko!brutus.cs.uiuc.edu!apple!sun-barr!lll-winken!arisia!sgi!shinobu!odin!putter!bean From: bean@putter.sgi.com (Bean Anderson) Newsgroups: comp.arch Subject: Re: Self-modifying code Message-ID: <937@odin.SGI.COM> Date: 12 Oct 89 20:23:17 GMT References: <16557@siemens.siemens.com> <6481@pt.cs.cmu.edu> <9175@etana.tut.fi> Sender: news@odin.SGI.COM Reply-To: bean@putter.sgi.com (Bean Anderson) Organization: Silicon Graphics, Inc. Lines: 21 In article <16557@siemens.siemens.com>, fwb@demon.siemens.com (Frederic W. Brehm) writes: > In article <9175@etana.tut.fi> pl@etana.tut.fi (Lehtinen Pertti) writes: > > I've been lately wondering if there is any architecture > > with possibility to execute instruction indirectly. > >... > > I mean something like: > > > > exec r0 ; execute instructio in register r0 > >... > > Does anyone know? > The HP300 (a discontinued machine) had an execute-top-of-stack instruction that got considerable use -- mostly because certain instructions that had immediate operands did not have corresponding instructions that had stack (or register) operands. I think the HP3000 had a similar instruction. Bean