Echelon Neuron Uživatelský manuál Strana 150

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 237
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 149
EQU (Equate Symbol)
The EQU directive assigns the value of a constant expression to a symbol. The
assembler treats subsequent occurrences of the symbol as the value of the
constant expression.
Syntax:
The EQU directive requires a label and a constant expression argument.
label EQU const_expr
Example:
The following example loads TOS with the content of the general-purpose
register R0 (base page offset value 8), using the mnemonic name “R0”:
R0 EQU 8
Example APEXP ; ( -- r0)
push !R0 ; ( r0 )
ret ; return to caller
140 Neuron Assembler Directives
Zobrazit stránku 149
1 2 ... 145 146 147 148 149 150 151 152 153 154 155 ... 236 237

Komentáře k této Příručce

Žádné komentáře