汇聚知识碎片,解决技术难题,专注提供易语言源码资源,视频教程,等在线学习交流论坛
 
发新帖
楼主: 天启
查看: 795|回复: 0

[源码] 易语言四则运算汇编版源码

[复制链接]
天启VIP6 发表于 2020-6-1 15:40:13 | 显示全部楼层
加减乘除汇编版,速度快,编译后速度更快。
  1. .版本 2

  2. .子程序 相加, 双精度小数型, 公开, 运算符号为“+”,返回两个数值的和。 [基础核心程序集]
  3. .参数 原数, 双精度小数型
  4. .参数 加数, 双精度小数型

  5. 置入代码 ({ 129, 236, 16, 0, 0, 0 })  ' 81EC 10000000   sub esp,0x10
  6. 置入代码 ({ 51, 192 })  ' 33C0            xor eax,eax
  7. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  8. 置入代码 ({ 137, 69, 252 })  ' 8945 FC         mov dword ptr ss:[ebp-0x4],eax
  9. 置入代码 ({ 221, 69, 8 })  ' DD45 08         fld qword ptr ss:[ebp+0x8]
  10. 置入代码 ({ 220, 69, 16 })  ' DC45 10         fadd qword ptr ss:[ebp+0x10]
  11. 置入代码 ({ 221, 93, 240 })  ' DD5D F0         fstp qword ptr ss:[ebp-0x10]
  12. 置入代码 ({ 139, 85, 244 })  ' 8B55 F4         mov edx,dword ptr ss:[ebp-0xC]
  13. 置入代码 ({ 139, 69, 240 })  ' 8B45 F0         mov eax,dword ptr ss:[ebp-0x10]
  14. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  15. 置入代码 ({ 137, 85, 252 })  ' 8955 FC         mov dword ptr ss:[ebp-0x4],edx
  16. 置入代码 ({ 139, 85, 252 })  ' 8B55 FC         mov edx,dword ptr ss:[ebp-0x4]
  17. 置入代码 ({ 139, 69, 248 })  ' 8B45 F8         mov eax,dword ptr ss:[ebp-0x8]
  18. 置入代码 ({ 201 })  ' C9              leave
  19. 置入代码 ({ 194, 16, 0 })  ' C2 1000         retn 0x10
  20. 返回 (0)
复制代码
  1. .版本 2

  2. .子程序 相减, 双精度小数型, 公开, 返回两个数值的差,运算符号为“-”。 [基础核心程序集]
  3. .参数 原数, 双精度小数型
  4. .参数 减数, 双精度小数型

  5. 置入代码 ({ 129, 236, 16, 0, 0, 0 })  ' 81EC 10000000   sub esp,0x10
  6. 置入代码 ({ 51, 192 })  ' 33C0            xor eax,eax
  7. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  8. 置入代码 ({ 137, 69, 252 })  ' 8945 FC         mov dword ptr ss:[ebp-0x4],eax
  9. 置入代码 ({ 221, 69, 8 })  ' DD45 08         fld qword ptr ss:[ebp+0x8]
  10. 置入代码 ({ 220, 101, 16 })  ' DC65 10         fsub qword ptr ss:[ebp+0x10]
  11. 置入代码 ({ 221, 93, 240 })  ' DD5D F0         fstp qword ptr ss:[ebp-0x10]
  12. 置入代码 ({ 139, 85, 244 })  ' 8B55 F4         mov edx,dword ptr ss:[ebp-0xC]
  13. 置入代码 ({ 139, 69, 240 })  ' 8B45 F0         mov eax,dword ptr ss:[ebp-0x10]
  14. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  15. 置入代码 ({ 137, 85, 252 })  ' 8955 FC         mov dword ptr ss:[ebp-0x4],edx
  16. 置入代码 ({ 139, 85, 252 })  ' 8B55 FC         mov edx,dword ptr ss:[ebp-0x4]
  17. 置入代码 ({ 139, 69, 248 })  ' 8B45 F8         mov eax,dword ptr ss:[ebp-0x8]
  18. 置入代码 ({ 201 })  ' C9              leave
  19. 置入代码 ({ 194, 16, 0 })  ' C2 1000         retn 0x10
  20. 返回 (0)
