GRMON3-UM
June 2019, Version 3.1.0
178 www.cobham.com/gaisler
75. reg - syntax
reg - Show or set integer registers
SYNOPSIS
reg ?name ...? ?name value ...?
DESCRIPTION
reg ?name ...? ?name value ...? ?cpu#?
Show or set integer registers of the current CPU, or the CPU specified by cpu#. If no register arguments
are given then the command will print the current window and the special purpose registers. The register
arguments can to both set and show each individual register. If a register name is followed by a value, it
will be set else it will only be shown.
Valid window register names are:
Registers
r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23, r24,
r25, r26, r27, r28, r29, r30, r31
Global registers
g0, g1, g2, g3, g4, g5, g6, g7
Current window in registers
i0, i1, i2, i3, i4, i5, i6, i7
Current window local registers
l0, l1, l2, l3, l4, l5, l6, l7
Current window out registers
o0, o1, o2, o3, o4, o5, o6, o7
Special purpose registers
sp, fp
Windows (N is the number of implemented windows)
w0, w1 ... wN
Single register from a window
w1l3 w1o3 w2i5 etc.
In addition the following non-window related registers are also valid:
Floating point registers
f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24,
f25, f26, f27, f28, f29, f30, f31
Floating point registers (double precision)
d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15,
Special purpose registers
psr, tbr, wim, y, pc, npc, fsr
Application specific registers
asr16, asr17, asr18
RETURN VALUE
Upon successful completion, command reg returns a list of the requested register values. When register windows
are requested, then nested list of all registers will be returned. If a float/double is requested, then a tuple of the
decimal and the binary value is returned.
EXAMPLE
Display the current window and special purpose registers
grmon3> reg
TCL returns:
{0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0} -213905184
2 1073741824 0 1073741824 1073741828