Spectrum TRD format soon?

HxC Floppy Emulator on ZX Spectrum and compatible support
Post Reply
DFL
Posts: 44
Joined: Wed Mar 18, 2009 1:56 pm

Spectrum TRD format soon?

Post by DFL » Wed Mar 18, 2009 2:01 pm

How about the support to TRD images?

I'm still have my old rubber Spectrum 48K with Beta interface and I love to see the emulator working on it.

Jeff
Site Admin
Posts: 4916
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Spectrum TRD format soon?

Post by Jeff » Thu Mar 19, 2009 12:04 am

DFL wrote:How about the support to TRD images?

I'm still have my old rubber Spectrum 48K with Beta interface and I love to see the emulator working on it.
yes it's possible.

do you have the emulator ?

DFL
Posts: 44
Joined: Wed Mar 18, 2009 1:56 pm

Post by DFL » Thu Mar 19, 2009 2:46 am

Yes, I build the PIC version. BTW, awesome work!

I update the firmware to the last version and it's working great in my MSX.

Except the "Format" command... I tested in a standard MSX image and the Emulator hangs or restart. Very weird.

In the Spectrum 48k, I can use the emulator when I convert a real beta (TRD) disk to IMD format. But it's a pain, because the IMD.EXE works only in MS-DOS. :(

Hope you add TRD format soon!

Regards and thaks for the quick answer.

Jeff
Site Admin
Posts: 4916
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff » Thu Mar 19, 2009 10:05 am

DFL wrote:Except the "Format" command... I tested in a standard MSX image and the Emulator hangs or restart. Very weird.
yes this is normal because the emulator support only the writing of sector (512 bytes sector). formating is a different write process, and the emulator doesn't support it. but anyway, the emulator should not crash while formating -> i must correct this.
DFL wrote: In the Spectrum 48k, I can use the emulator when I convert a real beta (TRD) disk to IMD format. But it's a pain, because the IMD.EXE works only in MS-DOS. :(

Hope you add TRD format soon!
ok i will add this format in the next release.

Pryanick
Posts: 31
Joined: Fri Mar 20, 2009 2:22 pm
Location: Minsk
Contact:

.TRD!

Post by Pryanick » Fri Mar 20, 2009 3:09 pm

Hi.
I'm using ZX-Spectrum. There are huge nomber of *.trd & *.scl disk images in the internet. We can transfer these images from PC to real 3,5" disks and run them on ZX. But...
It's very borring to copy 20 or 30 diskettes images :roll:
Now, we can use floppy emulator!!! Great!
I need such thing and I can solder it by myself. And I would. But I found this: The schematic will change soon, and next versions of the firmware will no more support this schematic/pcb". It's from warning.txt.
It will be very nice that new version will support at list *.trd images (and *.scl too :P )
ZX-Spectrum/128k/TR-DOS/HxC Floppy Drive Emulator/YM2149F/ROM-DISK

Jeff
Site Admin
Posts: 4916
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: .TRD!

Post by Jeff » Fri Mar 20, 2009 3:19 pm

I have just added the TRD and SCL ( ;-) ) support.

DLF can you test this with the real hardware ? :

http://hxc2001.free.fr/floppy_drive_emu ... r_soft.zip

Pryanick
Posts: 31
Joined: Fri Mar 20, 2009 2:22 pm
Location: Minsk
Contact:

Post by Pryanick » Fri Mar 20, 2009 3:27 pm

Does "15/03/2009: Firmware SD HxCFloppyEmulator v0.0.4.0" support *.trd & *.scl disk images?
And when You are going to finish next version under new schematic and firware?
ZX-Spectrum/128k/TR-DOS/HxC Floppy Drive Emulator/YM2149F/ROM-DISK

Jeff
Site Admin
Posts: 4916
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff » Fri Mar 20, 2009 3:51 pm

Pryanick wrote:Does "15/03/2009: Firmware SD HxCFloppyEmulator v0.0.4.0" support *.trd & *.scl disk images?
And when You are going to finish next version under new schematic and firware?
Yes indirectly : This the windows application that allow you to convert the TRD/SCL (and the others) files for the SDCard HxC Floppy Emulator (*.HFE).
Pryanick wrote:And when You are going to finish next version under new schematic and firware?
I really don't know this.

DFL
Posts: 44
Joined: Wed Mar 18, 2009 1:56 pm

Re: .TRD!

Post by DFL » Fri Mar 20, 2009 8:51 pm

Jeff wrote:I have just added the TRD and SCL ( ;-) ) support.

DLF can you test this with the real hardware ? :

