Arm VERSION 1.2 Instrukcja Użytkownika Strona 313

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 360
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 312
Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All rights reserved. 7-31
Examples
Example 7-3 assembles the first set of instructions if
NEWVERSION
is defined, or the
alternative set otherwise.
Example 7-3 Assembly conditional on a variable being defined
IF :DEF:NEWVERSION
; first set of instructions/directives
ELSE
; alternative set of instructions/directives
ENDIF
Invoking
armasm
as follows defines
NEWVERSION
, so the first set of instructions and
directives are assembled:
armasm -PD "NEWVERSION SETL {TRUE}" test.s
Invoking
armasm
as follows leaves
NEWVERSION
undefined, so the second set of
instructions and directives are assembled:
armasm test.s
Example 7-4 assembles the first set of instructions if
NEWVERSION
has the value
{TRUE}
,
or the alternative set otherwise.
Example 7-4 Assembly conditional on a variable being defined
IF NEWVERSION = {TRUE}
; first set of instructions/directives
ELSE
; alternative set of instructions/directives
ENDIF
Invoking
armasm
as follows causes the first set of instructions and directives to be
assembled:
armasm -PD "NEWVERSION SETL {TRUE}" test.s
Invoking
armasm
as follows causes the second set of instructions and directives to be
assembled:
armasm -PD "NEWVERSION SETL {FALSE}" test.s
Przeglądanie stron 312
1 2 ... 308 309 310 311 312 313 314 315 316 317 318 ... 359 360

Komentarze do niniejszej Instrukcji

Brak uwag