Addresses
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Syntax: [[segment|register]:] offset
(type *)constant
Expressions in CodeView can include both full and partial
addresses.
A full address has the form
segment:offset
where both <segment> and <offset> are expressions. Full
addresses are seldom necessary in source-level debugging,
although they may be convenient for referring to addresses
outside the program, such as BIOS or DOS.
A partial address has only an <offset>; the <segment> is
determined by the command in which the address appears. Commands
that refer to data (Dump, Enter) use the segment given in the DS
register. Commands that refer to code (Assemble, Breakpoint Set,
Go, Unassemble, and View) use the segment given in the CS register.
The Display Expression (?) and Add Watch Expression (W?) commands
interpret numeric arguments as constants rather than offsets.
However, if you cast the argument to a pointer type, as in
"W? (char *)0"
the argument is treated as an offset from DS.
See: ◄Dump (D) Command-Window Commands►
◄Enter Commands (E) Command-Window Command►
◄Assemble (A) Command-Window Command►
◄Set Breakpoint (BP) Command-Window Command►
◄Watch Menu: Set Breakpoint Command►
◄Go (G) Command-Window Command►
◄Unassemble (U) Command-Window Command►
◄Set Watch Expression (W?) Command-Window Command►
◄Display Expression (?) Command-Window Command►
-♦-