Specifications

http://www.mikroelektronika.co.yu/english/product/books/PICbook/4_Poglavlje.htm
Description:
By using this directive, textual designation changes with particular value.
It differs from CONSTANT directive in that after applying the directive, the value of textual
designation can be changed.
Example:
variable level=20
variable time=13
Similar directives: SET, CONSTANT
4.5 SET Defining assembler variable
Syntax:
<name_variable>set<value>
Description:
To the variable <name_variable> is added expression <value>. SET directive is similar to EQU,
but with SET directive name of the variable can be redefined following a definition.
Example:
level set 0
length set 12
level set 45
Similar directives: EQU, VARIABLE
4.6 EQU Defining assembler constant
Syntax:
<name_constant> equ <value>
Description:
To the name of a constant <name_constant> is added value <value>
Example:
five equ 5
six equ 6
seven equ 7
Similar instructions: SET
4.7 ORG Defines an address from which the program is stored
in microcontroller memory
Syntax:
<label>org<value>
Description:
This is the most frequently used directive. With the help of this directive we define where some
part of a program will be start in the program memory.
Example:
Start org 0×00
movlw 0xFF
movwf PORTB
The first two instructions following the first 'org' directive are stored from address 00, and the
other two from address 10.
http://www.mikroelektronika.co.yu/english/product/books/PICbook/4_Poglavlje.htm (7 of 15) [4/2/2003 16:18:10]