From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Thread: f7344,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,gid3717dac89a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.71.MISMATCH!xlned.com!feeder3.xlned.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.os.vms Subject: Re: QBUS Prototyping Date: Tue, 19 Apr 2011 09:47:07 -0700 Organization: Update Computer Club Message-ID: References: <8265dgFs33U3@mid.individual.net> NNTP-Posting-Host: 66-146-163-2.skyriver.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1303231627 19779 66.146.163.2 (19 Apr 2011 16:47:07 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 19 Apr 2011 16:47:07 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Xref: g2news2.google.com alt.sys.pdp11:2099 comp.sys.dec:3302 comp.os.vms:42364 On 2011-04-19 08:34, Michael Moroney wrote: > Johnny Billquist writes: > >> One rumour has it that it was developed in order to extend some patent >> or something. > > I heard the same little birdie, and it certainly makes sense, to make the > instruction set unique. Someone could probably find another processor or > processors that essentially implement each of the other PDP-11 > instructions. Kind of like deliberate errors added to copyrighted maps. Yeah. >> Another would be that they were just crazy. > > That certainly would have helped! :-) >> I've not seen a single compiler use the subroutine linkage that >> explicitly makes the MARK instruction meaningful, and besides. It is not >> usable if you have split I/D space. > > I won't claim there is one, esp. if it doesn't work with split I/D space. And it won't. The idea with the MARK instruction is that it is pushed on the stack. At subroutine return, you are then supposed to jump to where the stack pointer points, and execute there, which is on the stack. This will clean up the stack, and restore PC. So stack needs to be in I-space. But for all other purposes stack is in D-space. So in short, stack needs to be in both I-space and D-space for the MARK instruction to work. So it can't be split. Pretty useless, if you ask me. And all just for making the cleaning of the stack from arguments to the function a little more streamlined. Having just an ADD #n,SP works just as fine, and do work with split I/D-space. :-) The difference being that the caller needs to clean the stack explicitly after a call, while with MARK, the caller push the MARK before calling, and the stack is cleaned as a part of the return. Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol