Echelon Neuron Instrukcja Użytkownika Strona 201

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 237
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 236 237

Komentarze do niniejszej Instrukcji

Brak uwag