 TDS9092 TECHNICAL MANUAL Programming Logic functions Live website search Enter key words # LOGIC FUNCTIONS

These are abbreviated details from the section WORD LIST grouped here for convenience. On TDS9092 a false flag is 0 and a true flag any other number. When a true flag is returned from a function it is 1.

 -TEXT ( addr1 n addr2 - f ) Compares two text strings. f=0 if identical. It compares strings word by word, not byte by byte so that the strings should have an even number of characters. 0=0= ( n - f ) Converts number n into logically identical flag. Opposite of NOT . AND ( n1 n2 - n3 ) n3 is the logical AND function of n1 and n2. BETWEEN ( n1 n2 n3 - f ) True if n1 is in the range n2 to n3 inclusive. BIT ( n1 - n2 ) n2 has one bit set. This is bit 0 to bit 15 according the input number n1. NOT ( n - f ) Converts number n into opposite flag 0 or 1. Opposite of 0=0= . OR ( n1 n2 - n3 ) n3 is the logical OR function of n1 and n2. TOGGLE ( addr b - ) Exclusive or the content of byte at address addr with the byte b WITHIN ( n1 n2 n3 - f ) True if n1 is in the range n2 to n3 where n2 and n3 are like the parameters of a DO loop XOR ( n1 n2 - n3 ) n3 is the logical exclusive or of n1 and n2. 