找回密码
 立即注册
相关推荐换一批
  1. GB 30000.27-2013 化学品分类和标签规范 第27部分:吸入危害
  2. GB 30000.24-2013 化学品分类和标签规范 第24部分:生殖毒性
  3. GB 30000.19-2013 化学品分类和标签规范 第19部分:皮肤腐蚀/刺激
  4. GB 30000.18-2013 化学品分类和标签规范 第18部分:急性毒性
  5. GB 30000.17-2013 化学品分类和标签规范 第17部分:金属腐蚀物
  6. GB 30000.15-2013 化学品分类和标签规范 第15部分:氧化性固体
  7. GB 30000.14-2013 化学品分类和标签规范 第14部分:氧化性液体
  8. GB 30000.2-2013 化学品分类和标签规范 第2部分:爆Z物
  9. GB 15258-2009 化学品安全标签编写规定
  10. GB/T 22234-2008 基于GHS的化学品标签规范
  11. GB 12641-2007 教学视听设备及系统维护与操作的安全要求
  12. GB/T 2979-2008 农业轮胎规格、尺寸、气压与负荷
  13. GB/T 9278-2008 涂料试样状态调节和试验的温湿度
  14. GB/T 307.2-2005 滚动轴承 测量和检验的原则及方法
  15. GB/T 15258-1994 危险化学品标签编写导则
  16. GB 10344-2005 预包装饮料酒标签通则
  17. GB 13432-1992 特殊营养食品标签
  18. GB 7718-1994 食品标签通用标准
  19. GB 10648-1999 饲料标签
  20. 2021年牛津上海版小学一年级英语下册期末复习试题考试卷及参考答案解析
  21. 中山大学附属小学2016-2017学年度一年级英语上学期期末学业水平测试卷
  22. 2014-2015学年新起点版小学一年级英语上册期中教学质量检测试卷
  23. 2013年新派英语一年级下册期末综合测试卷(含听力材料与参考答案)
标签TheARMand | 汇编语言 2021-08-01 973 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专家编程学习资料