M32C PC4701 Emulator Debugger V.1.03 User`s Manual


Add to my manuals
296 Pages

advertisement

M32C PC4701 Emulator Debugger V.1.03 User`s Manual | Manualzz

10 C/C++ Expressions

10.1 Writing C/C++ Expressions

You can use C/C++ expressions consisting of the tokens shown below for registering C watchpoints and for specifying the values to be assigned to C watchpoints.

Token

Immediate values

Scope

Mathematical operators

Pointers

Reference

Sign inversion

Member reference using dot operator

Member reference using arrow

Pointers to Members

Parentheses

Arrays

Casting to basic types

Casting to typedef types

Variable names and function names

Character constants

Character string literals

Example

10, 0x0a, 012, 1.12, 1.0E+3

::name, classname::member

+, -, *, /

*, **, ...

&

-

Object.Member

Pointer->Member, this->M mber

Ob ct.*var, Pointer->*var

(, )

Array[2], DArray[2] [3] , ...

(int), (char*), (unsigned long *), ...

(DWORD), (ENUM), ...

var, i, j, func, ...

'A', 'b', ...

"abcdef", "I am a boy.", ...

10.1.1 Immediate Values

You can use hexadecimals, decimals, octals as immediate values. Values starting with 0x are processed as hexadecimals, those with 0 as octals, and those without either prefix as decimals.

Floating-point numbers can also be used to assign values to variables.

Notes

• You cannot register only immediate values as C watchpoints.

• The immediate value is effective only when it is used in C/C++ language expressions that specify

C/C++ watchpoints or when it is used to specify the value to be assigned to those expressions.

When using floating-point numbers, operation cannot be performed on an expression like 1.0+2.0.

253

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents