摘要 |
PURPOSE:To obtain a logical product or logical sum without changing a program, by providing an area representing the distinction of input/output data, presence of inversion, and location of address and bit, in one unit of a logical operation table. CONSTITUTION:A logical operation table is provided with a bit location area 1 of input/output data, an area 2 representing the distinction of input/output, an area 3 representing the presence of inversion of input/output data, and an area 4 representing the memory address of input/output data. A program discriminates whether an input data n1 of a bit location c1 of an input data of a memory address b1 is 1 or 0, when 0, whether an input data n2 of an address b2 is 1 or 0 is discriminated. When n1 is 1, no discrimination is done. When either of n1, n2 is 1, it is transferred to a bit location c3 of the output data of a memory address b3 as it is, and when 0, it is transferred as it is similarly. The operation equivalent to the logical sum circuit is done without changing the program. Further, in case of logical product, the input data has only to be inverted at the area 3. |