Posts

Linux Assembly!

              An assembly program on a Linux platform can be compiled using   NASM .  NASM is an assembler and dissembler for the Intel x86 architecture and is commonly used to create 16-bit,32-bit and 64-bit programs. It is available on multiple operating systems like Linux or Windows. How to write and execute an assembly program in Linux: Step 1. Create a source file    You can use any text editor to create your  source file  for NASM such as Gedit, KWrite,XEmacs or using cat command.  When you save your file, give it the extension  .asm. Step 2. Assemble the source file For this step, you will need NASM software installed on your Linux machine. Use the following command line to assemble your source file:         nasm -f elf hello.asm      In the example, the saved  .asm  file is calle...