An assembly language is a language for low-level programming designed for a specific type of processor. It can be produced by compiling the source code of a programming language of high level (such as C / C ++), but can also be written from scratch. Assembly code can be converted to machine code using an assembler.
Like most compilers convert source code directly into machine code, software developers often create programs without using assembly language. However, in some cases, the code assembly can be used to refine a program. For example, a programmer can write a specific process in assembly language to make sure it works as efficiently as possible.
Although assembly languages differ between processor architectures, they often include instructions and similar operators. Examples of instructions supported by x86 processors.
MOV - move data from one place to another
ADD - add two values
SUB - subtract one value from another value
PUSH - push data onto a stack
POP - pop data from stack
JMP - jump to another location
INT - interrupt a process
The following assembly language can be used to add the numbers 3 and 4:
mov eax, 3-3 loads in the register "eax"
mov ebx, 4-4 loads in the "ebx" register
add eax, ebx, ecx - adds "eax" and "ebx" and stores the result (7) "ecx"
Written in assembly language is a tedious process, because each operation must be performed at a very basic level. Although it is not necessary to use the code to create an assembly language learning editing computer program is often part of a computer program because it provides useful information on the work of the processors one way.