|
- .版本 2
- .支持库 spec
- .程序集 程序集1
- .子程序 _启动子程序, 整数型, , 请在本子程序中放置易模块初始化代码
- _临时子程序 () ' 在初始化代码执行完毕后调用测试代码
- 返回 (0) ' 可以根据您的需要返回任意数值
- .子程序 _临时子程序
- .局部变量 A, 逻辑型, , "0"
- A = { 真, 真, 真, 真, 真 }
- 调试输出 (逻辑型数组_归约与 (A))
- 调试输出 (逻辑型数组_归约与非 (A))
- 调试输出 (逻辑型数组_归约或 (A))
- 调试输出 (逻辑型数组_归约或非 (A))
- 调试输出 (逻辑型数组_归约异或 (A))
- 调试输出 (逻辑型数组_归约同或 (A))
- .子程序 逻辑型数组_归约与, 逻辑型, 公开, 所有成员为真返回真,否则返回假
- .参数 逻辑型数组, 逻辑型, 数组, 空成员返回假
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 80, 4, 11, 210, 117, 4, 51, 192, 235, 28, 131, 192, 8, 51, 219, 235, 12, 139, 12, 152, 11, 201, 117, 4, 51, 192, 235, 10, 67, 59, 218, 114, 240, 184, 1, 0, 0, 0, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edx,[eax+4]
- ' .if !edx
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ebx,ebx
- ' .while ebx < edx
- ' mov ecx,[eax+ebx*4]
- ' .if ecx == 0
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' inc ebx
- ' .endw
- ' mov eax,1
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (假)
- .子程序 逻辑型数组_归约与非, 逻辑型, 公开, 所有成员为真返回假,否则返回真
- .参数 逻辑型数组, 逻辑型, 数组, 空成员返回假
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 80, 4, 11, 210, 117, 4, 51, 192, 235, 28, 131, 192, 8, 51, 219, 235, 15, 139, 12, 152, 11, 201, 117, 7, 184, 1, 0, 0, 0, 235, 7, 67, 59, 218, 114, 237, 51, 192, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edx,[eax+4]
- ' .if !edx
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ebx,ebx
- ' .while ebx < edx
- ' mov ecx,[eax+ebx*4]
- ' .if ecx == 0
- ' mov eax,1
- ' jmp ASM_END
- ' .endif
- ' inc ebx
- ' .endw
- ' xor eax,eax
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (假)
- .子程序 逻辑型数组_归约或, 逻辑型, 公开, 所有成员为假返回假,否则返回真
- .参数 逻辑型数组, 逻辑型, 数组, 空成员返回假
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 48, 139, 0, 11, 192, 117, 2, 235, 40, 139, 80, 4, 11, 210, 117, 4, 51, 192, 235, 29, 131, 192, 8, 51, 219, 235, 16, 139, 12, 152, 131, 249, 1, 117, 7, 184, 1, 0, 0, 0, 235, 7, 67, 59, 218, 114, 236, 51, 192, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edx,[eax+4]
- ' .if !edx
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ebx,ebx
- ' .while ebx < edx
- ' mov ecx,[eax+ebx*4]
- ' .if ecx == 1
- ' mov eax,1
- ' jmp ASM_END
- ' .endif
- ' inc ebx
- ' .endw
- ' xor eax,eax
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (假)
- .子程序 逻辑型数组_归约或非, 逻辑型, 公开, 所有成员为假返回真,否则返回假
- .参数 逻辑型数组, 逻辑型, 数组, 空成员返回假
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 48, 139, 0, 11, 192, 117, 2, 235, 40, 139, 80, 4, 11, 210, 117, 4, 51, 192, 235, 29, 131, 192, 8, 51, 219, 235, 13, 139, 12, 152, 131, 249, 1, 117, 4, 51, 192, 235, 10, 67, 59, 218, 114, 239, 184, 1, 0, 0, 0, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edx,[eax+4]
- ' .if !edx
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ebx,ebx
- ' .while ebx < edx
- ' mov ecx,[eax+ebx*4]
- ' .if ecx == 1
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' inc ebx
- ' .endw
- ' mov eax,1
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (假)
- .子程序 逻辑型数组_归约异或, 逻辑型, 公开, 真的数量为奇数返回真,否则返回假
- .参数 逻辑型数组, 逻辑型, 数组, 空成员返回假
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 38, 139, 0, 11, 192, 117, 2, 235, 30, 139, 80, 4, 11, 210, 117, 4, 51, 192, 235, 19, 131, 192, 8, 51, 219, 51, 201, 235, 4, 51, 12, 152, 67, 59, 218, 114, 248, 139, 193, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edx,[eax+4]
- ' .if !edx
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ebx,ebx
- ' xor ecx,ecx
- ' .while ebx < edx
- ' xor ecx,[eax+ebx*4]
- ' inc ebx
- ' .endw
- ' mov eax,ecx
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (假)
- .子程序 逻辑型数组_归约同或, 逻辑型, 公开, 真的数量为偶数返回真,否则返回假
- .参数 逻辑型数组, 逻辑型, 数组, 空成员返回假
- 置入代码 ({ 83, 81, 82, 139, 69, 8, 11, 192, 117, 2, 235, 41, 139, 0, 11, 192, 117, 2, 235, 33, 139, 80, 4, 11, 210, 117, 4, 51, 192, 235, 22, 131, 192, 8, 51, 219, 185, 1, 0, 0, 0, 235, 4, 51, 12, 152, 67, 59, 218, 114, 248, 139, 193, 90, 89, 91, 201, 194, 4, 0 })
- ' push ebx
- ' push ecx
- ' push edx
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edx,[eax+4]
- ' .if !edx
- ' xor eax,eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' xor ebx,ebx
- ' mov ecx,1
- ' .while ebx < edx
- ' xor ecx,[eax+ebx*4]
- ' inc ebx
- ' .endw
- ' mov eax,ecx
- ' ASM_END:
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' leave
- ' retn 4
- 返回 (假)
复制代码 |
|