Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Change Registers
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Register Values
To change the value in a register:
1. Type the command letter R followed by the name of a register.
The register name can be any of the following: AX, BX, CX,
DX, CS, DS, SS, ES, SP, BP, SI, DI, IP, or FL (for flags). If
you have a 80386/486-based machine and the 386 option is
turned on, the register name can be one of the 32-bit
register names: EAX, EBX, ECX, EDX, ESP, EBP, ESI, or EDI.
2. CodeView displays the current value of the register and
prompts for a new value.
■ If you only want to examine the value, press ENTER.
■ If you want to change the value, type an expression
(in the current radix) for the value and press ENTER.
■ As an alternative, you can type
?registername=expression
and press ENTER.
See: ◄Register Window►
Flag Values
To change a flag value:
1. Type the command letter R followed by the letters FL.
2. The command displays the value of each flag as a
two-letter name. At the end of the list of values,
the command displays a dash (-).
3. Type the new values after the dash for the flags you wish
to change, then press ENTER.
■ You can enter flag values in any order. If you do not
enter a new value for a flag, it remains unchanged.
■ If you do not want to change any flags, press ENTER.
NOTE: If you enter an illegal flag name, CodeView displays an
error message. The flags preceding the error are changed;
flags at and following the error are not changed.
The flag values are shown below:
Flag Name Set Clear
Overflow OV NV
Direction DN UP
Interrupt EI DI
Sign NG PL
Zero ZR NZ
Auxiliary carry AC NA
Parity PE PO
Carry CY NC
See: ◄Register Window►
-♦-