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