Block Commands - Intel l2ICE User Manual

Integrated instrumentation and in-circuit emulation system
Table of Contents

Advertisement

The INSTR function searches a string for a substring and returns the index on which the
substring begins. As shown in the following example, the index is always in decimal.
* INSTRf' abedefghijklmti V klro')
11
For more information on string commands, see the string command entries in the PICE™
System Reference Manual.

Block Commands

A block command begins with one of the following keywords:
COUNT
DO
IF
REPEAT
A block command contains one or more FICE commands and terminates with END. All PICE
commands except EDIT, INCLUDE, HELP, and LOAD can be included within a block
command.
The DO block executes all commands. The IF, REPEAT, and COUNT blocks permit test
conditions that determine which commands are executed. The IF block conditionally selects a
group of commands. The REPEAT command executes a group of commands indefinitely or
until an exit condition occurs. The COUNT command is similar to the REPEAT command but
enables you to specify the maximum number of times the command group is executed.
A period (.) before the asterisk prompt indicates that the FICE system recognizes the begin­
ning of a block command and has not yet detected the end. The following example shows a
block command that steps through five assembly language instructions, beginning at the cur­
rent execution point, and evaluates the source-code statement number for each instruction.
* COUNT 5
- *EVAL $ LINE
• *END
The FICE system executes a block command when you press the carriage return after the END
of the outermost block.
Introduction to Using the FICE™ System
3-7

Advertisement

Table of Contents
loading

Table of Contents