For example, if you want to read data from somewhere in memory to a register, you can only use ldr
, such as:
ldr r0, 0x12345678
is to store the value at the address 0x12345678 in r0.
However, mov cannot do this job. mov can only move data between registers, or move immediate values to registers. This is the biggest difference from CISC architecture chips such as x86.
There is no ldr instruction in x86, because the mov instruction of x86 can move data from memory to registers.
There is also a ldr pseudo-instruction. Although the ldr pseudo-instruction is very similar to the ARM ldr instruction, the function is not quite the same. The ldr pseudo-instruction can add = before the immediate value to indicate that an address is written to a register, for example:
ldr r0, =0x12345678
, so the address 0x12345678 is written to r0. Therefore, the ldr pseudo-instruction is similar to mov. The only difference is that the mov instruction limits the length of the immediate value to 8 bits, that is, it cannot exceed 512. The ldr pseudo-instruction does not have this limitation. If the ldr pseudo-instruction is used and the immediate value following it does not exceed 8 bits, then the ldr pseudo-instruction will be converted to the mov instruction during the actual assembly.
The ldr pseudo-instruction and the ldr instruction are not the same thing.
Previous article:Difference between LDR instruction and LDR pseudo instruction
Next article:ARM immediate number explains the difference between LDR and MOV.
Recommended ReadingLatest update time:2024-11-23 06:28
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- [Summary] A detailed introduction to various power protection circuits
- A 25-year-old DJI employee died suddenly of cardiac arrest, having just graduated with a master's degree
- Test method for power system conversion efficiency
- Transmission line that can perform aging test on 1kw equipment using only 100W power
- Design of power module based on MP2303 chip
- TPMS Technology and Development Trends
- Talk about picking up leaks on Xianyu - Sangfor Internet Behavior Audit AC1300 (Part 1)
- C2000 chip calculation skills and precautions
- 【Video】Using BlueNRG GUI to perform RF testing on BlueNRG-2
- The beauty of algorithms