VOGONS


First post, by markot

User metadata
Rank Member
Rank
Member

I would like to learn x86 assembler programming and I'm looking for a good book. I have programmed a long time ago with Turbo Assembler and would like to find a book for that. So I'm open for suggestions. PDF books can also be recommended.

Reply 1 of 2, by gdjacobs

User metadata
Rank l33t++
Rank
l33t++

More accessible and maintained these days is NASM. Yes, it is available for DOS. Your skills with TASM will be useful if you decide to shift, some of the bells and whistles will be different, though.

http://stackoverflow.com/questions/1947121/a- … m-fasm-tutorial
http://rs1.szif.hu/~tomcat/win32/intro.txt

All hail the Great Capacitor Brand Finder

Reply 2 of 2, by Azarien

User metadata
Rank Oldbie
Rank
Oldbie

More accessible and maintained these days is NASM. Yes, it is available for DOS.

You can create .com files directly with NASM, but .exe requires a linker.

For protected mode, one can use ld from DJGPP. For protected *and* real mode, there is wlink from Open Watcom (v2). Both can be used with NASM.

The other day I've prepared a small package of NASM + WLINK + GNU Make + DOS32A extender. Creates DOS (pmode and real mode) and Win32 executables. I can send it to you if you want (2 MB).

You can also do 32-bit programming for Windows or Linux. I wouldn't recommend 64-bit Windows assembly, the calling convention is atrocious and most examples on the web are wrong.

Of good help are the manuals from Intel and AMD.
http://www.intel.com/content/www/us/en/proces … er-manuals.html
http://developer.amd.com/resources/documentat … guides-manuals/ (look for AMD64)