Please improve HxC emulator software about D88 image.

HxC Floppy Emulator on PC88 / PC98 and compatible support
kitahei88
Posts: 27
Joined: Sun Nov 14, 2010 4:10 pm

Re: Please improve HxC emulator software about D88 image.

Post by kitahei88 » Mon Nov 29, 2010 5:42 pm

"status" field means return codes from disk bios.
Real disk bios return codes for PC-88 and PC-98 is here.

00h , normal

and everything else is an error code or notification.
10h , the data has DDAM
30h , warning 'try to access over final track'
40h , Fault signal from FDD,Recalibrate error
50h , time out error
60h , FDD not ready
70h , detected write protected
a0h , ID CRC error
b0h , Data CRC error
c0h , cannot find specified sector in the track
d0h , cannot find specified cylinder
e0h , cannot find Address Mark
f0h , cannot find DAM or DDAM when reading datas.

so i have never seen any status codes except for 00h or b0h.
'cause D88 images is just sector dumped image.

i wish this information may helps you.

and i'm interesting this topic you wrote in 'Using 1 HxC for 2 floppy drives on a NEC PC-8801'

If someone could port this on PC88 this can be interesting :

http://www.youtube.com/watch?v=p1zP6p9SBLw

PC-88 is z80 cpu,64KB memory and 640x200 line display.
do you think it is possible to port this software to PC-88? poritng fat32 drivers to PC-88 ?
can i get source codes any other PCs ?

kitahei88

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

Re: Please improve HxC emulator software about D88 image.

Post by Jeff » Mon Nov 29, 2010 6:23 pm

kitahei88 wrote:"status" field means return codes from disk bios.
Real disk bios return codes for PC-88 and PC-98 is here.

00h , normal

and everything else is an error code or notification.
10h , the data has DDAM
30h , warning 'try to access over final track'
40h , Fault signal from FDD,Recalibrate error
50h , time out error
60h , FDD not ready
70h , detected write protected
a0h , ID CRC error
b0h , Data CRC error
c0h , cannot find specified sector in the track
d0h , cannot find specified cylinder
e0h , cannot find Address Mark
f0h , cannot find DAM or DDAM when reading datas.

so i have never seen any status codes except for 00h or b0h.
'cause D88 images is just sector dumped image.

i wish this information may helps you.

and i'm interesting this topic you wrote in 'Using 1 HxC for 2 floppy drives on a NEC PC-8801'

If someone could port this on PC88 this can be interesting :

http://www.youtube.com/watch?v=p1zP6p9SBLw

PC-88 is z80 cpu,64KB memory and 640x200 line display.
do you think it is possible to port this software to PC-88? poritng fat32 drivers to PC-88 ?
can i get source codes any other PCs ?

kitahei88
the PC-88 seems very similar to the Amstrad CPC hardware (Z80, 64KB,6845, NEC765A...) and hopefully the file selector is already ported to CPC ;-).
Yes this is possible. i am using SDCC with some assembly code. What you need to do is: make a crt0.s for PC88 to make SDCC compatible with it (this is maybe already done), change some low level call (floppy, keyboard & screen)...

Drop me an email to get the sources:
http://hxc2001.free.fr/imiel.htm

mdefycp
Posts: 2
Joined: Mon Dec 06, 2010 9:47 pm

Re: Please improve HxC emulator software about D88 image.

Post by mdefycp » Mon Dec 06, 2010 11:34 pm

Is it possible to write files into or change files in a D88-Images with the SD HxC Floppy Drive Emulator?

Best regards
Christian

Namida88
Posts: 22
Joined: Sat May 29, 2010 3:52 am
Location: Tokyo, Japan

Re: Please improve HxC emulator software about D88 image.

Post by Namida88 » Tue Dec 07, 2010 4:26 am

Christian,

I am not sure to understand the question.
But if you need to modify a d88 image file, some tools are already available for Windows.

If you want to write on the d88 image (for example when you save within a game) then the answer in yes but you have to use SD HxC (USB HxC does not support this).

The only thing that cannot been done (yet) is formating a disk : maybe possible with rev.C of the board :o

Understand also that the d88 image is not loaded directly into HxC, as you need to convert it.
I am not sure after how you can convert it back to d88.
mdefycp wrote:Is it possible to write files into or change files in a D88-Images with the SD HxC Floppy Drive Emulator?

Best regards
Christian

mdefycp
Posts: 2
Joined: Mon Dec 06, 2010 9:47 pm

