Echelon Neuron Instrukcja Użytkownika Strona 165

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 237
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 236 237

Komentarze do niniejszej Instrukcji

Brak uwag