Tag Archives: Linux

linux

Programming with FASM – the format ELF executable – part 006 .

Let’s read from a text file named new_file.txt with an assembler program.

The source code is easy to understand. This source code shows you how you can use a macro for print. The base of this source code use INT 0x80 with a rax register for many functions like open, read and close. I… Read More »

Programming with FASM – the format ELF executable – part 005 .

Let’s write into a text file named new_file.txt with an assembler program. First, you need to create this text file using the command touch.

The assembler FASM let us to write in the file using the INT 80 and some functions used with rax, rbx, rcx, rdx registers. For example the seek function of… Read More »

Programming with FASM – the format ELF executable – part 004 .

The tutorial for today is a simple one. I will show you how to delete the file created with in the last tutorial. Let’s create a new file named delete_file.fasm and used to delete the new_file.txt.

In the file delete_file.fasm I used the int 0x80 and mov rax, 10. The kernel is accessed using… Read More »