diff options
| author | Uri Shaked | 2021-09-10 01:35:06 +0300 |
|---|---|---|
| committer | Uri Shaked | 2021-09-10 01:35:06 +0300 |
| commit | 39fe0472ce7b7f54438e69f47705086bc60d9716 (patch) | |
| tree | b84cd4c3829c87dde6f8ea56fe6342a891fd9525 /src/cpu/instruction.ts | |
| parent | 0.17.1 (diff) | |
| download | avr8js-39fe0472ce7b7f54438e69f47705086bc60d9716.tar.gz avr8js-39fe0472ce7b7f54438e69f47705086bc60d9716.tar.bz2 avr8js-39fe0472ce7b7f54438e69f47705086bc60d9716.zip | |
feat(watchdog): implement watchdog timer #106
Diffstat (limited to '')
| -rw-r--r-- | src/cpu/instruction.ts | 2 |
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; |
