Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II Emulation » *sigh* (disk ][ emulation)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
*sigh* (disk ][ emulation) [message #331363] Fri, 04 November 2016 13:42 Go to next message
Steve Nickolas is currently offline  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 Go to previous messageGo to next message
BLuRry is currently offline  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 Go to previous messageGo to next message
Steve Nickolas is currently offline  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 #331711 is a reply to message #331704] Tue, 08 November 2016 03:56 Go to previous messageGo to next message
Steve Nickolas is currently offline  Steve Nickolas
Messages: 2036
Registered: October 2012
Karma: 0
Senior Member
Hm. I guess I'll try to go through the code and convert it from Java to C
(they're not that different at surface level), and then try to fit it into
the MoD architecture.

-uso.
Re: *sigh* (disk ][ emulation) [message #331732 is a reply to message #331711] Tue, 08 November 2016 09:08 Go to previous message
BLuRry is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: P8 1.4 - 1.5?
Next Topic: Porting AppleWin to MinGW?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Apr 24 15:49:26 EDT 2024

Total time taken to generate the page: 0.02201 seconds