source: trunk/minix/lib/i386/em/em_and.s@ 10

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

Minix 3.1.2a

File size: 286 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.define .and
3
4 ! #bytes in ecx
5 ! save edi; it might be a register variable
6
7 .sect .text
8.and:
9 pop ebx ! return address
10 mov edx,edi
11 mov edi,esp
12 add edi,ecx
13 sar ecx,2
141:
15 pop eax
16 and eax,(edi)
17 stos
18 loop 1b
19 mov edi,edx
20 jmp ebx
Note: See TracBrowser for help on using the repository browser.