Benefits between SMD and BIN Format

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

Post Reply
Munkyears
Very interested
Posts: 54
Joined: Sat Mar 21, 2009 4:24 pm
Location: Sheffield, England

Benefits between SMD and BIN Format

Post by Munkyears » Fri Feb 12, 2010 1:32 pm

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
To be this good takes ages, To be this good takes Stef, Kanedafr, ChillyWilly & everyone who has helped me discover what hardwork is!

Dive into the SpritesMind! :)

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Fri Feb 12, 2010 2:20 pm

Any other format that bin sucks, that's all :)

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Fri Feb 12, 2010 6:09 pm

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.

eteream
Very interested
Posts: 81
Joined: Tue Dec 22, 2009 2:13 pm

Post by eteream » Sat Feb 13, 2010 3:32 pm

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.

LocalH
Very interested
Posts: 152
Joined: Tue Dec 19, 2006 5:04 pm

Post by LocalH » Sun Feb 14, 2010 3:53 am

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).

eteream
Very interested
Posts: 81
Joined: Tue Dec 22, 2009 2:13 pm

Post by eteream » Sun Feb 14, 2010 9:23 pm

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.

Post Reply