Addresses

Syntax

[[context]]@linenumber
[[context]][[segment:]]offset
register:offset
[[context]]function
[[context]]symbol

Description

If only an offset is specified, the segment is determined by the command in which the address appears. Commands that refer to data (Memory Dump, Memory Enter) use the segment in the DS register. Commands that refer to code (Assemble, Breakpoint Set, Go, Unassemble, and View Source) use the segment in the CS register.

The Display Expression (?) and Add Watch Expression (W?) commands interpret numeric arguments as constants rather than as offsets. However, if you cast the argument to a pointer, as in

W? (char *)0

the argument is treated as an offset from DS.