复制代码
  1. .版本 2

  2. .子程序 相除, 双精度小数型, 公开, 返回两个数值的商,运算符号为“/”或“÷”。[基础核心程序集]
  3. .参数 原数, 双精度小数型
  4. .参数 除数, 双精度小数型

  5. 置入代码 ({ 129, 236, 16, 0, 0, 0 })  ' 81EC 10000000   sub esp,0x10
  6. 置入代码 ({ 184, 0, 0, 0, 0 })  ' B8 00000000     mov eax,0x0
  7. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  8. 置入代码 ({ 137, 69, 252 })  ' 8945 FC         mov dword ptr ss:[ebp-0x4],eax
  9. 置入代码 ({ 221, 69, 8 })  ' DD45 08         fld qword ptr ss:[ebp+0x8]
  10. 置入代码 ({ 220, 117, 16 })  ' DC75 10         fdiv qword ptr ss:[ebp+0x10]
  11. 置入代码 ({ 221, 93, 240 })  ' DD5D F0         fstp qword ptr ss:[ebp-0x10]
  12. 置入代码 ({ 139, 85, 244 })  ' 8B55 F4         mov edx,dword ptr ss:[ebp-0xC]
  13. 置入代码 ({ 139, 69, 240 })  ' 8B45 F0         mov eax,dword ptr ss:[ebp-0x10]
  14. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  15. 置入代码 ({ 137, 85, 252 })  ' 8955 FC         mov dword ptr ss:[ebp-0x4],edx
  16. 置入代码 ({ 201 })  ' C9              leave
  17. 置入代码 ({ 194, 16, 0 })  ' C2 1000         retn 0x10
  18. 返回 (0)
复制代码
  1. .版本 2

  2. .子程序 相乘, 双精度小数型, 公开, 返回两个数值的乘积,运算符号为“*”或“×”。[基础核心程序集]
  3. .参数 原数, 双精度小数型
  4. .参数 乘数, 双精度小数型

  5. 置入代码 ({ 129, 236, 16, 0, 0, 0 })  ' 81EC 10000000   sub esp,0x10
  6. 置入代码 ({ 184, 0, 0, 0, 0 })  ' B8 00000000     mov eax,0x0
  7. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  8. 置入代码 ({ 137, 69, 252 })  ' 8945 FC         mov dword ptr ss:[ebp-0x4],eax
  9. 置入代码 ({ 221, 69, 8 })  ' DD45 08         fld qword ptr ss:[ebp+0x8]
  10. 置入代码 ({ 220, 77, 16 })  ' DC4D 10         fmul qword ptr ss:[ebp+0x10]
  11. 置入代码 ({ 221, 93, 240 })  ' DD5D F0         fstp qword ptr ss:[ebp-0x10]
  12. 置入代码 ({ 139, 85, 244 })  ' 8B55 F4         mov edx,dword ptr ss:[ebp-0xC]
  13. 置入代码 ({ 139, 69, 240 })  ' 8B45 F0         mov eax,dword ptr ss:[ebp-0x10]
  14. 置入代码 ({ 137, 69, 248 })  ' 8945 F8         mov dword ptr ss:[ebp-0x8],eax
  15. 置入代码 ({ 137, 85, 252 })  ' 8955 FC         mov dword ptr ss:[ebp-0x4],edx
  16. 置入代码 ({ 201 })  ' C9              leave
  17. 置入代码 ({ 194, 16, 0 })  ' C2 1000         retn 0x10
  18. 返回 (0)
复制代码


快速回复 返回顶部 返回列表