mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Always update workcycles
This commit is contained in:
parent
086c99f870
commit
f10f3abcab
|
@ -403,18 +403,18 @@ export default class DiskII implements Card {
|
|||
|
||||
// Only used for WOZ disks
|
||||
private moveHead() {
|
||||
if (!isWozDrive(this.cur)) {
|
||||
return;
|
||||
}
|
||||
const track: bit[] =
|
||||
this.cur.rawTracks[this.cur.trackMap[this.cur.track]] || [0];
|
||||
|
||||
const cycles = this.io.cycles();
|
||||
|
||||
// Spin the disk the number of elapsed cycles since last call
|
||||
let workCycles = (cycles - this.lastCycles) * 2;
|
||||
this.lastCycles = cycles;
|
||||
|
||||
if (!isWozDrive(this.cur)) {
|
||||
return;
|
||||
}
|
||||
const track: bit[] =
|
||||
this.cur.rawTracks[this.cur.trackMap[this.cur.track]] || [0];
|
||||
|
||||
while (workCycles-- > 0) {
|
||||
let pulse: bit = 0;
|
||||
if (this.clock == 4) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user