论文部分内容阅读
第五章指令系统及程序举例(续完) ②数据处理指令所谓数据处理是指对寄存器或存储器内的数据进行下列运算或操作,大体可分成四类: a. 算术运算,包括加法(ADD)、减法(SUB)、带进位加(ADC)、带进位减(SBC)、增1(INC)、减1(DEC)及十进制调整(DAA)等。 b. 逻辑运算,包括与(AND)、或(OR)、异或(XOR)、累加器A内容求反(CPL)和求补(NEG)、标志寄存器F中进位位Cy的置位(SCF)和取反(CCF) c. 比较(CP) d. 循环与移位,包括通过Cy的左循环和右循环(RL和
Chapter 5 Instruction System and Program Example (continued) ② Data Processing Instructions The data processing refers to the following operations or operations on the data in the register or the memory. Generally, the data can be divided into four categories: a. Arithmetic operations, including ADD, SUB, ADC, SBC, INC (INC), DEC (Decimal) and Decimal Adjustment (DAA). b. Logical operations including AND, OR, XOR, accumulator A negate (CPL) and complement (NEG), flag set in carry register Cy (SCF ) And negation (CCF) c. Comparison (CP) d. Cycles and shifts, including through the left and right cycles of Cy (RL and