English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 14 June 2007, 03:29   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,347
Specification/docs/example code for A-Max .amhd drivers?

Hi,

Does anyone know where I could get hold of specifications or documentation for writing A-Max .amhd drivers?

Versions of the A-Max Mac emulator from 2.0 to 2.56 used special ".amhd" drivers for accessing SCSI drives. This is necessary since the emulator takes over the system, so scsi.device, gvpscsi.device etc. can't be used. There were several different ones on the A-Max disk, and some SCSI controller manufacturers included a .amhd file on their install disks.

Having the specs would allow .amhd drivers to be written for the A600/1200 & A4000 IDE controller, A4000T SCSI and even WinUAE.

I'm planning to trace the schematic of the A-Max cartridge to allow it to be emulated in e.g. WinUAE. It wouldn't need to emulate a Mac floppy drive (though that would be possible), but would allow the original, unmodified A-Max to run. (A-Max reads the Mac ROM data from chips in the cartridge.) A-Max can use very early Mac system software, so is useful for historical interest in playing with old Mac software. Also, the Atari ST emulator "Chamaeleon" by Maxon may well use a very similar cartridge.
mark_k is online now  
Old 14 June 2007, 08:31   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,542
Emulating the cartridge should be quite easy by tracing the software, even without schematics (it was connected to parallel port, right?)

Special UAE driver is pointless, IDE/SCSI hardware emulation is already there (and I'd expect A-Max to have at least A590/A2091 driver), also there isn't any real interface to uaehf.device's "low level" part.

This is one of those pointless but interesting and fun things to emulate. I will add A-Max cartridge emulation sooner or later
Toni Wilen is offline  
Old 14 June 2007, 16:42   #3
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,347
Quote:
Originally Posted by Toni Wilen
Emulating the cartridge should be quite easy by tracing the software, even without schematics (it was connected to parallel port, right?)
No, the cartridge connects to the floppy port. There is a pass-through port for connecting an external Amiga floppy drive, and a 19-pin D connector for connecting a real Mac 800K drive.

It occupies one "unit"; if you have it connected directly to an A500 say, an Amiga floppy drive connected to it will appear as DF2: not DF1:.

Interestingly (or not) the ROM data as read from the cartridge (on the /RDY line) is scrambled; both address and data lines are mixed up. Maybe that was done to make it harder for people to write ROM-dumping programs? Or maybe just to make routing tracks on the PCB easier. (I've figured out how to descramble by looking at the A-Max code.)

To fully emulate the cart will require tracing the schematic. Sure, it would be possible to emulate it to the extent that A-Max works though. For example, there's no way to tell which ROM chip is selected without tracing the schematic. (A-Max doesn't care which ROM is in which socket since its code checks a certain byte in each ROM and reads "the other way round" if necessary.) Luckily there are only 4 standard 74-series TTL ICs plus one resistor and 5 diodes, so the hardware is quite simple.

Quote:
Originally Posted by Toni Wilen
Special UAE driver is pointless, IDE/SCSI hardware emulation is already there (and I'd expect A-Max to have at least A590/A2091 driver), also there isn't any real interface to uaehf.device's "low level" part.
Well that's what a uaescsi.amhd would be for

I do think a WinUAE .amhd driver could be useful. It would work with >4GB drives (scsi.amhd might not) and you could possibly make it work better, e.g. supporting drives with more than 512 bytes per sector.

Quote:
Originally Posted by Toni Wilen
This is one of those pointless but interesting and fun things to emulate. I will add A-Max cartridge emulation sooner or later
That would be cool. I don't agree with you that it's pointless though.

There's a good page with a lot of A-Max info including user manuals and DMS disk images at http://crossconnect.tripod.com/AMAXHOME.HTML
mark_k is online now  
Old 14 June 2007, 17:52   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,542
Quote:
Originally Posted by mark_k
No, the cartridge connects to the floppy port.
Right, I forgot about that..

Quote:
I do think a WinUAE .amhd driver could be useful. It would work with >4GB drives (scsi.amhd might not) and you could possibly make it work better, e.g. supporting drives with more than 512 bytes per sector.
SCSI already can do both (There is no SCSI 4G hardware limitation, 4G limitation is due to Amiga trackdisk-style devices taking offset and size in bytes, not in blocks like SCSI does)

I'd expect more problems with limits in upper level, like in Mac OS itself.
Toni Wilen is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Specification for A1200 Caps Lock LED? rikbliz support.Hardware 7 20 January 2013 00:59
A1200 mechanical specification whitebird support.Hardware 3 14 July 2011 00:46
Function 'resload...' called with illegal file specification... e5frog project.WHDLoad 3 23 July 2010 14:15
resload_LoadFileDecrunch called with illegal file specification rare_j project.WHDLoad 4 25 November 2009 22:31

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:19.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06600 seconds with 13 queries