Arm VERSION 1.2 Instrukcja Użytkownika Strona 312

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 360
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 311
Directives Reference
7-30 Copyright © 2000, 2001 ARM Limited. All rights reserved. ARM DUI 0068B
7.4.4 IF, ELSE, and ENDIF
The
IF
directive introduces a condition that is used to decide whether to assemble a
sequence of instructions and/or directives.
[
is a synonym for
IF
.
The
ELSE
directive marks the beginning of a sequence of instructions and/or directives
that you want to be assembled if the preceding condition fails.
|
is a synonym for
ELSE
.
The
ENDIF
directive marks the end of a sequence of instructions and/or directives that
you want to be conditionally assembled.
]
is a synonym for
ENDIF
.
Syntax
IF logical-expression
...
{ELSE
...}
ENDIF
where:
logical-expression
is an expression that evaluates to either
{TRUE}
or
{FALSE}
.
See Relational operators on page 3-30.
Usage
Use
IF
with
ENDIF
, and optionally with
ELSE
, for sequences of instructions and/or
directives that are only to be assembled or acted on under a specified condition.
IF...ENDIF
conditions can be nested (see Nesting directives on page 7-26).
Przeglądanie stron 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 359 360

Komentarze do niniejszej Instrukcji

Brak uwag