Echelon Neuron Manual de usuario Pagina 201

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 237
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 200
Stack Transformation: (a(2), b -- a(2)>>b)
Location: Near
Registers Affected: None
Example:
This example shifts 16 right 2.
pushs #d’2 ; (d’2)
pushd #d’16 ; (d’16, 0, d’2)
call _r_shift16 ; (d’4, 0)
_r_shift16s (Right Shift Signed, 16 Bit)
This function shifts a signed 16-bit integer right. b must be in the range 0..7.
Stack Transformation: (a(2), b -- a(2)>>b)
Location: Near
Registers Affected: None
Example:
This example shifts -16 right 2.
pushs #d’2 ; (d’2)
pushd #-d’16 ; (-d’16, -d’1, d’2)
call _r_shift16s ; (-d’4, -d’1)
_r_shift8 (Right Shift, 8 Bit)
This function shifts an unsigned integer right. b must be in the range 0..7.
Stack Transformation: (a, b -- a>>b)
Location: Near
Registers Affected: None
Example:
This example shifts 16 right 2.
pushs #d’2 ; (d’2)
push #d’16 ; (d’16, d’2)
call _r_shift8 ; (d’4)
_r_shift8_<n> (Right Shift <n>, 8 Bit)
This function shifts an unsigned integer right. n must be in the range 3..7.
Neuron Assembly Language Reference 191
Vista de pagina 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 236 237

Comentarios a estos manuales

Sin comentarios