simrantogether
Member
Hi all,
I wanted to ask in assembly of pic - the difference between EQU and # define.
EQU I understood but confusion in # define as the following line in book says...
" A #define on the other hand tells the assembler to substitute two values where it finds a certain word e.g. #define led portb.4
Wherever the assembler finds the word led, it substitutes 6.4 (or portb.4) in it's place. "
Can anyone make me understand above statement...
Main thing i understood that # define is used as generic - that we can make changes only at one part of program and all the program the values shall be changed automatically...
Regards,
Simran..
I wanted to ask in assembly of pic - the difference between EQU and # define.
EQU I understood but confusion in # define as the following line in book says...
" A #define on the other hand tells the assembler to substitute two values where it finds a certain word e.g. #define led portb.4
Wherever the assembler finds the word led, it substitutes 6.4 (or portb.4) in it's place. "
Can anyone make me understand above statement...
Main thing i understood that # define is used as generic - that we can make changes only at one part of program and all the program the values shall be changed automatically...
Regards,
Simran..