|
本帖最后由 EAX 于 2020-4-6 08:28 编辑
* 数组:5{5,4,3,2,1}
* 数组:5{5.000000,4.000000,3.000000,2.000000,1.000000}
* 数组:5{假,真,假,真,真}
* 数组:5{(子程序地址:2296400),(子程序地址:2296419),(子程序地址:2296438),(子程序地址:2296457),(子程序地址:2296476)}
* 数组:5{(子程序地址:2296476),(子程序地址:2296457),(子程序地址:2296438),(子程序地址:2296419),(子程序地址:2296400)}
* 数组:5{“文本5”,“文本4”,“文本3”,“文本2”,“文本1”}
* 数组:5{字节集:1{0},字节集:2{0,0},字节集:3{0,0,0},字节集:4{0,0,0,0},字节集:5{0,0,0,0,0}}
* 数组:5{字节集:5{0,0,0,0,0},字节集:4{0,0,0,0},字节集:3{0,0,0},字节集:2{0,0},字节集:1{0}}
- .版本 2
- .支持库 spec
- .程序集 程序集1
- .子程序 _启动子程序, 整数型
- _临时子程序 ()
- 返回 (0)
- .子程序 _临时子程序
- .局部变量 数组A, 整数型, , "0"
- .局部变量 数组B, 小数型, , "0"
- .局部变量 数组C, 逻辑型, , "0"
- .局部变量 数组D, 子程序指针, , "0"
- .局部变量 数组E, 文本型, , "0"
- .局部变量 数组F, 字节集, , "5"
- .局部变量 计数, 整数型
- 数组A = { 1, 2, 3, 4, 5 }
- 整数型数组_倒序 (数组A)
- 调试输出 (数组A)
- 数组B = { 1, 2, 3, 4, 5 }
- 小数型数组_倒序 (数组B)
- 调试输出 (数组B)
- 数组C = { 真, 真, 假, 真, 假 }
- 逻辑型数组_倒序 (数组C)
- 调试输出 (数组C)
- 数组D = { &A, &B, &C, &D, &E }
- 调试输出 (数组D)
- 子程序指针数组_倒序 (数组D)
- 调试输出 (数组D)
- 数组E = { “文本1”, “文本2”, “文本3”, “文本4”, “文本5” }
- 文本型数组_倒序 (数组E)
- 调试输出 (数组E)
- .计次循环首 (5, 计数)
- 数组F [计数] = 取空白字节集 (计数)
- .计次循环尾 ()
- 调试输出 (数组F)
- 字节集数组_倒序 (数组F)
- 调试输出 (数组F)
- .子程序 整数型数组_倒序, , 公开
- .参数 数组变量, 整数型, 参考 数组
- 置入代码 ({ 80, 83, 81, 82, 86, 87, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 120, 4, 11, 192, 117, 2, 235, 30, 131, 192, 8, 139, 215, 209, 234, 51, 246, 79, 235, 14, 139, 28, 176, 139, 12, 184, 137, 12, 176, 137, 28, 184, 79, 70, 59, 242, 114, 238, 95, 94, 90, 89, 91, 88 })
- ' push eax
- ' push ebx
- ' push ecx
- ' push edx
- ' push esi
- ' push edi
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edi,[eax+4]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' mov edx,edi
- ' shr edx,1
- ' xor esi,esi
- ' dec edi
- ' .while esi < edx
- ' mov ebx,[eax+esi*4]
- ' mov ecx,[eax+edi*4]
- ' mov [eax+esi*4],ecx
- ' mov [eax+edi*4],ebx
- ' dec edi
- ' inc esi
- ' .endw
- ' ASM_END:
- ' pop edi
- ' pop esi
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' pop eax
- .子程序 小数型数组_倒序, , 公开
- .参数 数组变量, 小数型, 参考 数组
- 置入代码 ({ 80, 83, 81, 82, 86, 87, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 120, 4, 11, 192, 117, 2, 235, 30, 131, 192, 8, 139, 215, 209, 234, 51, 246, 79, 235, 14, 139, 28, 176, 139, 12, 184, 137, 12, 176, 137, 28, 184, 79, 70, 59, 242, 114, 238, 95, 94, 90, 89, 91, 88 })
- ' push eax
- ' push ebx
- ' push ecx
- ' push edx
- ' push esi
- ' push edi
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edi,[eax+4]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' mov edx,edi
- ' shr edx,1
- ' xor esi,esi
- ' dec edi
- ' .while esi < edx
- ' mov ebx,[eax+esi*4]
- ' mov ecx,[eax+edi*4]
- ' mov [eax+esi*4],ecx
- ' mov [eax+edi*4],ebx
- ' dec edi
- ' inc esi
- ' .endw
- ' ASM_END:
- ' pop edi
- ' pop esi
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' pop eax
- .子程序 逻辑型数组_倒序, , 公开
- .参数 数组变量, 逻辑型, 参考 数组
- 置入代码 ({ 80, 83, 81, 82, 86, 87, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 120, 4, 11, 192, 117, 2, 235, 30, 131, 192, 8, 139, 215, 209, 234, 51, 246, 79, 235, 14, 139, 28, 176, 139, 12, 184, 137, 12, 176, 137, 28, 184, 79, 70, 59, 242, 114, 238, 95, 94, 90, 89, 91, 88 })
- ' push eax
- ' push ebx
- ' push ecx
- ' push edx
- ' push esi
- ' push edi
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edi,[eax+4]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' mov edx,edi
- ' shr edx,1
- ' xor esi,esi
- ' dec edi
- ' .while esi < edx
- ' mov ebx,[eax+esi*4]
- ' mov ecx,[eax+edi*4]
- ' mov [eax+esi*4],ecx
- ' mov [eax+edi*4],ebx
- ' dec edi
- ' inc esi
- ' .endw
- ' ASM_END:
- ' pop edi
- ' pop esi
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' pop eax
- .子程序 子程序指针数组_倒序, , 公开
- .参数 数组变量, 子程序指针, 参考 数组
- 置入代码 ({ 80, 83, 81, 82, 86, 87, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 120, 4, 11, 192, 117, 2, 235, 30, 131, 192, 8, 139, 215, 209, 234, 51, 246, 79, 235, 14, 139, 28, 176, 139, 12, 184, 137, 12, 176, 137, 28, 184, 79, 70, 59, 242, 114, 238, 95, 94, 90, 89, 91, 88 })
- ' push eax
- ' push ebx
- ' push ecx
- ' push edx
- ' push esi
- ' push edi
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edi,[eax+4]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' mov edx,edi
- ' shr edx,1
- ' xor esi,esi
- ' dec edi
- ' .while esi < edx
- ' mov ebx,[eax+esi*4]
- ' mov ecx,[eax+edi*4]
- ' mov [eax+esi*4],ecx
- ' mov [eax+edi*4],ebx
- ' dec edi
- ' inc esi
- ' .endw
- ' ASM_END:
- ' pop edi
- ' pop esi
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' pop eax
- .子程序 文本型数组_倒序, , 公开
- .参数 数组变量, 文本型, 参考 数组
- 置入代码 ({ 80, 83, 81, 82, 86, 87, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 120, 4, 11, 192, 117, 2, 235, 30, 131, 192, 8, 139, 215, 209, 234, 51, 246, 79, 235, 14, 139, 28, 176, 139, 12, 184, 137, 12, 176, 137, 28, 184, 79, 70, 59, 242, 114, 238, 95, 94, 90, 89, 91, 88 })
- ' push eax
- ' push ebx
- ' push ecx
- ' push edx
- ' push esi
- ' push edi
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edi,[eax+4]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' mov edx,edi
- ' shr edx,1
- ' xor esi,esi
- ' dec edi
- ' .while esi < edx
- ' mov ebx,[eax+esi*4]
- ' mov ecx,[eax+edi*4]
- ' mov [eax+esi*4],ecx
- ' mov [eax+edi*4],ebx
- ' dec edi
- ' inc esi
- ' .endw
- ' ASM_END:
- ' pop edi
- ' pop esi
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' pop eax
- .子程序 字节集数组_倒序, , 公开
- .参数 数组变量, 字节集, 参考 数组
- 置入代码 ({ 80, 83, 81, 82, 86, 87, 139, 69, 8, 11, 192, 117, 2, 235, 47, 139, 0, 11, 192, 117, 2, 235, 39, 139, 120, 4, 11, 192, 117, 2, 235, 30, 131, 192, 8, 139, 215, 209, 234, 51, 246, 79, 235, 14, 139, 28, 176, 139, 12, 184, 137, 12, 176, 137, 28, 184, 79, 70, 59, 242, 114, 238, 95, 94, 90, 89, 91, 88 })
- ' push eax
- ' push ebx
- ' push ecx
- ' push edx
- ' push esi
- ' push edi
- ' mov eax,[ebp+8]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov eax,[eax]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' mov edi,[eax+4]
- ' .if !eax
- ' jmp ASM_END
- ' .endif
- ' add eax,8
- ' mov edx,edi
- ' shr edx,1
- ' xor esi,esi
- ' dec edi
- ' .while esi < edx
- ' mov ebx,[eax+esi*4]
- ' mov ecx,[eax+edi*4]
- ' mov [eax+esi*4],ecx
- ' mov [eax+edi*4],ebx
- ' dec edi
- ' inc esi
- ' .endw
- ' ASM_END:
- ' pop edi
- ' pop esi
- ' pop edx
- ' pop ecx
- ' pop ebx
- ' pop eax
- .子程序 A
- .子程序 B
- .子程序 C
- .子程序 D
- .子程序 E
复制代码 |
|