MikroElektronika PIC Microcontrollers PIC16 Datový list Strana 48

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 194
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 47
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub function Lo(dim Par as byte..longint) as byte
Description Returns byte 0 of <Par>, assuming that word/integer comprises bytes 1 and 0, and longint comprises bytes 3, 2,
1, and 0.
Example
Lo(A) ' returns lower byte of variable A
5.1.5 Hi – Extract one byte from the specified parameter
Prototype
sub function Hi(dim arg as word..longint) as byte
Description Returns byte 1 of <Par>, assuming that word/integer comprises bytes 1 and 0, and longint comprises bytes 3, 2,
1, and 0.
Example
Hi(Aa) ' returns hi byte of variable Aa
5.1.6 Higher – Extract one byte from the specified parameter
Prototype
sub function Higher(dim Par as longint) as byte
Description Returns byte 2 of <Par>, assuming that longint comprises bytes 3, 2, 1, and 0.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (6 sur 112)05/11/2004 02:20:52
Zobrazit stránku 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 193 194

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

Žádné komentáře