source:
trunk/minix/lib/ack/i386/em/em_dup.s@
15
Last change on this file since 15 was 9, checked in by , 14 years ago | |
---|---|
File size: 247 bytes |
Line | |
---|---|
1 | .sect .text; .sect .rom; .sect .data; .sect .bss |
2 | .define .dup |
3 | |
4 | ! #bytes in ecx |
5 | .sect .text |
6 | .dup: |
7 | pop ebx ! return address |
8 | mov eax,esi |
9 | mov edx,edi |
10 | mov esi,esp |
11 | sub esp,ecx |
12 | mov edi,esp |
13 | sar ecx,2 |
14 | rep movs |
15 | mov esi,eax |
16 | mov edi,edx |
17 | jmp ebx |
Note:
See TracBrowser
for help on using the repository browser.