source:
trunk/minix/lib/i86/em/em_xor.s@
11
Last change on this file since 11 was 9, checked in by , 13 years ago | |
---|---|
File size: 172 bytes |
Line | |
---|---|
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.