Overview of Assembly Language
An assembly language is any low-level language in which there is the very correspondence between the program’s statements and the architecture machine code instruction. Each assembly language is specific to particular computer architecture and some time to on the operating system.
Advantage of assembly language:-
- It is easier to correct errors and modify program Instruction.
- Require few instructions to work.
- Program written in machine language is replaced by mnemonics which are easier to remember.
- Memory efficient.
- It is not required to keep track of memory locations.
- Faster and speed.
- Easy to make insertion and deletion.
- Requires fewer instructions to accomplish the same result.
The disadvantage of assembly language:-
- It takes a lot of times to code or writes the program, as it is more complex in nature.
- Difficult to remember the syntax.
- It is a machine dependent language.
- Knowledge of architecture is required to learn or code the assembly language program.
- No SDK( System Development Kit).
- No Portable.
- There is a lot of code we have to write for a simple or small work.
Assembly Language Statement format.
The general format of an assembly language statement is shown below. Each field shown here is described in Detail in one of the following Sections.
[lebel_field] [opcode_field] [operand_field] [comment_field]
[lebel:] Mnemonic operand(s) [:comment]
1. Lebel Field:-
Lebel field is an identifier that is used to tag the location of program and data object is Lebel is composed of an identifier and a termination colon.
2. Operation Field:-
The operation code field of an assembly language statement identifier the statement as a machine instruction, on assembler directive and macro defined by the programmer.
An assembler directive performs some functions during the assembly process. It doesn’t process only executive code, but it is may assign space for data in the program.
3. Operand Field:-
The operand field of an assembly language statement supply the argument of the machine instructions, assembler directive, or macro operand fatal may contain one or more operand, Developing on the requirement of the preceding machine instruction or assembler directive.
4. Comment Field:-
Assembly language comment begins with a semicolon(;). It may contain any printable character including blank. It can appear on a line by itself.
If you want to learn more about the system Software then follow the given link.