X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_and.adoc;h=11a3d1c1b343c47920cd6c9c2149da6625e59785;hb=f38c72b71edee9d23d958a1af73f843b5d44ccbe;hp=ec2f20e40a7fc738dc258f46eb4af01903f96aef;hpb=b7da3f7bbd1cb10241163abdb950472e539e796d;p=rrq%2Frrqforth.git diff --git a/adoc/p_and.adoc b/adoc/p_and.adoc index ec2f20e..11a3d1c 100644 --- a/adoc/p_and.adoc +++ b/adoc/p_and.adoc @@ -1,9 +1,15 @@ +// logic.asm: WORD p_and, 'AND',fasm + anchor:p_and[] -Word: AND ----------- +=== Word: AND + +.... +Data stack: ( v1 v2 -- v3 ) +.... + +"AND" is a function word that replaces a value pair with their bitwise +conjunction; each bit is 1 if the corresponding bits of both operands +are 1 and 0 if not. ----- -logic.asm: WORD p_and, 'AND',fasm -----