Arm VERSION 1.2 Manual do Utilizador Página 287

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 360
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 286
Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All rights reserved. 7-5
Examples
Example 7-1 declares a variable
objectsize
, sets the value of
objectsize
to
0xFF
, and
then uses it later in a SPACE directive.
Example 7-1
GBLA objectsize ; declare the variable name
objectsize SETA 0xFF ; set its value
.
. ; other code
.
SPACE objectsize ; quote the variable
Example 7-2 shows how to declare and set a variable when you invoke
armasm
. Use this
when you need to set the value of a variable at assembly time.
-pd
is a synonym for
-predefine
.
Example 7-2
armasm -pd "objectsize SETA 0xFF" -o objectfile sourcefile
Vista de página 286
1 2 ... 282 283 284 285 286 287 288 289 290 291 292 ... 359 360

Comentários a estes Manuais

Sem comentários