source:
trunk/minix/lib/i86/em/em_xor.s@
20
| Last change on this file since 20 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 172 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | .define .xor |
| 2 | .text | |
| 3 | ||
| 4 | ! #bytes in cx | |
| 5 | .xor: | |
| 6 | pop bx ! return address | |
| 7 | mov dx,di | |
| 8 | mov di,sp | |
| 9 | add di,cx | |
| 10 | sar cx,#1 | |
| 11 | 1: | |
| 12 | pop ax | |
| 13 | xor ax,(di) | |
| 14 | stos | |
| 15 | loop 1b | |
| 16 | mov di,dx | |
| 17 | jmp (bx) |
Note:
See TracBrowser
for help on using the repository browser.