typo in sign for LTH - thanks Rostiger!
This commit is contained in:
parent
73718267c8
commit
5ef0c556dc
|
@ -142,7 +142,7 @@ uxntal tiene cuatro instrucciones para comparar los dos primeros elementos de la
|
|||
* EQU: empuja 01 hacia abajo en la pila si los dos elementos superiores de la pila son iguales, o empuja 00 en caso contrario ( a b -- a==b )
|
||||
* NEQ: empuja 01 hacia abajo en la pila si los dos elementos superiores de la pila no son iguales, o empuja 00 en caso contrario ( a b -- a!=b )
|
||||
* GTH: empuja 01 hacia abajo en la pila si el primer elemento es mayor que el segundo, o empuja 00 en caso contrario ( a b -- a>b )
|
||||
* LTH: empuja 01 hacia abajo en la pila si el primer elemento es menor que el segundo, o empuja 00 en caso contrario ( a b -- a>b )
|
||||
* LTH: empuja 01 hacia abajo en la pila si el primer elemento es menor que el segundo, o empuja 00 en caso contrario ( a b -- a<b )
|
||||
|
||||
podemos pensar en los resultados empujados por estas instrucciones como banderas booleanas: son 01 si la comparación fue verdadera y son 00 si fue falsa.
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ uxntal has four instructions for comparing the top two elements from the stack:
|
|||
* EQU: push 01 down into the stack if the top two elements of the stack are equal, or push 00 otherwise ( a b -- a==b )
|
||||
* NEQ: push 01 down into the stack if the top two elements of the stack are not equal, or push 00 otherwise ( a b -- a!=b )
|
||||
* GTH: push 01 down into the stack if the first element is greater than the second, or push 00 otherwise ( a b -- a>b )
|
||||
* LTH: push 01 down into the stack if the first element is less than the second, or push 00 otherwise ( a b -- a>b )
|
||||
* LTH: push 01 down into the stack if the first element is less than the second, or push 00 otherwise ( a b -- a<b )
|
||||
|
||||
we can think of the results pushed by these instructions as boolean flags: they are 01 if the comparison was true, and they are 00 if it was false.
|
||||
|
||||
|
|
Loading…
Reference in New Issue