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.
Examine Symbols (Example)
◄Summary► ◄Description► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
XL
[BP+0004] int argc = 1
[BP+0006] char * * argv = 0x2f:0x1510
[BP-0002] int i = 20
SI register int k = 7
[BP-0078] struct cat item0 = {item1=0, item2=0, dog=0x2f:0x1476}
[BP-0070] struct cow moo = {c1=11, c2=22, c3=36, c4=16}
[BP-0008] char * wiz = 0x2f:0x1514
[BP-0080] int duck = 0
DI register int j = 83
The example above shows the use of the Examine Symbols (XL)
command when the currently executing function has many local
variables. The variables k and j are register variables assigned
to the registers SI and DI, respectively.
The other variables are located on the stack; XL shows the
displacement of each variable from the BP register, which holds
the value of the stack pointer (SP) at the time of entry into the
function. Parameters declared as register variables appear twice:
on the stack (as an offset from BP), and in the SI or DI register.
-♦-