PIC Assembly Articles
Sun Mar 31, 2013 3:34 pm
Elements of Assembly Language Instruction :Any PIC Instruction consists of:- Code:
Label Mnemonics Operands
- Label: is textual designation for a line in a program, or section of a program to can jump to the beginning of set of lines of a program.
- Mnemonics: is the instruction which already defined by the use of microprocessor. It is the instruction set or the syntax of the used microprocessor.
- Operands: are the instruction elements for the instruction is being executed. They are usually registers or variables or constants.
- Comment: is a series of words that a programmer writes to make the program more clear and legible. It is placed after an instruction, and must start with a semicolon ";". It is optional.
Code Example :
asm code
start movlw 0x03
Here the
start is a label.
movlw is a opcode.
0x03 is a operand.
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.