minix/lib/i86/em/em_xor.s

18 lines
172 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
.define .xor
.text
! #bytes in cx
.xor:
pop bx ! return address
mov dx,di
mov di,sp
add di,cx
sar cx,#1
1:
pop ax
xor ax,(di)
stos
loop 1b
mov di,dx
jmp (bx)