ack/mach/i86/libem/cms.s

19 lines
251 B
ArmAsm
Raw Normal View History

1985-02-07 15:33:13 +00:00
.define .cms
! $Header$
! #bytes in cx
.cms:
pop bx ! return address
mov dx,sp
mov si,dx
add dx,cx
mov di,dx
add dx,cx
sar cx,1
repe cmps
je 1f
inc cx
1:
mov sp,dx
jmp bx