diff options
| author | Uri Shaked | 2021-09-10 21:16:34 +0300 |
|---|---|---|
| committer | Uri Shaked | 2021-09-10 21:16:34 +0300 |
| commit | 96a6dba4371a2e319a47335b2bf366b695b6c17a (patch) | |
| tree | 1664c852cc86826a9fd6795a6512c6d8fa92a686 /src/cpu/instruction.ts | |
| parent | feat(adc): ADC peripheral #13 (diff) | |
| download | avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.tar.gz avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.tar.bz2 avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.zip | |
refactor: remove the ICPU interface
Removing the interface simplifies the code
Diffstat (limited to 'src/cpu/instruction.ts')
| -rw-r--r-- | src/cpu/instruction.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/instruction.ts b/src/cpu/instruction.ts index 9937ec9..e2bed5d 100644 --- a/src/cpu/instruction.ts +++ b/src/cpu/instruction.ts @@ -10,7 +10,7 @@ * Copyright (C) 2019, 2020 Uri Shaked */ -import { ICPU } from './cpu'; +import { CPU } from './cpu'; import { u16 } from '../types'; function isTwoWordInstruction(opcode: u16) { @@ -26,7 +26,7 @@ function isTwoWordInstruction(opcode: u16) { ); } -export function avrInstruction(cpu: ICPU) { +export function avrInstruction(cpu: CPU) { const opcode = cpu.progMem[cpu.pc]; if ((opcode & 0xfc00) === 0x1c00) { |
