SMC file support over 24Mbit Rom

General discussion forum - for all that doesn't fit in any other category.
Post Reply
kazmat
Posts: 12
Joined: Thu Oct 16, 2008 3:14 pm

SMC file support over 24Mbit Rom

Post by kazmat »

Dear Jeff

I got error messgae "Load error ! error -2" When I drug & drop 24Mbit or 32Mbit roms to HxC software.

Under 16Mbit roms are okay, can convert HFE file.

Over 24Mbit roms no support ?

and I would like to support SMD (copier for megadrive) files.

I think SMD header is same as SMC header.

Here is info about header file from document

The SMD does not assign an extension to single format files, though
by tradition people give the '.SMD' extension. Split files range
from '.1' to '.8'. The last file in a split set has byte 02h of the header
set to 00h, while other files have the same byte set to 40h.

Header format:

Byte 00h : Size of file in 16K blocks.
Byte 01h : 03h
Byte 02h : Split file indicator (00h=single or last file, 40h=split file)
Byte 08h : AAh
Byte 09h : BBh
Byte 0Ah : 06h

The remainder of the header should be set to zero.
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: SMC file support over 24Mbit Rom

Post by Jeff »

kazmat wrote:Dear Jeff

I got error messgae "Load error ! error -2" When I drug & drop 24Mbit or 32Mbit roms to HxC software.

Under 16Mbit roms are okay, can convert HFE file.

Over 24Mbit roms no support ?
24MBits=~2.8MB and 32Mbits=~4MB. A standard floppy is = to 1.44MB. So unless you split your file, it will be hard to fit it in the floppy. (the floppy emulator can emulate 4.4MB floppies but it's a hack and some systems don't support this trick).

kazmat wrote: and I would like to support SMD (copier for megadrive) files.

I think SMD header is same as SMC header.

Here is info about header file from document

The SMD does not assign an extension to single format files, though
by tradition people give the '.SMD' extension. Split files range
from '.1' to '.8'. The last file in a split set has byte 02h of the header
set to 00h, while other files have the same byte set to 40h.

Header format:

Byte 00h : Size of file in 16K blocks.
Byte 01h : 03h
Byte 02h : Split file indicator (00h=single or last file, 40h=split file)
Byte 08h : AAh
Byte 09h : BBh
Byte 0Ah : 06h

The remainder of the header should be set to zero.
The smc support is quite simple : i create a fat12 floppy disk and add the smc file on the floppy. i don't care about the header of this file.
So to test the smd support, use the "Create FS Floppy" function with the 1.44MB FAT12 file system type. Then press "Inject directory" and select the folder containing the SMD file.
kazmat
Posts: 12
Joined: Thu Oct 16, 2008 3:14 pm

Post by kazmat »

Thank you for great advice.

Simply I renamed ***.smd file to ***.smc and drag & drop to Hxc.

It's working under 16Mbit(2Mbyte) !!! great !!!

Please add support for smd extension.




About 24Mbit & 32Mbit titles, I will split 2 files using ucon64 and transfer.

But there is problem about file name, for example to split 32Mbit files into 2 16Mbit files.

TEST.SMC ------> TEST.1 TEST.2

HxC can't accept drag&drop TEST.1 & TEST.2.




I made SD-Card version, but not working yet.javascript:emoticon(':cry:')
it freeze track2 when I choose any files.
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

kazmat wrote:Thank you for great advice.

Simply I renamed ***.smd file to ***.smc and drag & drop to Hxc.

It's working under 16Mbit(2Mbyte) !!! great !!!

Please add support for smd extension.




About 24Mbit & 32Mbit titles, I will split 2 files using ucon64 and transfer.

But there is problem about file name, for example to split 32Mbit files into 2 16Mbit files.

TEST.SMC ------> TEST.1 TEST.2

HxC can't accept drag&drop TEST.1 & TEST.2.
as said before, please use the "Create FS Floppy" of the software, this should works without problem.
kazmat wrote: I made SD-Card version, but not working yet.javascript:emoticon(':cry:')
it freeze track2 when I choose any files.
Maybe because you didn't have the good jumper setting on the board ?
bandicoot
Posts: 27
Joined: Sat Feb 28, 2009 11:09 pm

Post by bandicoot »

for my gdfs7 , i use ucon64 to split the file after i got
SF24XXXA.078
SF24XXXB.078
SF24XXXC.078
i make a image of disk with imagedisk i put one of the three files and creat the .ima files after with HXC soft i translate the file and no probleme to read the file
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

