X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_or.adoc;h=7d8401f41bde51d4c15300e55cb1bea1374a4546;hb=97a4e5ecb1623dbe0fbd7b6eeb96e966c6c5b1d3;hp=ab5cbe7bc1a034cf94bdc5ddb567c64a7801adf1;hpb=b7da3f7bbd1cb10241163abdb950472e539e796d;p=rrq%2Frrqforth.git diff --git a/adoc/p_or.adoc b/adoc/p_or.adoc index ab5cbe7..7d8401f 100644 --- a/adoc/p_or.adoc +++ b/adoc/p_or.adoc @@ -1,9 +1,15 @@ +// logic.asm: WORD p_or, 'OR',fasm + anchor:p_or[] -Word: OR ----------- +=== Word: OR + +.... +Data stack: ( v1 v2 -- v3 ) +.... + +"OR" is a function word that replaces a value pair with their bitwise +disjunction; each bit is 1 if the corresponding bits of any operand +is 1 and 0 if not. ----- -logic.asm: WORD p_or, 'OR',fasm -----