beautypg.com

Examine (?) for expressions – Zilog Z8F0130 User Manual

Page 526

background image

Appendix D. Using the Command Processor

UM013037-1212

502

Zilog Developer Studio II – Z8 Encore!
User Manual

examine (?) for Expressions

The examine command evaluates the given expression and displays the result. It accepts
any legal expression made up of constants, program variables, and C operators. The exam-
ine command takes the following form:

? [] [] [:]

can consist of one of the following types:

short

int

[eger]

long

ascii

asciz

can consist of one of the following types:

dec

[imal]

hex

[adecimal]

oct

[al]

bin

[ary]

Omitting a or results in using the

$data_type

or

$radix

pseudo-

variable, respectively.

[:] represents the number of items to display.

The following are examples:

? x

shows the value of x using

$data_type

and

$radix

.

? ascii STR

shows the ASCII string representation of STR.

? 0x1000

shows the value of 0x1000 in the

$data_type

and

$radix

.

? *0x1000

shows the byte at address 0x1000.

? *0x1000 :25

shows 25 bytes at address 0x1000.

? L0

shows the value of register D0:0 using

$data_type

and

$radix

.

? asciz D0:0

shows the null-terminated string pointed to by the contents of register D0:0.