Else, Elseif, Condit – Freescale Semiconductor Microcontrollers User Manual

Page 778

Advertising
background image

Debugger Engine Commands

Debugger Commands

778

Microcontrollers Debugger Manual

Example:

in>define a=0x12

in>define b=0x10

in>e a+b

in>=34

The addition operation of the two previously defined variables a and b is evaluated
and the result is displayed in the Command Line window. The output can be
redirected to a file by using the LF command (refer to

LF

and

LOG

command

descriptions).

ELSE

The ELSE keyword is associated with the

LF

command.

Usage

ELSE

Components

Debugger engine.

Example:

if CUR_TARGET == 1000 /* Condition */

set sim

else set bdi /* Other Condition */

ELSEIF

The ELSEIF keyword is associated with the

IF

command.

Usage

ELSEIF condition

where condition is same as defined in C language.

Components

Debugger engine.

Advertising