๐PROGRAMMING LAUNGUAGE
๐Programming means developing a sequence of commands(or instructions) that can be used by computer system to perform a predefined task.
๐It also involves trouble shooting or debugging of instruction sequence to ensure that the desired operation is performed.
๐There three types of programming languages:
๐กMachine Language
๐กAssembly Language
๐กHigh Level Language
✏️ASSEMBLY LANGUAGE STRUCTURES
๐An assembly language program statement consists of three fields: Labels, instructions and comments.
๐[LABEL:] INSTRUCTION [//COMMENTS]
๐Brackets show that the field is optional and may not be present in all statements.
✏️LABEL
๐The label assigns a name to a memory location or a program statement.
๐It must be followed by the colon symbol ”:”.
๐While using label as a part of an instruction the colon symbol should not be used.
๐The name of any register or an instruction of a microcontroller cannot be used as a label.
๐For example: DPTR, DPL, MOV Etc.
✏️INSTRUCTIONS
๐Each Instruction has two parts:
๐One is operation to be performed called as operation code( OP-CODE)(Mnemonic)
For Example: ADD,MOV, INC etc
๐The second part is data on which operation is to be performed called as operands.
๐There two types of operands:
➡️Source operand
➡️Destination Operand
๐The operands can be specified in many ways: It may be 8 bit data, 16bit data, an internal register, a memory location or 8bit(or 16 bit) ADDRESS.
✏️INSTRUCTION SIZE
๐The number of bytes required to represent an instruction in a machine language is called instruction size.
๐There are one two or three bytes instructions in 8051.
No comments:
Post a Comment
If you have any doubts or clarification you need in my blog topics, I would ๐ฏ try to clear it in an efficient manner as possible. I will also accept your suggestions.