Echelon Neuron Manuale Utente Pagina 165

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 237
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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
Vedere la pagina 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 236 237

Commenti su questo manuale

Nessun commento