Line | |
---|
1 | .sect .text; .sect .rom; .sect .data; .sect .bss
|
---|
2 | .define .cii
|
---|
3 |
|
---|
4 | .sect .text
|
---|
5 | .cii:
|
---|
6 | pop ebx ! return address
|
---|
7 | ! pop ecx, dest. size
|
---|
8 | ! pop edx, src. size
|
---|
9 | ! eax is source
|
---|
10 | cmp edx,1
|
---|
11 | jne 2f
|
---|
12 | movsxb eax,al
|
---|
13 | mov edx,4
|
---|
14 | jmp 1f
|
---|
15 | 2:
|
---|
16 | cmp edx,2
|
---|
17 | jne 1f
|
---|
18 | cwde ! convert from 2 to 4 bytes
|
---|
19 | mov edx,4
|
---|
20 | 1:
|
---|
21 | cmp edx,ecx
|
---|
22 | jne 9f
|
---|
23 | cmp edx,4
|
---|
24 | jne 9f
|
---|
25 | jmp ebx
|
---|
26 | 9:
|
---|
27 | .extern EILLINS
|
---|
28 | .extern .fat
|
---|
29 | mov eax,EILLINS
|
---|
30 | push eax
|
---|
31 | jmp .fat
|
---|
Note:
See
TracBrowser
for help on using the repository browser.