|
发表于 2019-10-10 19:00:00
|阅读模式
- .版本 2
- .程序集 程序集1
- .子程序 _启动子程序, 整数型, , 请在本子程序中放置易模块初始化代码
- _临时子程序 () ' 在初始化代码执行完毕后调用测试代码
- 返回 (0) ' 可以根据您的需要返回任意数值
- .子程序 _临时子程序
- ' 本名称子程序用作测试程序用,仅在开发及调试环境中有效,编译发布程序前将被系统自动清空,请将所有用作测试的临时代码放在本子程序中。 ***注意不要修改本子程序的名称、参数及返回值类型。
- 输出调试文本 (字节集_位与 ({ 255, 127, 123, 170 }))
- 输出调试文本 (字节集_位或 ({ 1, 2, 4, 8 }))
- 输出调试文本 (字节集_位异或 ({ 1, 2, 4, 8, 13 }))
- 输出调试文本 (字节型数组_位与 ({ 255, 127, 123, 170 }))
- 输出调试文本 (字节型数组_位或 ({ 1, 2, 4, 8 }))
- 输出调试文本 (字节型数组_位异或 ({ 1, 2, 4, 8, 13 }))
- .子程序 字节集_位与, 字节型, 公开
- .参数 字节集, 字节集
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 45, 139, 0, 11, 192, 117, 2, 235, 37, 139, 88, 4, 11, 219, 117, 4, 51, 192, 235, 26, 131, 192, 8, 51, 201, 178, 255, 235, 10, 34, 20, 1, 10, 210, 117, 2, 235, 5, 65, 59, 203, 114, 242, 15, 182, 194, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov ebx,[eax+4]
- ' .if ebx == 0
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' mov dl,255
- ' .while ecx < ebx
- ' and dl,[eax+ecx]
- ' .if dl == 0
- ' .break
- ' .endif
- ' inc ecx
- ' .endw
- ' movzx eax,dl
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (0)
- .子程序 字节集_位或, 字节型, 公开
- .参数 字节集, 字节集
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 46, 139, 0, 11, 192, 117, 2, 235, 38, 139, 88, 4, 11, 219, 117, 4, 51, 192, 235, 27, 131, 192, 8, 51, 201, 50, 210, 235, 11, 10, 20, 1, 128, 250, 255, 117, 2, 235, 5, 65, 59, 203, 114, 241, 15, 182, 194, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov ebx,[eax+4]
- ' .if ebx == 0
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' xor dl,dl
- ' .while ecx < ebx
- ' or dl,[eax+ecx]
- ' .if dl == 255
- ' .break
- ' .endif
- ' inc ecx
- ' .endw
- ' movzx eax,dl
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (0)
- .子程序 字节集_位异或, 字节型, 公开
- .参数 字节集, 字节集
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 39, 139, 0, 11, 192, 117, 2, 235, 31, 139, 88, 4, 11, 219, 117, 4, 51, 192, 235, 20, 131, 192, 8, 51, 201, 50, 210, 235, 4, 50, 20, 1, 65, 59, 203, 114, 248, 15, 182, 194, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov ebx,[eax+4]
- ' .if ebx == 0
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' xor dl,dl
- ' .while ecx < ebx
- ' xor dl,[eax+ecx]
- ' inc ecx
- ' .endw
- ' movzx eax,dl
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (0)
- .子程序 字节型数组_位与, 字节型, 公开
- .参数 字节型数组, 字节型, 数组
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 45, 139, 0, 11, 192, 117, 2, 235, 37, 139, 88, 4, 11, 219, 117, 4, 51, 192, 235, 26, 131, 192, 8, 51, 201, 178, 255, 235, 10, 34, 20, 1, 10, 210, 117, 2, 235, 5, 65, 59, 203, 114, 242, 15, 182, 194, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov ebx,[eax+4]
- ' .if ebx == 0
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' mov dl,255
- ' .while ecx < ebx
- ' and dl,[eax+ecx]
- ' .if dl == 0
- ' .break
- ' .endif
- ' inc ecx
- ' .endw
- ' movzx eax,dl
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (0)
- .子程序 字节型数组_位或, 字节型, 公开
- .参数 字节型数组, 字节型, 数组
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 46, 139, 0, 11, 192, 117, 2, 235, 38, 139, 88, 4, 11, 219, 117, 4, 51, 192, 235, 27, 131, 192, 8, 51, 201, 50, 210, 235, 11, 10, 20, 1, 128, 250, 255, 117, 2, 235, 5, 65, 59, 203, 114, 241, 15, 182, 194, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov ebx,[eax+4]
- ' .if ebx == 0
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' xor dl,dl
- ' .while ecx < ebx
- ' or dl,[eax+ecx]
- ' .if dl == 255
- ' .break
- ' .endif
- ' inc ecx
- ' .endw
- ' movzx eax,dl
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (0)
- .子程序 字节型数组_位异或, 字节型, 公开
- .参数 字节型数组, 字节型, 数组
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 39, 139, 0, 11, 192, 117, 2, 235, 31, 139, 88, 4, 11, 219, 117, 4, 51, 192, 235, 20, 131, 192, 8, 51, 201, 50, 210, 235, 4, 50, 20, 1, 65, 59, 203, 114, 248, 15, 182, 194, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if eax == 0
- ' jmp ASM_END
- ' .endif
- ' mov ebx,[eax+4]
- ' .if ebx == 0
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' xor dl,dl
- ' .while ecx < ebx
- ' xor dl,[eax+ecx]
- ' inc ecx
- ' .endw
- ' movzx eax,dl
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (0)
复制代码 |
|