apple2js/js
Ian Flanigan 5b5655b70e
Add tests for the Disk II card (#133)
* Add tests for the DiskII card

This change adds basic read tests for nibble-based disks for the
DiskII card and fixes a few minor errors.

These tests are in preparation for refactoring.

* Add write tests

These are some basic tests of writing to nibble disks.  In the process,
one minor bug was found, fixed and documented.

* Fix the write tests

I misinterpreted something from Sather and thought that the high bit
had to be set on the data for writing to happen at all.  This is not
true.  Instead, there is a flux transition every time the high bit is
set as the data is left-shifted out of the data register.  The
erroneous test has been removed.

At the same time, I finally understand what `skip` does and documented
that.

* Add tests for saving and restoring Disk II state

These are not exhaustive tests, but they ensure that some basic state
is saved and restored.
2022-06-18 16:54:33 -07:00
..
applesoft Enforce strict equality (#115) 2022-05-18 08:19:45 -07:00
cards Add tests for the Disk II card (#133) 2022-06-18 16:54:33 -07:00
components Preact Videoterm 2022-06-15 18:44:58 -07:00
formats Fix 2mg header parsing and add tests (#127) 2022-06-06 18:10:06 -07:00
intbasic Enforce strict equality (#115) 2022-05-18 08:19:45 -07:00
roms Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
ui Preact mass storage (#125) 2022-06-05 10:57:04 -07:00
apple2.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
apple2io.ts Fix preact apple keys 2022-06-10 19:53:40 -07:00
base64.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
canvas.ts Enforce strict equality (#115) 2022-05-18 08:19:45 -07:00
cpu6502.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
debugger.ts 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
entry.tsx Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
gl.ts Fix apple2shader types 2022-06-15 09:42:07 -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 Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -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
symbols.ts
types.ts Add the recommended eslint plugins for TypeScript (#121) 2022-05-31 08:38:40 -07:00
util.ts Fix 2mg header parsing and add tests (#127) 2022-06-06 18:10:06 -07:00
videomodes.ts Apply semi rule to interfaces (#109) 2022-05-10 08:04:20 -07:00