aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/cpu.ts3
-rw-r--r--src/cpu/instruction.spec.ts4
-rw-r--r--src/cpu/instruction.ts2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/cpu/cpu.ts b/src/cpu/cpu.ts
index 62ff40a..4065b0a 100644
--- a/src/cpu/cpu.ts
+++ b/src/cpu/cpu.ts
@@ -9,7 +9,7 @@
*/
import { AVRIOPort } from '../peripherals/gpio';
-import { u32, u16, u8, i16 } from '../types';
+import { i16, u16, u32, u8 } from '../types';
import { avrInterrupt } from './interrupt';
const registerSpace = 0x100;
@@ -262,7 +262,6 @@ export class CPU {
const { nextInterrupt } = this;
if (this.interruptsEnabled && nextInterrupt >= 0) {
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const interrupt = this.pendingInterrupts[nextInterrupt]!;
avrInterrupt(this, interrupt.address);
if (!interrupt.constant) {
diff --git a/src/cpu/instruction.spec.ts b/src/cpu/instruction.spec.ts
index aa01876..181b2fa 100644
--- a/src/cpu/instruction.spec.ts
+++ b/src/cpu/instruction.spec.ts
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: MIT
// Copyright (c) Uri Shaked and contributors
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+import { assemble } from '../utils/assembler';
import { CPU } from './cpu';
import { avrInstruction } from './instruction';
-import { assemble } from '../utils/assembler';
-import { describe, it, expect, vi, beforeEach } from 'vitest';
const r0 = 0;
const r1 = 1;
diff --git a/src/cpu/instruction.ts b/src/cpu/instruction.ts
index d815733..77f27ba 100644
--- a/src/cpu/instruction.ts
+++ b/src/cpu/instruction.ts
@@ -13,8 +13,8 @@
* Copyright (C) 2019, 2020 Uri Shaked
*/
-import { CPU } from './cpu';
import { u16 } from '../types';
+import { CPU } from './cpu';
function isTwoWordInstruction(opcode: u16) {
return (
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.