Echelon Neuron Manual do Utilizador Página 183

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 237
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 182
Registers Affected: None
Example:
This example shifts 16 left 2.
pushs #d’2 ; (d’2)
push #d’16 ; (d’16, d’2)
call _l_shift8 ; (d’64)
_l_shift8s (Left Shift Signed, 8 Bit)
This function shifts a signed integer left. b must be in the range 0..7.
Stack Transformation: (a, b -- a<<b)
Location: Near
Registers Affected: None
Example:
This example shifts 16 left 2.
pushs #d’2 ; (d’2)
push #d’16 ; (d’16, d’2)
call _l_shift8s ; (d’64)
_l_shift8_<n> (Left Shift by <n>, 8 Bit)
This function shifts an integer left. n must be in the range 3..7.
Stack Transformation: (a -- a<<n)
Location: Near
Registers Affected: None
Example:
This example shifts 16 left 3.
push #d’16 ; (d’16)
call _l_shift8_3 ; (d’128)
_ldP0_fetchl (Load P0 from Fetched Location)
This function takes a 16-bit address, loads two bytes from that location and
returns them.
Stack Transformation: (address(2) -- [address(2)+1], [address(2)])
Neuron Assembly Language Reference 173
Vista de página 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 236 237

Comentários a estes Manuais

Sem comentários