Echelon Neuron Manuel d'utilisateur Page 185

  • 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 184
Stack Transformation: (a, b -- a<b)
Location: Near
Registers Affected: None
Example:
This example determines if d’10 < d’20.
push #d’20 ; (d’20)
push #d’10 ; (d’10, d’20)
call _less8 ; (1)
_less8s (Less Than Signed, 8 Bit)
This function returns a < b, where a and b are signed.
Stack Transformation: (a, b -- a<b)
Location: Near
Registers Affected: None
Example:
This example determines if d’10 < -d’10.
push #@lb(-d’10) ; (-d’10)
push #d’10 ; (d’10, -d’10)
call _less8s ; (0)
_log16 (Logical Value, 16 Bit)
This function returns the logical representation of a 16-bit value. If the variable
is non-zero, true is returned, otherwise false.
Stack Transformation: (a(2) a?1:0)
Location: Near
Registers Affected: None
Example:
This example returns the logical value for 5.
pushd #d’5 ; (d’5, 0)
call _log16 ; (1)
_log8 (Logical Value, 8 Bit)
This function returns the logical representation of a value. If the variable is non-
zero, true is returned, otherwise false.
Neuron Assembly Language Reference 175
Vue de la page 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 236 237

Commentaires sur ces manuels

Pas de commentaire