make strncmp direction safe
[rrq/rrqforth.git] / adoc / p_equal.adoc
index d15a8e7a6953b94625c9b586bc98ee47a0b0e5d7..20829812cb192d1c8c138e5667bf49d3e83359e9 100644 (file)
@@ -1,9 +1,12 @@
+// logic.asm:  WORD p_equal, '=',fasm
+
 anchor:p_equal[]
 
-Word: =
--------
+=== Word: =
 
-----
-logic.asm:     WORD p_equal, '=',fasm
-----
+....
+Data stack: ( v1 v2 -- 0/-1 )
+....
 
+"=" is a function word that replaces a pair of values with -1 of the
+values are equal, and 0 otherwise.