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 used a buffer with a length of 30 (see the manual of FASM Table 1.3 Data directives).
This is the source code:

Leave a Reply

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