mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
5e224006e4
Before, the `drives` field was an `array[0..1]` of `Drive`, but all of the methods took a `DriveNumber`, which was `[1..2]`. This meant that code everywhere was always subtracting 1 from the drive number. Now, `drives` is a `Record<DriveNumber, Drive>`, which means tha it has indexes `1, 2` and there's no need to subtract 1 everywhere. This change updates the `DiskII` class and its tests. The motivation for this change is to slowly split the WOZ disk implementation from the nibble disk implementation. I've tried twice, but the change has always grown too big and hairy, so I'm starting very small this time and working my way up. |
||
---|---|---|
.. | ||
components | ||
env | ||
js | ||
roms | ||
util | ||
cpu6502.spec.ts | ||
cpu-tom-harte.spec.ts | ||
cpu.spec.ts | ||
jest-setup.ts |