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

6
printf PROTO C :dword, :vararg7

8
.data9
printResult byte 'result is % d, loop tot is %d', 0ah, 010

11
.code12
start proc13
push eax14
push ebx15
push ecx16
push edi17
push esi18
xor esi, esi19
mov ebx, 1620
mov ecx, 1021
a10:22
inc esi23
mov eax, ebx24
mul eax25
mov edi, eax26
mov eax, ecx27
mul ecx28
sub edi, eax29
cmp edi, 16830
jb addEbx31
ja addEcx32
sub eax, 10033
jmp showResult34
addEbx:35
inc ebx36
jmp a1037
addEcx:38
inc ecx39
jmp a1040
showResult:41
invoke printf, offset printResult, eax, esi42
pop eax43
pop ebx44
pop ecx45
pop edi46
pop esi47
ret48
start endp49
end start50

浙公网安备 33010602011771号