MikroElektronika PIC Microcontrollers PIC16 Manual do Utilizador Página 96

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 95
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
Compiler treats the construction like this:
if expression1 then
[ if expression2 then
statement1
else
statement2
end if ]
end if
To force the compiler to interpret our example the other way around, we would
have to write it explicitly:
if expression1 then
if expression2 then
statement1
end if
else
statement2
end if
if J <> 0 then
Res = I div J
end if
if j <> 0 then
i = i + 1
j = 0
end if
...
if v = 0 then
portb = por2
porta = 1
v = 1
else
portb = por1
porta = 2
v = 0
end if
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
91
page
Examples
Vista de página 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 171 172

Comentários a estes Manuais

Sem comentários