Register Set (Rs) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

RS
3.28 REGISTER SET
RS <reg>[<exp>][;A]
Use the RS command to display or change a single target register. The default offset register
value is always added to <exp> unless overridden by specifically including an offset register. See
the OF (offset register) command.
The ;A option is only valid when <reg> is an offset register, i.e. R0 - R7. Use the ;A option to set
<reg> as the automatic register. If R7 is specified, no <exp> is allowed (R7 cannot be changed).
See the OF (offset register) command.
EXAMPLES
CPU32Bug>RS PC 40*1000+4<CR>
PC
=00040004
CPU32Bug>
CPU32Bug>OF R4;A<CR>
R4*00000000 00000000? 4000 4FFF<CR>
CPU32Bug>RS PC 124<CR>
PC
=00004124
CPU32Bug>RS A4 32A<CR>
A4
=0000432A
CPU32Bug>RS A5 400+R7<CR>
A5
=00000400
CPU32Bug>
M68CPU32BUG/D REV 1
Register Set
Set up automatic offset register R4.
Set PC=$124+R4.
Set A4=$32A+R4.
Set A5 equal to absolute location $400
($400+R7).
3-58
DEBUG MONITOR COMMANDS
RS

Advertisement

Table of Contents
loading

Table of Contents