摘要 |
PURPOSE:To attain the control simply with a few hardwares, by providing an operating device, an output circuit and a control circuit, and controlling whether or not an operation output is set to the output circuit based on the result of operation. CONSTITUTION:The control circuit 4 outputs a control signal 5, subtracts data 2 from data 1 at a subtractor 3, and when the borrow of the result of subtraction is not set, a control signal 7 is generated and the result of subtraction is stored in an output register 8. In this case, since the borrow 6 is not set except that the result is negative, only the positive value is stored in the output register. Thus, the distance between the data 1 and 2 is calculated automatically and simply and stored in the output register 8. |