<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
<title>SPARC Architectural Model: User Commands
</title>
<body bgcolor=
"#FFFFFF" LANG=
"en-US">
<div STYLE=
"margin-bottom: 0cm"></div>
%
<I>REG
</I> - READ REGISTER BY NAME
This operator returns the value of the register
<i>reg
</i> for the current
cpu specified by
<a href=
"cmd_pselect.html">pselect
</a>.
The current cwp register, global level, and trap level are
used to access windowed registers, global registers, and trap
The
<a href=
"cmd_read-reg.html">read-reg
</a> command provides flags
to access registers using a different cpu, register window,
global level or trap level.
Use
<a href=
"cmd_cpuregs.html">cpuregs
</a> to list
the supported register names.
Returns the value of a specified register.
<ul><a href=
"cmd_pselect.html">pselect
</a></ul>
<ul><a href=
"cmd_read-reg.html">read-reg
</a></ul>
<ul><a href=
"cmd_write-reg.html">write-reg
</a></ul>
<ul><a href=
"cmd_pregs.html">pregs
</a></ul>
<ul><a href=
"cmd_cpuregs.html">cpuregs
</a></ul>