From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,aaad7b10c7be4d20 X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.182.77 with SMTP id cb13mr1457042qab.5.1343316742719; Thu, 26 Jul 2012 08:32:22 -0700 (PDT) Received: by 10.66.85.231 with SMTP id k7mr1819863paz.38.1343316742063; Thu, 26 Jul 2012 08:32:22 -0700 (PDT) Path: a15ni113198934qag.0!nntp.google.com!q21no6601711qas.0!news-out.google.com!b9ni65120068pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-peer1!btnet!zen.net.uk!hamilton.zen.co.uk!xlned.com!feeder5.xlned.com!ramfeed-2.ams.xsnews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news.swapon.de!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: comp.sys.dec Subject: Re: I'm looking for an MFPR example Date: Mon, 23 Jul 2012 22:56:03 +0200 Organization: Update Computer Club Message-ID: References: <2730fbea-7d3e-4525-898b-1e12043f540b@googlegroups.com> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1343076963 7459 178.83.31.172 (23 Jul 2012 20:56:03 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Mon, 23 Jul 2012 20:56:03 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <2730fbea-7d3e-4525-898b-1e12043f540b@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-07-23 07:42, mikestramba@gmail.com wrote: > Hi all, > > I've been playing with OPENVMS on SIMH, and am wondering what the MFPR instruction does during the ROM boot code? > > The MACRO manual explanation is not very helpful > > I thought from reading it, that it would (in "non (VM) mode, as I assume the SIMH vax is on "power on"), behave just like a MOVL instruction ? > > But apparently / obviously, these are not the same thing : (when I EXAMINE 2000) Of course it's not the same thing! MFPR - Move From Processor Register. How could that ever be the same as a MOVL??? > MOVL #2000,R1 > MFPR #2A,0(R1) So, move from processor register 2A to wherever R1 points to. Note: *internal* processor register. Read the processor manual for that specific CPU to find out what processor internal registers there are. :-) > MOVL #2A,0(R1) > > "If the processor is in virtual machine (VM) mode, and the virtual machine is > in kernel mode, then a VM-emulation trap is taken. The destination operand > is replaced by the contents of the processor register specified by procreg. The > procreg operand is a longword that contains the processor register number. > Execution may have register-speci?c side effects. Eh... Why are you reading about virtual machine behavior? That is so outside the world here that it's totally not relevant, helpful or useful... :-) > (for manual writers) > > USE EXAMPLES !! > Well, if anyone had actually ever implemented virtual machines on VAXen, then maybe some examples might have come about. For now, read the manual for the specific processor you are writing the code for, to find more specific information about the internal processor registers, since lots of this stuff is processor specific. 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