微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > PIC单片机汇编指令

PIC单片机汇编指令

时间:12-18 来源:互联网 点击:

下来的文章中,ANY电子将带你详细学习PIC单片机的汇编语言以及PIC C语言,带你进入一个新的单片机世界。
首先,我们先来了解一下PIC单片机的指令系统,为了方便记忆,我们就从PIC单片机指令系统的来源开始这一系列的文章。需要注意的是,此处指令系统的来源由相关资料和书籍整理,仅供参考,以帮助理解记忆,尽快掌握PIC单片机的指令系统。
指令 指令缩写来源
ADDWF f,d ADD W and F
ANDWF f,d AND W with F
CLRF f CLeaR F
CLRW - CLeaR W
COMF f,d COMplement F
DECF f,d DECrement F
DECFSZ f,d DECrement F,Skip if 0(Zero)
INCF f,d INCrement F
INCFSZ f,d INCrement F,Skip if 0(Zero)
IORWF f,d Inclusive OR W with F
MOVF f,d MOVe F
MOVWF f MOV W to F
NOP - NO Operation
RLF f,d Rotate Left F through carry
RRF f,d Rotate Right F through carry
SUBWF f,d SUBtract W from F
SWAPF f,d SWAP nibbles in F
XORWF f,d eXclusive OR W with F
BCF f,b Bit Clear F
BSF f,b Bit Set F
BTFSC f,b Bit Test F,Skip if Clear
BTFSS f,b Bit Test F,Skip if Set
ADDLW k ADD Literal and W
ANDLW k AND Literal with W
CALL k CALL subroutine
CLRWDT - CLeaR WatchDog Timer
GOTO k GO TO address
IORLW k Inclusive OR Literal with W
MOVLW k MOVe Literal to W
RETFIE - RETurn From IntErrupt
RETLW k RETurn with Literal in W
RETURN - RETURN from subroutine
SLEEP - go into SLEEP mode
SUBLW k SUBtract Literal from W
XORLW k eXclusive OR Literal with W
其中,有朋友说,上面指令系统中的
RETFIE - RETurn From IntErrupt
应理解为RETurn From Interrupt with interrupt Enable

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top