source:
trunk/minix/lib/i386/em/em_and.s@
11
| Last change on this file since 11 was 9, checked in by , 15 years ago | |
|---|---|
| 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 |
| 14 | 1: |
| 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.