An open API service indexing awesome lists of open source software.

https://github.com/leo-aa88/assembly-x86-tutorials

Assembly x86 tutorials
https://github.com/leo-aa88/assembly-x86-tutorials

assembly-tutorial assembly-tutorials assembly-x86 nasm-assembly

Last synced: 8 months ago
JSON representation

Assembly x86 tutorials

Awesome Lists containing this project

README

          

# assembly-x86-tutorials
Assembly x86 tutorials

## Running example 1

### Install assembler

`sudo apt-get install nasm`

### Assemble into machine code

`nasm -f elf32 ex1.asm -o ex1.o`

elf32 - executable and linking format.

### Build the executable

`ld -m elf_i386 ex1.o -o ex1`

### Execute the binary

`./ex1`

### Check the exit status

`echo $?`

## Running example 10 (calls prinft from C)

### Assemble the object file

`nasm -f elf32 ex10.asm -o ex10.o`

### Perform linking with gcc

`gcc -m32 ex10.o -o ex10`