WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
What is FASM G
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

Convert ANY file to WinAsm friendly include file, small app to allow you to convert any file to a WinaASM friendly fomatted include file (db)

colinramsden
Quote Post


Active Member
***

Group: Members
Posts: 51
Member No.: 9469
Joined: 27-June 08


Sponsored Links
Attached is a badly written application I created to allow me to convert any file to a DB formatted, WinASM friendly, include file.

This is useful if you wish to include any type of binary file within your code rather than a resource file, it is a feature that I miss from my Atari/Amiga days when the 'Incbin' feature existed on HiSoft DevPack!

Should take files upto 4GB, although I have not tested files this large. I would only recommend its use on small files, as the output is over 5 times larger than the original.

Useage: Execute from Windows, use file bowser to firstly select the input file, then use file browser again to specify an output file.

Please note, it does not automatically add the .inc extension, you must do that!

Enjoy! Any problems or code modifications, please drop me a mail.

Colin.

Attached File ( Number of downloads: 88 )
 Login or Register to download
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2342
Member No.: 160
Joined: 22-June 04


you can look at fasm ;) it has very nice directive "file": you can simply insert whole binary file with it or even selected bytes with "load" directive ;)
PMEmail PosterUsers Website
Top
colinramsden
Quote Post


Active Member
***

Group: Members
Posts: 51
Member No.: 9469
Joined: 27-June 08


Thanks Shoorick, as ever you are a wealth of information!

I think I need to move away from MASM and use FASM or SOL, both have some good features that appear to be missing from MASM32.

Thanks,

Colin.
PMEmail Poster
Top
Gunner
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 213
Member No.: 27608
Joined: 11-October 09


Er, you can "convert" any file to db format to "embed" in your exe with MASM. Who says you can't? It has been around what, 20 something years..

Look in: \masm32\tools\bintodb and run the file called bintodb open a file and see what happens.
PMEmail PosterUsers Website
Top
animator102
Quote Post


New Member
*

Group: Members
Posts: 2
Member No.: 41298
Joined: 21-January 11


QUOTE (colinramsden @ Dec 21 2011, 05:13 PM)

Enjoy! Any problems or code modifications, please drop me a mail.

Colin.

Small updating for the console ))

C:\>bin2db.exe
Usage: bin2db.exe [-h] infile outfile

Attached File ( Number of downloads: 109 )
 Login or Register to download
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google