aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/instruction.ts
diff options
context:
space:
mode:
authorUri Shaked2021-09-10 01:35:06 +0300
committerUri Shaked2021-09-10 01:35:06 +0300
commit39fe0472ce7b7f54438e69f47705086bc60d9716 (patch)
treeb84cd4c3829c87dde6f8ea56fe6342a891fd9525 /src/cpu/instruction.ts
parent0.17.1 (diff)
downloadavr8js-39fe0472ce7b7f54438e69f47705086bc60d9716.tar.gz
avr8js-39fe0472ce7b7f54438e69f47705086bc60d9716.tar.bz2
avr8js-39fe0472ce7b7f54438e69f47705086bc60d9716.zip
feat(watchdog): implement watchdog timer #106
Diffstat (limited to 'src/cpu/instruction.ts')
-rw-r--r--src/cpu/instruction.ts2
1 files changed, 1 insertions, 1 deletions
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;