minix/lib/i86/em/em_and.s

20 lines
218 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
.define .and
! #bytes in cx
! save di; it might be a register variable
.text
.and:
pop bx ! return address
mov dx,di
mov di,sp
add di,cx
sar cx,#1
1:
pop ax
and ax,(di)
stos
loop 1b
mov di,dx
jmp (bx)