From 39fe0472ce7b7f54438e69f47705086bc60d9716 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Fri, 10 Sep 2021 01:35:06 +0300 Subject: feat(watchdog): implement watchdog timer #106 --- src/cpu/instruction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/instruction.ts') diff --git a/src/cpu/instruction.ts b/src/cpu/instruction.ts index c3cdb92..9937ec9 100644 --- a/src/cpu/instruction.ts +++ b/src/cpu/instruction.ts @@ -783,7 +783,7 @@ export function avrInstruction(cpu: ICPU) { cpu.data[d] = ((15 & i) << 4) | ((240 & i) >>> 4); } else if (opcode === 0x95a8) { /* WDR, 1001 0101 1010 1000 */ - /* not implemented */ + cpu.onWatchdogReset(); } else if ((opcode & 0xfe0f) === 0x9204) { /* XCH, 1001 001r rrrr 0100 */ const r = (opcode & 0x1f0) >> 4; -- cgit v1.2.3