Echelon Neuron Manual de usuario Pagina 165

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 237
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 164
RES (Reserve Uninitialized Memory)
The RES directive reserves a block of memory for uninitialized data.
See also DATA.B (Reserve Initialized Memory).
Syntax:
The RES directive requires a constant expression argument. A label is optional.
RES const_expr
label RES const_expr
The const_expr argument designates the number of bytes to reserve as an
uninitialized data block.
Although the allocated data is uninitialized, the Neuron Chip’s and Smart
Transceiver’s system firmware always clears all RAM to zero as part of the
power-up sequence. Thus, RAM variables do need not to be explicitly initialized
to zero.
Example:
The following example reserves space for a two-byte global variable in the
RAMFAR segment:
SEG RAMFAR
ORG
APEXP %globalVar
%globalVar RES d’2
Neuron Assembly Language Reference 155
Vista de pagina 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 236 237

Comentarios a estos manuales

Sin comentarios