首页 > 其他 > 详细

Arm处理器寄存器介绍及汇编基础

时间:2018-06-26 13:37:03      阅读:256      评论:0      收藏:0      [点我收藏+]

1. ARM处理器支持7种工作模式

· User (usr):      The normal ARM program execution state
· FIQ (fiq):      Designed to support a data transfer or channel process
· IRQ (irq):        Used for general-purpose interrupt handling
· Supervisor (svc):    Protected mode for the operating system
· Abort mode (abt):   Entered after a data or instruction prefetch abort
· System (sys):    A privileged user mode for the operating system
· Undefined (und):    Entered when an undefined instruction is executed

2. ARM状态寄存器(CPRS)

技术分享图片

3. ARM寻址方式

①立即数寻址: ADD R0, R1, #0x01

②寄存器寻址:ADD R0, R1, R2

③寄存器间接寻址:LDR R0, [R2];

④基址变址寻址:LDR R0, [R1,#4]

⑤相对寻址:BL

4. ARM汇编指令介绍

 

Arm处理器寄存器介绍及汇编基础

原文:https://www.cnblogs.com/wulei0630/p/9228642.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!