Post by mdefycp » Sat Dec 11, 2010 3:36 pm

Thanks for your answer.

I understand that I have to convert it to hfe-format to be able to use it with the SD Emu.

So, I've still 2 questions:

1) Is it possible to "copy files into" a hfe-Image? or
Is there a "Virtual Drive"-Tool for hfe-Images?

I want to exchange file between PC and PC9801 (UV11) (and vice versa).

2) What tools do you use to create dump files of the floppy disk or analyze the disk? (samdisk?)

I have a lot of disks for UV11 (no games, only data) that I need to dump.
I think there are a few disks with 360rpm 500 kbit/s (1.2MB). My PC isn't able to read those disks with the internal drive. I've a Teac FD-05PUW (USB) which is able to read a few of those disks. So I'm able to dump those disks to raw-image-files. If I write it back to a new disk these disk will not work in my PC-9801. So it seems to be a problem with the rpm / disk format.

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

Post by Jeff » Sat Dec 11, 2010 4:37 pm

Hi,

1) Is it possible to "copy files into" a hfe-Image? or
Is there a "Virtual Drive"-Tool for hfe-Images?

I want to exchange file between PC and PC9801 (UV11) (and vice versa).
In you can generate a msdos hfe from a folder on your pc : all files into the folder will be into the hfe.
2) What tools do you use to create dump files of the floppy disk or analyze the disk? (samdisk?)
Try to use the HxC Floppy Emulator dump feature:

Namida88
Posts: 22
Joined: Sat May 29, 2010 3:52 am
Location: Tokyo, Japan

Post by Namida88 » Sat Dec 11, 2010 4:43 pm

Best is to make an image (d88 or other) of your disk.
Use DITT (some other exists) with a DOS boot disk and a genuine floppy drive (not USB).
And be sure to activate "mode 3" within the bios of your motherboard (I hope your PC is a old enough as newer ones removed everything related to floppy drives).
Another solution is to make the image directly on your PC-98.
I have also heard of way to transfer data from your PC-98 to PC using a serial cable (I dit a lomg time ago it to transfer machine roms).

Then you will be able to "add" files into this image or read it directly with a soft.
This same image could be read back on the real PC-98 using HxC, but I am not sure support is done for the UV series (if it uses VFO, then it won't work).

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

Post by Jeff » Sat Dec 11, 2010 4:50 pm

Namida88 wrote:Best is to make an image (d88 or other) of your disk.
Use DITT (some other exists) with a DOS boot disk and a genuine floppy drive (not USB).

This can be done directly with the hxc floppy emulator software on windows now :
http://hxc2001.free.fr/floppy_drive_emu ... r_soft.zip

sixty_cel
Posts: 60
Joined: Sun Nov 22, 2009 3:29 pm
Location: Thailand

Re: Please improve HxC emulator software about D88 image.

Post by sixty_cel » Sun Jul 01, 2012 3:10 pm

Hi

I'm by some FFDEM from lotharek to operate in machine with PC9801.

I'm create 2HD by 77 track 360 RPM.
8 sector 1024 Byte

from HXCEMU It's work ok

Bt when I'm create 2DD by 80 track 300 RPM.

16 sector/track 256byte/sector

I cannot format it.

Can some one please advice to me.

kitahei88
Posts: 27
Joined: Sun Nov 14, 2010 4:10 pm

Re: Please improve HxC emulator software about D88 image.

Post by kitahei88 » Tue Nov 20, 2012 8:35 am

Hello.
sixty_cel wrote:Hi

Bt when I'm create 2DD by 80 track 300 RPM.

16 sector/track 256byte/sector

I cannot format it.
If you create HFE image file using PC/AT(windows) FDD drives, the HFE image files doesn't work under PC-98x1 series.
Because PC-98x1 series FDD works at 360 rpm , 300kbits/sec for 2DD disks.
But windows FDD works at 300 rpm , 250kbits/sec for 2DD disks.
so you need to change the bit rates in such HFE files by using some binary editors for using it under PC-98x1s.

here is the original 250kbits/sec images file.
http://24.dtiblog.com/k/kitahei88/file/2dd250.jpg

Hex"FA 00" means 250kbits/sec.

and you may need to change "FA 00" to "2C 01"
http://24.dtiblog.com/k/kitahei88/file/2dd300.jpg
Hex"2C 01" means 300kbits/sec.

and one more thing.
Do you use the HxC via VFO board ?
and that VFO board can work for DD disks?

Post Reply