MikroElektronika PIC Microcontrollers PIC16 Datový list Strana 38

  • 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 37
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
select case W
case 0
B = 1
PORTB = B
case 1
A = 1
PORTA = A
case else
PORTB = 0
end select
...
select case Ident
case testA
PORTB = 6
Res = T mod 23
case teB + teC
T = 1313
case else
T = 0
end select
4.1.3 GOTO Statement – Unconditional jump to the specified label
Syntax
goto Label
Description Goto statement jumps to the specified label unconditionally, and the program
execution continues normally from that point on.
Avoid using GOTO too often, because over-labeled programs tend to be less
intelligible.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/04.htm (5 sur 9)05/11/2004 02:15:36
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 193 194

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

Žádné komentáře