http://hxc2001.free.fr/floppy_drive_emu ... r_soft.zip
Hi Jeff thanks!!!

I'll try this at home today.

Thank you very much... Awesome work so far...

Pryanick
Posts: 31
Joined: Fri Mar 20, 2009 2:22 pm
Location: Minsk
Contact:

img2hfe

Post by Pryanick » Fri Mar 20, 2009 11:08 pm

One more question, about img2hfe conversion...
I tried to convert trd and scl files, but nothing happened. I used cmd under W2k and then run img2hfe in command promt
"no loader support this file 1\x.trd
Load error! Image file not yet supported."
I just want to test the software to make sure that everything works fine.
May be a little instruction on img2hfe is needed :roll:
And one more:what exactly have to be done to copy *.trd (or *.scl) images to SD/MMC Card before connecting emulator to ZX?
ZX-Spectrum/128k/TR-DOS/HxC Floppy Drive Emulator/YM2149F/ROM-DISK

Jeff
Site Admin
Posts: 4916
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: img2hfe

Post by Jeff » Sat Mar 21, 2009 1:37 am

Pryanick wrote:One more question, about img2hfe conversion...
I tried to convert trd and scl files, but nothing happened. I used cmd under W2k and then run img2hfe in command promt
"no loader support this file 1\x.trd
Load error! Image file not yet supported."
I just want to test the software to make sure that everything works fine.
May be a little instruction on img2hfe is needed :roll:
And one more:what exactly have to be done to copy *.trd (or *.scl) images to SD/MMC Card before connecting emulator to ZX?
img2hfe is designed to convert all images present in a folder and write converted files to another folder (for example the sdcard)

example :
img2hfe "C:\Documents and Settings\Jeff\Bureau\sourceimg" "d:" -HFE

with this command all image files present in the "sourceimg" folder (and its subfolders) are converted and written to the sdcard (d: on my system).
Note that the subfolders tree of "sourceimg" is recreated on the sdcard

The output of the program:

HxC Floppy Emulator : Floppy image file to hfe file converter V1.0
HFE output file format.
Starting HxCFloppyEmulator...
Creating directory d:\\atari
Entering directory atari
converting file Degas Elite.st, 737280B
Loading C:\Documents and Settings\Jeff\Bureau\sourceimg\atari\Degas Elite.st
file loader found!
filesize:720kB, 80 tracks, 2 side(s), 9 sectors/track, gap3:84, interleave:1,rpm:300
track file successfully loaded and encoded!
Write HFE file d:\\atari\Degas Elite_st.hfe for the standalone emulator.
80 tracks written to the file
Leaving directory atari
converting file dkboot.ima, 737280B
Loading C:\Documents and Settings\Jeff\Bureau\sourceimg\dkboot.ima
file loader found!
track file successfully loaded and encoded!
Write HFE file d:\\dkboot_ima.hfe for the standalone emulator.
80 tracks written to the file
Creating directory d:\\zxspectrum
Entering directory zxspectrum
converting file song2.scl, 26423B
Loading C:\Documents and Settings\Jeff\Bureau\sourceimg\zxspectrum\song2.scl
file loader found!
track file successfully loaded and encoded!
Write HFE file d:\\zxspectrum\song2_scl.hfe for the standalone emulator.
80 tracks written to the file
converting file traumwerk.scl, 194615B
Loading C:\Documents and Settings\Jeff\Bureau\sourceimg\zxspectrum\traumwerk.scl
file loader found!
track file successfully loaded and encoded!
Write HFE file d:\\zxspectrum\traumwerk_scl.hfe for the standalone emulator.
80 tracks written to the file
Leaving directory zxspectrum


after this you can put directly the sdcard in emulator and use these images.


if you want just convert one image file, you can use the GUI software: just drag&drop the scl/trd file on the window and select Menu Disk->Write SDcard File Image

DFL
Posts: 44
Joined: Wed Mar 18, 2009 1:56 pm

Re: .TRD!

Post by DFL » Sat Mar 21, 2009 2:33 am

DFL wrote:
Jeff wrote:I have just added the TRD and SCL ( ;-) ) support.

DLF can you test this with the real hardware ? :

http://hxc2001.free.fr/floppy_drive_emu ... r_soft.zip
Hi Jeff thanks!!!

I'll try this at home today.

Thank you very much... Awesome work so far...
Jeff,

I converted some TRD files and give a try in emulator. It's working great, thanks.

