Byte and word issues

  The MSP430 is byte-addressed, and little-endian. Word operands must be located at even addresses

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.

最新文章

  1. EasyUI combobox 下拉高度自适应
  2. [游戏模版9] Win32 半透明 图像处理
  3. C#函数式程序设计之用闭包封装数据
  4. uva 1471 defence lines——yhx
  5. PCL 1.6.0 VS2010 Configuration
  6. OpenStack 镜像密码修改办法
  7. WPF学习笔记 - 在XAML里绑定
  8. mac 环境下使用virtual box 虚拟机(win7)与主机之间互相ping通
  9. android自定义控件,其三个父类构造方法有什么区别
  10. opencv---cvor
  11. LOJ 6270
  12. 用Springboot实现文件下载功能
  13. Web高级 Ajax和跨域CORS
  14. codeforces29A
  15. JS打开新的窗口
  16. JavaSE学习总结(六)——接口、抽象类、内部类
  17. python接口自动化测试十六:unittest完成用例
  18. Array对象的方法
  19. delphi 获取本机IP地址和MAC地址
  20. 【转】嵌入式Linux文件系统启动脚本及分析

热门文章

  1. JQ + PHP + TrackMore物流信息跟踪
  2. Java端百度云推送消息Demo
  3. Javascript控制回车键进行表单(form)提交(转)
  4. GDB 调试 PHP文件
  5. MVC.Net:WebAPI添加对jsonP的支持
  6. 理解linux安装软件
  7. springmvc 中开发Server Send Event
  8. Android之——AsyncTask和Handler对照
  9. 转:分布式事务之TCC服务设计和实现注意事项
  10. Python字符串转为字典方法大全