MikroElektronika PIC Microcontrollers PIC16 Uživatelský manuál Strana 53

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 172
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 52
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]
Zobrazit stránku 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 171 172

Komentáře k této Příručce

Žádné komentáře