Unformatted text preview: B.3 INDIVIDUAL COMMANDS 599
Here are some examples:
R Display the contents of all registers.
R IP Display the contents of IP and prompt for a new value.
R CX Same (for the CX register).
R F Display all ﬂags and prompt for a new ﬂag value. Once the R F command has displayed the ﬂags, you can change any single ﬂag by typing its
new state. For example, we set the Zero ﬂag by typing the following two commands: R F [Press Enter] ZR The following is a sample register display (all values are in hexadecimal): Data registers Stack oInter
Base ointer Source Index
Destination index BP = 0000 SI: 0000 DI = 0000 i ES: 1000 SS=1CCO CS=1CCO IP= 0100 NV UP DI NZ NA PO NC
Code segment AX = 0000 BX = 0000 CX = 0000 DX = 0000 SP = FFEE DS =1CCO Stack segment
Data segment The complete set of possible ﬂag mnemonics in Debug (ordered from left to right) are as
follows: Set Clear 0V = Overﬂow NV = No Overﬂow DN = Direction Down UP = Direction Up E1 = Interrupts Enabled D1 = Interrupts Disabled
NG = Sign Flag negative PL = Sign Flag positive
ZR = Zero NZ = Not Zero AC = Auxiliary Carry NA = No Auxiliary Carry
P0 = Odd Parity PE = Even Parity CY=Carry NC=N0 Carry ...
View Full Document
- Spring '11