
Hitachi Embedded Workshop User Manual
207
4.7.2
Expanding a Bit Register
If a register is used as a set of flags at the bit level for the control of state, its one-character symbol rather than its
state indicate each bit. Double-click on the register’s name to display the [Edit Register] dialog box and switch
each bit on or off. Checking the check box for any bit specifies it as holding a 1, while removing the check
specifies it as a 0.
Figure 4.33 Expanding a Bit Register
4.7.3
Modifying Register Contents
To change a register's contents, open the [Edit Register] dialog box in one of the following methods:
Double-click the register you want to change.
Select the register you want to change, and choose [Edit…] from the pop-up menu.
Figure 4.34 Edit Register Dialog Box
You can enter a number or C/C++ expression in the [Value] field. You can choose whether to modify the whole
register contents, a masked area, floating or flag bits by selecting an option from the drop-down list (the contents
of this list depend on the CPU model and selected register).
When you have entered the new number or expression, click the [OK] button or press the Enter key; the dialog
box closes and the new value is written into the register.
4.7.4
Using Register Contents
Use the value contained in a CPU register by specifying the register name prefixed by the “#” character, e.g.:
#R1, #PC, #R6L, or #ER3 when you are entering a value elsewhere in the HEW, for example when displaying a
specified address in the [Disassembly] or [Memory] windows.
4.8
Executing Your Program
This section describes how you can execute your program's code. You will learn how to do this by either running
your program continuously or stepping single or multiple instructions at a time.