From 96a6dba4371a2e319a47335b2bf366b695b6c17a Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Fri, 10 Sep 2021 21:16:34 +0300 Subject: refactor: remove the ICPU interface Removing the interface simplifies the code --- src/cpu/interrupt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cpu/interrupt.ts') diff --git a/src/cpu/interrupt.ts b/src/cpu/interrupt.ts index 1bfa035..2e4ceb9 100644 --- a/src/cpu/interrupt.ts +++ b/src/cpu/interrupt.ts @@ -6,9 +6,9 @@ * Copyright (C) 2019, Uri Shaked */ -import { ICPU } from './cpu'; +import { CPU } from './cpu'; -export function avrInterrupt(cpu: ICPU, addr: number) { +export function avrInterrupt(cpu: CPU, addr: number) { const sp = cpu.dataView.getUint16(93, true); cpu.data[sp] = cpu.pc & 0xff; cpu.data[sp - 1] = (cpu.pc >> 8) & 0xff; -- cgit v1.2.3