论文部分内容阅读
面向常数操作和控制操作类指令 面向常数操作和控制操作类指令共有以下14条: (1)常数加法指令 格式:ADDLW k;W寄存器内容和8位立即数相加,结果存入W。操作:W+k→W;影响状态位C、DC和Z。 (2)常数减法指令 格式:SUBLW k;8位立即数减掉W寄存器内容,结果存入寄存器W。操作:k-W→W;影响状态位C、DC和Z。 (3)常数逻辑与指令 格式:ANDLW k;W寄存器内容和8位立即数相与,结果存入寄存器W。操作W∧k→W;影响状态位Z。
There are 14 instructions for constant operation and control operation. (1) ADDLW k; The content of W register is added with 8-bit immediate data and the result is stored in W. Operation: W + k → W; affects status bits C, DC and Z. (2) Constant Subtraction Instruction Format: SUBLW k; 8-bit immediate data is subtracted from W register, and the result is stored in register W. Operation: k-W → W; affects status bits C, DC and Z. (3) Constant logic and instruction format: ANDLW k; W register contents and 8-bit immediate digital phase, the result stored in register W. Operation W∧k → W; affects status bit Z.