ARM instruction set LDR instruction

Publisher:石头上种庄稼Latest update time:2016-07-12 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
In the ARM instruction set, LDR is usually used as a load instruction, but it can also be used as a pseudo-instruction.


(1) LDR r0,=name. This instruction with an equal sign is a pseudo-instruction, not an ARM instruction. The LDR pseudo-instruction is used to load an immediate value or an address value into a specified register.
*If name is an immediate value: LDR R0,=0X123; //Store 0X123 in R0
*If name is an identifier: LDR R0,=NAME; //Store the address of NAME in R0
Equivalent to:
    LDR R0,LABEL;
    LABEL DCB NAME; //Allocate memory and initialize it with NAME (LABEL is the starting address of the memory?)


(2) LDR R1,[R0]; If there is no equal sign, the LDR instruction is used to read data from the memory and put it into a register. This instruction reads the data at the address R0 and saves it in R1 (zero offset).
Keywords:ARM Reference address:ARM instruction set LDR instruction

Previous article:ARM instruction set miscellaneous instructions
Next article:ARM instruction set comparison instructions

Recommended ReadingLatest update time:2024-11-17 03:09

Application of multi-sensor information fusion based on ARM in industrial control
0 Introduction Modern industrial production is characterized by comprehensiveness, complexity, large-scale and continuity, and a large number of sensors are used to monitor and control the production process. The emergence of multi-sensor systems has led to a sharp increase in the amount of information, and th
[Microcontroller]
Application of multi-sensor information fusion based on ARM in industrial control
Wireless weather data communication based on ARM microprocessor and Linux
    Automatic weather station data collectors are generally designed based on single-chip microcomputers or PC/104 bus controllers, and have the characteristics of good compatibility with PCs, low power consumption, and compact size. However, how to design an automatic weather station data collector with powerful func
[Microcontroller]
Wireless weather data communication based on ARM microprocessor and Linux
British chip giant ARM sets price, Masayoshi Son wins biggest listing deal of the year
On September 14, Beijing time, ARM, a British chip design company under SoftBank Group, has set the issue price of its initial public offering (IPO) at the upper limit of the issue price range, raising US$4.87 billion (approximately 35.4 billion yuan), becoming the largest company so far this year. It is the largest l
[Semiconductor design/manufacturing]
Design of an intelligent logistics management system based on ARM11 and RFID technology
Introduction: This design selects the current mainstream MCU ARM11, combines RFID technology, and uses a fixed RFID card reader to collect information, which is sent via the serial port to the data processing terminal with ARM11 as the core for processing, thus realizing the warehousing and in-and-out operations of go
[Microcontroller]
Design of an intelligent logistics management system based on ARM11 and RFID technology
ARM7 LPC2378 remote upgrade ---- soft interrupt SWI
Here, I would like to share with you the questions and understandings I encountered when studying this article. The relevant soft interrupt code in the LPC2300.S file is as follows:          EXPORT SWI_Handler     extern EnableIrqFunc ;Enable interrupt function name, implemented in C language     extern DisableIrqFunc
[Microcontroller]
ARM7 LPC2378 remote upgrade ---- soft interrupt SWI
Research and simulation of ARM parallel bus based on FPGA
  0 Introduction   In the design of digital systems, the FPGA+ARM system architecture has been used more and more widely. FPGA mainly realizes high-speed data processing; ARM mainly realizes system process control, human-computer interaction, external communication and FPGA control functions. Serial bus interfaces s
[Microcontroller]
Research and simulation of ARM parallel bus based on FPGA
Design of GPRS CQT Test System Based on ARM Platform
GPRS, as the bearer network of China Mobile's data services, supports a variety of data services involving different network elements. Any failure of any network element will directly affect the normal use of data services. It is very important to ensure end-to-end use by users. GPRSDT/CQT test simulates the u
[Test Measurement]
Design of GPRS CQT Test System Based on ARM Platform
Design of Fingerprint Attendance Machine Based on ARM7
introduction Biometric technology relies on its uniqueness and reliability. After nearly ten years of development, its application has become more and more extensive and mature. At present, fingerprint recognition technology has become popular in the civilian market, and fingerprint attendance machine is
[Microcontroller]
Design of Fingerprint Attendance Machine Based on ARM7
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号