From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: f7344,9d5e1d36489fe2af X-Google-Attributes: gidf7344,public X-Google-Thread: fd705,87b7d570508d0b41 X-Google-Attributes: gidfd705,public X-Google-Thread: 1164f8,87b7d570508d0b41 X-Google-Attributes: gid1164f8,public From: pechtcha*@*vaxa.crc.mssm.edu (Alexandre Pechtchanski) Subject: Re: CDC-6600 Date: 1997/01/17 Message-ID: <5boitf$dis@news.cuny.edu>#1/1 X-Deja-AN: 210693795 references: <1E061566A2E@orchid.le.ac.uk> <32CBACD3.2AC0@videotron.ca> <5bjd8q$gs2@tst.hk.super.net> <5blac1$bnq@news-central.tiac.net> <5blln1$20lo@ausnews.austin.ibm.com> <4ky3ykOJGjMC084yn@world.std.com> <32ec9c34.617565772@news.sci.fi> organization: Mt. Sinai School of Medicine newsgroups: comp.os.vms,comp.sys.dec,alt.folklore.computers keinanen@sci.fi (Paul Kein�nen) wrote: >moroney@world.std.com (Michael Moroney) wrote: >>Another interesting feature of this machine was no stack. Also subroutines >>were implemented such that the HARDWARE performed self-modifying code! >>(The first word of a subroutine was left blank and the subroutine call >>instruction wrote a Branch to the instruction after the subroutine call into >>this cell! The subroutine "returned" by branching to this cell!) >The 16 bit Honeywell DDP516 used a similar trick. The processor stored >the return address at the first word of the subroutine. Return from >subroutine was done by performing an indirect jump through this word. As did PDP-8. So the calling sequence was JSR subroutine number of parameters parameter 1 . . . parameter n and in subroutine itself it fetched indirectly through the first word of subroutine until all parameters are processed. BTW, JSR stands for Jump and Save Return address, IIRC. I believe PDP-11 has similar mechanism even so it has stack. [fix reply-to address before replying - I'm sick and tired of junk e-mail] Alexandre Pechtchanski, GCRC system manager Mt.Sinai School of Medicine, NY