Arm VERSION 1.2 Manuel d'utilisateur Page 326

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 360
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 325
Directives Reference
7-44 Copyright © 2000, 2001 ARM Limited. All rights reserved. ARM DUI 0068B
7.6 Reporting directives
This section describes the following directives:
ASSERT
generates an error message if an assertion is false during assembly.
INFO on page 7-45
generates diagnostic information during assembly.
OPT on page 7-46
sets listing options.
TTL and SUBT on page 7-48
insert titles and subtitles in listings.
7.6.1 ASSERT
The
ASSERT
directive generates an error message during the second pass of the assembly
if a given assertion is false.
Syntax
ASSERT logical-expression
where:
logical-expression
is an assertion that can evaluate to either
{TRUE}
or
{FALSE}
.
Usage
Use
ASSERT
to ensure that any necessary condition is met during assembly.
If the assertion is false an error message is generated and assembly fails.
See also INFO on page 7-45.
Example
ASSERT label1 <= label2 ; Tests if the address
; represented by label1
; is <= the address
; represented by label2.
Vue de la page 325
1 2 ... 321 322 323 324 325 326 327 328 329 330 331 ... 359 360

Commentaires sur ces manuels

Pas de commentaire