{ This file is part of the Free Pascal run time library. Copyright (c) 2008 by the Free Pascal development team. Processor dependent implementation for the system unit for AVR See the file COPYING.FPC, included in this distribution, for details about the copyright. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **********************************************************************} {$asmmode gas} procedure fpc_cpuinit;{$ifdef SYSTEMINLINE}inline;{$endif} begin end; {$define FPC_SYSTEM_HAS_MOVE} procedure Move(const source;var dest;count:SizeInt);[public, alias: 'FPC_MOVE']; var pdest,psrc,pend : pbyte; begin if (@dest=@source) or (count<=0) then exit; if (@dest<@source) or (@source+count<@dest) then begin { Forward Move } psrc:=@source; pdest:=@dest; pend:=psrc+count; while psrc@source do begin dec(pdest); dec(psrc); pdest^:=psrc^; end; end; end; {$define FPC_SYSTEM_HAS_FILLCHAR} Procedure FillChar(var x;count:SizeInt;value:byte); var pdest,pend : pbyte; v : ptruint; begin if count <= 0 then exit; pdest:=@x; pend:=pdest+count; while pdest