*sigh* (disk ][ emulation) [message #331363] |
Fri, 04 November 2016 13:42 |
Steve Nickolas
Messages: 2036 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
There seems to be *something* specifically related to disk ][ emulation
that's breaking my emulation, but I just can't wrap my hands around it. :/
I don't know what ELSE might be at fault, but only disk ][ stuff seems to
tickle it. This, in two different drive emulators.
-uso.
|
|
|
Re: *sigh* (disk ][ emulation) [message #331704 is a reply to message #331363] |
Tue, 08 November 2016 00:59 |
BLuRry
Messages: 489 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
On Friday, November 4, 2016 at 12:42:28 PM UTC-5, Steve Nickolas wrote:
> There seems to be *something* specifically related to disk ][ emulation
> that's breaking my emulation, but I just can't wrap my hands around it. :/
>
> I don't know what ELSE might be at fault, but only disk ][ stuff seems to
> tickle it. This, in two different drive emulators.
>
> -uso.
Whatcha need help with? I'm no Woz but I'm happy to help with what limited knowledge I have. Are you trying to emulate standard DSK type stuff, NIB stuff or something even more bit-level than that? I've also taken a little time over the years to document the Disk II emulation that others helped me with, and I have since improved on it (or at least made the code more human-readable.)
Disk II Controller (I/O addresses, firmware): https://github.com/badvision/jace/blob/master/src/main/java/ jace/hardware/CardDiskII.java
Drive emulation: (track stepping, timing, motor):
https://github.com/badvision/jace/blob/master/src/main/java/ jace/hardware/DiskIIDrive.java
Disk emulation: (Includes nibbization and denibbilzation as well)
https://github.com/badvision/jace/blob/master/src/main/java/ jace/hardware/FloppyDisk.java
Fun fact: The nibblization routine even randomizes the gap between sectors to thwart emulation detection routines... just for fun. ;)
|
|
|
Re: *sigh* (disk ][ emulation) [message #331710 is a reply to message #331704] |
Tue, 08 November 2016 02:44 |
Steve Nickolas
Messages: 2036 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
On Mon, 7 Nov 2016, BLuRry wrote:
> On Friday, November 4, 2016 at 12:42:28 PM UTC-5, Steve Nickolas wrote:
>> There seems to be *something* specifically related to disk ][ emulation
>> that's breaking my emulation, but I just can't wrap my hands around it. :/
>>
>> I don't know what ELSE might be at fault, but only disk ][ stuff seems to
>> tickle it. This, in two different drive emulators.
>>
>> -uso.
>
> Whatcha need help with? I'm no Woz but I'm happy to help with what
> limited knowledge I have. Are you trying to emulate standard DSK type
> stuff, NIB stuff or something even more bit-level than that? I've also
> taken a little time over the years to document the Disk II emulation
> that others helped me with, and I have since improved on it (or at least
> made the code more human-readable.)
At base I as trying to come up with a replacement for the disk code I've
used since 2002 and handles DSK and NIB.
I started my own code and got wedged because the 6:2 system isn't
registering in my head, how it works. :/
> Disk II Controller (I/O addresses, firmware): https://github.com/badvision/jace/blob/master/src/main/java/ jace/hardware/CardDiskII.java
>
> Drive emulation: (track stepping, timing, motor):
> https://github.com/badvision/jace/blob/master/src/main/java/ jace/hardware/DiskIIDrive.java
>
> Disk emulation: (Includes nibbization and denibbilzation as well)
> https://github.com/badvision/jace/blob/master/src/main/java/ jace/hardware/FloppyDisk.java
> Fun fact: The nibblization routine even randomizes the gap between sectors to thwart emulation detection routines... just for fun. ;)
-uso.
|
|
|
|
Re: *sigh* (disk ][ emulation) [message #331732 is a reply to message #331711] |
Tue, 08 November 2016 09:08 |
BLuRry
Messages: 489 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
I can vouch for the dsk to nib conversion. That was one area I spent considerable time on. Also note sector physical order and numbering are two separate things. That took my brain a few laps to get right. The Beneath Apple Dos books helped a lot.
|
|
|