source:
trunk/minix/lib/i86/em/em_and.s@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
File size: 218 bytes |
Line | |
---|---|
1 | .define .and |
2 | |
3 | ! #bytes in cx |
4 | ! save di; it might be a register variable |
5 | |
6 | .text |
7 | .and: |
8 | pop bx ! return address |
9 | mov dx,di |
10 | mov di,sp |
11 | add di,cx |
12 | sar cx,#1 |
13 | 1: |
14 | pop ax |
15 | and ax,(di) |
16 | stos |
17 | loop 1b |
18 | mov di,dx |
19 | jmp (bx) |
Note:
See TracBrowser
for help on using the repository browser.