26 lines
No EOL
245 B
NASM
26 lines
No EOL
245 B
NASM
IDEAL
|
|
MODEL large
|
|
P386
|
|
|
|
CODESEG
|
|
|
|
PUBLIC C copyline
|
|
|
|
PROC C copyline
|
|
|
|
ARG from:dword, to:dword, count:word
|
|
|
|
push ds si di
|
|
|
|
lds si, [from]
|
|
les di, [to]
|
|
mov cx, [count]
|
|
|
|
cld
|
|
rep movsw
|
|
|
|
pop di si ds
|
|
ret
|
|
ENDP
|
|
|
|
END |