home *** CD-ROM | disk | FTP | other *** search
- BIN to OBJ 32 converter, version 0.6ß Copyleft Mr. Baggins/EXTRAVAGANZA
-
- Coded for WATCOM C/C++ (but i think any flat model will do if only
- seg names will match ;) )
-
- I AM NOT RESPONSIBLE FOR ANYTHING, THIS PROGRAM IS FREE SO USE IT ON YOUR
- OWN RISK.
-
- The Story:
- Two days ago I downloaded yet another binary to obj converter, hmmm...
- and, as usual, not able to handle bigger files than 64k. So I get mad and
- dug in docs, specs, and *.OBJ files and wrote my own converter that CAN
- convert ANY files. (ANY size == up to 4Gb)
-
- Usage:
- BIN2OBJ32 <-c> InFile[.BIN] <OutFile[.OBJ]> <PublicName>
-
- Where:
- <> means that parameter is optional (InFile will be used)
-
- -c tells converter to place data in _TEXT (CODE) segment instead of _DATA
-
- - you only have to specify the source binary file, destination .OBJ
- will have the same name, and PUBLIC name will be the name of file
- w/o extension.
-
- - by default converter places binary data in _DATA segment, thus makes it
- accessible as normal external data. If you want it to be accessible
- as a procedure specify -c option and data will be placed in _TEXT (CODE)
- segment.
-
- - Underscore before variable name and after procedure name will be forced !
- Hmm... you have to live with this one, I'm compiling for register calling
- convention under WATCOM C, and in this convention I have to have those
- underscores. I don't think it's worth to differ this types, if you don't
- need those '_' it's not a problem - your var will look like this:
- _Table and not Table
-
- _ Last but not least: VaRiAbLe NaMes ArE cAsE sEnSiTiVe !!!
-
- Examples:
-
- BIN2OBJ32 -c PICTURE.TGA LOGO.OBJ Our_Cool_Logo
-
- this will make file LOGO.OBJ with PICTURE.TGA accessible from your C
- program as:
-
- for register calling conv.:
- extern void Our_Cool_Logo( void );
-
- for stack calling conv.:
- extern void Our_Cool_Logo_( void );
-
- ---
- BIN2OBJ32 PICTURE.TGA LOGO.OBJ Our_Cool_Logo
-
- and this will make file LOGO.OBJ with PICTURE.TGA accessible from your C
- program as:
-
- for register calling conv.:
- extern char Our_Cool_Logo; OR
- extern char Our_Cool_Logo[Size]; - where Size is the size of PICTURE.TGA
-
- for stack calling conv.:
- extern char _Our_Cool_Logo; OR
- extern char _Our_Cool_Logo[Size]; - where Size is the size of PICTURE.TGA
-
-
-
- Author:
- Jan Rekorajski a.k.a Mr. Baggins
- e-mail: jr211@zodiac2.mimuw.edu.pl
-
- I'm a coder in Polish demo group Extravaganza, but we are currently working
- on commercial games... so no demoscene productions :(, as you may have
- guessed I'm coding for WATCOM C and ASM :)
- I'm studying informatics at Warsaw University, now at second year.
-
- History:
- v 0.5 4-11-96 at 6.00 am
- - Initial version
- - Only DATA segment support
-
- v 0.6 5-11-96 at 3.00 am - First public release
- - Added support of CODE seg. "variables"
-