摘要 |
PURPOSE:To make it possible to execute operation for validating a carry input or a borrow input and operation for invalidating the carry input or the borrow input by the same specific code by providing this arithmetic system with a switching circuit. CONSTITUTION:Since an output 7 from a carry/borrow flag 2 and an output 8 from the switching circuit 1 are the same at the time of executing an ADC instruction or an SBC instruction in the '0' state of a control singal 10, the data of an arithmetic register 4, the data of a data latch circuit 5 and the contents of the flag 2 are added by an arithmetic logical operation circuit (ALU) 3 as an execution result. In the case of executing the ADC instruction in the '1' state of the control signal 10, the output 8 of the circuit 1 becomes '0', so that the data of the register 4 are added to the data of the circuit 5 as an execution result. In the case of executing the SBC instruction in the '1' state of the control signal 10, the output 8 of the circuit 1 becomes '1', so that the data of the circuit 5 are subtracted from the data of the register 4 as an execution result. |