Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: I'm looking for an MFPR example
Date: Mon, 23 Jul 2012 22:56:03 +0200	[thread overview]
Message-ID: <jukdp3$793$2@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <2730fbea-7d3e-4525-898b-1e12043f540b@googlegroups.com>

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... :-)

> <rant on> (for manual writers)
>
> USE EXAMPLES !!
> </rant off>

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


  parent reply	other threads:[~2012-07-26 15:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-23  5:42 I'm looking for an MFPR example mikestramba
2012-07-23  8:34 ` mstram
2012-07-23 21:51   ` Bob Koehler
2012-07-23 20:56 ` Johnny Billquist [this message]
2012-07-23 21:00   ` Bob Eager
2012-07-24  8:23     ` Johnny Billquist
2012-07-24  9:45       ` Bob Eager
2012-07-31 13:54         ` Johnny Billquist
2012-07-24 21:00     ` Bob Koehler
2012-07-24 21:17       ` Bob Eager
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox