From 0059910122e585d4c8f22d3bca18f4ca2577e118 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Sun, 1 Dec 2019 06:43:42 -0800 Subject: [PATCH] Fix Disk II writing. --- js/cards/disk2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/cards/disk2.js b/js/cards/disk2.js index 014c1f0..b3067e9 100644 --- a/js/cards/disk2.js +++ b/js/cards/disk2.js @@ -232,7 +232,7 @@ export default function DiskII(io, slot, callbacks, sectors = 16) if (_writeMode) { if (!_cur.readOnly) { - track[_cur.head] = _latch; + track[_cur.head] = _bus; if (!_cur.dirty) { _updateDirty(_drive, true); } @@ -366,7 +366,7 @@ export default function DiskII(io, slot, callbacks, sectors = 16) case LOC.DRIVEREAD: // 0x0c (Q6L) Shift _q6 = 0; if (_writeMode) { - debug('clearing _q6/SHIFT'); + _debug('clearing _q6/SHIFT'); } if (!_cur.rawTracks) { _readWriteNext(); @@ -376,7 +376,7 @@ export default function DiskII(io, slot, callbacks, sectors = 16) case LOC.DRIVEWRITE: // 0x0d (Q6H) LOAD _q6 = 1; if (_writeMode) { - debug('setting _q6/LOAD'); + _debug('setting _q6/LOAD'); } if (!_cur.rawTracks) { if (readMode && !_writeMode) {