当前位置:网站首页>ARM指令集之伪指令
ARM指令集之伪指令
2022-06-12 11:37:00 【fanxiaoyu321】
这篇笔记记录了ARM支持的伪指令,所谓伪指令,即它不是标准的ARM指令,汇编程序在编译过程中,会将伪指令替换成标准的ARM指令(可能对应多条ARM指令)。当前,ARM支持如下几条伪指令:
- ADR小范围地址读取伪指令;
- ADRL中等范围的地址读取伪指令;
- LDR大范围地址读取伪指令;
- NOP空操作伪指令;
ADR小范围地址读取伪指令
ADR将基于PC的地址值或者基于寄存器的地址值读取到寄存器中。
ADR{<cond>} <Rd>, expr
expr为基于PC或者寄存器的地址表达式。如果地址不是字对齐的,那么地址取值范围为[-255, 255];如果地址是字对齐的,那么地址取值范围是字对齐的,那么地址取值范围为[-1020, 1020];如果地址是16字节对齐的,那么地址取值范围会更大。
ADRL中等范围的地址读取伪指令
ADRL{<cond>} <Rd>, expr
如果地址不是字对齐的,那么地址取值范围为[-64KB, 64KB];如果地址是字对齐的,那么地址取值范围是字对齐的,那么地址取值范围为[-256KB, 256KB];如果地址是16字节对齐的,那么地址取值范围会更大。
LDR大范围地址读取伪指令
该LDR是伪指令,并不是LDR访存指令。
LDR{<cond>} <Rd>, =[expr|label-expr}
expr可以是32位的常量;label-expr是基于PC的地址表达式,通常是符号。
NOP空操作伪指令
该指令让CPU空转一个指令周期。
边栏推荐
- mysql的悲观锁和乐观锁
- Unlimited growth, we will all go to the future | the 15th anniversary of the founding of InfoQ China
- 【藍橋杯單片機 國賽 第十一届】
- Socket Programming TCP
- Redis keys in PHP
- Manuscript manuscript format preparation
- Shardingjdbc-5.1.0 monthly horizontal table splitting + read-write separation, automatic table creation and node table refresh
- 人類想要擁有金錢、權力、美麗、永生、幸福……但海龜只想做一只海龜
- Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)
- MySQL lock leak detection and defect filling
猜你喜欢

Selenium uses proxy IP

Clj3-100alh30 residual current relay

manuscript手稿格式准备

UI自动化测试中比较少见的异常记录

Redis summary

Clickhouse column basic data type description

Socket Programming TCP

K52. Chapter 1: installing kubernetes v1.22 based on kubeadm -- cluster deployment

Doris records service interface calls

MCUXpresso开发NXP RT1060(3)——移植LVGL到NXP RT1060
随机推荐
LLD monitored by ZABBIX
套接字编程TCP篇
FormatConversionTool. exe
Pytoch notes
6.6 分离卷积
systemctl里万恶的203
字节序(网络/主机)转换
K59. Chapter 2 installing kubernetes V1.23 based on binary packages -- cluster deployment
FPGA Development - Hello_ World routine
Design of virtual scrolling list
A simple understanding of b+ tree
Go sends SMS based on alicloud
Differences among various cross compiling tools of arm
AcWing 1921. Rearranging cows (ring diagram)
MCUXpresso开发NXP RT1060(3)——移植LVGL到NXP RT1060
selenium使用代理IP
M-arch (fanwai 10) gd32l233 evaluation -spi drive DS1302
The reason why scanf return value is ignored and its solution
【藍橋杯單片機 國賽 第十一届】
SOT23(Small Outline Transistor)