source: trunk/minix/lib/i86/em/em_and.s@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

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
131:
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.