Bin To Rom for multiple bin files

Page 1/2
| 2

By alessandro_scaccia

Rookie (25)

alessandro_scaccia's picture

05-03-2018, 07:06

Hi at all,

I looking for a tool that convert multple bin file into a single ROM. The problem with using the bin2rom tool, is that can use max 16kb X2 bin for a total of 32kb ROM.
If having a bin with 18kb and another one with 18kb too, the tool doesen't work.

There are a new tool or another method for convert a big size of BIN files into a ROM up 64kb?

Thanks you.

Regards.

Alessandro.

Login or register to post comments

By NYYRIKKI

Enlighted (4947)

NYYRIKKI's picture

05-03-2018, 10:41

If you downloaded the BIN-files from somewhere the I'm pretty sure that you have a 32KB ROM-file that has been split to 2x16KB files. The extra space you see is taken by the BIN-header (7 bytes at start) + added loader routine (x bytes on beginning or end). This means that I think you can make the ROM-file by removing all the extra data and then concatenating the resulting 2x16KB (16384 bytes) files back to one file.

If this does not work, then you can place the BIN-files inside a DSK-file and then use DSK2ROM-tool. Please note that in case of ROM-files bigger than 32KB you need to know if / how the ROM-file is memory mapped especially with home made ROMs. (Popular emulators use known ROMs database to recognize correct mapper)

By alessandro_scaccia

Rookie (25)

alessandro_scaccia's picture

19-03-2018, 21:15

Hi,

my goal is that to make rom file with no-mapper for using msx1 based. I have in most case 2x16kb bin file. In this cases, i had use the tool bin2rom and create one rom file of 32kb and work fine. In another case the rom don't work with emulator or cartridge by programming. I thinks that you are right, but i don't know how Recognize the header and the loader. I use a hex editor for manipulate the bin file.

Can you help me for found the header?

Thanks.

Alessandro.

By NYYRIKKI

Enlighted (4947)

NYYRIKKI's picture

19-03-2018, 21:46

alessandro_scaccia wrote:

Can you help me for found the header?

As I said header is 7 bytes at a start. Before deleting them it is good idea to look them carefully: 1st byte is $FE. 3rd and 2nd byte make up the load address, 5th and 4th byte make up the end address and 7th and 6th byte make up the start address (likely beginning of added loader)... Another tip is that ROM-files start with "AB"-text or they can be found from 16384 byte border... so if after 7 bytes you see "AB"-string then most likely the added loader is at the end -> after deleting the 7 bytes from start you can delete the bytes that exceed 16384-bytes. Naturally on 2nd part you can't use this logic, but it is likely done in similar way as 1st part... As you probably already figured out... another good place to look for "AB" is 16384 ($4000) bytes from the end.

By alessandro_scaccia

Rookie (25)

alessandro_scaccia's picture

20-03-2018, 15:48

Thanks for the reply NYYRIKKI,

I read that you write with attention, but i have for test 1x16kb bin file that have header and AB string and more byte exceded at end over the $4000 address and work good with converting bin2rom without deleted something.
Then i have another bin 1x16kb that not have the loader, no AB string and nothing after $4000 address, have it only the header that start with FE byte, but didn't to start after convert to rom file. I try to delete 7 byte header, but nothing changed

Is very strange.
The file that work for example is:
https://drive.google.com/open?id=0B2IDBc4Cuy47cTVNMTIxTjlZTEE
(you need to extract the bin file with MSX-Taper)
The file that not work is:
https://drive.google.com/open?id=0B2IDBc4Cuy47SzQwLXBNSVBrMmc

I don't understang what is wrong.

By NYYRIKKI

Enlighted (4947)

NYYRIKKI's picture

20-03-2018, 18:34

I think I've understood your initial problem wrong... Neither of these games come in two BIN-files. Both are just BASIC loader + one BIN-file... So can you try to explain what you are trying to do again? Are you trying to put both of the games inside same ROM-file or... ?

By alessandro_scaccia

Rookie (25)

alessandro_scaccia's picture

20-03-2018, 18:51

Hi,

i would to convert .cas in rom file that use into emulator and cartridge for using with real MSX.

Some games work fine, with bin2rom (with 2 .bin files also), while other not work after the conversion to rom.

I thinks that's some error to memory address or something else.

The previous link are the example: the first work and the second not.

Regards.

Alessandro.

By NYYRIKKI

Enlighted (4947)

NYYRIKKI's picture

20-03-2018, 21:06

I suggest that you contact the maker of BIN2ROM-tool and tell him your findings. With some luck he will take a look and fix his tool.

By alessandro_scaccia

Rookie (25)

alessandro_scaccia's picture

20-03-2018, 21:38

Thanks a lot for time expended.

By NYYRIKKI

Enlighted (4947)

NYYRIKKI's picture

21-03-2018, 10:29

So sorry, but I understood your initial problem wrong. I thought you were talking about some game that is splitted to two BIN-files and the file sizes made me expect that we are talking about splitted ROM-file.

Now the later example BIN-file that you sent is natively a BIN-file (not originally a ROM) so these tips that I gave don't work for it. You simply can't make it work by removing added loader as that does not exist in this case here. You need to debug the problem and make the conversion from BIN to ROM manually or get the tool fixed so that it works also on this case.

By CASDuino

Resident (53)

CASDuino's picture

21-03-2018, 13:01

If you're looking to convert the BIN files to CAS then have you tried CASLink3 to generate a .WAV file and then use WAV2CAS to generate the CAS file?

Page 1/2
| 2
My MSX profile