Page 1 of 1

Benefits between SMD and BIN Format

Posted: Fri Feb 12, 2010 1:32 pm
by Munkyears
Hi, I know binary format is what most of the assemblers output. Is there any benefits or major differences in what can be stored etc.

Sorry cant read Sega2.doc as im at work :shock:

Regards

Posted: Fri Feb 12, 2010 2:20 pm
by ElBarto
Any other format that bin sucks, that's all :)

Posted: Fri Feb 12, 2010 6:09 pm
by Chilly Willy
The final output needs to be binary. You can compile things like libraries into object code or static library format for convenience when compiling other project later. Linking a static library is much quicker than compiling the code that makes that library every time.

Posted: Sat Feb 13, 2010 3:32 pm
by eteream
SMD was a copier file format used by Super Magic Driver copier.

http://info.sonicretro.org/Super_Magic_Drive
http://info.sonicretro.org/SMD

Although you can find a lot of roms named *.smd, they are really in bin format renamed to *.smd extension.

There are no major differences, it's about how the data is stored. Nothing to worry unless your are writing a loader code (HDD->RAM) of an emulator.

Posted: Sun Feb 14, 2010 3:53 am
by LocalH
eteream wrote:Although you can find a lot of roms named *.smd, they are really in bin format renamed to *.smd extension.
Not always. Sometimes such ROMs are actually SMD format (which can be confirmed by attempting to use them as BIN files, or by loading them in a hex editor).

SMD should die as a distribution format. It's only useful if one has an actual SMD (or DPF, I would guess) and can not use software that will convert on the fly when uploading to the copier (or for putting ROMs on floppy disk for use with such a copier).

SMD is just the raw BIN interleaved such that the copier's BIOS (which runs in SMS mode) can copy the ROM data to RAM for execution. SMDs can not accept raw binaries directly, they require the special SMD format ROMs (or uploading software that can convert on-the-fly).

Posted: Sun Feb 14, 2010 9:23 pm
by eteream
LocalH wrote: Not always. Sometimes such ROMs are actually SMD format (which can be confirmed by attempting to use them as BIN files, or by loading them in a hex editor).
It's true. I wanted to say most of the time.