ack/mach/i86/libem/com.s
1987-01-08 10:13:48 +00:00

16 lines
191 B
ArmAsm

.sect .text; .sect .rom; .sect .data; .sect .bss
.define .com
! #bytes in cx
.sect .text
.com:
pop bx ! return address
mov di,sp
sar cx,1
1:
not (di)
inc di
inc di
loop 1b
jmp bx