apple2js/test
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
..
components Add drag and drop for disks (#130) 2022-06-12 09:42:01 -07:00
env Create a FileChooser component using showOpenFilePicker (#116) 2022-05-28 10:52:48 -07:00
js Make DiskII.drives a Record instead of an array (#154) 2022-08-31 09:06:38 -07:00
roms Update eslint, fix issues 2021-11-28 16:20:25 -08:00
util Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
cpu6502.spec.ts No Opcode left behind (#92) 2021-12-22 10:37:05 -08:00
cpu-tom-harte.spec.ts Apply semi rule to interfaces (#109) 2022-05-10 08:04:20 -07:00
cpu.spec.ts Enforce strict equality (#115) 2022-05-18 08:19:45 -07:00
jest-setup.ts Preact error dialog (#120) 2022-05-31 17:41:24 -07:00