Echelon Neuron Manual de usuario Pagina 171

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 237
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 170
_abs8 (Absolute Value, 8 Bit)
This function returns the absolute value of a signed integer.
Stack Transformation: (a -- |a|)
Location: Near
Registers Affected: None
Example:
This example returns the absolute value of -8.
push #@lb(-d’8) ; (-d’8)
call _abs8 ; (d’8)
_add16 (Add, 16 Bit)
This function adds two 16-bit unsigned integers.
Stack Transformation: (a(2), b(2) -- a(2) + b(2))
Location: Near
Registers Affected: None
Example:
This example adds 50 to 300.
pushd #d’300 ; (d’44, 1)
pushd #d’50 ; (d’50, 0, d’44, 1)
call _add16 ; (d’94, 1)
_add16s (Add Signed, 16 Bit)
This function adds two 16-bit signed integers.
Stack Transformation: (a(2), b(2) -- a(2) + b(2))
Location: Near
Registers Affected: None
Example:
This example adds 50 to 300.
pushd #d’300 ; (d’44, 1)
pushd #d’50 ; (d’50, 0, d’44, 1)
call _add16s ; (d’94, 1)
Neuron Assembly Language Reference 161
Vista de pagina 170
1 2 ... 166 167 168 169 170 171 172 173 174 175 176 ... 236 237

Comentarios a estos manuales

Sin comentarios