1
.3862
.model flat, stdcall3
option casemap : none4
includelib msvcrt.lib5

6
printf PROTO C :dword, :vararg7

8
.data9
showNum byte '%d', 010
newLine byte 0ah, 011
iArray dword 1, 2, 3, 412
COUNT EQU ($ - iArray) / 413

14
.code15
start proc16
push ebx17
push esi18
push eax19
20
mov esi, 021
mov ebx, esp22
L1: 23
push esi24
cmp esi, COUNT25
jz endShow26
xor esi, esi27
L2: 28
cmp [ebx - 4], esi29
jz addEsiL130
push esi31
xor esi, esi32
L3:33
cmp [ebx - 4], esi34
jz addEsiL235
cmp [ebx - 8], esi36
jz addEsiL237
mov eax, [ebx - 4]38
mov eax, iArray[eax * 4]39
invoke printf, offset showNum, eax 40
mov eax, [ebx - 8]41
mov eax, iArray[eax * 4]42
invoke printf, offset showNum, eax 43
mov eax, iArray[esi * 4]44
invoke printf, offset showNum, eax45
invoke printf, offset newLine 46
inc esi47
cmp esi, COUNT48
jnz L349
pop esi50
inc esi51
jmp L2 52
addEsiL1: 53
inc esi54
cmp esi, COUNT55
jnz L256
jmp resetL157
addEsiL2: 58
inc esi59
cmp esi, COUNT60
jnz L361
jmp resetL262
resetL1: 63
pop esi64
inc esi65
cmp esi, COUNT66
jz endShow67
jmp L168
resetL2: 69
pop esi70
inc esi71
cmp esi, COUNT72
jz resetL173
jmp L274
endShow:75
pop eax76
pop esi77
pop ebx78
ret79
start endp80
end start81

浙公网安备 33010602011771号