Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!ll-xn!mit-eddie!uw-beaver!cornell!rochester!pt.cs.cmu.edu!k.gp.cs.cmu.edu!lindsay From: lindsay@k.gp.cs.cmu.edu (Donald Lindsay) Newsgroups: comp.arch Subject: Re: Self Modifying Code Keywords: writing return address to routine front Message-ID: <2317@pt.cs.cmu.edu> Date: 19 Jul 88 22:56:13 GMT References: <5254@june.cs.washington.edu> <76700032@p.cs.uiuc.edu> <361@scolex> <835@l.cc.purdue.edu> <7362@ico.ISC.COM> Sender: netnews@pt.cs.cmu.edu Organization: Carnegie-Mellon University, CS/RI Lines: 19 The idea of storing a return address into the front word of a subroutine was widespread. It would be nice to think that this rank stupidity died out long ago, but in fact the HP 2100 series worked that way. (I believe it went off the market in the 1980's.) Issues like ROM and reentrance weren't the only headaches. How to write a compiler? I have in my possesion the assembler source for an HP2100 Algol 60 compiler. Now, that's some real macho hacking. Especially with no subtract instruction, and about 2 registers .. -- Don lindsay@k.gp.cs.cmu.edu CMU Computer Science "Imitation is not the sincerest form of flattery. Payments are." - a British artist who died penniless before copyright law.