The instruction of openMSP430

Source: Internet
Author: User

Byte and Word issues


1 appending ". B" to an instruction makes it a byte operation.

a byte instruction with A register destination clears the high 8 bits of the register to 0. Thus, the following would clear the top byte of the register, leaving the lower byte unchanged:

mov. b rn,rn

2 Adding ". W" (or Nothing) to an instruction makes it a word operation, which is also the default behaviour.

3 P Eripherals is divided into an 8-bit bank and a 16-bit bank.

The 8-bit peripherals must only is accessed using 8-bit instructions; Using a 16-bit access produces garbage in the high byte.

The 16-bit peripherals must only is accessed at even addresses. Byte accesses to even addresses is legal, but not usually useful.

The instruction of openMSP430

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.