[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ugh. I just DO not understand the Disk ][.



On Thu, 5 Jan 2012, BLuRry wrote:

I've had to suffer through emulating a disk drive also.  It's tricky
stuff, but I can help you if you need -- also I've updated my JACE
code to comment the inner-workings of the drive a little more so it
might help to look at an alternate implementation.  I updated my code
to speed up the emulator to max when disk reads are active, since
there's no possibility that anything else can be interleaved with disk
access and it would otherwise take forever (well, like it would on a
real machine)

Hm. I suppose... Can't be worse than the code I got now, which is buggy as hell and I thought it was something else to blame for years. >_> lol

Controller and I/O implementation
http://java-ace.svn.sourceforge.net/viewvc/java-ace/jace/src/jace/hardware/CardDiskII.java?revision=130&view=markup

Drive implementation (deals with the emulated disk image more
directly)
http://java-ace.svn.sourceforge.net/viewvc/java-ace/jace/src/jace/hardware/DiskIIDrive.java?revision=92&view=markup

-uso.