diff options
Diffstat (limited to '')
| -rw-r--r-- | src/peripherals/spi.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peripherals/spi.ts b/src/peripherals/spi.ts index 9707307..7b753ab 100644 --- a/src/peripherals/spi.ts +++ b/src/peripherals/spi.ts @@ -78,6 +78,9 @@ export class AVRSPI { }, cyclesToComplete); return true; }; + cpu.writeHooks[SPCR] = (value: u8) => { + this.cpu.updateInterruptEnable(this.SPI, value); + }; cpu.writeHooks[SPSR] = (value: u8) => { this.cpu.data[SPSR] = value; this.cpu.clearInterruptByFlag(this.SPI, value); |
