The range of immediate addressing in the ARM instruction set

Publisher:少年不识愁滋味Latest update time:2021-03-02 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Why is this? After searching the Internet, I found many related discussion posts. Combined with my own understanding, I came to the following conclusion.

If you are interested, you can search for this keyword, 8-bit bitmap. It turns out that our second operand follows this rule.


The above explanation text comes from the ARM Processor Instruction Set, and two pictures are attached:


So, we can summarize it like this:


1. To determine whether a number conforms to the principle of 8-bit bitmap, first check whether the number of 1s in the binary representation of the number does not exceed 8. If not, then check whether these n 1s (n<=8) can be put into 8 binary bits at the same time. If they can be put in, then check whether these eight binary bits can be cyclically right-shifted by even bits to get the number we want to use. If so, this number conforms to the principle of 8-bit bitmap and is a legal immediate number. Otherwise, it does not conform.


2. The 32-bit number that cannot be represented can only be obtained through other means such as logical or arithmetic operations. For example, 0xFFFFFF00 can be obtained by bitwise inversion of 0x000000FF.


Keywords:ARM Reference address:The range of immediate addressing in the ARM instruction set

Previous article:ARM chip core --- architecture table
Next article:Design and development of RFID low-power electronic tags and handheld readers

Recommended ReadingLatest update time:2024-11-16 21:01

Arm lays the technical foundation for ubiquitous AI
As the innovation foundation of artificial intelligence (AI), many companies are using the general and widely used Arm computing platform. To date, partners have shipped more than 290 billion chips based on the Arm architecture. Today, Arm has supported AI applications in various technology fields, which is wh
[Embedded]
Other peripheral interfaces of ARM
In addition to the arithmetic core, ARM chips also have various peripheral interfaces according to different needs. The most commonly used peripheral interface is the serial port. Usually, ARM chips integrate several serial ports. When running Linux, the most important function of the serial port is to debug the softw
[Microcontroller]
Linux ARM (IMX6U) bare metal main frequency and clock configuration
The standard operating frequency of the I.MX6U series is 528MHz, and some models can even work up to 696MHz, but the default operating frequency is 396MHz, which is a waste. This time we will configure the main clock to work at 528MHz, and other peripheral clock sources to work at the operating frequency recommended b
[Microcontroller]
Linux ARM (IMX6U) bare metal main frequency and clock configuration
ARM pointer register-program counter PC, stack pointer SP
A stack is a storage structure with a special access attribute of "Last In First Out" (LIFO). A stack generally uses RAM physical resources as a storage body and is implemented with a LIFO access interface. Implementation method of stack: In the random access memory area, an area is allocated as the stack area. Data
[Microcontroller]
IAR for ARM introduction, download, installation and registration
II. Introduction to IAR 1. About IAR   IAR is the name of a company and also the name of an integrated development environment. What we usually call IAR mainly refers to the integrated development environment. The development of IAR has also gone through a series of historical changes. From the beginning of developi
[Microcontroller]
IAR for ARM introduction, download, installation and registration
ARM bare metal development: use of i.MX6U official SDK package
1. Hardware Platform: Zhengdian Atom i.MX6U Alpha Development Board 2. SDK Package Introduction NXP has officially written an SDK package for I.MX6ULL. In the SDK package, NXP has already written the register definition file, so we can directly transplant the files in the SDK package to use.
[Microcontroller]
ARM bare metal development: use of i.MX6U official SDK package
Multi-sensor data fusion fire alarm system based on ARM9
In view of the fact that a single ordinary type of fire detection alarm can no longer meet the demand, the use of multiple sensors to comprehensively collect various abnormal information before a fire occurs, and the use of multi-sensor information fusion technology to process the fire information provided by the se
[Microcontroller]
Professional engineers explain the difference between ARM and MCU
1. Software: This is probably the biggest difference. The operating system was introduced. Why was the operating system introduced? What are the benefits? 1) Convenience. This is mainly reflected in the later development, that is, developing applications directly on the operating system. Unlike a single-chip microco
[Microcontroller]
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号