Echelon Neuron Manuel d'utilisateur Page 182

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 237
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 181
This example acquires the semaphore, then modifies a global variable, then
releases the semaphore.
import io_iaccess, io_irelease
... ; ( data -- )
callf io_iaccess ; ( data -- )
pop globalVar ; ( -- )
callf io_irelease ; ( -- )
_l_shift16 (Left Shift, 16 Bit)
This function shifts an unsigned 16-bit integer left. 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 left 2.
pushs #d’2 ; (d’2)
pushd #d’16 ; (d’16, 0, d’2)
call _l_shift16 ; (d’64, 0)
_l_shift16s (Left Shift Signed, 16 Bit)
This function shifts a signed 16-bit integer left. 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 left 2.
pushs #d’2 ; (d’2)
pushd #d’16 ; (d’16, 0, d’2)
call _l_shift16s ; (d’64, 0)
_l_shift8 (Left Shift, 8 Bit)
This function shifts an unsigned integer left. b must be in the range 0..7.
Stack Transformation: (a, b -- a<<b)
Location: Near
172 System-Provided Functions
Vue de la page 181
1 2 ... 177 178 179 180 181 182 183 184 185 186 187 ... 236 237

Commentaires sur ces manuels

Pas de commentaire