Assembly Instructions Cheat Sheet



LoadL instruction that precedes, in Sprogram order, isg l ob a yv ef r n load instruction which follows the fence in program order. SSE2 Broadcast Load load1 pd,ps NOTE: L oads fl t r m m eory in a l s f h 128-b t reg s. F p, t operation loaddup in SSE3 which may perform faster than load1. SSE2 Load Aligned load pd,ps,si128 NOTE: Load s 128. Go to next instruction (source line) but donʻt dive into functions. Finish Continue until the current function re-turns. Continue Continue normal execution. Variables and memory print/format Print content of variable/memory locati-on/register. Display/format Like „print“, but print the information after each stepping instruction. X86-64 Assembly Language Summary Dr. Orion Lawlor, last update 2019-10-14 These are all the normal x86-64 registers accessible from user code: Name Notes Type 64-bit long 32-bit int 16-bit short 8-bit char rax Values are returned from functions in this register.

  • Takes three instructions, creating a need for further clarity through commenting. Line 3 contains the.ORIG pseudo-op. A pseudo-op is an instruction that you can use when writing LC-3 assembly programs, but there is no corresponding instruction in LC-3’s instruction set. All pseudo-ops start with a period.
  • Cheat sheet for reversing malicious Windows executables via static and dynamic code analysis. Overview of the Code Analysis Process 1. Examine static properties of the Windows executable for initial assessment and triage. Identify strings and API calls that highlight the program’s suspicious or malicious capabilities.

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).

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.

Notation

Assembly Instructions Cheat Sheet Excel

Arm assembly instructions cheat sheet

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.

Example

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.

Assembly Instructions Cheat Sheet Template

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

Download

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.

Assembly command cheat sheet

Assembly Code Cheat Sheet

Serbo-Croatian translation of this article by WHG Team.