User`s manual
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
48
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
Directives are words of special significance for the mikroBasic, but unlike other
reserved words, appear only in contexts where user-defined identifiers cannot
occur.
You cannot define an identifier that looks exactly like a directive.
Absolute directive specifies the starting address in RAM for variable (if variable is
multi-byte, higher bytes are stored at consecutive locations).
Directive absolute is appended to the declaration of variable:
dim rem as byte absolute $22
' Variable will occupy 1 byte at address $22
dim dot as word absolute $23
' Variable will occupy 2 bytes at addresses $23 and $24
DIRECTIVES
Overview
Directive
Meaning
absolute
Specifies the exact location of variable in RAM
Byte variable will occupy
1 byte at address $22
Word variable will occupy
2 bytes
At addresses $23 and $24
PIC MCU RAM
m[0]