ARM9 mode of operation, register, addressing mode

Source: Internet
Author: User

Working mode

A RM has 7 Modes of Operation :

Name

Referred

Brief introduction

User

U SR

The normal User program execution mode (Linux under the user program is executed in this mode.) )

FIQ

F IQ

Fast Interrupt Mode

Irq

I RQ

Normal Interrupt Mode

S Upervisor

S VC

A mode that gives the operating system the protection mode, the privilege is high, the Linux kernel is running in this mode

A bort

A BT

For example, access to virtual memory, resulting in an exception, is to enter this mode.

U ndefined

U nd

Running a command that is not supported by a processor goes into this mode.

S ystem

S Ys

A rmv4 and above version only. Use less.

Register Device

the registers have a total of 37 x , 31 Universal registers, 6 status registers. The approximate structure is as follows, a total of 18, not enough 37, the remainder is actually the register of the banked, in different modes, the packet register and the program status register with different physical registers.

Below two

The following two registers require special attention:

R13 for Stack Register

R14 for LR Register

With regard to the program status Word register in arm, he is equivalent to the status Word register in M3, interrupt screen register, control register, and some of its more important bits are described below:

The N and z bits represent the state of the result of the operation, the comparison jumps, and the conditional execution instructions are used to get them.

The I and f bits are controls for fast interrupts and normal interrupts.

m[] bit is the control of the operation mode and the use of the banked register.

Note: CPSR and SPSR content is the same, but SPSR can be used as an archive for CPSR, Rough said: That is, before entering other modes to save the contents of CPSR in SPSR, after the return of CPSR after the value has been destroyed, but can be SPSR reply.

addressing mode

aRM has 5 ways of addressing, as follows:

immediate number addressing

Register Addressing

Register Indirect Addressing

base Address variable address addressing

relative addressing



From for notes (Wiz)

ARM9 mode of operation, register, addressing mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.