whscullin / apple2js

An Apple II emulator originally written in Javascript, now being converted to TypeScript
http://www.scullinsteel.com/apple2/
MIT License
438 stars 57 forks source link

Split disk data out into its own record #158

Closed iflan closed 1 year ago

iflan commented 2 years ago

Before, disk data was mixed in with state about the drive itself (like track, motor phase, etc.). This made it hard to know exactly what data was necessary for different image formats.

Now, the disk data is in a disks record in the DiskII object. This makes responsibility a bit easier to see.

This change is probably best reviewed one commit at a time since they are small and targeted.