ack/mach/i86/libem/ior.s

19 lines
223 B
ArmAsm
Raw Permalink Normal View History

1987-01-08 10:13:48 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
1985-02-07 15:33:13 +00:00
.define .ior
! #bytes in cx
.ior:
pop bx ! return address
mov dx,di
1985-02-07 15:33:13 +00:00
mov di,sp
add di,cx
sar cx,1
1:
pop ax
or ax,(di)
stos
loop 1b
mov di,dx
1985-02-07 15:33:13 +00:00
jmp bx