flat assembler
Message board for the users of flat assembler.

Index > Main > [fasmg] including a binary file

Author
Thread Post new topic Reply to topic
sylware



Joined: 23 Oct 2020
Posts: 437
Location: Marseille/France
sylware 20 Jan 2023, 12:07
How do I include a binary file ?

Do I have to convert the binary data to a text file?
Post 20 Jan 2023, 12:07
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 20 Jan 2023, 12:12
The same as in fasm 1, the directive for including binary data is called FILE:
Code:
bitmap FILE 'demo.bmp'    
Code:
header FILE 'demo.bmp':0,54    
Code:
virtual at 0
    file 'example.bin'
    EXAMPLE_SIZE := $
end virtual    
Post 20 Jan 2023, 12:12
View user's profile Send private message Visit poster's website Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 437
Location: Marseille/France
sylware 20 Jan 2023, 12:23
Sorry I did ask, my reading of fasmg manual is fading away and I only grepped on "include" (forums and manual).

Thanks!
Post 20 Jan 2023, 12:23
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.