apple2js/js
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
..
applesoft Debugger disk info groundwork (#145) 2022-07-23 12:00:38 -07:00
cards Make DiskII.drives a Record instead of an array (#154) 2022-08-31 09:06:38 -07:00
components Refactor key handling to use event.key (#152) 2022-08-24 18:23:22 -07:00
formats Fix sector wrap issue, validate sector 2022-08-20 08:31:34 -07:00
intbasic Fix numbers 2022-07-26 18:46:39 -07:00
roms Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
ui Make errors in the disk and audio workers not block the emulator (#150) 2022-08-21 12:41:19 -07:00
apple2.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00
apple2io.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00
base64.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
canvas.ts Add hires preview (#146) 2022-07-23 15:51:12 -07:00
cpu6502.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00
debugger.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00
entry.tsx Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
entry2.ts TypeScript remnants (#94) 2021-12-22 10:37:21 -08:00
entry2e.ts TypeScript remnants (#94) 2021-12-22 10:37:21 -08:00
gl.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00
main2.ts Preact mass storage (#125) 2022-06-05 10:57:04 -07:00
main2e.ts Preact mass storage (#125) 2022-06-05 10:57:04 -07:00
mmu.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00
options.ts Apply semi rule to interfaces (#109) 2022-05-10 08:04:20 -07:00
prefs.ts Preact UI (#106) 2022-05-10 06:52:06 -07:00
ram.ts Clean up copyright notices (#93) 2021-12-21 12:35:26 -08:00
symbols.ts More typescript conversion (#46) 2020-11-24 08:48:14 -08:00
types.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
util.ts 2IMG Download support. (#137) 2022-06-21 20:34:19 -07:00
videomodes.ts More debugger panels (#141) 2022-07-13 20:34:50 -07:00