Line | |
---|
1 | .sect .text; .sect .rom; .sect .data; .sect .bss
|
---|
2 | .extern .b64_add
|
---|
3 | .sect .text
|
---|
4 | .b64_add:
|
---|
5 | push ebp
|
---|
6 | mov ebp,esp
|
---|
7 | sub esp,8
|
---|
8 | push esi
|
---|
9 | push edi
|
---|
10 | mov esi,8(ebp)
|
---|
11 | mov edi,12(ebp)
|
---|
12 | mov edx,-1
|
---|
13 | sub edx,(esi)
|
---|
14 | xor eax,eax
|
---|
15 | cmp (edi),edx
|
---|
16 | jbe 1f
|
---|
17 | inc eax
|
---|
18 | 1:
|
---|
19 | mov -4(ebp),eax
|
---|
20 | mov edx,(edi)
|
---|
21 | add (esi),edx
|
---|
22 | mov edx,-1
|
---|
23 | sub edx,4(esi)
|
---|
24 | xor eax,eax
|
---|
25 | cmp 4(edi),edx
|
---|
26 | jbe 1f
|
---|
27 | inc eax
|
---|
28 | 1:
|
---|
29 | mov -8(ebp),eax
|
---|
30 | mov edx,4(edi)
|
---|
31 | add 4(esi),edx
|
---|
32 | cmp -8(ebp),0
|
---|
33 | je I1_4
|
---|
34 | mov edx,(esi)
|
---|
35 | inc edx
|
---|
36 | mov (esi),edx
|
---|
37 | jne I1_4
|
---|
38 | mov eax,1
|
---|
39 | jmp I1_1
|
---|
40 | I1_4:
|
---|
41 | mov eax,-4(ebp)
|
---|
42 | I1_1:
|
---|
43 | pop edi
|
---|
44 | pop esi
|
---|
45 | leave
|
---|
46 | ret
|
---|
Note:
See
TracBrowser
for help on using the repository browser.