Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A good NASM/FASM tutorial? [closed]

Does anyone know any good NASM or FASM tutorials? I am trying to learn assembler but I can't seem to find any good resources on it.

like image 271
Callum Rogers Avatar asked Dec 22 '09 15:12

Callum Rogers


People also ask

How do I use NASM on Windows?

Extract and install nasm into the codeblocks folder, e.g., C:\Program Files\CodeBlocks\MinGW\bin. Check whether the installation is working or not by the source code below for a test run. This is a Win32 console program that writes "Hello, World" on one line and; then exits. It needs to be linked with a C library.

How do I open a NASM file in Ubuntu?

Open a Linux terminal. Type whereis nasm and press ENTER. If it is already installed, then a line like, nasm: /usr/bin/nasm appears. Otherwise, you will see just nasm:, then you need to install NASM.

What is Nasm Linux?

The Netwide Assembler (NASM) is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs. It is considered one of the most popular assemblers for Linux.


4 Answers

There is e.g. Writing A Useful Program With NASM and of course the obvious http://www.nasm.us/doc/nasmdoc3.html.

There are a couple of sample programs at http://www.csee.umbc.edu/help/nasm/sample.shtml

If you are looking for a more general introduction to assembly programming there is The Art of Assembly Programming and the wikipedia page on NASM references Assembly Language Step by Step by Jeff Duntemann.

like image 83
Sebastian Avatar answered Oct 09 '22 00:10

Sebastian


There is a free book on assembly language by Dr. Paul Carter. It's based on NASM. http://www.drpaulcarter.com/pcasm/

There are some interesting collections of sample programs at

  • http://cs.lmu.edu/~ray/notes/nasmexamples/
  • http://www.csee.umbc.edu/portal/help/nasm/sample.shtml
  • http://forum.nasm.us/index.php?board=3.0
  • http://www.fifi.org/doc/nasm/examples/
like image 32
Jan Deinhard Avatar answered Oct 09 '22 02:10

Jan Deinhard


FASM

This is not an Tutorial but it is very helpful:

http://flatassembler.net/docs.php?article=manual

consider also to take a look at the examples that comes with the language.

There is also a forum with plenty of informations (about various Topics)

http://board.flatassembler.net/index.php

Here is a Beginner FAQ with all relavant informations for beginners:

http://board.flatassembler.net/topic.php?t=2530

like image 7
Quonux Avatar answered Oct 09 '22 00:10

Quonux


I'm just learning too, and just found this the other day.

The Art of Assembly Language Programming

I haven't read it all, but I've used bits of it.

like image 2
Sam Avatar answered Oct 09 '22 00:10

Sam