minix/lib/i86/em/em_cms.s

24 lines
276 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
.define .cms
! #bytes in cx
.text
.cms:
pop bx ! return address
mov dx,sp
push si
push di
mov si,dx
add dx,cx
mov di,dx
add dx,cx
sar cx,#1
repe
cmp
je 1f
inc cx
1:
pop di
pop si
mov sp,dx
jmp (bx)