apple2js/js/cards
Ian Flanigan 5e224006e4
Make DiskII.drives a Record instead of an array (#154)
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.
2022-08-31 09:06:38 -07:00
..
cffa.ts Debugger disk info groundwork (#145) 2022-07-23 12:00:38 -07:00
disk2.ts Make DiskII.drives a Record instead of an array (#154) 2022-08-31 09:06:38 -07:00
langcard.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00
mouse.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
nsc.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
parallel.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
ramfactor.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
smartport.ts Debugger disk info groundwork (#145) 2022-07-23 12:00:38 -07:00
thunderclock.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
videoterm.ts Enforce strict equality (#115) 2022-05-18 08:19:45 -07:00