Pic mcu Assembly command

Source: Internet
Author: User

Byte Operation Command

Nop-; null operation

Movwf F; send W content to F

Clrw-; clear w 0

Clrf F; clear F 0

Subwf F, D; F minus W

Decf F, D; F decrease by 1

Iorwf F, D; W and F logic or

Andwf F, D; W and F logic and

Xorwf F, D; W and F are logically different or

Add addwf F, D; W and F

Movf F, D; transfer F

Comf F, D; F Inverse

Incf F, D; F increase by 1

Decfsz F, D; F decrease by 1. If the result is 0, skip

Rrf f, D; shifts right of the Inner Loop

Rlf f, D; shifts left of the bringing-in Loop

Swapl F, D; F high-level 4-bit content exchange

Incfsz F, D; F increments by 1. If the result is 0, skip

Bit operation command

Bcf f, B; F bits are 0

Bsf f, B; f B location 1

Btfsc F, B; Test B of F. If it is 0, skip

Btfss F, B; Test B of F, 1 hop

Immediate count and control operation commands

Sleep-; enters low-power sleep mode

Clrwdt-; clear the Watchdog

Retlw K; W returns an immediate number

Retfie-; interrupt return

Return-; subroutine return

Call m; call subroutine

Goto m; program force redirect

Movlw K; W set to immediate number

Iorlw K; W and immediate number logic or

Addlw K; W and immediate sum

Sublw K; immediate count minus W

Andlw K; W and immediate number logic and

Xorlw K; logic difference between w and immediate number or

Note: F indicates the Register address (7 bits); D indicates the destination address (D = f or W) of the operation result; B indicates the bit address (0 ~ 7); k indicates the number of 8-bit immediate numbers; M indicates the 11-bit target address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.