User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
191
{ types declarations }
type ...
{ variables declarations }
var Name[, Name2...] : [^]type; [absolute 0x123;] [external;] [volatile;] [register;] [sfr;]
{ labels declarations }
label ...
{ procedures declarations }
procedure procedure_name(parameter_list);
{ local declarations }
begin
...
end;
{ functions declarations }
function function_name(parameter_list) : return_type;
{ local declarations }
begin
...
end;
//********************************************************
//* Program body:
//********************************************************
begin
{ write your code here }
end.
Organization of Other Units
Units other than main start with the keyword unit. Implementation section starts with the keyword implementation.
Follow the model presented below:
unit { unit name }
uses { include other units }
//********************************************************
//* Interface (globals):
//********************************************************
{ constants declarations }
const ...
{ types declarations }
type ...
{ variables declarations }
var Name[, Name2...] : [^]type; [absolute 0x123;] [external;] [volatile;] [register;] [sfr;]
{ procedures prototypes }
procedure procedure_name([var] [const] ParamName : [^]type; [var] [const] ParamName2,
ParamName3 : [^]type);