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
- Host: GitHub
- URL: https://github.com/leo-aa88/assembly-x86-tutorials
- Owner: leo-aa88
- License: gpl-3.0
- Created: 2022-05-15T21:16:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T02:12:18.000Z (over 3 years ago)
- Last Synced: 2025-04-20T15:43:49.949Z (10 months ago)
- Topics: assembly-tutorial, assembly-tutorials, assembly-x86, nasm-assembly
- Language: Assembly
- Homepage:
- Size: 34.2 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`