Introduction
Common instructions
Floating point instructions
MMX instructions
Complete instruction set (NASM)
NASM program linked to Borland, DJGPP or MINGW C library
NASM MDSOS .com file
YASM AMD64 linked to g++ under Linux
AS program linked to DJGPP or MINGW C library
AMD64 AS program linked to g++ under Linux
Borland/MARS C program using inline assembler.
Output from bcc32 -S
DJGPP C program using inline assembler.
Output from DJGPP gcc -S and
MINGW gcc -S
cpuid.asm to identify processor type
rdtsc.asm to count clock cycles
pi.c computes pi to n digits bcc32 -S and gcc -S output
bench.c and copy.asm benchmark array copy speed
portasm.c "semi-portable" inline assembly language in C
Examples from book
Some
tiny programs (just for fun)
Free C/C++ compilers:
Borland
MINGW
DJGPP
NASM
YASM