Echelon Neuron Instrukcja Użytkownika Strona 189

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 237
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 188
Stack Transformation: (a(2), b(2) -- max(a(2),b(2)))
Location: Near
Registers Affected: None
Example:
This example gets the maximum of -8 and 2.
pushd #d’2 ; (d’2, 0)
pushd #@lb(-d’8) ; (-d’8, -d’1, d’2, 0)
call _max16s ; (d’2, 0)
_max8 (Maximum Value, 8 Bit)
This function computes the maximum of two unsigned integers.
Stack Transformation: (a, b -- max(a,b))
Location: Near
Registers Affected: None
Example:
This example gets the maximum of 8 and 2.
pushs #d’2 ; (d’2)
push #d’8 ; (d’8, d’2)
call _max8 ; (d’8)
_max8s (Maximum Signed Value, 8 Bit)
This function computes the maximum of two signed integers.
Stack Transformation: (a, b -- max(a,b))
Location: Near
Registers Affected: None
Example:
This example gets the maximum of -8 and 2.
pushs #d’2 ; (d’2)
push #@lb(-d’8) ; (-d’8, d’2)
call _max8s ; (d’2)
Neuron Assembly Language Reference 179
Przeglądanie stron 188
1 2 ... 184 185 186 187 188 189 190 191 192 193 194 ... 236 237

Komentarze do niniejszej Instrukcji

Brak uwag