bandicoot wrote:for my gdfs7 , i use ucon64 to split the file after i got
SF24XXXA.078
SF24XXXB.078
SF24XXXC.078
i make a image of disk with imagedisk i put one of the three files and creat the .ima files after with HXC soft i translate the file and no probleme to read the file
no need to use imagedisk, the hxc floppy emulator software can make the image for you (get the updated version: https://hxc2001.com/floppy_drive_emulat ... r_soft.zip )
kazmat
Posts: 12
Joined: Thu Oct 16, 2008 3:14 pm

Post by kazmat »

Yeah I also test using "Create FS Floppy" but drag & drop is best method for me, because my roms folder has many files in one folder.


BTW, about SD-Card version I want to connect wire about DS0-DS2, MTRON signal to FD 34pin without jumper.

As usual PC/AT FD drive, To which pin do I only have to tie?
I think that PC drive use DS1 & MTRON. Is it true ?


Sorry for my poor english.
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

kazmat wrote:Yeah I also test using "Create FS Floppy" but drag & drop is best method for me, because my roms folder has many files in one folder.


BTW, about SD-Card version I want to connect wire about DS0-DS2, MTRON signal to FD 34pin without jumper.

As usual PC/AT FD drive, To which pin do I only have to tie?
I think that PC drive use DS1 & MTRON. Is it true ?


Sorry for my poor english.

DS1 -> 'B:'
DS2 -> 'A:'

if you use a twisted floppy cable :
DS1 -> 'A:'
DS2 -> 'B:'


don't connect mtron.
kazmat
Posts: 12
Joined: Thu Oct 16, 2008 3:14 pm

Post by kazmat »

Thanks jeff, it is working now. very cool.

I hope you can add


Drag & drop support for SMD file

Drag & drop support for SMC,SMD split file (TEST.1 up to TEST.4)

Batch convert support for SMD & SMC,SMD split file

1.68MB (21sector) support for Create FS Floppy

Eject(Unload) command for disk image
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

kazmat wrote:Thanks jeff, it is working now. very cool.

I hope you can add


Drag & drop support for SMD file
done in the new version
kazmat wrote: Drag & drop support for SMC,SMD split file (TEST.1 up to TEST.4)
done in the new version

kazmat wrote: Batch convert support for SMD & SMC,SMD split file
done in the new version
kazmat wrote: 1.68MB (21sector) support for Create FS Floppy
done in the new version
kazmat wrote: Eject(Unload) command for disk image
later (where and why did you need an eject button ?)
kazmat
Posts: 12
Joined: Thu Oct 16, 2008 3:14 pm

Post by kazmat »

Wow ! Thanks.

About Eject command, baecause I can't delete file while I mount it .


Now I am making 2nd SD-Card board. javascript:emoticon(':lol:')

Keep up good work !
kazmat
Posts: 12
Joined: Thu Oct 16, 2008 3:14 pm

Post by kazmat »

Dear Jeff

I want to go to next step for ultimate tool of console copier.

1)Magic Super Griffin (MSG extension) support

this is rare pa-engine copier from company making SMC,SMD.
File is up to 8Mbit.
I tested by using Create FS Floppy option. working ok.

I need drag&drop, batch conversion support.


2)Game Doctor 3 & 6 &7 (048, 058, 078 extension) support

a bit different SMC type file.
each file is 8Mbit. ex 24Mbit ROM is 3 x 8Mbit

24Mbit, 32Mbit, 48Mbit has header file, but first part file only

SF24001A.078 header + rom
SF24001B.078 rom only
SF24001C.078 rom only

under 16Mbit file has no header

I tested by using Create FS Floppy option. working ok.

I need drag&drop, batch conversion support.


3) About SD-version, I need sorting files & showing directory at first.
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

kazmat wrote:Dear Jeff

I want to go to next step for ultimate tool of console copier.

1)Magic Super Griffin (MSG extension) support

this is rare pa-engine copier from company making SMC,SMD.
File is up to 8Mbit.
I tested by using Create FS Floppy option. working ok.

I need drag&drop, batch conversion support.


2)Game Doctor 3 & 6 &7 (048, 058, 078 extension) support

a bit different SMC type file.
each file is 8Mbit. ex 24Mbit ROM is 3 x 8Mbit

24Mbit, 32Mbit, 48Mbit has header file, but first part file only

SF24001A.078 header + rom
SF24001B.078 rom only
SF24001C.078 rom only

under 16Mbit file has no header

I tested by using Create FS Floppy option. working ok.

I need drag&drop, batch conversion support.


3) About SD-version, I need sorting files & showing directory at first.
1) yes possible. did you have the header/file structure ?
2) ok
3) not very easy : the very small among of ram in the pic make the thing hard to implement.
kazmat
Posts: 12
Joined: Thu Oct 16, 2008 3:14 pm

Post by kazmat »

I checked some files that I dumped

Header format:

Byte 00h : Size of file in 16K blocks.
Byte 01h : 00h or 01h
Byte 02h : 00h or 31h
Byte 08h : AAh
Byte 09h : BBh
Byte 0Ah : 02h <--PC-Engine specific

The remainder of the header should be set to zero.
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

kazmat wrote:I checked some files that I dumped

Header format:

Byte 00h : Size of file in 16K blocks.
Byte 01h : 00h or 01h
Byte 02h : 00h or 31h
Byte 08h : AAh
Byte 09h : BBh
Byte 0Ah : 02h <--PC-Engine specific

The remainder of the header should be set to zero.
hmmm this should already works. the actual code is :


fread(fileheader,1,512,f);
if( fileheader[8]==0xaa && fileheader[9]==0xbb )
{

switch(fileheader[10])
{
case 1:
floppycontext->hxc_printf(MSG_INFO_1,"File type : Super Magic Card saver data");
break;
case 2:
floppycontext->hxc_printf(MSG_INFO_1,"File type : Magic Griffin program (PC-Engine)");
break;
case 3:
floppycontext->hxc_printf(MSG_INFO_1,"File type : Magic Griffin SRAM data");
break;
case 4:
floppycontext->hxc_printf(MSG_INFO_1,"File type : SNES program");
break;
case 5:
floppycontext->hxc_printf(MSG_INFO_1,"File type : SWC & SMC password, SRAM data");
break;
case 6:
floppycontext->hxc_printf(MSG_INFO_1,"File type : Mega Drive program");
break;
case 7:
floppycontext->hxc_printf(MSG_INFO_1,"File type : SMD SRAM data");
break;
case 8:
floppycontext->hxc_printf(MSG_INFO_1,"File type : SWC & SMC saver data");
break;
default:
floppycontext->hxc_printf(MSG_INFO_1,"unknow file type !");
fileok=0;
break;
}
Post Reply