英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流

标题: 指令列表 [打印本页]

作者: winnie    时间: 2009-3-24 17:40
标题: 指令列表

Processor Core
助记符操作12-Bit14-Bit16-Bit16-Bit+
ADDLW(W) + k --> (W)--------C DC ZOV C DC ZN OV C DC Z
ADDWF(W) + (f) --> (dest)C DC ZC DC ZOV C DC ZN OV C DC Z
ADDWFC(W) + (f) + C --> (dest)----------------OV C DC ZN OV C DC Z
ANDLW(W) AND k --> (W)ZZZN Z
ANDWF(W) AND (f) --> (dest)ZZZN Z
BCif C = 1, (PC) + 2 + 2n --> (PC)------------------------NONE
BCF0 --> (f)NONENONENONENONE
BNif N = 1, (PC) + 2 + 2n --> (PC)------------------------NONE
BNCif C = 0, (PC) + 2 + 2n --> (PC)------------------------NONE
BNNif N = 0, (PC) + 2 + 2n --> (PC)------------------------NONE
BNOVif OV = 0, (PC) + 2 + 2n --> (PC)------------------------NONE
BNZif Z = 0, (PC) + 2 + 2n --> (PC)------------------------NONE
BRA(PC) + 2 + 2n --> (PC)------------------------NONE
BSF1 --> (f)NONENONENONENONE
BTFSCskip if (f) = 0NONENONENONENONE
BTFSSskip if (f) = 1NONENONENONENONE
BTG!(f) --> (f)----------------NONENONE
BOVif OV = 1, (PC) + 2 + 2n --> (PC)------------------------NONE
BZif Z = 1, (PC) + 2 + 2n --> (PC)------------------------NONE
CALLCall Subroutine (operation is device specific)NONENONENONENONE
CLRF0x00 --> (f)ZZNONEZ
CLRW0x00 --> (W)ZZ----------------
CLRWDT0x00 --> WDTTO PDTO PDTO PDTO PD
COMF!(f) --> (dest)ZZZN Z
CPFSEQ(f) - (W), skip if (f) = (W)----------------NONENONE
CPFSGT(f) - (W), skip if (f) > (W)----------------NONENONE
CPFSLT(f) - (W), skip if (f) < (W)----------------NONENONE
DAWDecimal Adjust W----------------CC
DECF(f) - 1 --> (dest)ZZOV C DC ZN OV C DC Z
DECFSZ(f) - 1 --> (dest) skip if 0NONENONENONENONE
DCFSNZ(f) - 1 --> (dest) skip if not 0----------------NONENONE
GOTOUnconditional Branch (Operand is device specific)NONENONENONENONE
INCF(f) + 1--> (dest)ZZOV C DC ZN OV C DC Z
INCFSZ(f) + 1--> (dest) skip if 0NONENONENONENONE
INFSNZ(f) + 1 --> (dest) skip if not 0----------------NONENONE
IORLW(W) OR k --> (W)ZZZN Z
IORWF(W) OR (f) --> (dest)ZZZN Z
LFSRk --> FSRf------------------------NONE
LCALLLong Call Subroutine (operation is device specific)----------------NONE--------
MOVF(f) (dest)ZZ--------N Z
MOVFF(fs) --> (fd)------------------------NONE
MOVFP(f) --> (p)----------------NONE--------
MOVLBk --> (BSR<3:0>)----------------NONENONE
MOVLRk --> (BSR<7:4>)----------------NONE--------
MOVLWk --> (W)NONENONENONENONE
MOVPF(p) --> (f)----------------Z--------
MOVWF(W) --> (f)NONENONENONENONE
MULLW(W) x k --> (PRODHRODL)----------------NONENONE
MULWF(W) x (f) --> (PRODHRODL)----------------NONENONE
NEGW!(W) + 1 --> (f); !(W) + 1 --> s----------------OV C DC Z--------
NEGF!(f) + 1 --> (f)------------------------N OV C DC Z
NOPNo operationNONENONENONENONE
OPTION(W) --> OPTIONNONENONE----------------
POP(TOS) --> bit bucket------------------------NONE
PUSH(PC+2) --> TOS------------------------NONE
RCALL(PC) + 2 --> TOS, (PC) + 2 + 2n --> (PC)------------------------NONE
RESETReset all registers and flags that are affected by a MCLR reset.------------------------All
RETFIEReturn from Interrupt (operation is device specific)--------NONEGLINTDGIE/GIEH PEIE/GIEL
RETLWk --> (W, ) TOS --> PCNONENONENONENONE
RETURNReturn from Subroutine (operation is device specific)--------NONENONENONE
RLCF/RLF(f) --> (d); (f<7>) --> C; C --> (d<0>)C (RLF)C (RLF)C (RLCF)N C Z (RRCF)
RLNCF(f) --> (d); (f<7>) --> (d<0>);----------------NONEN Z
RRCF/RRF(f) --> (d); (f<0>) --> C; C --> (d<7>)C (RRF)C (RRF)C (RRCF)N C Z (RRCF)
RRNCF(f) --> (d); (f<0>) --> (d<7>);----------------NONEN Z
SETF0xFF --> (f)----------------NONENONE
SLEEPEnter SLEEP ModeTO PD GPWUFTO PDTO PDTO PD
SUBFWB(W) - (f) - !C --> (dest)------------------------N OV C DC Z
SUBLWk - (W) --> (W)--------C DC ZOV C DC ZN OV C DC Z
SUBWF(f) - (W) --> (dest)C DC ZC DC ZOV C DC ZN OV C DC Z
SUBWFB(f) - (W) - !C --> (dest)----------------OV C DC ZN OV C DC Z
SWAPF(f<3:0>) --> (dest<7:4>); (f<7:4>) --> (dest<3:0>)NONENONENONENONE
TABLRDTable Read [17C] (operation is device specific)----------------NONE--------
TABLWTTable Write [17C] (operation is device specific)----------------NONE--------
TBLRDTable Read [18C] (operation is device specific)------------------------NONE
TBLWTTable Write [18C] (operation is device specific)------------------------NONE
TLRDTable Latch Read [17C] (operation is device specific)----------------NONE--------
TLWTTable Latch Read [17C] (operation is device specific)----------------NONE--------
TRIS(W) --> TRIS Register fNONENONE----------------
TSTFSZskip if (f) = 0----------------NONENONE
XORLW(W) XOR k --> (W)ZZZN Z
XORWF(W) XOR (f) --> (dest)ZZZN Z





欢迎光临 英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 (http://enroobbs.com/) Powered by Discuz! X3.2