ack/mach/i86/libem/com.s

16 lines
191 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 .com
! #bytes in cx
1987-01-08 10:13:48 +00:00
.sect .text
1985-02-07 15:33:13 +00:00
.com:
pop bx ! return address
mov di,sp
sar cx,1
1:
not (di)
inc di
inc di
loop 1b
jmp bx