source: trunk/minix/lib/ack/i386/em/em_cms.s@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 349 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.define .cms
3
4 ! #bytes in ecx
5 .sect .text
6.cms:
7 pop ebx ! return address
8 mov edx,esp
9 push esi
10 push edi
11 mov esi,edx
12 add edx,ecx
13 mov edi,edx
14 add edx,ecx
15 sar ecx,2
16 repe cmps
17 je 1f
18 inc ecx
191:
20 pop edi
21 pop esi
22 mov esp,edx
23 jmp ebx
Note: See TracBrowser for help on using the repository browser.