Results 1 to 1 of 1
  1. #1
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Thanked 2,224 Times in 289 Posts
    Rep Power

    [Asm] Win32 Assembly Cheat Sheet

    Win32 Assembly Cheat Sheet
    The cheat sheet is intended for 32-bit Windows programming with FASM. One A4 page contains almost all general-purpose x86 instructions (except FPU, MMX and SSE instructions).

    На одной странице формата A4 умещены почти все x86-инструкции общего назначения с короткими описания, а также приведены различные приёмы их использования.

    What is included
    You will find various kinds of moves (MOV, CMOV, XCHG), arithmetical (ADD, SUB, MUL, DIV) and logical (AND, OR, XOR, NOT) instructions here. Several charts illustrate shifts (SHL/SHR, ROL/ROR, RCL/RCR) and stack frames. Code samples for typical high-level language constructs (if conditions, while and for loops, switches, function calls) are shown. Also included are quick references for RDTSC and CPUID instructions, description of string operations such as REP MOVSB, some code patterns for branchless conditions, a list of registers that should be saved in functions, and a lot of other useful stuff.

    The idea is to put all reference information about x86 assembly language on the one page. Some rarely-used instructions such as LDS, BOUNDS or AAA are skipped.

    The cheat sheet use common notation for operands: reg means register, [mem] means memory location, and imm is an immediate operand. Also, x, y, and z denote the first, the second, and the third operand. Instruction mnemonics are written in capital letters to make them easier to find when you are skipping through the cheat sheet.


    For example, let's look at multiplication and division section. There are instructions for signed (IMUL) and unsigned (MUL) multiplication. Both instructions take one operand, which may be register (reg) or memory ([mem]). There are three possible cases:
    • If operand size is one byte, MUL or IMUL multiplies it by al and stores the result in ax
    • If operand size is a word, MUL or IMUL multiplies it by ax and stores the high-order word of the result in dx and the low-order word in ax.
    • If operand size is a double word, MUL or IMUL multiplies it by eax and stores the high-order dword in edx and the low-order dword in eax.

    There are also two-operand and three-operand forms of IMUL shown on the figure above.

    Other features of assembly language are described in a similar way.

    The cheat sheet is designed for A4 page size; if you print it on US Letter paper, you will get large margins. You can print the cheat sheet and put it on your table to look for some instructions when you forget them.
    by Peter Kankowski

    Please register or login to download attachments.

    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  2. The Following User Says Thank You to Dwar For This Useful Post:

Visitors found this page by searching for:

win32 assembly cheat sheet

assembly language cheat sheet

assembly code cheat sheet

assembly programming cheat sheet

assembly commands cheat sheet

movsb in assembly sample code in 32-bit ubuntu

win32 asm game programming

imul example


win32 asm coding video tutorials

imul in assembler

x86 cheat sheet

win32 assembly

assembly cheatsheet

add multiply example asm

asm cheats

win32 asm assembly multiplication

asm imul examples80x86 assembly code sheetwin32 assembly instruction imulimul asm examplevideo tutorials win32 assemblyfasm windows programming tutorialsAT assembly sheet#pallintitle:assembly cheat#sclient=psy-ab

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts