|
- .版本 2
- .支持库 spec
- .程序集 程序集1
- .子程序 _启动子程序, 整数型, , 请在本子程序中放置易模块初始化代码
- _临时子程序 () ' 在初始化代码执行完毕后调用测试代码
- 返回 (0) ' 可以根据您的需要返回任意数值
- .子程序 _临时子程序
- .局部变量 字节集, 字节集
- .局部变量 字节型数组, 字节型, , "0"
- .局部变量 字节集数组, 字节集, , "6"
- ' 本名称子程序用作测试程序用,仅在开发及调试环境中有效,编译发布程序前将被系统自动清空,请将所有用作测试的临时代码放在本子程序中。 ***注意不要修改本子程序的名称、参数及返回值类型。
- 字节集 = { 0, 1, 2, 3, 4, 5, 6, 7 }
- 字节型数组 = { 0, 1, 2, 3, 4, 5, 6, 7 }
- 字节集数组 [1] = { 0, 1, 2, 3, 4, 5, 6 }
- 字节集数组 [2] = { 77, 77, 77, 77, 77, 77 }
- 字节集数组 [3] = { 192, 168, 1, 1 }
- 字节集数组 [4] = { }
- 字节集数组 [6] = { 222, 222, 123, 123, 100, 100 }
- 字节集_取反 (字节集)
- 调试输出 (字节集)
- 字节型数组_取反 (字节型数组)
- 调试输出 (字节型数组)
- 字节集数组_取反 (字节集数组)
- 调试输出 (字节集数组)
- .子程序 字节集_取反, , 公开
- .参数 字节集, 字节集, 参考
- 置入代码 ({ 96, 139, 69, 8, 11, 192, 117, 2, 235, 37, 139, 0, 11, 192, 117, 2, 235, 29, 139, 88, 4, 11, 219, 117, 2, 235, 20, 131, 192, 8, 51, 201, 235, 9, 138, 20, 1, 246, 210, 136, 20, 1, 65, 59, 203, 114, 243, 97 })
- ' pushad
- ' 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
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' .while ecx < ebx
- ' mov dl,[eax+ecx]
- ' not dl
- ' mov [eax+ecx],dl
- ' inc ecx
- ' .endw
- ' ASM_END:
- ' popad
- .子程序 字节型数组_取反, , 公开
- .参数 字节型数组, 字节型, 参考 数组
- 置入代码 ({ 96, 139, 69, 8, 11, 192, 117, 2, 235, 37, 139, 0, 11, 192, 117, 2, 235, 29, 139, 88, 4, 11, 219, 117, 2, 235, 20, 131, 192, 8, 51, 201, 235, 9, 138, 20, 1, 246, 210, 136, 20, 1, 65, 59, 203, 114, 243, 97 })
- ' pushad
- ' 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
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ecx,ecx
- ' .while ecx < ebx
- ' mov dl,[eax+ecx]
- ' not dl
- ' mov [eax+ecx],dl
- ' inc ecx
- ' .endw
- ' ASM_END:
- ' popad
- .子程序 字节集数组_取反, , 公开
- .参数 字节集数组, 字节集, 参考 数组
- 置入代码 ({ 96, 139, 85, 8, 11, 210, 117, 2, 235, 61, 139, 18, 11, 210, 117, 2, 235, 53, 139, 90, 4, 11, 219, 117, 2, 235, 44, 131, 194, 8, 51, 201, 235, 33, 139, 4, 138, 11, 192, 116, 25, 96, 139, 88, 4, 131, 192, 8, 51, 201, 235, 9, 138, 20, 1, 246, 210, 136, 20, 1, 65, 59, 203, 114, 243, 97, 65, 59, 203, 114, 219, 97 })
- ' pushad
- ' mov edx,[ebp+8]
- ' .if edx == 0
- ' jmp ASM_END
- ' .endif
- ' mov edx,[edx]
- ' .if edx == 0
- ' jmp ASM_END
- ' .endif
- ' mov ebx,[edx+4]
- ' .if ebx == 0
- ' jmp ASM_END
- ' .endif
- ' add edx,8
- ' xor ecx,ecx
- ' .while ecx < ebx
- ' mov eax,[edx+ecx*4]
- ' .if eax != 0
- ' pushad
- ' mov ebx,[eax+4]
- ' add eax,8
- ' xor ecx,ecx
- ' .while ecx < ebx
- ' mov dl,[eax+ecx]
- ' not dl
- ' mov [eax+ecx],dl
- ' inc ecx
- ' .endw
- ' popad
- ' .endif
- ' inc ecx
- ' .endw
- ' ASM_END:
- ' popad
复制代码 |
|