What is the best resource for learning (N)ASM?

2019-03-13 09:18发布

问题:

I've been wanting to learn assembly for a while now, and although I've tried a few times before, I haven't really been able to get past "Hello, world". Are there any good introductory tutorials to assembly (preferably using NASM, as I use Windows and Linux)?

I do have a bit of C knowledge, but mainly code in higher-level languages such as Ruby, Python, C# and JavaScript.

回答1:

For my Assembly language class, we're using the book that Bill recommends. My professor also recommended this book: Assembly Language Step-by-step: Programming with DOS and Linux. He said that this is the only book that he knows of that covers NASM (and it's a tad outdated).



回答2:

Here's an interesting page from a former teacher. http://drpaulcarter.com/pcasm/

I haven't read through his online book, though.



回答3:

I have tried a few assemblers, and I found FASM is the most beginner-friendly. It has a somewhat bad macro language, but otherwise it is an excellent piece of software. It supports both Windows and Linux object formats (either 32 or 64 bit). It has an active and good community, and plenty of beginner-friendly examples.



回答4:

Not specifically for NASM, but The MASM Forum has a lot of great information, and you will get more assistance if you ask your question their.



回答5:

Unfortunately, there is not so much good places and books to learn nasm. But some of them we have:

Resources:

  • Of course official documentation
  • Low-Level Programming: C, Assembly, and Program Execution on Intel ® 64 Architecture
  • Assembly Language for Intel-Based Computers(Kip R. Irvine)
  • Introduction to 64 Bit Intel Assembly Language Programming for Linux(Benjamin Ray Seyfarth)

This list will be updated as soon as I'll find new good resources.



标签: assembly nasm