Comments

AND, OR, and XOR are part of the language (see page 96 of the "BASIC Stamp Syntax and Reference Manual 2.2", and NAND/NOR can be produced by inverting the bits from an AND/OR using XOR. If you posted a more detailed explanation of what you want to do you will get more detailed help.