MikroElektronika PIC Microcontrollers PIC16 Arkusz Danych Strona 36

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 35
Programming PIC Microcontrollers in BASIC - mikroElektronika
if PORTB.0 = 0 then
goto Add
end if
goto Main
Add: j = j + 1
end.
More complex form of instruction is program branching with the ELSE clause:
dim j as byte
Main:
if PORTB.0 = 0 then
j = j + 1
else
j = j - 1
endif
goto Main
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/04.htm (3 sur 9)05/11/2004 02:15:36
Przeglądanie stron 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 193 194

Komentarze do niniejszej Instrukcji

Brak uwag