首页 > 其他 > 详细

openMSP430之instruction

时间:2015-05-07 23:47:32      阅读:300      评论:0      收藏:0      [点我收藏+]

 

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  Peripherals are divided into an 8-bit bank and a 16-bit bank.

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

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

openMSP430之instruction

原文:http://www.cnblogs.com/mengdie/p/4486415.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!