Mikroelektronika MIKROE-442 데이터 시트
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
191
‘ structures declarations
structure ...
‘ variables declarations
dim Name[, Name2...] as [^]type [absolute 0x123] [external] [volatile] [register]
[sfr]
‘ procedures declarations
sub procedure procedure_name(...)
<local declarations>
...
end sub
‘ functions declarations
sub function function_name(...) as return_type
<local declarations>
...
end sub
‘********************************************************
‘* Program body:
‘********************************************************
main:
‘ write your code here
end.
Organization of Other Modules
Modules other than main start with the keyword
module
. Implementation section starts with the keyword
implements
.
Follow the model presented below:
module <module name>
include <include other modules>
‘********************************************************
‘* Interface (globals):
‘********************************************************
‘ symbols declarations
symbol ...
‘ constants declarations
const ...
‘ structures declarations
structure ...
‘ variables declarations
dim Name[, Name2...] as [^]type [absolute 0x123] [external] [volatile] [register]
[sfr]