当前位置:网站首页>Load/store access instruction of arm instruction set (2)
Load/store access instruction of arm instruction set (2)
2022-06-12 11:50:00 【fanxiaoyu321】
List of articles
This note records the second kind of Load/Store Instructions , That is, the operand is 16 Bit halfword and signed byte data Load/Store Instructions .
| Mnemonic symbol | explain |
|---|---|
| LDRH | Half word data read instruction |
| STRH | Half word data write instruction |
| LDRSB | Signed byte data read instruction |
| LDRSH | Signed halfword data read instruction |
Addressing mode
These instructions have a consistent way of addressing , See here .
| grammar | explain | |
|---|---|---|
| 1 | [<Rn>, #+/-<offset_8>] | Immediate offset addressing |
| 2 | [<Rn>, +/-<Rm>] | Register offset addressing |
| 3 | [<Rn>, #+/-<offset_8>]! | Immediate pre update addressing |
| 4 | [<Rn>, #+/-<Rm>]! | Register pre update addressing |
| 5 | [<Rn>], #+/-<offset_8> | Immediate post update addressing |
| 6 | [<Rn>], +/- | Register post update addressing |
LDRH( Half word data read instruction )
LDR{<cond>}H <Rd>, <address_mode>
if CondPassed(cond) then
if address[0] == 0 then
data = Mem[address, 2]
else
data = Unknown
Rd = data
so , This instruction requires that the address must be half word aligned .
STRH( Half word data write instruction )
STR{<cond>}H <Rd>, <address_mode>
if CondPassed(cond) then
if address[0] == 0 then
data = Rd[15:0]
else
data = Unknown
Mem[address, 2] = data
Again , This instruction requires that the address must be half word aligned .
LDRSB( Signed byte data read instruction )
LDRSB Read a byte of data from memory and save it in the low of the destination register 8 position , Then fill the high of the destination register according to the sign bits 24 position , This generates the final 32 digit .
LDR{cond}SB <Rd>, <address_mode>
if CondPassed(cond) then
data = Mem[address, 1]
Rd = SignExtend(data)
LDRSH( Signed halfword data read instruction )
LDRSH Read a half word data from memory and save it in the low of the target register 16 position , Then fill the high of the destination register according to the sign bits 16 position , This generates the final 32 digit .
LDR{<cond>}SH <Rd>, <address_mode>
if CondPassed(cond) then
if address[0] == 0 then
data = Mem[address, 2]
else
data = Unknown
Rd = SignExtend(data)
Again , This instruction requires that the address must be half word aligned .
边栏推荐
- First understand the onion model, analyze the implementation process of middleware, and analyze the source code of KOA Middleware
- LeetCode 497. 非重叠矩形中的随机点(前缀和+二分)
- Reentrantlock source code analysis
- Manuscript manuscript format preparation
- 必杀技--使用FFmpeg命令快速精准剪切视频
- QML学习 第一天
- Cookie和Session
- The second regular match is inconsistent with the first one, and the match in the regular loop is invalid
- MySQL - built in function
- [the 11th national competition of Blue Bridge Cup single chip microcomputer]
猜你喜欢

Basic principle of Doppler effect

LeetCode 1037. 有效的回旋镖(向量叉乘)

Design of virtual scrolling list

多普勒效应的基本原理

VirtualBox virtual machine shut down due to abnormal system. The virtual machine startup item is missing

Doris记录服务接口调用情况

当自己有台服务器之后

6.6 Convolution de séparation

Unity connect to Microsoft SQLSERVER database

Windows10 install mysql-8.0.28-winx64
随机推荐
5G NR協議學習--TS38.211下行通道
ARM指令集之数据处理类指令
System. IO. Fileloadexception exception
Manuscript manuscript format preparation
Lambda and filter, List 和 numpy array的索引,以及各种距离指标distance-metrics,拼接数组以及axis=0 and axis=1的区分
postman传入list
C# 37. Textbox scroll bar and multiline
机器学习基础概念
Windows10安装mysql-8.0.28-winx64
NVIDIA Jetson Nano Developer Kit 入门
Neighbor item status update of neighbor subsystem
UML系列文章(30)体系结构建模---制品图
Shardingjdbc-5.1.0 monthly horizontal table splitting + read-write separation, automatic table creation and node table refresh
转载--win10打开任务管理器就蓝屏的问题
Design of tablewithpage
Byte order - how to judge the big end and the small end
Unity connect to Microsoft SQLSERVER database
标品和非标品如何选品,选品的重要性,店铺怎样布局
一个人必须不停地写作,才能不被茫茫人海淹没。
Inter class and intra class relations in video classification -- regularization