论文部分内容阅读
算术运算指令学习 MCS-51具有较强的加、减、乘、除四则运算指令及加1、减1和2-10进制调整指令。加、减、乘、除指令会影响程序状态字PSW,只有加1和减1指令不影响PSW。 1.加法指令 ADD A,#data表示把立即数data与累加器A的内容相加,相加的结果送累加器A。 ADD A,direct表示把直接寻址单元direct中的内容与累加器A的内容相加,相加的结果送累加器A。
Arithmetical Instruction Instruction Learning The MCS-51 has strong arithmetic operations of addition, subtraction, multiplication and division, addition of four arithmetic instructions and addition of 1, subtraction of 1 and 2-10 decimal adjustment instructions. Add, subtract, multiply and divide instructions affect the program status word PSW. Only the addition of 1 and subtraction 1 instructions do not affect the PSW. 1. Addition instruction ADD A, # data means that the immediate data and accumulator A’s content is added, the result of the addition to accumulator A. ADD A, direct means that the contents of direct addressing unit direct and accumulator A is added, the result of the addition to accumulator A.