找回密码
 立即注册
相关推荐换一批
  1. 易语言模块 界面特效模块.ec
  2. 03-【固定资产管理】-07-固定资产标签卡
  3. GB/T 41734.1-2022动物射频识别 第1部分:射频识别标签与GB/T 20563和GB/T 22334的
  4. GB/T 41732.1-2022动物射频识别 增强型射频识别标签 第1部分:空中接口
  5. GA 55-93 物证通用标签
  6. YY 0068. 3-2008 医用内窥镜硬性内窥镜 第3部分:标签和随附资料
  7. YY 0290.4-2008/ISO 11979-4 : 2000 眼科光学人工晶状体 第4部分:标签和资料
  8. YY/T 0975-2016 麻醉和呼吸设备麻醉期间用于贴示在含药物注射器_上的标签颜色、图案
  9. YY/T 1156-2009 凝血酶时间检测试剂(盒)
  10. YD/T 2818-2015 无缝多协议标签交换技术要求
  11. SN/T 3880-2014 进出口气溶胶标签规则
  12. SN/T 3801-2014 基于GHS标签的消费品风险评估方法
  13. GB 20178-2014 土方机械 机器安全标签通则
  14. DL/T 785-2001 火力发电厂中温中压管道(件)安全技术导则
  15. GB/T 2878.3-2017 液压传动连接口和螺柱端
  16. GB 30000.27-2013 化学品分类和标签规范 第27部分:吸入危害
  17. GB 30000.24-2013 化学品分类和标签规范 第24部分:生殖毒性
  18. GB 30000.19-2013 化学品分类和标签规范 第19部分:皮肤腐蚀/刺激
  19. GB 30000.18-2013 化学品分类和标签规范 第18部分:急性毒性
  20. GB 30000.17-2013 化学品分类和标签规范 第17部分:金属腐蚀物
  21. GB 30000.15-2013 化学品分类和标签规范 第15部分:氧化性固体
  22. GB 30000.14-2013 化学品分类和标签规范 第14部分:氧化性液体
  23. GB 30000.2-2013 化学品分类和标签规范 第2部分:爆Z物
  24. GB 15258-2009 化学品安全标签编写规定
标签TheARMand | 汇编语言 2021-08-01 911 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
这个小工具的作用是输入一条汇编指令,然后输出其16进制数据。
生成一些补丁代码的时候很方便
要注意的是这个工具依赖gcc的,是AT&T的语法,Windwos下依赖cygwin
例如
#asm2hex i386 "inc %r14d"
Size:    3
Code:    41 FF C6    inc %r14d
简直是方便过头了。
现在暂时只支持i386和x86_64,不过别的架构也是同理。
提个大概的方法,例如ARM
arm-linux-androideabi-gcc -S org.c -o arm.s
接着要对arm.s做点修改
修改的地方主要是i386.s里的_start _end标签,还有这两个标签之间的<code>,然后就是_start标签前面的jmp _end
还有就是尾部的_size标签,_addr标签,和_asm_str标签
相信懂行的看下asm2hex,org.c的代码就懂了。

(The function of this small tool is to input one piece of data, and then output its 16 pieces of data.
It is very convenient to generate some patch code
If this tool does not rely on gcc, it is AT&T's syntax, and under Windwos, pay attention to relying on cygwin
E.g
#asm2hex i386 "inc %r14d"
   Size: 3
   Code: 41 FF C6 inc %r14d
Clean is too convenient.
For now, only i386 and x86_64 are supported, but they are not the same.
Give a rough idea, such as ARM
arm-linux-androideabi-gcc -S org.c -o arm.s
Then we need to make some changes to arm.s
The modification is mainly the _start _end tag in i386.s, and the <code> between these two tags, and then the jmp _end in front of the _start tag
There is the tail _size tag, _addr tag, and _asm_str tag
I believe those who know how to read asm2hex will understand the code of org.c.)

1627828519480.rar


上一篇:BeaEngine v2.3
下一篇:C专家编程学习资料