ack/mach/i86/libem/exg.s

22 lines
335 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 .exg
! #bytes in cx
1987-01-08 10:13:48 +00:00
.sect .text
1985-02-07 15:33:13 +00:00
.exg:
pop bx ! return address
mov dx,cx
mov si,sp
sub sp,cx
mov di,sp
rep movs
mov si,sp
mov di,sp
add di,dx
add di,dx
mov cx,dx
sar cx,1
rep movs
mov sp,si
jmp bx