Introduction to Assembly language
Introduction to Assembly language
Language
Assembly Language is a low-level programming language. It helps in
program.
Advantages:
1. It allows complex jobs to run in a simpler way.
Disadvantages:
1. It takes a lot of time and effort to write the code for the same.
computer architectures.
computer is performing.
Example:
global _main
extern _printf
section .text
_main:
push message
call _printf
add esp, 4
ret
message:
3. Save the file with any name example XYZ.asm, the extension
should be “.asm”.
4. The above file needs to compile with the help of assembler
6. After this, Nasm creates one object file that contains machine
is able to write the code to access registers and able to retrieve the
memory address of pointers and values. It mainly helps in speed