Endfor, Endif – Freescale Semiconductor Microcontrollers User Manual

Page 780

Advertising
background image

Debugger Engine Commands

Debugger Commands

780

Microcontrollers Debugger Manual

ENDFOR

The ENDFOR keyword is associated with the

FOR

command.

Usage

ENDFOR

Components

Debugger engine.

Example:

for i = 1..5

define multi5 = 5 * i

endfor

After the ENDFOR instruction, i is equal to 5.

ENDIF

The ENDIF keyword is associated with the

IF

command.

Usage

ENDIF

Components

Debugger engine.

Example:

if (CUR_CPU == 12)

DW &counter

else

DB &counter

endif

Advertising