Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 2.1 KB

README.md

File metadata and controls

41 lines (33 loc) · 2.1 KB

x86-64-assembly-intro

Introductory exercises to assembly language.

Important

Be sure your machine uses a x86_64 processor: uname -a

The exercies are biased towards the x86-based processors supporting protected mode, rather than the more insecure active mode. The code is run on a 64-bit Linux machine with a 12th Gen Intel(R) Core(TM) i7-12650H CPU.

Assembly language appears in two flavors: Intel Style & AT&T style. GNU C compiler (i.e. GCC) uses AT&T. But the exercises will be in Intel style (e.g. NASM). There are several syntax differences, see this and that.

The open source NASM assembler is used to run the scripts:

sudo apt-get install nasm

How to compile, link and run a .asm code? Execute the provided shell script with the target folder's name as input argument, e.g.:

chmod 755 my-run_asm.sh && ./run_asm.sh ./ex1

These exercises are (and will be) based on the listed references.

References:

  1. Books
  1. Links
  1. Videos
  1. Other