ack/mach/i86/libem/cms.s

24 lines
328 B
ArmAsm
Raw Normal View History

1987-01-08 10:13:48 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
1985-02-07 15:33:13 +00:00
.define .cms
! #bytes in cx
1987-01-08 10:13:48 +00:00
.sect .text
1985-02-07 15:33:13 +00:00
.cms:
pop bx ! return address
mov dx,sp
push si
push di
1985-02-07 15:33:13 +00:00
mov si,dx
add dx,cx
mov di,dx
add dx,cx
sar cx,1
repe cmps
je 1f
inc cx
1:
pop di
pop si
1985-02-07 15:33:13 +00:00
mov sp,dx
jmp bx