dad664npc wrote: Thu Jan 26, 2023 12:43 pm
If it's that easy why isn't it done?
Because the only other developer/user is Badwolf?
dad664npc wrote: Thu Jan 26, 2023 12:43 pmWhat am I missing?
I don't know. If you ignore Linux FS mapping and just concentrate on HDF file support that should be easier.
First identify the 680x0 addresses of the Atari ST-Book IDE interface. And their bit-function.
Code: Select all
##############IDE Controller (Falcon, ST-Book, IDE cards) ###########
-------+-----+-----------------------------------------------------+----------
$F00000|long |Data Register |R/W
$F00005|byte |Error Register BIT 7 6 5 4 3 2 1 0|R
| |Bad block mark -----------------------' | | | | | | ||
| |Uncorrectable error --------------------' | | | | | ||
| |Media change -----------------------------' | | | | ||
| |ID-Field not found -------------------------' | | | ||
| |Media change requested -----------------------' | | ||
| |Command aborted --------------------------------' | ||
| |Track 0 not found --------------------------------' ||
| |DAM not found --------------------------------------'|
$F00009|byte |Sector Count Register |W
$F0000D|byte |Sector Number Register |W
$F00011|byte |Cylinder Low Register |W
$F00015|byte |Cylinder High Register |W
$F00019|byte |Drive Head Register |W
$F0001D|byte |Status Register |R
$F0001D|byte |Command Register |W
$F00039|byte |Alternate Status Register |R
$F00039|byte |Data Output Register |W
Here is the Hatari ST-Book IDE emulation code and you can see it maps to these addresses and get an idea of their function inside the emulator.
https://git.tuxfamily.org/hatari/hatari ... /src/ide.c
Don't worry too much about the complexity, this is really just for reference if you get stuck.
Here is the equivalent inside Musashi for Gayle IDE (link provided by Claude)
https://github.com/captain-amygdala/pis ... -ide/ide.c
Don't worry about any complexity of the code. You're not going to concentrate on how it works (at first) but rather the differences between the Atari ST-Book IDE registers and the Amiga Gayle IDE registers.
https://www.amigawiki.org/lib/exe/fetch ... cation.pdf
They are both PIO IDE interfaces dating to the same era accessing the same HDDs so underneath they will have very similar form. You can see so many similarities in 2 mins just by looking. Hopefully you can work out how to map from one to the other... (using the Hatari code for reference) then use the existing Musashi code massaged a bit to make it look like an Atari ST-Book IDE interface.
Worst comes to the worst they are 100% completely different and you have to shoe-horn in the Hatari code changing the API from Hatari to Musashi.
Don't worry about AmigaDOS vs AtariDOS formats or anything like that with HDF files. They are just block based devices and the formatting all comes from the host OS.
Claude linked to the program that can generate blank HDF files with geometry.
https://github.com/captain-amygdala/pis ... 9c5787/ide
dad664npc wrote: Thu Jan 26, 2023 12:43 pmIf I knew how to do it, I wouldn't be posting on here asking for help.
If I had the time and the equipment set up I would help more but I don't have either I'm sorry.
Senior Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine -
http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV