Arm VERSION 1.2 Instrukcja Użytkownika Strona 289

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 360
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 288
Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All rights reserved. 7-7
7.2.3 SETA, SETL, and SETS
The
SETA
directive sets the value of a local or global arithmetic variable.
The
SETL
directive sets the value of a local or global logical variable.
The
SETS
directive sets the value of a local or global string variable.
Syntax
variable <setx> expr
where:
<setx>
is one of
SETA
,
SETL
, or
SETS
.
variable
is the name of a variable declared by a
GBLA
,
GBLL
,
GBLS
,
LCLA
,
LCLL
, or
LCLS
directive.
expr
is an expression, which is:
numeric, for
SETA
(see Numeric expressions on page 3-20)
logical, for
SETL
(see Logical expressions on page 3-23)
string, for
SETS
(see String expressions on page 3-19).
Usage
You must declare
variable
using a global or local declaration directive before using one
of these directives. See GBLA, GBLL, and GBLS on page 7-4 and LCLA, LCLL, and
LCLS on page 7-6 for more information.
You can also predefine variable names on the command line. See Command syntax on
page 3-2 for more information.
Examples
GBLA VersionNumber
VersionNumber SETA 21
GBLL Debug
Debug SETL {TRUE}
GBLS VersionString
VersionString SETS "Version 1.0"
Przeglądanie stron 288
1 2 ... 284 285 286 287 288 289 290 291 292 293 294 ... 359 360

Komentarze do niniejszej Instrukcji

Brak uwag