Download MasterTool Programming, PONTO Series Programming
Transcript
Chapter 4 Instructions OR – Or binary between operands OPER1 – first operand OPER2 - second operand OPER3 - result Description: This instruction carries out the operation “or” binary between the values of the first two operands, storing the result in the third. The operation is carried out point to point between the operands. The table to follow shows the possible combinations of the operation “or” point to point. point OPER1 0 0 1 1 point OPER2 0 1 0 1 point OPER3 (result) 0 1 1 1 Table 3-22 Operations Point to Point (OR) Example: In this example it is required to force the less significant nibble of %M0000 to 1, saving the value in the other nibbles. If %M000 contains 28277 (0110111001110101 binary) the result is 28287 (011011100111111 binary). OR Decimal 28277 15 28287 OR Binary 01101110 01110101 (content of %M0000) 00000000 00001111 (value of %KM+00015) 01101110 01111111 (result of %M0001) Syntax: 85