From 40d30ce0f53e3a265a9f838e07ad90a88af66035 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Sun, 4 Aug 2024 18:21:12 -0500 Subject: [PATCH] Formatting --- .vscode/launch.json | 1 - 6502.js | 7 ++++--- disc-drive.js | 2 +- index.html | 8 +++++--- lib/webgl-debug.js | 1 - 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ffaa10a..3855789 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,4 +12,3 @@ } ] } - diff --git a/6502.js b/6502.js index 0b67c14..57b6960 100644 --- a/6502.js +++ b/6502.js @@ -201,13 +201,14 @@ class Base6502 { return this.readmemZpStack(0x100 + this.s); } - get nmi() { return this._nmiLevel; } + get nmi() { + return this._nmiLevel; + } NMI(nmi) { const prevLevel = this._nmiLevel; this._nmiLevel = !!nmi; - if (this._nmiLevel && !prevLevel) - this._nmiEdge = true; + if (this._nmiLevel && !prevLevel) this._nmiEdge = true; } polltime() { diff --git a/disc-drive.js b/disc-drive.js index 9aa6861..423e2ee 100644 --- a/disc-drive.js +++ b/disc-drive.js @@ -25,7 +25,7 @@ export class DiscDrive extends EventTarget { /** * Create a new DiscDrive. - * + * * @param {Number} id which drive id this is (0 or 1) * @param {Scheduler} scheduler scheduler to register callbacks etc */ diff --git a/index.html b/index.html index 37f1a25..d680311 100644 --- a/index.html +++ b/index.html @@ -80,7 +80,9 @@
  • - Download drive 0 image as SSD/DSD + Download drive 0 image as SSD/DSD
  • @@ -507,8 +509,8 @@ - - To load a custom disc image, get an SSD, DSD, HFE, ADF, ADM or ADL file and load it below. Search the web, or - check somewhere like + To load a custom disc image, get an SSD, DSD, HFE, ADF, ADM or ADL file and load it below. Search the web, + or check somewhere like here for these. Be aware the images are usually stored in a ZIP file, and you'll need to unzip first.
    diff --git a/lib/webgl-debug.js b/lib/webgl-debug.js index 4ca053d..e4b98cc 100644 --- a/lib/webgl-debug.js +++ b/lib/webgl-debug.js @@ -587,7 +587,6 @@ function makeLostContextSimulatingCanvas(canvas) { restoreTimeout_ = timeout; }; - function clearErrors() { var k = Object.keys(glErrorShadow_); for (var ii = 0; ii < k.length; ++ii) {