source:
trunk/minix/lib/i386/em/em_xor.s@
20
| Last change on this file since 20 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 239 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | .sect .text; .sect .rom; .sect .data; .sect .bss |
| 2 | .sect .text | |
| 3 | .define .xor | |
| 4 | ||
| 5 | ! #bytes in ecx | |
| 6 | .xor: | |
| 7 | pop ebx ! return address | |
| 8 | mov edx,edi | |
| 9 | mov edi,esp | |
| 10 | add edi,ecx | |
| 11 | sar ecx,2 | |
| 12 | 1: | |
| 13 | pop eax | |
| 14 | xor eax,(edi) | |
| 15 | stos | |
| 16 | loop 1b | |
| 17 | mov edi,edx | |
| 18 | jmp ebx |
Note:
See TracBrowser
for help on using the repository browser.