ARM DCD instruction

Publisher:电竞狂人Latest update time:2016-08-13 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The DCD (or DCDU)

syntax format is:

label DCD (or DCDU) expression.

The DCD (or DCDU) pseudo-instruction is used to allocate a continuous word storage unit and initialize it with the expression specified in the pseudo-instruction. The expression can be a program label or a numeric expression. DCD can also be replaced by "&".

The word storage unit allocated by DCD is word-aligned, while the word storage unit allocated by DCDU is not strictly word-aligned.

Usage example:

DataTest DCD 4, 5, 6; allocate a continuous word storage unit and initialize it.

In the interrupt vector table, do not directly LDR PC, "exception address". Instead, use a label, and then use DCD to define this label later. The reason is:

The LDR instruction can only jump to the current PC 4kB range, while the B instruction can jump to the 32MB range. Now, in the LDR PC, "xxxx" instruction, a word is defined with "xxxx" DCD, and this

The address of the final exception service program is stored in a word, so that a full-range jump of 4GB can be achieved.

In addition: there are the following statements

USR_STACK_LEGTH EQU 64 ; Define the user mode stack length to 64 words

StackUsr DCD UsrStackSpace + (USR_STACK_LEGTH-1)*4; define a word space, the content of this word is the first address of the descending stack

UsrStackSpace SPACE USR_STACK_LEGTH*4; Allocate a 64-word stack space for user mode. If this stack is used for decrement, its first address is

UsrStackSpace + (USR_STACK_LEGTH-1)*4

Keywords:ARM Reference address:ARM DCD instruction

Previous article:Porting Android to the FS2410 development board
Next article:ARM Classic 300 Questions

Recommended ReadingLatest update time:2024-11-16 16:02

Analysis on Embedded Operating System
Introduction: Embedded operating system is the software foundation of ARMCPU. From 8-bit/16-bit single-chip microcomputer to 32-bit embedded processor represented by ARMCPU core, embedded operating system will replace traditional manually compiled monitoring program or scheduling program and become an important basic
[Microcontroller]
ARM interrupt architecture
Seven modes of operation of ARM architecture CPU User mode (usr): the normal program execution state of the ARM processor System mode (sys): runs privileged operating system tasks Management mode (svc): protection mode used by the operating system Interrupt mode (irq): used for general interrupt processing Fast interr
[Microcontroller]
ARM7 MCU (Learning) - (IV), Timer - 01
Late in the evening~~ Just organize the files~~ Then I'll talk about the rest of the process tomorrow~~ 4. Timer IV - (01) Introduction to timer-related applications and registers~~ Timer 0 and Timer 1 are identical except for the peripheral base address. 2. Application and related description: 3. Pin description
[Microcontroller]
ARM7 MCU (Learning) - (IV), Timer - 01
ARM9_S3C2440 Learning (II) Register Organization in ARM State
The register organization in ARM state is shown in Figure 2.3. ARM has 37 32-bit registers, including 31 general registers, 1 current program status register CPSR (current program status register), and 5 backup program status registers SPSR (saved program status register). These 37 registers are not all visible at the
[Microcontroller]
Tips for getting started with ARM and Embedded Linux
  First, learn basic bare metal programming.   For those who learn hardware, they must first have a perceptual understanding of the basic usage of the hardware, and they must also have a deep understanding of the control methods of the hardware. If you learn the Linux system and transplantation from the beginning, you
[Microcontroller]
Day 1 - ARM assembly instructions LDR/STR
Register Load and Store LDM LDR STM STR SWP They are probably the most useful instructions available. All other instructions manipulate registers, so data must be loaded from memory to registers and stored from registers to memory. Sending single data Use the single data transfer instructions (STR and LD
[Microcontroller]
Joint debugging of ARM and proteus7.8
The software I use is KEIL4 MDK3.80 and proteus7.8. Then I followed some tutorials on the Internet, but found that it didn't work. I wasn't sure if it was a version issue, so I finally solved it myself. I'll write down my relevant settings here for future reference. There are many methods on the Internet for adding
[Microcontroller]
Joint debugging of ARM and proteus7.8
Run/debug arm linux with Qemu
I have used Qemu to run/debug arm linux several times, but I forgot about it after a while. I had to look up the information again every time, which wasted a lot of time. This time I made the whole process into a script and put it on github. You can just download it and run it, which is convenient for me and friends
[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号