[fpc-devel] Freepascal in microcontrollers
Daniël Mantione
daniel.mantione at freepascal.org
Wed Feb 27 10:35:45 CET 2008
Op Wed, 27 Feb 2008, schreef Marco van de Voort:
> function ByteIO(var p):puchar; inline;
>
> begin
> result:=3Dpuchar(@p);
> end;
> const port =3D puchar(_port); // !??!?
> port^:=3D$55;
Nope, don't forget that we have a nice arsenal of constructs to do system =
programming, like the mem array, the port array, absolute etc. The above =
can be replaced by:
mem[_port]:=3D$55;
Dani=EBl
More information about the fpc-devel
mailing list