Specifications

http://www.mikroelektronika.co.yu/english/product/books/PICbook/4_Poglavlje.htm
4.8 END End of program
Syntax:
end
Description:
At the end of each program it is necessary to place 'end' directive so that assembly translator
would know that there are no more instructions in the program.
Example:
.
.
movlw 0xFF
movwf PORTB
end
Conditional instructions
4.9 IF Conditional program branching
Syntax:
if<conditional_term>
Description:
If condition in <conditional_term> was met, part of the program which follows IF directive would
be executed. And if it wasn't, then the part following ELSE or ENDIF directive would be executed.
Example:
if level=100
goto FILL
else
goto DISCHARGE
endif
Similar directives: #ELSE, ENDIF
4.10 ELSE The alternative to 'IF' program block with
conditional terms
Syntax:
Else
Description:
Used with IF directive as an alternative if conditional term is incorrect.
Example:
If time< 50
goto SPEED UP
else goto SLOW DOWN
endif
Similar instructions: ENDIF, IF
4.11 ENDIF End of conditional program section
http://www.mikroelektronika.co.yu/english/product/books/PICbook/4_Poglavlje.htm (8 of 15) [4/2/2003 16:18:10]