[fpc-pascal] Move with pointers to memory

Tomas Hajny XHajT03 at hajny.biz
Wed Nov 13 09:39:27 CET 2013


On Wed, November 13, 2013 09:36, Rainer Stratmann wrote:
> http://www.freepascal.org/docs-html/rtl/system/move.html
>
> I have a working function in assembler wich copys a memory block from
> sorce to
> destination.
>
> Now I want it to do with the move function from unit system, but it does
> not
> work.
>
>
> procedure wd_copy( s , d : pointer ; l : longint );
> begin
>  move( s , d , l ); // does not work! Access violation errors
> end;
 .
 .

 Move (S^, D^, L)

should do it.

Tomas





More information about the fpc-pascal mailing list