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