Added script for compile ASM files for x86 arch
This commit is contained in:
11
README.md
11
README.md
@@ -24,6 +24,12 @@ nasm -f elf32 file.asm -o file.o
|
|||||||
ld -m elf_i386 file.o -o file
|
ld -m elf_i386 file.o -o file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or using script
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./asmc32.sh file.asm
|
||||||
|
```
|
||||||
|
|
||||||
### Run
|
### Run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -33,9 +39,8 @@ ld -m elf_i386 file.o -o file
|
|||||||
### Full Example
|
### Full Example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nasm -f elf32 hello_world.asm -o hello_world.o
|
./asmc32.sh helloworld.asm
|
||||||
ld -m elf_i386 hello_world.o -o hello_world
|
./helloworld
|
||||||
./hello_world
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📚 Intel Syntax
|
## 📚 Intel Syntax
|
||||||
|
|||||||
Reference in New Issue
Block a user