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 write operation can be used like this:

Let’s see the full source code:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.