Echelon Neuron Uživatelský manuál Strana 185

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 237
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 236 237

Komentáře k této Příručce

Žádné komentáře