Assembly Program Flow
Assembly Language Syntax
- [Label:] mnemonic [operands] [;comment]
- Mnemonics → assembly level instructions are called mnemonic like MOV R5
- Operands → on which the operation is performed.
- Example:
- Loop: MOV R1, #25H ; transfer 25H into R1
↑ ↑ ↑ ↑
Label mnemonics operand comments
Directives
ORG
- This instruction indicate the origin of program
- ORG 3000H means program starts from 3000H location.
- This instruction hasn’t take any memory space. It is used to show the starting address of program.
END
- This instruction show the END of program or it is used to terminate the program