I was wondering, these TRD are 256 bytes sector right? So, it's not compatible with writing... But, how about to padding these sectors to 512 bytes in conversion? So the emulator will write a 512 bytes sector, but the beta interface will see only the first 256 block... Something like that... Is it possible?

Sorry, I'm just guessing here. I don't know much about programming or Disk interfaces...

Jeff
Site Admin
Posts: 4916
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: .TRD!

Post by Jeff » Sat Mar 21, 2009 10:08 am

DFL wrote:
DFL wrote:
Jeff wrote:I have just added the TRD and SCL ( ;-) ) support.

DLF can you test this with the real hardware ? :

http://hxc2001.free.fr/floppy_drive_emu ... r_soft.zip
Hi Jeff thanks!!!

I'll try this at home today.

Thank you very much... Awesome work so far...
Jeff,

I converted some TRD files and give a try in emulator. It's working great, thanks.

I was wondering, these TRD are 256 bytes sector right? So, it's not compatible with writing... But, how about to padding these sectors to 512 bytes in conversion? So the emulator will write a 512 bytes sector, but the beta interface will see only the first 256 block... Something like that... Is it possible?

Sorry, I'm just guessing here. I don't know much about programming or Disk interfaces...
Write 256 bytes are technically possible but i need to modify a little the firmware to support both 512 and 256 bytes sector.

for now you can modify floppyemulation.c by changing the line 372:

}while(byteremaining<514);

by

}while(byteremaining<258);

after this the write support should work with your hardware.



Can you test some SCL image files ?

DFL
Posts: 44
Joined: Wed Mar 18, 2009 1:56 pm

Re: .TRD!

Post by DFL » Sat Mar 21, 2009 2:52 pm

Jeff wrote:
DFL wrote:
DFL wrote: Hi Jeff thanks!!!

I'll try this at home today.

Thank you very much... Awesome work so far...
Jeff,

I converted some TRD files and give a try in emulator. It's working great, thanks.

I was wondering, these TRD are 256 bytes sector right? So, it's not compatible with writing... But, how about to padding these sectors to 512 bytes in conversion? So the emulator will write a 512 bytes sector, but the beta interface will see only the first 256 block... Something like that... Is it possible?

Sorry, I'm just guessing here. I don't know much about programming or Disk interfaces...
Write 256 bytes are technically possible but i need to modify a little the firmware to support both 512 and 256 bytes sector.

for now you can modify floppyemulation.c by changing the line 372:

}while(byteremaining<514);

by

}while(byteremaining<258);

after this the write support should work with your hardware.



Can you test some SCL image files ?
Sorry, I can't find any SCL images to test... Can you point me some site?

About the 256 bytes sector, I changed the line, it's working fine. But I add some logic to switch between 256 and 512 mode.

I added a new floppyinterfacemode in hfe_file and changed the header of converted HFE file (by hand) to point this new mode. It's lame, but is working great for me. Thanks for your help.

Jeff
Site Admin
Posts: 4916
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: .TRD!

Post by Jeff » Sat Mar 21, 2009 7:03 pm

DFL wrote:
Jeff wrote:
DFL wrote:
Jeff,

I converted some TRD files and give a try in emulator. It's working great, thanks.

I was wondering, these TRD are 256 bytes sector right? So, it's not compatible with writing... But, how about to padding these sectors to 512 bytes in conversion? So the emulator will write a 512 bytes sector, but the beta interface will see only the first 256 block... Something like that... Is it possible?

Sorry, I'm just guessing here. I don't know much about programming or Disk interfaces...
Write 256 bytes are technically possible but i need to modify a little the firmware to support both 512 and 256 bytes sector.

for now you can modify floppyemulation.c by changing the line 372:

}while(byteremaining<514);

by

}while(byteremaining<258);

after this the write support should work with your hardware.



Can you test some SCL image files ?
Sorry, I can't find any SCL images to test... Can you point me some site?

About the 256 bytes sector, I changed the line, it's working fine. But I add some logic to switch between 256 and 512 mode.

I added a new floppyinterfacemode in hfe_file and changed the header of converted HFE file (by hand) to point this new mode. It's lame, but is working great for me. Thanks for your help.
New PIC firmware upgrade:
support the writing of 512 and 256 bytes sectors.
Can you try it ?



for the SCL test you can run some demo:
ftp://ftp.untergrund.net/users/diver4d/ ... nfinal.zip
http://www.scene.org/file_dl.php?url=ft ... &id=384166
http://www.zxdemo.org/f/200305/ascii03/detroyt_scl.zip

more zxspectrum demo here :
http://www.pouet.net/prodlist.php?platf ... er=thumbup

Post Reply