汇编指令的执行过程
来源:互联网 发布:安卓电路设计软件 编辑:程序博客网 时间:2024/05/20 11:36
;#*********************************************************************************************;# NAME:ARM_code2.s *;# Author: WUHAN R&D Center,Embest *;# Desc:ARM instruction examples *;# Example for Condition Code *;# History:shw.He 2005.02.22 *;#*********************************************************************************************;/*------------------------------------------------------------------------------------------*/;/* code */;/*------------------------------------------------------------------------------------------*/area start,code,readwriteentrycode32num equ2;/* Number of entries in jump table */export Reset_HandlerReset_Handlermovr0, #0;/* set up the three parameters */movr1, #3movr2, #2blarithfunc;/* call the function */
;/*死循环*/stopbstop;# ********************************************************************************************;# * According R0 valude to execute the code *;# ********************************************************************************************arithfunc;/* label the function */cmpr0, #num;/* Treat function code as unsigned integer */bhsDoAdd;/* If code is >=2 then do operation 0. */adrr3, JumpTable;/* Load address of jump table */ldrpc, [r3,r0,LSL#2];/* Jump to the appropriate routine */
;/*pc = r3 + r0<<2*/JumpTabledcdDoAdd ;其占领4个字节,其中存储的是DoAdd对应的地址dcdDoSub ;其占领4个字节,其中存储的是DoSub对应的地址DoAddaddr0, r1, r2;/* Operation 0, >1 */bxlr ;/* Return */DoSubsubr0, r1, r2;/* Operation 1 */bxlr;/* Return */end;/* mark the end of this file */
执行bl arithfunc之前
执行之后:
其将pc的值保存在r14(LR)之中。
------------------------------------------------------------坚持不懈,追求卓越--------------------------------------------------------------------------------
- 汇编指令的执行过程
- 指令的执行过程
- 汇编函数的执行过程
- 通过分析一个C程序的汇编指令执行过程,理解计算机的工作。
- 单片机的指令执行过程
- CPU执行指令的过程
- 【单片机执行指令的过程】
- 计算机执行指令的过程
- 进度条和汇编指令的编译过程
- 指令的执行过程(图)
- 计算机底层执行一条指令的过程
- 计算机的指令执行过程分析
- angular.js(3)--指令的执行过程
- AngularJS 指令的执行过程分析
- 8051的汇编控制指令,占用字节,执行周期列表
- ARM汇编指令的条件执行及其他相关细节
- 从汇编指令细看计算机程序的运行过程
- 常用的汇编指令
- response.setContentType() MIME参数 类型总结
- 自动化单元测试
- 电子工程师过去1年的点点滴滴
- 虚拟机不能上网
- VMware Server 介绍和安装操作系统(linux)
- 汇编指令的执行过程
- 读取环境变量并利进行文件的解析
- linux下抓包封信工具Tcpdump详解
- hdu 1247 字典树
- Android DDMS无法删除文件夹,通过adb shell方式删除文件夹
- ARM入门建议
- HTML5学习(4) 数据的存储(localStorage,sessionStorage)
- 查看Bash嵌套的层级
- JAVA中int、String的类型转换